@import url(./variables.css
);

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    /* compensar navbar fija */
    background-image: url('../img/bg_hero.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.0) 40%,
            rgba(0, 0, 0, 0.0) 60%,
            rgba(0, 0, 0, 0.5)100%,
            rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    /* Hace que el degradado quede detrás del contenido */
}
/* Contenido central opcional (puedes borrarlo si no lo necesitas) */
.hero-content {
    width: 100%;
    position: relative;
    max-width: 1100px;
    margin: 0 24px;
    text-align: center;
}

.hero-title {
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-primario-blanco);
    /* Reservar espacio para el letter-spacing máximo de la animación */
    letter-spacing: 0em;
    /* Mantener el contenedor estable durante la animación */
    min-height: 1.2em;
    display: block;
    /* Asegurar que el texto no se desborde */
    overflow: hidden;
    white-space: nowrap;
}

.accent.title-primery {
    color: var(--color-secundario-verde-claro);
}

/* parte superior del título: más delgada */
.title-thin {
    display: block;
    font-weight: 500;
}

/* parte inferior "sea inteligente y rentable": más gruesa y más ancha */
.title-heavy {
    font-weight: 500;
    letter-spacing: 0px;
}

.title-heavy .title-heavy-sub {
    font-weight: 600;
    letter-spacing: 0px;
}

.accent {
    color: var(--green);
}

.hero .lh-1 {
    line-height: 0.9 !important;
}

.hero-sub {
    margin-top: 16px;
}

.nav-link:hover {
    color: var(--color-secundario-verde-claro) !important;
    transition: color 0.4s ease;
    
}

.content-hero-sub {
    line-height: 1;
    font-weight: 200 !important; 
    align-items: center;
    padding: 6px 15px;
    border: 2px solid var(--color-primario-blanco);
    border-radius: 18px;
    background: transparent;
    font-size: clamp(14px, 3vw, 30px);
    font-weight: 400;
    color: #e7e7e7;
    max-width: min(920px, 70vw);
    margin-left: auto;
    margin-right: auto;
    width: 45rem;
}

.cta.boton-unidades {
    position: relative;
    margin-top: 45px;
    display: inline-block;
    padding: 5px 36px 5px 36px;
    border: 3px solid var(--color-secundario-verde-claro);
    border-radius: 15px;
    background: var(--color-primario-negro);
    color: var(--color-primario-blanco) !important;
    font-weight: 600;
    font-size: clamp(14px, 3vw, 1.8rem);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.1s ease, background 0.2s ease;
    /* box-shadow: 0 4px 1px rgba(0, 0, 0, 0.4), 0 0 50px var(--color-secundario-verde-claro); */
}

.cta.boton-unidades>.boton-unidades:hover {
    transform: translateY(-1px);
    background: rgba(97, 179, 37, 0.12);
}

/* ============================================
   MEDIA QUERIES RESPONSIVE
   ============================================ */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 900px;
        margin: 0 20px;
    }
    
    .hero-title {
        font-size: clamp(35px, 3.5vw, 48px);
    }
    
    .content-hero-sub {
        max-width: min(800px, 50vw);
        font-size: clamp(12px, 2.5vw, 26px);
    }
}

/* Tablets medianas (768px y menos) */
@media (max-width: 768px) {
    .hero{
        background-size: cover;
    }
    .hero-content {
        max-width: 100%;
        margin: 0 16px;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: clamp(37px, 3vw, 42px);
        white-space: normal;
        line-height: 1.1;
        
    }
    
    .content-hero-sub {
        max-width: min(600);
        font-size: clamp(28px, 2.2vw, 40px);
        padding: 8px 12px;
    }
    
    .cta.boton-unidades {
        font-size: clamp(12px, 2.5vw, 1.4rem);
        padding: 8px 16px;
        margin-top: 35px;
       
    }

    .content-hero-sub p {
        display: inline !important;
    }
}

/* Teléfonos grandes (480px y menos) */
@media (max-width: 480px) {
    .hero-content {
        margin: 0 12px;
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: clamp(38px, 2.8vw, 36px);
        line-height: 1.15;
        letter-spacing: 0.5px;
        flex-wrap: nowrap;
        display: flex;
        flex-direction: column;
        width: 20rem;
    }
    
   
    .title-heavy {
        display: block;
    }
    
    .content-hero-sub {
        max-width: min(400px, 80vw);
        font-size: clamp(20px, 2vw, 18px);
        padding: 6px 42px;
        border-radius: 12px;
    }
    
    .cta.boton-unidades {
        font-size: clamp(16px, 2.2vw, 1.2rem);
        padding: 6px 14px;
        margin-top: 80px;
        border-radius: 12px;
        width: 100%;
       
    }
}
@media (max-width: 80px) {
    .hero-title {
        font-size: clamp(40px, 2.8vw, 36px);
    }
}
/* Teléfonos pequeños (360px y menos) */
@media (max-width: 390px) {
    .hero-content {
        margin: 0 8px;
        padding: 0 4px;
    }
    
    .hero-title {
        font-size: clamp(32px, 2.5vw, 32px);
        line-height: 1.2;
        letter-spacing: 0.3px;
    }
    
    .content-hero-sub {
        max-width: min(320px, 64vw);
        font-size: clamp(17px, 1.8vw, 16px);
        padding: 5px 5px;
        border-radius: 10px;
    }
    
    .cta.boton-unidades {
        font-size: clamp(10px, 2vw, 1rem);
        padding: 5px 12px;
        margin-top: 25px;
        border-radius: 10px;
        width: 70%;
    }
}

/* Teléfonos muy pequeños (320px y menos) */
@media (max-width: 390px) {
    .contenedor-prueba{
        width: 78%;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 6px;
        padding: 0 2px;
    }
    
    .hero-title {
        font-size: clamp(30px, 2.2vw, 28px);
        line-height: 1.25;
    }
    
    .content-hero-sub {
        max-width: min(280px, 98vw);
        font-size: clamp(20px, 1.6vw, 14px);
        padding: 4px 6px;
    }
    
    .cta.boton-unidades {
        font-size: clamp(11px, 1.8vw, 0.9rem);
    }
    body .contenedor-grip{
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}


/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 20px 0;
    }
    
    .hero-content {
        margin: 0 20px;
    }
    
    .hero-title {
        font-size: clamp(16px, 2.5vw, 28px);
        margin-bottom: 10px;
    }
    
    .content-hero-sub {
        margin-top: 10px;
        font-size: clamp(20px, 1.8vw, 16px);
    }
    
    .cta.boton-unidades {
        margin-top: 20px;
        font-size: clamp(10px, 1.8vw, 1.2rem);
    }
}


