/* =========================================
   PROMOCIÓN (DARK NEON STYLE)
   ========================================= */

body.promo-body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
}

/* --- HERO SECTION --- */
.promo-hero { position: relative; height: 65vh; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; filter: brightness(0.5); z-index: 1; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; }

.neon-badge { display: inline-block; padding: 8px 20px; border-radius: 30px; font-family: 'Teko', sans-serif; font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 15px; }
.neon-badge.gold { background: rgba(251, 191, 36, 0.1); color: var(--accent-gold); border: 1px solid var(--accent-gold); box-shadow: 0 0 15px rgba(251, 191, 36, 0.3); }

.giant-title { font-family: 'Teko', sans-serif; font-size: 6rem; line-height: 0.9; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-subtitle { color: #ccc; font-size: 1.5rem; letter-spacing: 5px; margin-top: 15px; }

/* Títulos Generales */
.section-title { font-family: 'Teko', sans-serif; font-size: 4rem; color: #fff; margin: 0; line-height: 1; }
.line-decor.center { margin: 15px auto 50px auto; width: 60px; height: 4px; }
.line-decor.gold { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
.line-decor.cyan { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }


/* =========================================
   CONTADOR CYBERPUNK
   ========================================= */
.countdown-section { padding: 40px 0; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.countdown-title { font-family: 'Teko', sans-serif; font-size: 2.5rem; color: #888; margin-bottom: 30px; letter-spacing: 2px; }

.countdown-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.count-box {
    background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px; width: 120px; height: 120px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.count-num { font-family: 'Teko', sans-serif; font-size: 4.5rem; line-height: 1; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.count-label { font-size: 0.85rem; letter-spacing: 2px; color: #aaa; font-weight: 600; }
.cyan-text { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }


/* =========================================
   TARJETAS DE BACHILLERES (BENTO GRID)
   ========================================= */
.graduates-section { padding: 80px 0; }
.promo-grid { display: grid;     grid-template-columns: repeat(4, 1fr); ; gap: 30px; align-items: start; }

.glass-promo-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px; overflow: hidden; transition: 0.4s;
}
.glass-promo-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }

/* Imagen del Curso */
.promo-img-box { position: relative; height: 280px; overflow: hidden; cursor: pointer; }
.promo-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(20%); }
.glass-promo-card:hover .promo-img-box img { transform: scale(1.08); filter: grayscale(0%); }

.course-tag {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 15px; font-family: 'Teko', sans-serif; font-size: 2rem; line-height: 1;
    background: linear-gradient(to top, rgba(15,23,42,0.95), transparent);
}
.course-tag.cyan { color: var(--accent-cyan); }
.course-tag.gold { color: var(--accent-gold); }

/* Botón Acordeón */
.btn-neon-toggle {
    width: 100%; background: transparent; border: none; border-top: 1px solid rgba(255,255,255,0.05);
    padding: 15px; font-family: 'Teko', sans-serif; font-size: 1.5rem; letter-spacing: 1px;
    color: var(--accent-cyan); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s;
}
.btn-neon-toggle.gold { color: var(--accent-gold); }
.btn-neon-toggle:hover, .btn-neon-toggle.active { background: rgba(255,255,255,0.05); }

/* =========================================
   LISTA DE ESTUDIANTES Y SCROLLBAR NEÓN
   ========================================= */
.dark-student-list {
    list-style: none; padding: 0; margin: 0;
    max-height: 0; 
    overflow-y: hidden; /* Oculta todo cuando está cerrado */
    transition: max-height 0.5s ease-out; 
    background: rgba(0,0,0,0.4);
}

.dark-student-list.show { 
    max-height: 320px; /* Límite de altura exacto para que no rompa la tarjeta */
    overflow-y: auto; /* Habilita la barra de desplazamiento hacia abajo */
}

.dark-student-list li {
    padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem; color: #ccc; transition: 0.2s;
}
.dark-student-list li:hover { 
    background: rgba(255,255,255,0.05); color: #fff; 
    padding-left: 25px; border-left: 3px solid var(--accent-cyan); 
}

/* --- CUSTOM SCROLLBAR (ESTILO CYBERPUNK) --- */
/* Modifica la barra de scroll solo para la lista de alumnos */
.dark-student-list::-webkit-scrollbar {
    width: 6px; /* Barra delgada y elegante */
}

.dark-student-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8); /* Fondo oscuro del carril */
}

.dark-student-list::-webkit-scrollbar-thumb {
    background: var(--accent-cyan); /* Color Cyan Neón para la barra */
    border-radius: 10px; /* Bordes redondeados */
}

.dark-student-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold); /* Se vuelve dorada al pasar el mouse */
}


/* =========================================
   GALERÍA RÁPIDA Y DESEOS
   ========================================= */
.memories-section { padding: 80px 0; background: rgba(255,255,255,0.01); }
/* GALERÍA RÁPIDA Y DESEOS */
.memories-grid { display: grid; grid-template-columns: repeat(4, 1fr);; gap: 15px; }
/* Asegúrate de que memory-item tenga position: relative para que el botón se centre sobre él */
.memory-item { 
    position: relative; 
    height: 200px; 
    border-radius: 10px; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.1); 
}

/* =========================================
   BOTÓN DE PLAY (TUS ESTILOS)
   ========================================= */
.play-btn {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(1);
    width: 70px; 
    height: 70px; 
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2); 
    border: 2px solid var(--accent-cyan);
    backdrop-filter: blur(5px); 
    color: var(--accent-cyan);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    transition: all 0.5s var(--premium-ease, ease); /* Respaldo 'ease' por si acaso */
    z-index: 2;
    pointer-events: none; /* CLAVE: Permite que el clic pase a la función openMediaModal */
}

