/* style.css - Archivo Unificado con Nueva Paleta */

/* --- FUENTES GLOBALES (ACTUALIZADO) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Nunito:wght@300;400&display=swap');

/* Reemplaza la regla 'body' que tienes por esta */
body {
    /* Fuente para cuerpo: Nunito */
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    
    /* --- FONDO CON TU IMAGEN --- */
    background-image: url('images/HISTORIA1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #e5e5e4; /* Color de respaldo mientras carga la imagen */
    
    /* Texto: #3d387a */
    color: #3d387a;
}


/* --- ESTILOS PARA LAS PÁGINAS DE FORMULARIOS --- */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 75px);
    padding: 20px;
}

.form-container {
    /* Ajustamos el fondo del formulario para que contraste */
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(61, 56, 122, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 1s ease-in-out;
}

.form-container.large {
    max-width: 600px;
}

.form-container h2 {
    /* Fuente para títulos: Playfair Display */
    font-family: 'Playfair Display', serif;
    text-align: center;
    /* Color de texto principal */
    color: #3d387a;
    margin-top: 0;
    font-weight: 700;
}

.form-container p {
    text-align: center;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 25px;
}

.highlight {
    /* El "highlight" ahora usa el color de los botones */
    color: #4e4275;
    font-weight: 400;
}

.text-center {
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: rgba(61, 56, 122, 0.8);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(61, 56, 122, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    /* Color de texto para inputs */
    color: #3d387a;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4e4275;
    box-shadow: 0 0 15px rgba(78, 66, 117, 0.2);
}

button, .button-link {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    /* Botones: #4e4275 */
    background-color: #4e4275;
    /* Color de texto para el botón (claro para que contraste) */
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
}

button:hover, .button-link:hover {
    background-color: #3d387a; /* Un tono más oscuro al pasar el mouse */
    box-shadow: 0 0 20px rgba(78, 66, 117, 0.4);
    transform: translateY(-2px);
}

.message {
    text-align: center;
    color: #ff4d4d;
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 1em;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4e4275; /* Color del loader actualizado */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* --- ESTILOS ADICIONALES PARA LA PÁGINA DE INICIO (INDEX.HTML) --- */

.main-header {
    background-color: rgba(255, 255, 255, 0.8); /* Fondo de header claro */
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    position: relative;   /* 🔹 Modificado */
    width: 100%;          /* 🔹 Modificado */
    z-index: 1000;
    border-bottom: 1px solid rgba(61, 56, 122, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    /* Fuente para títulos: Playfair Display */
    font-family: 'Playfair Display', serif;
    /* Color de texto principal */
    color: #3d387a;
    font-size: 1.8em;
    font-weight: 700;
}

.main-header nav a {
    color: #3d387a;
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s ease;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

/* Oculta el menú hamburguesa en la versión de escritorio */
.menu-toggle {
    display: none;
}

.main-header nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #4e4275; /* Línea inferior con color de botón */
    transition: width 0.4s ease;
}

.main-header nav a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button:hover {
    background-color: #3d387a;
    color: #ffffff;   /* 🔹 agregado para que el texto sea legible */
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(78, 66, 117, 0.3);
}


#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #3d387a;
    /* Fondo del hero con un degradado sutil */
    background: linear-gradient(rgba(229,229,228,0.6), rgba(229,229,228,0.6));
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin-top: -75px;
}

.hero-text h1 {
    /* Fuente para títulos: Playfair Display */
    font-family: 'Playfair Display', serif;
    font-size: 4.5em;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(255,255,255,0.5);
}

.hero-text p {
    font-size: 1.5em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(61, 56, 122, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.content-section h2 {
    text-align: center;
    border-bottom: 2px solid #4e4275; /* Línea con color de botón */
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-family: 'Playfair Display', serif; /* Fuente de título */
}

.content-section p, .content-section li {
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.8;
    color: #3d387a;
}

.content-section ul {
    list-style-type: '✧ ';
    padding-left: 20px;
}

.imagenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.imagen-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.imagen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.imagen-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.imagen-card h3 {
    font-family: 'Playfair Display', serif; /* Fuente de título */
    color: #4e4275;
    text-align: center !important;
    margin-top: 10px;
}

.imagen-card p {
    font-size: 0.9em;
    text-align: center !important;
    color: #3d387a;
}

.pastoral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pastoral-item {
    background: rgba(61, 56, 122, 0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 3px solid #4e4275; /* Borde con color de botón */
    transition: all 0.3s ease;
}

.pastoral-item:hover {
    background: rgba(78, 66, 117, 0.1);
    transform: translateY(-5px);
}

.pastoral-item h4 {
    margin-top: 0;
    font-family: 'Playfair Display', serif; /* Fuente de título */
    color: #4e4275;
    display: flex;
    align-items: center;
}

.pastoral-item .pastoral-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.pastoral-item p {
    font-size: 0.95em;
    line-height: 1.7;
    text-align: left;
}

.main-footer {
    text-align: center;
    padding: 30px;
    background-color: #d8d8d7; /* Un tono ligeramente más oscuro del fondo */
    font-size: 0.9em;
    color: #3d387a;
    border-top: 1px solid rgba(61, 56, 122, 0.1);
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.animate-on-scroll .stagger-child {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.animate-on-scroll.visible .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

.animate-hero-title {
    animation: slideInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}
.animate-hero-subtitle {
    animation: slideInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s both;
}

@keyframes slideInDown {
    from { transform: translateY(-80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* --- CÓDIGO AÑADIDO (NO MODIFIQUES NADA DE LO DE ARRIBA) --- */

.section-image-full {
    width: 100%; 
    max-width: 800px; 
    display: block; 
    margin: 40px auto; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}
/* =================================================================== */
/* DISEÑO MEJORADO PARA MÓVILES - SIN AFECTAR ESCRITORIO              */
/* =================================================================== */

@media (max-width: 768px) {
    
    /* --- HEADER Y NAVEGACIÓN MEJORADA --- */
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .logo {
        font-size: 1.4em;
        flex: 1;
    }
    
    /* Menú hamburguesa visible en móvil */
    .menu-toggle {
        display: block;
        font-size: 1.8em;
        cursor: pointer;
        color: #3d387a;
        z-index: 1001;
    }
    
    /* Navegación para móvil */
    .main-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .main-header.active nav {
        right: 0;
    }
    
    .main-header nav a {
        margin: 0 0 20px 0;
        padding: 15px;
        border-bottom: 1px solid rgba(61, 56, 122, 0.1);
        font-size: 1.1em;
        display: block;
        text-align: center;
    }
    
    .main-header nav a:not(.cta-button)::after {
        display: none;
    }
    
.cta-button {
    background-color: #4e4275;
    color: #ffffff !important;  /* ← fuerza texto blanco */
    border-radius: 25px;
    margin-top: 10px;
    padding: 12px 20px;
    font-weight: 700;
    text-align: center;
}

    
    /* --- HERO MEJORADO --- */
    #hero {
        height: 70vh;
        min-height: 500px;
        margin-top: 0;
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5em;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 1.1em;
        letter-spacing: 1px;
    }
    
    /* --- CONTENIDO MEJORADO --- */
    .content-section {
        margin: 40px 15px;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .content-section h2 {
        font-size: 1.8em;
        text-align: center;
        line-height: 1.3;
    }
    
    /* --- GRID DE IMÁGENES MEJORADO --- */
    .imagenes-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .imagen-card {
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 15px;
    }
    
    .imagen-card img {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .imagen-card h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    /* --- GRID PASTORAL MEJORADO --- */
    .pastoral-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pastoral-item {
        padding: 20px;
        text-align: center;
    }
    
    .pastoral-item h4 {
        justify-content: center;
        font-size: 1.2em;
    }
    
    /* --- IMÁGENES FULL MEJORADAS --- */
    .section-image-full {
        width: 100%;
        max-width: 100%;
        margin: 30px auto;
        border-radius: 10px;
    }
    
    /* --- FOOTER MEJORADO --- */
    .main-footer {
        padding: 25px 20px;
        font-size: 0.8em;
    }
    
    /* --- MEJORAS DE USABILIDAD --- */
    body {
        padding-top: 0;
    }
    
    /* Asegurar que los textos sean legibles */
    .content-section p, .content-section li {
        font-size: 1em;
        line-height: 1.6;
        text-align: left;
    }
    
    /* Mejorar botones para touch */
    button, .button-link {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Animaciones más suaves en móvil */
    .animate-on-scroll .stagger-child {
        transform: translateY(20px);
    }
}

/* Para tablets más pequeñas */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2em;
    }
    
    .hero-text p {
        font-size: 1em;
    }
    
    .content-section {
        margin: 30px 10px;
        padding: 25px 15px;
    }
    
    .content-section h2 {
        font-size: 1.6em;
    }
    
    .logo {
        font-size: 1.2em;
    }
}

/* Para tablets en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 50px;
    }
    
    .hero-text h1 {
        font-size: 2.2em;
    }
    /* Logo en color correcto */
    .logo {
        color: #3d387a !important;
        font-size: 1.3em !important;
    }
    
    /* Menú hamburguesa visible y bien posicionado */
    .menu-toggle {
        display: block !important;
        font-size: 1.8em !important;
        background: none !important;
        border: none !important;
        color: #3d387a !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        padding: 5px !important;
        margin: 0 !important;
        position: relative !important;
    }
    
    /* Ajuste del hero para que no quede detrás del header fijo */
    #hero {
        margin-top: 80px !important;
    }
}

/* Overlay para cerrar menú al tocar fuera */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.main-header.active + .menu-overlay {
    display: block;
}
/* =================================================================== */
/* OCULTAR MENÚ HAMBURGUESA EN ESCRITORIO */
/* =================================================================== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .main-header nav {
        display: flex !important;
    }
    
    /* Quitar cualquier outline o border que aparezca */
    .main-header nav a:focus-visible {
        outline: none !important;
        border: none !important;
    }  
    /* Eliminar estados activos y focus */
    .main-header nav a:active,
    .main-header nav a:focus,
    .main-header nav a:hover {
        background-color: transparent !important;
        color: #3d387a !important;
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }
    
    /* Eliminar específicamente el efecto en botones */
    .main-header nav a.cta-button:active,
    .main-header nav a.cta-button:focus {
        background-color: #4e4275 !important;
        color: white !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* También para el botón del menú hamburguesa */
    .menu-toggle {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        outline: none !important;
    }
    
    .menu-toggle:active {
        background-color: transparent !important;
        transform: none !important;
        color: #3d387a !important;
    }  
    /* Eliminar estados de active y focus */
    .main-header nav a:active,
    .main-header nav a:focus,
    .main-header nav a:hover,
    .menu-toggle:active,
    .menu-toggle:focus {
        background-color: transparent !important;
        color: inherit !important;
        transform: none !important;
        box-shadow: none !important;
        outline: 0 !important;
        border: 0 !important;
    }
    
    /* Para el botón CTA */
    .main-header nav a.cta-button:active,
    .main-header nav a.cta-button:focus {
        background-color: #4e4275 !important;
        color: white !important;
    }
}
/* =================================================================== */
/* SOLUCIÓN DEFINITIVA - ELIMINAR COLOR MORADO */
/* =================================================================== */

@media (max-width: 768px) {
    /* SOLUCIÓN RADICAL - Reset completo para enlaces del menú */
    .main-header nav a {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        outline: none !important;
        border: none !important;
        background: transparent !important;
        color: #3d387a !important;
        text-decoration: none !important;
    }
    
    /* ELIMINAR COLOR MORADO en estados activos */
    .main-header nav a:active,
    .main-header nav a:focus,
    .main-header nav a:hover {
        background: transparent !important;
        background-color: transparent !important;
        color: #3d387a !important;
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }
    
    /* Para el botón CTA - mantener color pero sin efectos morados */
    .main-header nav a.cta-button {
        background-color: #4e4275 !important;
        color: white !important;
    }
    
    .main-header nav a.cta-button:active,
    .main-header nav a.cta-button:focus {
        background-color: #4e4275 !important;
        color: white !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Para el menú hamburguesa */
    .menu-toggle {
        -webkit-tap-highlight-color: transparent !important;
        background: transparent !important;
        color: #3d387a !important;
    }
    
    .menu-toggle:active {
        background: transparent !important;
        color: #3d387a !important;
    }
}

/* Overlay para cerrar menú */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.main-header.active + .menu-overlay {
    display: block;
}
/* =================================================================== */
/* CORRECCIÓN DEFINITIVA - ELIMINAR EFECTOS FEOs Y ARREGLAR LOGO */
/* =================================================================== */

/* Arreglar el logo para que no se rompa en móvil */
@media (max-width: 768px) {
    .logo {
        white-space: nowrap !important; /* Evita que se rompa en varias líneas */
        font-size: 1.3em !important;
        color: #3d387a !important;
    }
}

/* ELIMINAR COMPLETAMENTE TODOS LOS EFECTOS DE SELECCIÓN */
@media (max-width: 768px) {
    /* Reset radical para TODOS los elementos del header */
    .main-header * {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Específicamente para enlaces del menú */
    .main-header nav a {
        background: transparent !important;
        color: #3d387a !important;
        text-decoration: none !important;
        outline: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Eliminar COLOR MORADO en todos los estados */
    .main-header nav a:active,
    .main-header nav a:focus,
    .main-header nav a:hover,
    .main-header nav a:visited {
        background: transparent !important;
        background-color: transparent !important;
        color: #3d387a !important;
        transform: none !important;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
        text-decoration: none !important;
    }
    
    /* Para el botón CTA */
    .main-header nav a.cta-button {
        background-color: #4e4275 !important;
        color: white !important;
    }
    
    .main-header nav a.cta-button:active,
    .main-header nav a.cta-button:focus {
        background-color: #4e4275 !important;
        color: white !important;
    }
    
    /* Para el menú hamburguesa */
    .menu-toggle {
        background: transparent !important;
        color: #3d387a !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .menu-toggle:active {
        background: transparent !important;
        color: #3d387a !important;
    }
}

/* Overlay para cerrar menú */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.main-header.active + .menu-overlay {
    display: block;
}
/* =================================================================== */
/* SOLUCIÓN - TEXTO VISIBLE SOBRE FONDO MORADO */
/* =================================================================== */
@media (max-width: 768px) {
    .main-header nav a:active,
    .main-header nav a:focus {
        color: white !important;
        background-color: #4e4275 !important;
    }
    
    .main-header nav a {
        color: #3d387a !important;
    }
}
/* --- ESTILOS PARA CALENDARIO DESPLEGABLE (CON COLUMNAS Y SCROLL) --- */
.collapsible-trigger {
    background-color: rgba(61, 56, 122, 0.1);
    color: #3d387a;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid rgba(61, 56, 122, 0.2);
    border-radius: 8px;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.collapsible-trigger:hover, .collapsible-trigger.active {
    background-color: rgba(61, 56, 122, 0.2);
}

.collapsible-icon {
    transition: transform 0.4s ease;
}

.collapsible-trigger.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(61, 56, 122, 0.2);
    border-top: none;
}

/* === ESTA ES LA PARTE QUE COMBINA AMBAS OPCIONES === */
.collapsible-trigger.active + .collapsible-content {
    max-height: 400px; /* <-- Altura fija de la caja (puedes ajustarla) */
    overflow-y: auto;  /* <-- Activa el scroll si es necesario */
}

#calendario-lista ul {
    columns: 2; /* <-- Divide la lista en 2 columnas */
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 20px; /* <-- Espacio entre columnas */
}

#calendario-lista li {
    break-inside: avoid; /* Evita que los textos se corten entre columnas */
}
/* --- CORRECCIÓN PARA BOTÓN DESPLEGABLE EN MÓVIL --- */
@media (max-width: 768px) {
  .collapsible-trigger {
    position: relative; /* Asegura que el botón esté en un contexto de apilamiento */
    z-index: 2;         /* Lo pone por encima de otros elementos por si acaso */
  }
}
/* --- ESTILOS DEL MODAL DE ADMIN --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4e4275;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.modal-header h3 {
    margin: 0;
    color: #4e4275;
    font-family: 'Playfair Display', serif;
}

.close-btn {
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 0.5;
}

.close-btn:hover {
    color: #4e4275;
}
