/* Estilos para el nuevo Hero con encabezado y títulos centrados */

/* Contenedor Principal */
.hero-v2 {
    min-height: 100vh;
    color: var(--color-texto-claro);
    background-size: cover;
    background-position: center center;
    display: grid;
    grid-template-rows: auto 1fr; 
    position: relative;
    overflow-x: hidden; 
}

/* Estilos para el Encabezado Superior (logo y botón) */
.hero-header {
    grid-row: 1;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0px 100px; 
    width: 100%;
    box-sizing: border-box;
}

.hero-logo img {
    height: 70px;
    transition: all 0.3s ease;
}

.hero-button .btn,
.hero-footer .btn {
    background-color: #ffffff;
    color: #0f0f0f;
    border-radius: 5px;
    font-weight: 400;
    margin-top: 2rem;
    display: block;
    width: fit-content;
    font-size: 13px;
    padding: 12px 30px;
    text-decoration: none;
    letter-spacing: 1.5px;
    border: none;
    transition: background-color 0.3s ease;
    line-height: normal;

}

.hero-button .btn:hover {
    background-color:rgb(109, 109, 109);
    color: var(--color-texto-claro);
    border-color: var(--color-texto-oscuro);
}

/* Contenedor del botón inferior (solo para móvil) */
.hero-footer {
    display: none; /* Oculto por defecto */
    grid-row: 3;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

/* Estilos para el Bloque de Títulos Central */
.hero-main-title {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 5vh;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.3s; 
}

.hero-main-title h1 {
    font-family: 'Lato', sans-serif;
    font-size: 33px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0; 
}

.hero-main-title h2 {
    font-family: 'Lato', sans-serif;
    font-size: 92px;
    font-weight: 600;
    margin-top: 25px;
    line-height: 1.1;
    transition: all 0.3s ease;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* AJUSTES RESPONSIVOS */

/* Para Tablets y pantallas medianas (hasta 992px) */
@media (max-width: 992px) {
    .hero-header {
        padding: 30px 40px;
    }
    .hero-main-title h1 {
        font-size: 26px;
    }
    .hero-main-title h2 {
        font-size: 72px;
    }
}

/* Para Móviles (hasta 768px) - NUEVO LAYOUT */
@media (max-width: 768px) {
    /* Cambiar grid a 3 filas para móvil */
    .hero-v2 {
        grid-template-rows: auto 1fr auto;
        min-height: 90vh;
    }

    /* Header solo con logo centrado */
    .hero-header {
        justify-content: center; 
        padding: 20px 20px;      
    }

    /* Ocultar botón del header en móvil */
    .hero-header .hero-button {
        display: none;
    }

    /* Mostrar botón en el footer */
    .hero-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px; /* SEPARACIÓN deseada respecto al <h2> */
    }

    .hero-logo img {
        height: 60px;
    }

    .hero-main-title {
        padding-bottom: 2vh; /* Reducir padding bottom */
    }

    .hero-main-title h1 {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero-main-title h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    /* Estilos para el botón en el footer */
    .hero-footer .btn {
        background-color: var(--color-texto-claro);
        color: var(--color-texto-oscuro);
        border: 2px solid var(--color-texto-claro);
        transition: all 0.3s ease;
        white-space: nowrap;
        border-radius: 5px;
        padding: 15px 45px;
        font-size: 13px;
        text-decoration: none;
        font-weight: 400;
    }

    .hero-footer .btn:hover {
        background-color: rgb(109, 109, 109);
        color: var(--color-texto-claro);
        border-color: var(--color-texto-oscuro);
    }
}

/* Para Móviles muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .hero-main-title h1 {
        font-size: 16px;
        letter-spacing: 2px;
    }
    .hero-main-title h2 {
        font-size: 34px;
    }
    
    .hero-footer .btn {
        padding: 15px 45px;
        font-size: 13px;
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}