/* Hero: menú arriba + imagen completa abajo (sin recorte). */
.gf-home-hero-replace {
    display: block;
    width: 100%;
    background: #050914;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: 0;
}

.gf-home-hero-replace__frame {
    position: relative;
    width: 100%;
    margin: 0;
    height: auto;
    line-height: 0;
}

.gf-home-hero-replace__frame picture {
    display: block;
}

.gf-home-hero-replace__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
    image-rendering: -webkit-optimize-contrast;
}

.gf-home-hero-replace__img--mobile {
    display: none;
}

/* Menú encima del banner (ya no tapa la imagen) */
.gf-home-hero-menu {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 5;
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #050914 0%, #0a1428 55%, #08101f 100%);
    border-bottom: 2px solid #2f6bff;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(47, 107, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    line-height: normal;
}

.gf-home-hero-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #050914;
    pointer-events: none;
}

.gf-home-hero-menu__toggle {
    display: none;
}

.gf-home-hero-menu__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: clamp(52px, 7vw, 78px);
    margin: 0;
    padding: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.gf-home-hero-menu__btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 0 12px;
    color: #f4f7fb;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: clamp(10px, 0.88vw, 13px);
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gf-home-hero-menu__btn:last-child {
    border-right: none;
}

.gf-home-hero-menu__btn i {
    color: #4d8bff;
    font-size: 1.15em;
    flex: none;
    filter: drop-shadow(0 0 6px rgba(47, 107, 255, 0.65));
    transition: color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.gf-home-hero-menu__btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.gf-home-hero-menu__btn:hover,
.gf-home-hero-menu__btn:focus {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.45) 0%, rgba(47, 107, 255, 0.22) 100%);
    box-shadow: inset 0 0 0 1px rgba(125, 170, 255, 0.35);
}

.gf-home-hero-menu__btn:hover i,
.gf-home-hero-menu__btn:focus i {
    color: #8cbcff;
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(100, 160, 255, 0.9));
}

.gf-home-hero-menu__btn.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.55) 0%, rgba(27, 47, 78, 0.95) 100%);
    box-shadow:
        inset 0 -3px 0 #2f6bff,
        inset 0 0 0 1px rgba(125, 170, 255, 0.25);
}

.gf-home-hero-menu__btn.is-active i {
    color: #9ec5ff;
}

.gf-home-hero-menu__dropdown {
    position: static;
    flex: 1 1 0;
    min-width: 0;
}

