/*==============================================================================
HERO PREMIUM
ANSIER 3.0
==============================================================================*/

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

    padding-top:100px;

    background:
    linear-gradient(
        160deg,
        #16244A 0%,
        #1B2E5C 55%,
        #241C5A 100%
    );

}

/*==============================
CAPAS DECORATIVAS
==============================*/

.hero__background{

    position:absolute;

    inset:0;

    overflow:hidden;

}

.hero__overlay{

    position:absolute;

    inset:0;

    background:
    radial-gradient(
        circle at top right,
        rgba(92,225,230,.16),
        transparent 45%
    );

}

/* Manchas de luz flotantes (compensan la ausencia de foto real) */

.hero__shape{

    position:absolute;

    border-radius:50%;

    filter:blur(90px);

    opacity:.35;

    pointer-events:none;

}

.hero__shape--1{

    width:520px;

    height:520px;

    top:-160px;

    right:-120px;

    background:var(--gradient-secondary);

    animation:heroFloat 12s ease-in-out infinite;

}

.hero__shape--2{

    width:420px;

    height:420px;

    bottom:-180px;

    left:-140px;

    background:var(--color-dark);

    opacity:.5;

    animation:heroFloat 14s ease-in-out infinite reverse;

}

@keyframes heroFloat{

    0%, 100%{
        transform:translate(0,0) scale(1);
    }

    50%{
        transform:translate(30px,-30px) scale(1.08);
    }

}

/* Patrón de grid sutil, sensación técnica/premium */

.hero__grid{

    position:absolute;

    inset:0;

    background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

    background-size:56px 56px;

    mask-image:radial-gradient(ellipse at center, black 0%, transparent 75%);

}

/*==============================
CONTENEDOR
==============================*/

.hero__container{

    width:90%;

    max-width:1300px;

    margin:auto;

    position:relative;

    z-index:2;

    color:#fff;

    display:grid;

    grid-template-columns:1.05fr .95fr;

    align-items:center;

    gap:40px;

}

.hero__content{

    min-width:0;

}

/*==============================
VISUAL (FOTO)
==============================*/

.hero__visual{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    animation-delay:.5s;

}

.hero__visual-glow{

    position:absolute;

    width:88%;

    height:88%;

    border-radius:50%;

    background:var(--gradient-secondary);

    filter:blur(90px);

    opacity:.28;

    z-index:0;

}

.hero__visual-frame{

    position:relative;

    z-index:1;

    width:100%;

    max-width:440px;

    aspect-ratio:1 / 1;

    border-radius:var(--radius-xl);

    overflow:hidden;

    border:1px solid rgba(255,255,255,.16);

    box-shadow:0 40px 90px rgba(0,0,0,.35);

}

.hero__visual-frame img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}

.hero__visual-badge{

    position:absolute;

    z-index:2;

    display:flex;

    align-items:center;

    gap:12px;

    padding:14px 20px;

    border-radius:var(--radius-lg);

    background:rgba(22,36,74,.75);

    backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.16);

    box-shadow:0 18px 40px rgba(0,0,0,.3);

    font-size:.86rem;

    font-weight:600;

    color:#fff;

    white-space:nowrap;

}

.hero__visual-badge i{

    color:var(--color-secondary);

    font-size:1.1rem;

}

.hero__visual-badge strong{

    color:var(--color-secondary);

    font-size:1.05rem;

    margin-right:4px;

}

.hero__visual-badge--top{

    top:6%;

    left:-6%;

}

.hero__visual-badge--bottom{

    bottom:8%;

    right:-8%;

}

/*==============================
TAG
==============================*/

.hero__tagline{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:10px 22px;

    border:1px solid rgba(255,255,255,.18);

    border-radius:var(--radius-pill);

    backdrop-filter:blur(10px);

    background:rgba(255,255,255,.08);

    color:#fff;

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

}

.hero__tagline i{

    color:var(--color-secondary);

    font-size:12px;

}

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

.hero__title{

    max-width:760px;

    margin-top:28px;

    font-size:var(--fs-display);

    font-weight:800;

    line-height:1.1;

    color:#fff;

}

.text-gradient{

    background:var(--gradient-secondary);

    -webkit-background-clip:text;

    background-clip:text;

    -webkit-text-fill-color:transparent;

}

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

.hero__description{

    max-width:700px;

    margin:30px 0 45px;

    font-size:1.25rem;

    line-height:1.8;

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

}

/*==============================
BOTONES
==============================*/

.hero__actions{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

/* El botón secundario del Design System está pensado para fondos claros;
   sobre el Hero (fondo oscuro) lo adaptamos para que siga siendo legible. */

.hero .btn-secondary{

    color:#fff;

    border-color:rgba(255,255,255,.4);

}

.hero .btn-secondary:hover{

    background:rgba(255,255,255,.12);

    border-color:#fff;

    color:#fff;

}

/*==============================
MINI PROPUESTA DE VALOR
==============================*/

.hero__trust{

    display:flex;

    flex-wrap:wrap;

    gap:14px 32px;

    margin-top:48px;

    padding-top:32px;

    border-top:1px solid rgba(255,255,255,.12);

}

.hero__trust li{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:.92rem;

    font-weight:600;

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

}

.hero__trust i{

    display:flex;

    align-items:center;

    justify-content:center;

    width:30px;

    height:30px;

    border-radius:50%;

    background:rgba(92,225,230,.14);

    color:var(--color-secondary);

    font-size:.8rem;

}

/*==============================
INDICADOR DE SCROLL
==============================*/

.hero__scroll-indicator{

    position:absolute;

    left:50%;

    bottom:35px;

    transform:translateX(-50%);

    z-index:2;

}

.scroll-dot{

    display:block;

    width:16px;

    height:38px;

    border:2px solid rgba(255,255,255,.6);

    border-radius:30px;

    position:relative;

}

.scroll-dot::before{

    content:"";

    position:absolute;

    left:50%;

    top:8px;

    width:5px;

    height:5px;

    border-radius:50%;

    background:var(--color-secondary);

    transform:translateX(-50%);

    animation:scrollMove 1.8s infinite;

}

@keyframes scrollMove{

    0%{

        opacity:0;

        transform:translate(-50%,0);

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:0;

        transform:translate(-50%,14px);

    }

}

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

.fade-in{

    opacity:0;

    animation:fadeUp 1s ease forwards;

}

.hero__tagline{

    animation-delay:.2s;

}

.hero__title{

    animation-delay:.4s;

}

.hero__description{

    animation-delay:.6s;

}

.hero__actions{

    animation-delay:.8s;

}

.hero__trust{

    animation-delay:1s;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

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

    .fade-in,
    .hero__shape,
    .scroll-dot::before{

        animation:none;

        opacity:1;

    }

}

/*==============================
RESPONSIVE
==============================*/

@media(max-width:992px){

.hero__title{

    font-size:clamp(2.4rem,6vw,3.4rem);

}

.hero__description{

    font-size:1.1rem;

}

.hero__container{

    grid-template-columns:1fr;

}

.hero__visual{

    display:none;

}

}

@media(max-width:768px){

.hero{

    text-align:center;

    padding-top:120px;

}

.hero__container{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.hero__content{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.hero__title{

    font-size:clamp(2rem,8vw,2.6rem);

}

.hero__description{

    font-size:1.05rem;

}

.hero__actions{

    justify-content:center;

}

.hero__trust{

    justify-content:center;

}

}

@media(max-width:480px){

.hero__actions .btn{

    width:100%;

    justify-content:center;

}

.hero__trust{

    flex-direction:column;

    align-items:center;

    gap:14px;

}

}
