/* Escuela Belén - Versión Pro: Estilo Lúdico Original Rescatado */

:root {
    --primary: #1b639e;
    --primary-dark: #124066;
    --secondary: #e2a81c;
    /* Dorado más sobrio, no amarillo pato */
    --accent: #1182c5;
    --success: #10b981;
    /* Esmeralda elegante */
    --text-main: #2c3e50;
    --text-muted: #576574;
    --bg-light: #fffceb;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 15px 40px rgba(27, 99, 158, 0.1);
    --transition: all 0.3s ease;
    --bg-talleres: #e0d8ff;
    /* Lavanda pastel más definido para diferenciación clara */
    --shadow-polaroid: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Sombra más marcada */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.caption,
.school-name {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-weight: 700;
    /* Peso robusto pero limpio */
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 120px;
    /* Ajuste más seguro */
    position: relative;
    z-index: 3001;
    display: block;
}

#nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-left: auto;
    align-items: center;
}

#nav-menu a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 5px 10px;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
}

#nav-menu a:hover {
    transform: translateY(-2px);
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    #nav-menu a {
        background: transparent !important;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }
}

/* --- COLORES LÚDICOS DEL MENÚ (SEGÚN CAPTURA) --- */
/* --- COLORES LÚDICOS DEL MENÚ (SEGÚN CAPTURA) --- */
/* 1. INICIO: Azul */
#nav-menu li:nth-child(1) a {
    color: #5DA9DD !important;
}

/* 2. MATRÍCULAS: Naranja */
#nav-menu li:nth-child(2) a {
    color: #F38B64 !important;
}

/* 3. CALENDARIO: Turquesa */
#nav-menu li:nth-child(3) a {
    color: #48CFAD !important;
}

/* 4. PROTOCOLOS: Gris Azulado */
#nav-menu li:nth-child(4) a {
    color: #808B96 !important;
}

/* 5. SERVICIOS: Amarillo */
#nav-menu li:nth-child(5) a {
    color: #FFCE54 !important;
}

/* 6. TALLERES: Morado */
#nav-menu li:nth-child(6) a {
    color: #AC92EC !important;
}

/* 7. GALERÍA: Verde Turquesa */
#nav-menu li:nth-child(7) a {
    color: #48CFAD !important;
}

/* 8. STAFF: Rojo */
#nav-menu li:nth-child(8) a {
    color: #ED5565 !important;
}

