/* =========================================================
   AR DETALLES — HERO
   Versión estable para Android / Chrome
   ========================================================= */

.hero {
    position: relative;
    z-index: 10;

    min-height: calc(100vh - 96px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 24px 70px;

    overflow: hidden;

    text-align: center;

    isolation: isolate;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.hero-content {
    position: relative;
    z-index: 20;

    width: min(900px, 94vw);

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation:
        heroAppear
        1s
        cubic-bezier(.16, 1, .3, 1)
        both;
}


/* =========================================================
   INSIGNIA
   ========================================================= */

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 22px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(.55rem, 1.5vw, .68rem);

    font-weight: 600;

    letter-spacing: 3px;

    color: #f3d9a2;

    text-shadow:
        0 0 10px
        rgba(243, 217, 162, .25);

    animation:
        fadeUp
        .8s
        cubic-bezier(.16, 1, .3, 1)
        .1s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.badge-line {
    width:
        clamp(28px, 7vw, 75px);

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(243, 217, 162, .8)
        );
}


.badge-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(243, 217, 162, .8),
            transparent
        );
}


/* =========================================================
   SUBTÍTULO
   ========================================================= */

.hero-subtitle {
    margin: 0 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(.85rem, 2vw, 1.05rem);

    font-style: italic;

    letter-spacing: 2px;

    color:
        rgba(255, 248, 231, .85);

    text-shadow:
        0 1px 8px
        rgba(0, 0, 0, .65);

    animation:
        fadeUp
        .8s
        cubic-bezier(.16, 1, .3, 1)
        .2s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.hero-title {
    display: flex;

    flex-direction: column;
    align-items: center;

    margin: 0;
    padding: 0;

    line-height: .92;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 700;

    letter-spacing: -1px;
}


/* =========================================================
   CREAMOS
   ========================================================= */

.title-small {
    display: block;

    margin-bottom: 8px;

    font-size:
        clamp(1.3rem, 4vw, 2.4rem);

    font-weight: 400;

    letter-spacing: 7px;

    text-transform: uppercase;

    color: #fff8e7;

    text-shadow:
        0 1px 12px
        rgba(0, 0, 0, .7),

        0 0 14px
        rgba(255, 248, 231, .12);

    animation:
        fadeUp
        .9s
        cubic-bezier(.16, 1, .3, 1)
        .3s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   MOMENTOS
   ========================================================= */

.title-main {
    display: block;

    font-size:
        clamp(4rem, 11vw, 8.8rem);

    letter-spacing: -4px;

    /*
     * Degradado FIJO.
     *
     * Antes se movía continuamente con
     * background-position. Eso puede producir
     * parpadeos en algunos teléfonos.
     */

    background:
        linear-gradient(
            105deg,
            #fffdf4 0%,
            #f3d9a2 24%,
            #fff8e7 46%,
            #d8a6e9 70%,
            #fffdf4 100%
        );

    background-size: 100% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    text-shadow:
        0 0 18px
        rgba(212, 175, 106, .12);

    animation:
        titleAppear
        1.15s
        cubic-bezier(.16, 1, .3, 1)
        .4s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    /*
     * No will-change.
     * No filter.
     * No background-position animado.
     */

    transform:
        translate3d(0, 0, 0);
}


/* =========================================================
   INOLVIDABLES
   ========================================================= */

.title-accent {
    position: relative;

    display: inline-block;

    margin-top: 5px;

    font-size:
        clamp(2rem, 6vw, 4.8rem);

    font-weight: 400;

    font-style: italic;

    letter-spacing: 2px;

    background:
        linear-gradient(
            100deg,
            #d98c9a 0%,
            #f3d9a2 35%,
            #d8a6e9 68%,
            #efb5bf 100%
        );

    background-size: 100% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    text-shadow:
        0 0 14px
        rgba(217, 140, 154, .1);

    animation:
        accentAppear
        1s
        cubic-bezier(.16, 1, .3, 1)
        .65s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform:
        translate3d(0, 0, 0);
}


.title-accent::after {
    content: "";

    position: absolute;

    left: 12%;
    right: 12%;

    bottom: -12px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(243, 217, 162, .7),
            rgba(217, 140, 154, .7),
            transparent
        );

    box-shadow:
        0 0 8px
        rgba(243, 217, 162, .2);

    transform:
        scaleX(0);

    transform-origin:
        center;

    animation:
        underlineAppear
        .8s
        cubic-bezier(.16, 1, .3, 1)
        1s
        forwards;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.hero-description {
    width:
        min(650px, 90vw);

    margin:
        36px auto 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(.82rem, 2vw, .98rem);

    line-height:
        1.8;

    letter-spacing:
        .5px;

    color:
        rgba(255, 248, 231, .76);

    text-shadow:
        0 1px 10px
        rgba(0, 0, 0, .7);

    animation:
        fadeUp
        .9s
        cubic-bezier(.16, 1, .3, 1)
        .85s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   INDICADOR
   ========================================================= */

.hero-scroll-indicator {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 52px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: .54rem;

    font-weight: 600;

    letter-spacing: 3px;

    color:
        rgba(243, 217, 162, .58);

    opacity: .85;

    animation:
        fadeUp
        .8s
        ease
        1.2s
        both;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.scroll-line {
    width: 45px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(243, 217, 162, .55)
        );
}


.scroll-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(243, 217, 162, .55),
            transparent
        );
}


/* =========================================================
   DECORACIONES
   ========================================================= */

.hero-decoration {
    position: absolute;

    top: 50%;

    width: 160px;
    height: 160px;

    transform:
        translateY(-50%);

    opacity: .4;

    pointer-events: none;
}


.decoration-left {
    left: -80px;
}


.decoration-right {
    right: -80px;
}


.hero-decoration span {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #f3d9a2;

    box-shadow:
        0 0 8px
        rgba(243, 217, 162, .65);

    animation:
        decorationFloat
        5s
        ease-in-out
        infinite
        alternate;
}


.hero-decoration span:nth-child(1) {
    top: 25%;
    left: 25%;
}


.hero-decoration span:nth-child(2) {
    top: 60%;
    left: 55%;

    width: 4px;
    height: 4px;

    animation-delay: -1s;
}


.hero-decoration span:nth-child(3) {
    top: 40%;
    left: 75%;

    width: 5px;
    height: 5px;

    animation-delay: -2s;
}


/* =========================================================
   SÍMBOLOS FLOTANTES
   ========================================================= */

.floating-symbol {
    position: fixed;

    z-index: 5;

    pointer-events: none;

    color:
        rgba(243, 217, 162, .5);

    text-shadow:
        0 0 10px
        rgba(243, 217, 162, .4);

    animation:
        floatingSymbol
        var(--float-duration, 7s)
        ease-in-out
        infinite
        alternate;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.symbol-one {
    top: 25%;
    left: 8%;

    font-size: 1.3rem;

    --float-duration: 7s;
}


.symbol-two {
    top: 70%;
    right: 10%;

    font-size: 1rem;

    color:
        rgba(217, 140, 154, .55);

    --float-duration: 8s;

    animation-delay: -2s;
}


.symbol-three {
    top: 18%;
    right: 17%;

    font-size: .8rem;

    --float-duration: 6s;

    animation-delay: -1s;
}


.symbol-four {
    bottom: 15%;
    left: 17%;

    font-size: 1.1rem;

    color:
        rgba(216, 166, 233, .5);

    --float-duration: 9s;

    animation-delay: -3s;
}


/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */

@keyframes heroAppear {

    from {
        opacity: 0;

        transform:
            translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0);
    }

}


@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0);
    }

}


