#mobile-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
#mobile-menu.open { transform: translateX(0); }
.hero-bg {
    background-image: linear-gradient(to right, rgba(10, 35, 66, 0.85), rgba(10, 35, 66, 0.6)), 
                url('/images/logo/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-primary {
    background-color: #FFD700;
    color: #0A2342;
}
.btn-primary:hover {
    background-color: #f0c808;
}
.btn-secondary {
    border-color: #FFD700;
    color: #FFD700;
}
.btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2342;
}

/* ── Estilos para el Pop-up ── */
#admissions-popup-overlay {
    transition: opacity 0.35s ease-in-out;
}

/* Tarjeta principal del popup */
.popup-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
    transform: scale(0.92) translateY(12px);
}

/* Estado visible */
#admissions-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
#admissions-popup-overlay.visible .popup-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Cabecera siempre fija arriba en móvil cuando hay scroll */
.popup-header {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

/* Imagen o Video del popup — responsiva */
#popup-image, #popup-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 55vh;
    object-fit: cover;
}

/* En móvil reducimos la altura máxima del media */
@media (max-width: 640px) {
    #popup-image, #popup-video {
        max-height: 40vh;
    }
    .popup-body {
        max-height: 80vh !important;
    }
}


/* Estilos para el menú flyout */
.flyout-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.flyout-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.flyout-trigger:hover .flyout-menu,
.flyout-trigger:focus-within .flyout-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}