/* --- CSS/VIDEO.CSS: Estilos para el Video Modal --- */

/* =========================================
   1. SECCIÓN DE PORTADA DEL VÍDEO
   ========================================= */
.video-hero {
    position: relative;
    height: 450px; /* Altura impactante pero no excesiva */
    background-color: #000;
    overflow: hidden;
    margin: 4rem 0 6rem 0; /* Separación superior e inferior */
}

.video-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Capa oscura superpuesta para que resalte el texto */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 56, 96, 0.5); /* Azul EA semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease;
}

.video-hero:hover .video-overlay {
    background: rgba(24, 56, 96, 0.3); /* Se aclara al pasar el ratón */
}

.video-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-content p {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Botón Play Estilizado */
.play-btn {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px); /* Efecto moderno de cristal esmerilado */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 8px; /* Ajuste óptico para centrar el triángulo */
}

.play-btn:hover {
    background-color: var(--ea-yellow, #FABD00); /* Amarillo Aspa */
    border-color: var(--ea-yellow, #FABD00);
    transform: scale(1.15);
    color: var(--ea-blue, #183860);
}


/* =========================================
   2. MODAL (LIGHTBOX)
   ========================================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* Por encima de todo, incluido el header */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Fondo oscuro semitransparente */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

/* Contenedor del vídeo */
.modal-container {
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 1000px; /* Ancho máximo para pantallas grandes */
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Wrapper para mantener el aspect ratio 16:9 de YouTube */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* (9 / 16 * 100) = 56.25% */
    height: 0;
    overflow: hidden;
    background: black;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Botón de cerrar (X) */
.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-video:hover {
    color: var(--ea-yellow, #FABD00);
}

/* Responsive */
@media (max-width: 768px) {
    .video-hero { height: 350px; }
    .video-content h2 { font-size: 2rem; }
    .play-btn { width: 70px; height: 70px; font-size: 2rem; }
}
/* En css/video.css */
.video-cover {
    width: 100%;
    height: 100%;
    background-color: #000; /* Fondo negro de seguridad por si la imagen tarda en cargar */
    background-size: cover;
    background-position: center;
    position: relative;
}