.item-video:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-cyan); 
    color: var(--bg-dark); /* Si no tienes --bg-dark, pon #0f172a o similar */
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
}

/* Aplica los estilos tanto a img como a video */
.memory-item img,
.memory-item video { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; pointer-events: none; /* Evita que el video interfiera con el clic del div */ }

.memory-item:hover img,
.memory-item:hover video { transform: scale(1.1); filter: brightness(1.2); }

/* IMAGEN Y VIDEO DENTRO DEL MODAL */
.modal-content-media {
    width: auto; 
    height: auto; 
    max-width: 95%; 
    max-height: 90vh; 
    object-fit: contain; 
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.3); 
    border: 1px solid rgba(255,255,255,0.1);
    animation: zoomInModal 0.3s ease forwards; 
}

.wishes-section { padding: 80px 0; }
.wishes-title { font-family: 'Teko', sans-serif; font-size: 3rem; color: #fff; margin-bottom: 50px; }
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.wish-glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 30px; position: relative;
}
.quote-icon { font-size: 2rem; position: absolute; top: 20px; right: 20px; opacity: 0.2; }
.quote-icon.cyan { color: var(--accent-cyan); } .quote-icon.gold { color: var(--accent-gold); }
.wish-glass-card p { font-style: italic; color: #ddd; font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.wish-glass-card strong { color: var(--accent-gold); font-family: 'Teko', sans-serif; font-size: 1.4rem; letter-spacing: 1px; }

/* MODAL OSCURO */
.neon-modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    justify-content: center; align-items: center;
}

/* IMAGEN DENTRO DEL MODAL (CORREGIDA) */
.modal-content-img {
    /* REGLAS DE ORO PARA QUE NO SE ESTIRE NI SE CORTE: */
    width: auto;  /* Usa tu ancho natural... */
    height: auto; /* ...y tu alto natural */
    max-width: 95%; /* ...PERO si eres muy ancha, no pases del 95% de la pantalla */
    max-height: 90vh; /* ...Y si eres muy alta, no pases del 90% de la altura de la pantalla */
    object-fit: contain; /* ASEGURA que la imagen completa se vea siempre, sin recortes */

    /* ESTILO NEÓN */
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.3); /* Un resplandor un poco más intenso para destacar */
    border: 1px solid rgba(255,255,255,0.1);
    animation: zoomInModal 0.3s ease forwards; /* Pequeña animación de entrada suave */
}

/* (Opcional) Animación suave al abrir */
@keyframes zoomInModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-modal { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 3rem; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--accent-cyan); transform: rotate(90deg); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .giant-title { font-size: 4rem; }
    .count-box { width: 80px; height: 80px; }
    .count-num { font-size: 2.5rem; }
}