/* ======================================================= */
/* HERO CINEMÁTICO — Futuristic Glass Screen · 100dvh      */
/* ======================================================= */

.hero-premium {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin-top: calc(-1 * var(--nav-height, 56px));
    padding: 0;
    overflow: hidden;
    border-bottom: none;
    text-shadow: none;
    background: transparent;
    isolation: isolate;
}
.hero-premium__stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding:
        calc(var(--nav-height, 52px) + env(safe-area-inset-top, 0px) + 1rem)
        0
        calc(5.5rem + env(safe-area-inset-bottom, 0px));
    perspective: 1400px;
    perspective-origin: 50% 42%;
}

/* Cinturón de cristal grueso — volumen 3D que sale de la pantalla */
.hero-premium__band {
    position: relative;
    width: 100%;
    transform: translateY(-6px) translateZ(36px) rotateX(2.5deg);
    transform-style: preserve-3d;
    background-image:
        radial-gradient(
            circle 160px at var(--shine-x) var(--shine-y),
            rgba(255, 255, 255, calc(var(--shine-o) * 0.16)) 0%,
            rgba(255, 210, 140, calc(var(--shine-o) * 0.07)) 28%,
            transparent 58%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.08) 6%,
            rgba(18, 20, 26, 0.55) 22%,
            rgba(10, 12, 16, 0.48) 78%,
            rgba(255, 255, 255, 0.06) 94%,
            rgba(0, 0, 0, 0.2) 100%
        );
    background-color: transparent;
    backdrop-filter: blur(14px) saturate(190%) brightness(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.08);
    border-top: 3px solid rgba(255, 255, 255, 0.38);
    border-bottom: 5px solid rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 0 14px 28px rgba(255, 255, 255, 0.14),
        inset 0 -18px 36px rgba(0, 0, 0, 0.42),
        inset 6px 0 20px rgba(255, 255, 255, 0.06),
        inset -6px 0 20px rgba(0, 0, 0, 0.18),
        0 2px 0 rgba(255, 255, 255, 0.2),
        0 8px 0 rgba(255, 255, 255, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 48px 100px rgba(0, 0, 0, 0.35);
}

/* Bisel superior grueso — cara frontal del vidrio */
.hero-premium__band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.28) 35%,
        rgba(255, 200, 120, 0.12) 70%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Shimmer + borde inferior grueso (espesor del cristal) */
.hero-premium__band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            105deg,
            transparent 38%,
            rgba(255, 255, 255, 0.04) 50%,
            transparent 62%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.12) 8px,
            transparent 18px
        );
    background-size: 200% 100%, 100% 100%;
    animation: heroGlassShimmer 18s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}

@keyframes heroGlassShimmer {
    0%, 100% { background-position: 200% 0; opacity: 0.2; }
    50% { background-position: -200% 0; opacity: 0.35; }
}

/* Esquinas HUD del panel de vidrio */
.hero-premium__corner {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 3;
    pointer-events: none;
}

.hero-premium__corner--tl {
    top: 10px;
    left: 10px;
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    border-left: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        -3px -3px 0 rgba(255, 140, 40, 0.35),
        -6px -6px 16px rgba(255, 106, 0, 0.2);
}

.hero-premium__corner--tr {
    top: 10px;
    right: 10px;
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    border-right: 3px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        3px -3px 0 rgba(255, 140, 40, 0.35),
        6px -6px 16px rgba(255, 106, 0, 0.2);
}

.hero-premium__corner--bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.45);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        -3px 3px 0 rgba(0, 0, 0, 0.25),
        -6px 6px 14px rgba(0, 0, 0, 0.3);
}

.hero-premium__corner--br {
    bottom: 10px;
    right: 10px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.45);
    border-right: 3px solid rgba(0, 0, 0, 0.25);
    box-shadow:
        3px 3px 0 rgba(0, 0, 0, 0.25),
        6px 6px 14px rgba(0, 0, 0, 0.3);
}

.hero-premium__band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding:
        clamp(2rem, 7vw, 3.5rem)
        clamp(1.25rem, 5vw, 2.5rem)
        clamp(2.25rem, 7vw, 3.75rem);
    text-align: center;
}

.hero-premium__hud-stamp {
    margin: 0 0 -0.35rem;
    font-family: 'Courier New', Courier, 'Lucida Console', monospace;
    font-size: clamp(0.4375rem, 2vw, 0.5625rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 160, 80, 0.65);
    text-shadow: 0 0 12px rgba(255, 106, 0, 0.35);
}