.gf-home-hero-menu__btn--dropdown {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gf-home-hero-menu__caret {
    color: #8cbcff;
    font-size: 0.75em;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.gf-home-hero-menu__dropdown.is-open .gf-home-hero-menu__caret {
    transform: rotate(180deg);
}

.gf-home-hero-menu__dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 0;
    background: linear-gradient(180deg, #0a1428 0%, #050914 100%);
    border-bottom: 2px solid #2f6bff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.gf-home-hero-menu__dropdown.is-open .gf-home-hero-menu__dropdown-panel {
    display: block;
}

.gf-home-hero-menu__submenu {
    padding: 14px 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.gf-home-hero-menu__submenu:last-child {
    border-right: none;
}

.gf-home-hero-menu__submenu-title {
    margin: 0 0 10px;
    color: #8cbcff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gf-home-hero-menu__submenu-link {
    display: block;
    padding: 10px 18px;
    color: #f4f7fb;
    text-decoration: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.18s ease, background 0.18s ease;
}

.gf-home-hero-menu__submenu-link:hover,
.gf-home-hero-menu__submenu-link:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(47, 107, 255, 0.22);
}

.gf-home-hero-menu__submenu-empty {
    display: block;
    padding: 10px 18px;
    color: rgba(244, 247, 251, 0.72);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .gf-home-hero-menu__dropdown:hover .gf-home-hero-menu__dropdown-panel,
    .gf-home-hero-menu__dropdown.is-open .gf-home-hero-menu__dropdown-panel {
        display: block;
    }

    .gf-home-hero-menu__dropdown:hover .gf-home-hero-menu__caret,
    .gf-home-hero-menu__dropdown.is-open .gf-home-hero-menu__caret {
        transform: rotate(180deg);
    }
}

@media (max-width: 991px) {
    .gf-home-hero-menu {
        min-height: 0;
        height: auto;
    }

    .gf-home-hero-menu__toggle {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        margin: 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #f4f7fb;
        background: transparent;
        text-transform: uppercase;
        font-family: "Segoe UI", Arial, sans-serif;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.06em;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .gf-home-hero-menu__toggle-left {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .gf-home-hero-menu__toggle-left i {
        color: #4d8bff;
        font-size: 1.15em;
        filter: drop-shadow(0 0 6px rgba(47, 107, 255, 0.65));
    }

    .gf-home-hero-menu__toggle-chevron {
        color: #8cbcff;
        font-size: 0.9em;
        transition: transform 0.2s ease;
    }

    .gf-home-hero-menu.is-open .gf-home-hero-menu__toggle-chevron {
        transform: rotate(180deg);
    }

    .gf-home-hero-menu__panel {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
        overflow: hidden;
        border-top: 0;
    }

    .gf-home-hero-menu.is-open .gf-home-hero-menu__panel {
        display: flex;
    }

    .gf-home-hero-menu__btn {
        flex: 0 0 auto;
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gf-home-hero-menu__btn:last-child {
        border-bottom: none;
    }

    .gf-home-hero-menu__dropdown {
        flex: 0 0 auto;
        width: 100%;
    }

    .gf-home-hero-menu__btn--dropdown {
        justify-content: flex-start;
    }

    .gf-home-hero-menu__dropdown-panel {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .gf-home-hero-menu__dropdown.is-open .gf-home-hero-menu__dropdown-panel {
        display: grid;
    }

    .gf-home-hero-menu__submenu {
        padding: 12px 16px 14px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .gf-home-hero-menu__submenu:last-child {
        border-bottom: none;
    }
}

/* Hotspot transparente sobre el CTA pintado del banner (misma estética) */
.gf-home-hero-hotspot {
    position: absolute;
    z-index: 4;
    display: block;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.gf-home-hero-hotspot--cuotas {
    left: 3.5%;
    top: 75.9%;
    width: 36.7%;
    height: 12.2%;
    border-radius: 999px;
}

.gf-home-hero-hotspot--cuotas:hover,
.gf-home-hero-hotspot--cuotas:focus {
    outline: none;
    background: transparent;
}

.gf-home-hero-hotspot--cuotas:focus-visible {
    outline: 2px solid rgba(90, 180, 255, 0.85);
    outline-offset: 3px;
}

/* Botón móvil real sobre "VE TU CUPO EN 30 SEGUNDOS" */
.gf-home-hero-cta-mobile {
    display: none;
}

.gf-home-hero-hotspot .sr-only,
.gf-home-hero-cta-mobile .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 991px) {
    .gf-home-hero-replace__img--desktop {
        display: none !important;
    }

    .gf-home-hero-replace__img--mobile {
        display: block;
    }

    .gf-home-hero-hotspot--desktop {
        display: none !important;
    }

    .gf-home-hero-cta-mobile {
        position: absolute;
        z-index: 6;
        display: block;
        left: 8.5%;
        top: 55.4%;
        width: 83%;
        height: 6.8%;
        border-radius: 999px;
        border: 0;
        background: transparent;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: none;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

    .gf-home-hero-cta-mobile__glow {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: 0 0 0 0 rgba(47, 107, 255, 0);
        transition: box-shadow 0.15s ease, background 0.15s ease;
    }

    .gf-home-hero-cta-mobile:hover .gf-home-hero-cta-mobile__glow,
    .gf-home-hero-cta-mobile:focus-visible .gf-home-hero-cta-mobile__glow {
        background: rgba(47, 107, 255, 0.12);
        box-shadow:
            0 0 0 2px rgba(125, 180, 255, 0.75),
            0 0 18px rgba(47, 107, 255, 0.55);
    }

    .gf-home-hero-cta-mobile:active {
        transform: scale(0.985);
    }

    .gf-home-hero-cta-mobile:active .gf-home-hero-cta-mobile__glow {
        background: rgba(47, 107, 255, 0.18);
        box-shadow:
            0 0 0 2px rgba(125, 180, 255, 0.9),
            0 0 22px rgba(47, 107, 255, 0.7);
    }

    .gf-home-hero-cta-mobile:focus {
        outline: none;
    }

    .gf-home-hero-cta-mobile:focus-visible {
        outline: none;
    }
}
