.hero-section {
    position: relative;
    height: 80vh; /* Ocupa el 80% de la pantalla */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Capa oscura para legibilidad */
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Tamaño fluido */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 23px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    font-family: 'Inter', sans-serif !important;
}

/* El botón con el mismo estilo del Header */
.btn-hero {
    display: inline-block;
    padding: 18px 45px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #1e50a0 0%, #a050be 100%);
    border: 3px solid #33cccc;
    transition: transform 0.3s ease;
}

.btn-hero:hover {
    transform: scale(1.05);
}

/* animacion al hero */

/* Estado inicial del contenido del Hero */
.hero-content h1,
.hero-content p,
.hero-action {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase que activaremos con JavaScript */
.hero-section.is-visible .hero-content h1,
.hero-section.is-visible .hero-content p,
.hero-section.is-visible .hero-action {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para que aparezcan uno tras otro (efecto cascada) */
.hero-section.is-visible .hero-content p {
    transition-delay: 0.2s;
}

.hero-section.is-visible .hero-action {
    transition-delay: 0.4s;
}

/* Definición de la animación 'shiny' que mueve el fondo */
@keyframes shiny {
    0% {
        background-position: -200%; /* Inicia fuera a la izquierda */
    }
    100% {
        background-position: 200%; /* Termina fuera a la derecha */
    }
}

.hero-section h1 {
    /* Tamaño y peso */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;

    /* EFECTO SHINY MEJORADO */
    background: linear-gradient(
        110deg,
        #1e50a0 20%,      /* Azul base sólido */
        #a050be 40%,      /* Morado base sólido */
        #ffffff 50%,      /* EL BRILLO (Blanco puro para que resalte) */
        #1e50a0 60%,      /* Vuelve al azul */
        #a050be 80%       /* Vuelve al morado */
    );
    
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* En lugar de transparent puro, usamos un blanco con muy poca opacidad */
    /* Esto ayuda a que el borde de las letras se defina mejor */
    -webkit-text-fill-color: transparent;
    
    /* Agregamos una sombra paralela muy sutil para despegar las letras del fondo */
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.3));

    animation: shiny 5s linear infinite;
    position: relative;
    z-index: 2;
}

/* ==========================================
   MEJORAS RESPONSIVAS (AGREGAR AL FINAL)
   ========================================== */

/* Ajustes para Tablets (Pantallas menores a 768px) */
@media (max-width: 768px) {
    .hero-section {
        height: auto; /* Permite que el contenedor crezca si el contenido lo requiere */
        padding: 80px 0; /* Espaciado interno seguro arriba y abajo */
    }

    .hero-content p {
        font-size: 19px; /* Un tamaño más equilibrado para tablets */
        margin-bottom: 30px;
    }
}

/* Ajustes para Móviles (Pantallas menores a 480px) */
@media (max-width: 480px) {
    .hero-section {
        min-height: 400px; /* Reducimos el alto mínimo para que no sature pantallas pequeñas */
        padding: 25px 0;
    }

    .hero-content {
        padding: 0 15px; /* Un poco más de espacio hacia las esquinas */
    }

    .hero-content p {
        font-size: 16px; /* Tamaño legible y estándar para celulares */
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .btn-hero {
        padding: 14px 30px; /* Reducción proporcional del botón para evitar desbordes */
        font-size: 15px;
        width: 100%; /* Opcional: Hace que el botón ocupe todo el ancho disponible en móviles */
        max-width: 300px; /* Evita que se estire demasiado si usas width 100% */
        box-sizing: border-box;
    }
}