/* ── Tipografía monumental ── */
.hero-premium__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 8.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 140, 40, 0.12);
}

.hero-premium__subtitle {
    margin: 0;
    max-width: 36ch;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-premium__subtitle strong,
.hero-premium__subtitle span {
    font-weight: 700;
    color: #ffb347;
    text-shadow:
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 140, 40, 0.45);
}

/* ── CTA holográfico ── */
.hero-premium__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 280px);
    min-height: 56px;
    padding: 1rem 2.25rem;
    margin-top: clamp(0.25rem, 2vw, 0.75rem);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #ff8c00 0%, #ff6a00 45%, #ee0979 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 0 24px rgba(255, 106, 0, 0.35),
        0 12px 32px rgba(255, 106, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.22s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero-premium__cta:active {
    transform: scale(0.97) translateY(1px);
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.28),
        0 0 32px rgba(255, 106, 0, 0.75),
        0 0 52px rgba(238, 9, 121, 0.35);
    filter: brightness(1.08);
    animation: heroCtaPulse 0.45s ease-out;
}

@keyframes heroCtaPulse {
    0% { box-shadow: inset 0 0 15px rgba(255,255,255,0.2), 0 0 0 rgba(255,106,0,0); }
    50% { box-shadow: inset 0 0 22px rgba(255,255,255,0.3), 0 0 32px rgba(255,106,0,0.8); }
    100% { box-shadow: inset 0 0 15px rgba(255,255,255,0.2), 0 12px 32px rgba(255,106,0,0.45); }
}

@media (hover: hover) and (pointer: fine) {
    .hero-premium__cta:hover {
        transform: translateY(-3px);
        filter: brightness(1.07);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            inset 0 0 24px rgba(255, 255, 255, 0.15),
            0 0 32px rgba(255, 106, 0, 0.5),
            0 16px 40px rgba(255, 106, 0, 0.55),
            0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* ── Anclajes de contacto — vidrio flotante ── */
.hero-premium__anchors {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.5rem, 3vw, 1rem);
    padding:
        0
        clamp(1rem, 4vw, 2rem)
        calc(1.15rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.hero-premium__anchors > * {
    pointer-events: auto;
}

.hero-premium__badge {
    flex: 1 1 0;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.6875rem, 2.8vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.94);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 10, 14, 0.55) 100%);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 20px rgba(255, 140, 40, 0.08),
        0 8px 28px rgba(0, 0, 0, 0.45);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}

.hero-premium__badge svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.hero-premium__badge:active {
    transform: scale(0.98);
    border-color: rgba(255, 140, 40, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 22px rgba(255, 106, 0, 0.35);
}

.hero-premium__badge--wa {
    color: rgba(220, 255, 230, 0.96);
}

.hero-premium__badge--wa svg {
    color: #25d366;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.65));
}

.hero-premium__dot {
    color: rgba(57, 255, 120, 0.9);
    animation: heroDotPulse 2s ease-in-out infinite;
}

.hero-premium__badge--wa .hero-premium__dot {
    color: #25d366;
    text-shadow: 0 0 6px rgba(37, 211, 102, 0.8);
}

@keyframes heroDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Tablet / desktop ── */
@media (min-width: 769px) {
    .hero-premium__stage {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }

    .hero-premium__corner {
        width: 36px;
        height: 36px;
    }

    .hero-premium__corner--tl,
    .hero-premium__corner--tr {
        top: 18px;
    }

    .hero-premium__corner--bl,
    .hero-premium__corner--br {
        bottom: 18px;
    }

    .hero-premium__corner--tl,
    .hero-premium__corner--bl {
        left: 24px;
    }

    .hero-premium__corner--tr,
    .hero-premium__corner--br {
        right: 24px;
    }

    .hero-premium__band-inner {
        gap: 1.35rem;
    }

    .hero-premium__cta {
        min-width: 300px;
    }

    .hero-premium__anchors {
        gap: 1rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .hero-premium__badge {
        flex: 0 1 auto;
        min-width: 180px;
        font-size: 0.8125rem;
        padding: 0.75rem 1.25rem;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-premium__band {
        background: rgba(14, 16, 20, 0.92);
    }

    .hero-premium__badge {
        background: rgba(12, 14, 18, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-premium__band::after {
        animation: none;
    }

    .hero-premium__cta:active {
        animation: none;
    }

    .hero-premium__dot {
        animation: none;
    }
}

/* Anula estilos legacy del .hero genérico */
section.hero.hero-premium {
    padding: 0 !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
}

.hero-premium .container {
    max-width: none;
    padding: 0;
    width: 100%;
}