/* --- FONDOS PASTEL EXTRA SUAVES --- */
.bg-pastel-inicio { background-color: #F0F9FF; }
.bg-pastel-matriculas { background-color: #FFFDE7; }
.bg-pastel-calendario { 
    background-color: #F0FDFF; 
    background-image: radial-gradient(#d1eef3 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}
.bg-pastel-protocolos { background-color: #FFFDE7; } /* Restaurado a crema/pastel */
.bg-pastel-servicios { background-color: #FFF8E1; }
.bg-pastel-talleres { background-color: #FCF3FF; }
.bg-pastel-galeria { background-color: #F1F8E9; }
.bg-pastel-staff { background-color: #FFF5F5; }

/* --- BOTONES DE REDES FLOTANTES --- */
.floating-socials {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-socials a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.fb-float { background: #1877F2; }
.ig-float { background: #E4405F; }

.floating-socials a:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .floating-socials {
        right: 15px;
        bottom: 15px;
    }
    .floating-socials a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* STAFF: Rojo */

img {
    max-width: 100%;
    display: block;
}

/* --- PROTECCIÓN DE IMPRESIÓN --- */
@media print {
    body * {
        visibility: hidden;
    }

    .modal-content-wrapper,
    .modal-content-wrapper *,
    .calendar-container,
    .calendar-container *,
    .container,
    .container * {
        visibility: visible;
    }

    /* Ocultar botones y elementos extra al imprimir */
    .btn-volver,
    .btn-volver-nav,
    .btn-volver-bottom-manual,
    .btn-volver-top,
    .btn-volver-fixed,
    .floating-socials,
    nav,
    footer,
    button,
    .menu-toggle,
    #nav-menu {
        display: none !important;
        visibility: hidden !important;
    }

    /* Quitar aviso rojo */
    body::before {
        display: none !important;
    }
}

/* Estilo Dropdown para evitar el 'hueco' */
/* --- BOTÓN VOLVER LÚDICO ESTANDARIZADO --- */
/* --- BOTÓN VOLVER LÚDICO ESTANDARIZADO --- */
.btn-volver {
    display: inline-block;
    padding: 8px 24px !important;
    background: #e2a81c !important;
    color: #1b639e !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    transition: var(--transition) !important;
    border: 2px solid white !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
    z-index: 10005 !important;
}

.btn-volver:hover {
    transform: scale(1.05) !important;
    background: #1b639e !important;
    color: white !important;
    border-color: #e2a81c !important;
}

/* Efecto Cascada para botones en modales */
.btn-stack-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10010;
}

.badge-ludic {
    display: inline-block;
    padding: 8px 24px;
    background: #e2a81c;
    color: #1b639e;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    /* Separado del botón fixed */
    margin-left: 0;
}

.btn-volver-top {
    position: fixed !important;
    top: 25px !important;
    left: 25px !important;
    z-index: 10020 !important;
}

.btn-volver-bottom {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    z-index: 999999 !important;
    background: #eab308 !important;
    /* Amarillo */
    color: #1e3a8a !important;
    /* Azul */
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    cursor: pointer !important;
}

.modal-content-wrapper {
    background: white;
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border-radius: 15px;
    margin-top: 5px;
    z-index: 5000;
    padding: 10px;
    border: 2px solid var(--primary);
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-content a {
    background: transparent !important;
    color: var(--primary) !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    text-align: left;
    height: auto;
}

.dropdown-content a:hover {
    background: #f8fafc !important;
    transform: scale(1.02);
}

.bg-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#E3F2FD 1.2px, transparent 1.2px);
    /* Celeste muy suave */
    background-size: 25px 25px;
}

.bg-talleres {
    background-color: var(--bg-talleres);
}

/* --- HERO EXACTO SEGÚN BACKUP REUNIÓN (SIN ONDAS SVG) --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/hero_bg.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 10%;
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
    /* LA CURVA ÚNICA Y LIMPIA */
    z-index: 10;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}


.hero-content {
    max-width: 900px;
    z-index: 10;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero-content .school-name {
    font-size: 1.4rem;
    letter-spacing: 6px;
    margin-bottom: 35px;
    /* Más espacio abajo */
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 55px;
    /* Más espacio para que todo respire */
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: white;
    transition: opacity 1.2s ease-in-out;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .hero-content h1 {
        font-size: 1.8rem;
        white-space: normal;
    }

    .hero {
        height: 60vh !important;
        padding-top: 120px !important;
    }
}

.hero-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    font-weight: 600;
}

/* --- SECCIONES PUNTOS Y CAJAS --- */
section {
    padding: 80px 10%;
    scroll-margin-top: 100px;
    /* Compensa los 70px del menú + 30px de aire */
    position: relative;
}

.bg-pattern {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 90px;
    /* Aumentado de 70px a 90px */
}

.section-title h2 {
    font-size: 2.2rem;
    /* Tamaño más balanceado */
    color: var(--primary);
    margin-bottom: 25px;
    /* Más espacio entre el título y el divisor */
}

.divider {
    width: 90px;
    height: 6px;
    background: var(--primary);
    /* Azul como pediste antes */
    margin: 35px auto 45px;
    /* Más espacio arriba y abajo */
    border-radius: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.value-card {
    background: white !important;
    padding: 20px 25px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 4px solid transparent;
    cursor: pointer;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.value-card h3 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.value-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-card h3,
.servicio-card h3 {
    font-weight: 800;
    color: var(--primary);
}

/* Clases de Bordes de Colores Uniformes */
.blue-border {
    border: 4px solid #3498db !important;
}

.yellow-border {
    border: 4px solid #fab005 !important;
}

.green-border {
    border: 4px solid #2ecc71 !important;
}

.green-border {
    border-color: #2ecc71;
}

/* GRILLA DE SERVICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servicio-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.img-servicio {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 15px auto;
    border-radius: 15px;
}

.precio-tag {
    background: var(--bg-light);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
    margin: 10px 0;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Eliminada duplicación de .btn-volver para mayor limpieza */

.blue-border h4 {
    color: #3498db;
}

.yellow-border h4 {
    color: #f1c40f;
}

.hint {
    font-weight: 800;
    margin-top: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.blue-border .hint {
    color: #3498db;
}

.yellow-border .hint {
    color: #f1c40f;
    margin-bottom: 5px;
}

.green-border .hint {
    color: #2ecc71;
}

/* --- SERVICIOS --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.servicio-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid #edf2f7;
    transition: var(--transition);
    text-decoration: none !important;
    display: block;
}

.servicio-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-decoration: none !important;
}

.servicio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-decoration: none !important;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.servicio-card:hover .hint {
    transform: translateX(10px);
}

/* GRILLA DE MATRÍCULAS */
.matricula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 40px auto 0;
    justify-content: center;
    /* Centrar las tarjetas */
    max-width: 1000px;
    /* Limitar el ancho total de la sección */
}

.matricula-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid #edf2f7;
    transition: var(--transition);
}

.matricula-item h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.matricula-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.servicio-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-decoration: none !important;
    /* Garantizar sin subrayado */
}

.servicio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    /* Tamaño restaurado */
    margin-bottom: 20px;
}

.servicio-card .hint {
    font-size: 0.85rem;
    /* Tamaño restaurado */
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
}

.vaca-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 15px;
}

.vaca-status.available {
    background: #1877F2;
    /* Azul Facebook sincronizado con menú Matrículas */
    color: white;
}

.vaca-status.exhausted {
    background: #f1f3f5;
    color: #94a3b8;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(27, 99, 158, 0.1);
}

/* Fin de bordes */

.hint {
    font-weight: 800;
    margin-top: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.blue-border .hint {
    color: #3498db;
}

.yellow-border .hint {
    color: #f1c40f;
    margin-bottom: 5px;
}

/* Ajuste de margen para Utiles */
.green-border .hint {
    color: #2ecc71;
}

.servicio-card:hover .hint {
    transform: translateX(10px);
    filter: brightness(0.8);
}

/* BOTONES */
.btn-elegant {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    /* Ajustado de 1.1rem */
}

/* Eliminada segunda duplicación de .btn-volver */

.btn-volver-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
}

.btn-volver-top {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10001;
    background: rgba(27, 99, 158, 0.9);
}

.btn-volver-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 30px;
}

/* STAFF */
.staff-category {
    margin-top: 60px;
    text-align: center;
}

.staff-category h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--secondary);
    margin-bottom: 15px;
    background: white;
    transition: var(--transition);
}

/* Punto 2: Destacar Directiva con fotos más grandes */
.staff-category:first-of-type .staff-img-wrapper {
    width: 200px;
    height: 200px;
    border-width: 8px;
}

.staff-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important;
    /* Sin sepia */
}

.polaroid {
    background: white;
    padding: 15px 15px 45px;
    box-shadow: var(--shadow-polaroid);
    /* Sombra más fuerte */
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.polaroid:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.polaroid img {
    width: 100%;
    height: 220px;
    /* Reducido para look más compacto */
    object-fit: cover;
    border-radius: 5px;
    filter: none !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    padding: 80px 5% 40px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

/* Seguridad de Contención de Imágenes (Regla de Oro) */
.modal img,
.modal-content-wrapper img,
#gallery-images img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    /* Asegura que la imagen quepa entera sin cortarse */
}

/* Polaroids aseguradas (mantenemos el formato cuadrado/rectangular fijo) */
.polaroid img {
    max-width: 100% !important;
    height: 220px !important;
    /* Sincronizado para compactación */
    object-fit: cover !important;
    border-radius: 5px;
}

/* Visor de PDF más pequeño */
#pdf-modal .modal-content-wrapper {
    max-width: 650px;
    padding: 20px;
}

/* --- GRILLAS DINÁMICAS (AJUSTE FLEXIBLE ORIGINAL) --- */
.ludic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 900px) {

    /* Punto 3: Grilla de 2 columnas en móvil para aprovechar espacio */
    .ludic-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .polaroid img {
        height: 180px !important;
        /* Ajuste de altura para 2 columnas */
    }
}

.efemerides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); /* Forzar cajas compactas */
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    /* Centrar tarjetas */
}

