/* ==================================== */
/* 1. SECCIÓN BANNER (Contenedor de fondo) */
/* ==================================== */
#banner {
    width: 100%;
    /* 92vh es buen punto, pero ajustemos el padding para el móvil */
    height: 92vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem; /* Ajuste horizontal */
}

.banner {
    /* Manteniendo tus excelentes propiedades de fondo */
    background-image: url('b_o.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Usar 'local' en lugar de 'fixed' mejora el rendimiento y a veces la visualización móvil */
    background-attachment: local; 
    position: relative;
    /* Asegurar que el banner ocupe todo el espacio de #banner */
    width: 100%; 
    height: 100%;
}

/* Oscurecimiento (Overlay) */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usaremos un gris oscuro sutil para mejor contraste */
    background-color: rgba(10, 10, 10, 0.55); 
    z-index: 0;
}

/* ==================================== */
/* 2. CONTENIDO DEL BANNER (El recuadro centrado) */
/* ==================================== */
.banner-content {
    /* Mantén las reglas existentes de flex/centrado */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    border: 3px solid hsla(0, 0%, 100%, 0.75);
    padding: 2rem 1.5rem;
    max-width: 600px;
    width: 100%;
    height: auto;
    z-index: 10; 
    
    /* PROPIEDADES DE ANIMACIÓN */
    animation: fadeInFromTop 1.5s ease-out 0.5s forwards; /* Duración, función, retraso, mantiene el estado final */
}

/* Opcional: Asegúrate de que el estado final de la animación sea totalmente opaco */
.banner-content.animated {
    opacity: 1;
}

/* ==================================== */
/* 3. ELEMENTOS INTERNOS Y TIPOGRAFÍA */
/* ==================================== */

.banner-logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 1.5rem;
    /* Ajustamos el drop-shadow para crear un efecto de brillo blanco (Glow) */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)); 
    transition: filter 0.5s ease; /* Transición para un glow sutil en hover */
}

.banner-logo:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

/* ==================================== */
/* 2. ANIMACIÓN DE FADE-IN (DESVANECIMIENTO) */
/* ==================================== */

/* Keyframes de la animación: de invisible a opaco */
@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px); /* Opcional: un ligero desplazamiento hacia abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase para el estado inicial (oculto) */
.hidden {
    opacity: 0;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff; /* Texto blanco para alto contraste */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); /* Sombra para mejorar legibilidad */
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* ==================================== */
/* 4. BOTÓN (Manteniendo tus estilos geniales) */
/* ==================================== */

.banner-button {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background-color: #ffffff;
    color: #068fd3;
    border: 2px solid #ffffff;
    /* Sombra sutil en hover */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
}

/* ==================================== */
/* 5. LIMPIEZA: Eliminar selectores obsoletos */
/* ==================================== */

/* ELIMINAR O COMENTAR: Estos selectores apuntan a #intro, que no existe en tu HTML.
   Además, tienen reglas complejas de mask-image que no aplican al diseño actual.
   
#intro img { ... }
#intro img:hover { ... }
.intro { ... }
*/

/* ==================================== */
/* 6. MEDIA QUERIES (Ajuste móvil) */
/* ==================================== */

@media (max-width: 768px) {
    #banner {
        height: 85vh; /* Puede ser más corto en móvil */
    }
    
    .banner-content {
        max-width: 95%; /* Ocupa más ancho en móvil */
        padding: 1.5rem 1rem;
    }
    
    .banner-logo {
        max-width: 90%;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-button {
        font-size: 1rem;
    }
}