@keyframes titleAppear {

    from {
        opacity: 0;

        transform:
            translate3d(0, 35px, 0)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

}


@keyframes accentAppear {

    from {
        opacity: 0;

        transform:
            translate3d(0, 22px, 0)
            rotate(-2deg);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            rotate(0);
    }

}


@keyframes underlineAppear {

    to {
        transform:
            scaleX(1);
    }

}


@keyframes decorationFloat {

    from {
        transform:
            translate3d(0, -8px, 0)
            scale(.8);

        opacity: .35;
    }

    to {
        transform:
            translate3d(0, 10px, 0)
            scale(1.1);

        opacity: 1;
    }

}


@keyframes floatingSymbol {

    0% {
        transform:
            translate3d(0, 0, 0)
            rotate(0deg)
            scale(.85);

        opacity: .25;
    }

    100% {
        transform:
            translate3d(10px, -20px, 0)
            rotate(25deg)
            scale(1.1);

        opacity: .6;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .hero {
        min-height:
            calc(100vh - 85px);

        padding:
            45px 20px 55px;
    }


    .hero-description {
        margin-top: 30px;

        line-height: 1.7;
    }


    .hero-scroll-indicator {
        margin-top: 40px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        min-height:
            calc(100vh - 78px);

        padding:
            30px 16px 45px;
    }


    .hero-badge {
        gap: 9px;

        margin-bottom: 18px;

        letter-spacing: 2px;
    }


    .hero-subtitle {
        font-size: .78rem;

        letter-spacing: 1.5px;
    }


    .title-small {
        font-size: 1.15rem;

        letter-spacing: 5px;
    }


    .title-main {
        font-size:
            clamp(
                3.3rem,
                16vw,
                5rem
            );

        letter-spacing: -2px;

        /*
         * Sin animación de brillo.
         * El degradado queda completamente estable.
         */
        animation:
            titleAppear
            1.15s
            cubic-bezier(.16, 1, .3, 1)
            .4s
            both;
    }


    .title-accent {
        font-size:
            clamp(
                1.7rem,
                8vw,
                2.7rem
            );

        letter-spacing: 1px;

        /*
         * Sin movimiento continuo del degradado.
         */
        animation:
            accentAppear
            1s
            cubic-bezier(.16, 1, .3, 1)
            .65s
            both;
    }


    .hero-description {
        width: 92vw;

        margin-top: 30px;

        font-size: .78rem;

        line-height: 1.75;
    }


    .hero-scroll-indicator {
        margin-top: 35px;

        gap: 8px;

        font-size: .48rem;
    }


    .scroll-line {
        width: 28px;
    }


    .hero-decoration {
        display: none;
    }


    .floating-symbol {
        opacity: .25;

        text-shadow:
            0 0 7px
            rgba(243, 217, 162, .35);
    }

}


/* =========================================================
   PANTALLAS PEQUEÑAS
   ========================================================= */

@media (max-width: 380px) {

    .hero {
        padding:
            25px 14px 35px;
    }


    .hero-badge {
        font-size: .48rem;
    }


    .title-small {
        font-size: 1rem;
    }


    .title-main {
        font-size: 3rem;
    }


    .title-accent {
        font-size: 1.55rem;
    }


    .hero-description {
        font-size: .72rem;
    }

}


/* =========================================================
   ESTABILIDAD ANDROID / CHROMIUM
   ========================================================= */

.title-main,
.title-accent,
.title-small,
.hero-subtitle,
.hero-description,
.hero-badge {

    -webkit-font-smoothing:
        antialiased;

    -moz-osx-font-smoothing:
        grayscale;

    text-rendering:
        optimizeLegibility;

}


/*
 * Evitamos transiciones automáticas que puedan
 * hacer que Chrome repinte el texto durante scroll.
 */

.title-main,
.title-accent {
    transition:
        none !important;
}


/* =========================================================
   REDUCIR MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-content,
    .hero-badge,
    .hero-subtitle,
    .title-small,
    .title-main,
    .title-accent,
    .hero-description,
    .hero-scroll-indicator,
    .hero-decoration span,
    .floating-symbol {

        animation:
            none !important;
    }

}