@media screen and (max-width: 900px) {

    .doc-grid,
    .efemerides-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilo de Tarjetas Específicas */
.doc-card {
    background: white;
    border: 1.5px solid var(--primary);
    padding: 20px; /* Restaurado a compacto */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Restaurado a suave */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.doc-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.doc-card h4 {
    font-size: 1.1rem;
    /* Letra más chica para achicar caja */
    margin-bottom: 10px;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.btn-download {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 12px;
}

.avisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.aviso-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.aviso-date {
    text-align: center;
    border-right: 2px solid #f1f3f5;
    padding-right: 20px;
}

.aviso-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.aviso-date .month {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    opacity: 0.8;
}

.aviso-text strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.aviso-text p {
    color: var(--text-muted);
    line-height: 1.4;
}

/* RESPONSIVE */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    body {
        transform: scale(0.95);
        transform-origin: top center;
        width: 105.26%;
        /* Compensar escala horizontal */
        position: relative;
        left: -2.63%;
        /* Centrar el cuerpo escalado */
    }

    nav {
        justify-content: center !important;
        padding: 0 15px;
    }

    .logo-container {
        margin: 0 auto !important;
    }

    .logo-container img {
        height: 70px !important;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    }

    .menu-toggle {
        display: block;
        /* Asegurar que se vea */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
    }

    /* Fondo del menú mobile más premium */
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        /* Más lento y fluido */
        z-index: 3000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    #nav-menu.active {
        right: 0;
    }

    #nav-menu li {
        margin: 15px 0;
    }

    #nav-menu a {
        font-size: 1.2rem !important;
    }
}

/* --- GRILLA DE EFEMÉRIDES / AVISOS --- */
.efem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.efem-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: var(--transition);
}

.efem-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-premium);
}

.efem-date {
    background: var(--secondary);
    color: var(--primary);
    min-width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.efem-day {
    font-size: 1.4rem;
    line-height: 1;
}

.efem-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.efem-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.efem-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .efem-grid {
        grid-template-columns: 1fr;
        padding: 0 5% !important;
    }
}

/* Estilos para el botón VOLVER al final de las fotos */
.modal-content-wrapper {
    padding-bottom: 50px;
}

#modal-content .btn-volver,
#taller-gallery .btn-volver {
    margin: 40px auto !important;
    background: #FFCE54 !important;
    color: #1a237e !important;
    border: 3px solid #F6BB42 !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    padding: 12px 40px !important;
    border-radius: 50px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}