/*   
Theme Name: SM-STA-CatholicChurchSF
Theme URI: the-theme's-homepage
Description: a-brief-description
Author: Martina Ferrari Vivas
Author URI: your-URI
Version: 1.0
Text Domain: smstaparish
.
General comments/License Statement if any.
.
*/

:root {
            --primary: #15298e;
            --bg-white: #ffffff;
            --bg-offwhite: #f7f7f9;
            --text-dark: #111111;
            --text-light: #888888;
            --gold: #d4af37;
            --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
            
            /* Nuevas variables de tipografía */
            --font-titles: 'Playfair Display', serif;
            --font-body: 'Inter', sans-serif;
        }

        body {
            /* Asignamos Inter al texto general */
            font-family: var(--font-body);
            background-color: var(--bg-white);
            color: var(--text-dark);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* Asignamos Playfair Display a todos los títulos y logo */
        h1, h2, h3, .huge-title, .brand-logo, .schedule-day {
            font-family: var(--font-titles);
        }

        /* Ajuste fino para el título gigante del Hero para que luzca espectacular */
        .hero-text h1 {
            font-size: clamp(3rem, 8vw, 8rem);
            font-weight: 700;
            line-height: 0.95;
            letter-spacing: -1px;
            margin-bottom: 1.5rem;
            /* Quitamos el uppercase para que la fuente Serif respire mejor */
            text-transform: none; 
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        

        /* =======================================================
           MENÚS DESPLEGABLES (DROPDOWNS) - ESCRITORIO
           ======================================================= */
        .has-dropdown {
            position: relative; /* Clave para que el submenú se ancle aquí */
        }

        .chevron {
            font-size: 0.7rem;
            margin-left: 4px;
            display: inline-block;
            transition: transform 0.3s ease;
        }

        .has-dropdown:hover .chevron {
            transform: rotate(180deg); /* La flecha gira al pasar el ratón */
        }

        .dropdown-menu {
            position: absolute;
            top: 100%; /* Justo debajo del enlace principal */
            left: -1rem; /* Pequeño ajuste para centrar visualmente */
            background-color: var(--bg-white);
            min-width: 220px;
            padding: 1rem 0;
            list-style: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-top: 2px solid var(--primary); /* Línea azul elegante arriba */
            
            /* Animación de entrada */
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: all 0.4s var(--ease-liquid);
        }

        /* Mostrar al hacer hover */
        .has-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Estilo de los enlaces del submenú */
        .dropdown-menu li a {
            display: block;
            padding: 0.7rem 2rem;
            color: var(--text-dark);
            text-decoration: none;
            font-family: var(--font-body);
            font-size: 0.85rem;
            font-weight: 500;
            text-transform: none; /* Quitamos mayúsculas para diferenciar del menú principal */
            transition: all 0.3s ease;
        }

        .dropdown-menu li a:hover {
            color: var(--primary);
            background-color: var(--bg-light);
            padding-left: 2.5rem; /* Efecto sutil de desplazamiento a la derecha */
        }

        
        /* NAVEGACIÓN MINIMALISTA */
        header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            padding: 2rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            transition: all 0.6s var(--ease-liquid);
            
            /* 1. EL TRUCO: Gradiente de protección (Scrim) */
            /* Usa tu azul oscuro en la parte superior y se vuelve 100% transparente hacia abajo */
            background: linear-gradient(to bottom, rgba(13, 27, 94, 0.85) 0%, rgba(13, 27, 94, 0) 100%);
            
            /* 2. Sombra sutil para "despegar" el texto de la imagen */
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
        }

        header.scrolled {
            padding: 1rem 5%;
            
            /* Fondo blanco sólido o levemente translúcido */
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            
            /* Borramos el gradiente oscuro y la sombra del texto */
            background-image: none;
            text-shadow: none;
            
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }

        /* Preparamos el contenedor */
        .brand-logo {
            position: relative;
            display: flex;
            align-items: center;
            height: 50px; /* Mantiene la altura fija */
            width: 150px; /* Ancho fijo para tu logo 3:1 (600x200) */
        }

        /* Posicionamos ambas imágenes exactamente en el mismo lugar y alineadas a la izquierda */
        .brand-logo img {
            position: absolute;
            top: 0; 
            left: 0;
            height: 100%;
            width: 100%;
            object-fit: contain;
            object-position: left center; /* <-- Esta es la regla que corrige el desplazamiento */
            transition: opacity 0.4s var(--ease-liquid);
        }

        /* =========================================
           ESTADO INICIAL (Arriba del todo)
           ========================================= */
        #navbar .brand-logo .logo-blanco { opacity: 1; } /* Mostramos el blanco */
        #navbar .brand-logo .logo-color { opacity: 0; }  /* Ocultamos el color */

        /* =========================================
           ESTADO SCROLLED (Cuando la barra es blanca)
           ========================================= */
        #navbar.scrolled .brand-logo .logo-blanco { opacity: 0; } /* Ocultamos el blanco */
        #navbar.scrolled .brand-logo .logo-color { opacity: 1; }  /* Mostramos el color */

        header.scrolled .brand-logo img {
            filter: none; /* Vuelve al color original al hacer scroll */
            height: 40px;
        }

        /* =======================================================
           1. ESTADO INICIAL DE LOS ENLACES (Antes del scroll)
           ======================================================= */
        #navbar .nav-link {
            color: #ffffff; /* Forzamos el blanco puro */
            text-decoration: none;
            font-family: var(--font-body); /* Usamos la fuente Sans-serif que definimos */
            font-size: 0.85rem;
            font-weight: 500; /* Un poco más de grosor para mayor legibilidad */
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: color 0.4s var(--ease-liquid);
            position: relative;
        }

        /* El subrayado dorado al pasar el ratón (efecto premium) */
        #navbar .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px; 
            left: 0; 
            width: 0%; 
            height: 1px;
            background-color: var(--gold);
            transition: width 0.4s var(--ease-liquid);
        }

        #navbar .nav-link:hover::after {
            width: 100%;
        }

        #navbar .nav-link:hover {
            color: var(--gold);
        }

        /* =======================================================
           DISEÑO RESPONSIVO (MÓVILES)
           ======================================================= */
        .mobile-menu-toggle {
            display: none; /* Oculto en escritorio */
            background: none;
            border: none;
            color: #ffffff;
            cursor: pointer;
            z-index: 1001; /* Por encima de todo */
            width: 32px;
            height: 32px;
            transition: color 0.3s ease;
        }

        /* El ícono se vuelve oscuro cuando la barra es blanca */
        #navbar.scrolled .mobile-menu-toggle {
            color: var(--primary);
        }

        @media (max-width: 1024px) {
            .mobile-menu-toggle {
                display: block; /* Mostramos la hamburguesa */
            }

            .nav-container {
                position: fixed;
                top: 0;
                right: -100%; /* Menú oculto a la derecha de la pantalla */
                width: 100%;
                height: 100vh;
                background-color: var(--bg-white);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: right 0.6s var(--ease-liquid);
                z-index: 1000;
            }

            /* Clase que añadirá el JS para abrir el menú */
            .nav-container.is-open {
                right: 0;
            }

            .nav-links {
                flex-direction: column;
                gap: 2rem;
                text-align: center;
            }

            /* Forzar texto oscuro en móvil ya que el fondo es blanco */
            #navbar .nav-link {
                color: var(--text-dark);
                font-size: 1.2rem;
            }

            /* Submenús en versión móvil (visibles estáticamente) */
            .dropdown-menu {
                position: relative;
                top: 0;
                left: 0;
                box-shadow: none;
                border-top: none;
                opacity: 1;
                visibility: visible;
                transform: none;
                padding: 0;
                margin-top: 1rem;
            }

            .dropdown-menu li a {
                color: var(--text-gray);
                padding: 0.5rem 0;
            }
            
            /* Ajuste del botón en móvil */
            .btn-donate {
                display: inline-block;
                margin-top: 1rem;
            }
        }

        /* =======================================================
           2. ESTADO SCROLLED (Cuando la barra se vuelve blanca)
           ======================================================= */
        #navbar.scrolled .nav-link {
            /* Cuando el fondo es blanco, el texto pasa a ser oscuro */
            color: var(--primary); /* O puedes usar var(--text-dark) */
        }

        #navbar.scrolled .nav-link:hover {
            color: var(--gold);
        }

        /* HERO CINEMATOGRÁFICO */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover;
            z-index: -2;
            transform: scale(1.1);
            animation: slowZoom 20s infinite alternate linear;
        }

        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(rgba(21, 41, 142, 0.3), rgba(21, 41, 142, 0.8));
            z-index: -1;
        }

        @keyframes slowZoom {
            from { transform: scale(1.05); }
            to { transform: scale(1.15); }
        }

        .hero-text {
            text-align: center;
            color: white;
            padding: 0 5%;
        }

        .hero-text h1 {
            /* clamp(min, ideal, max) hace que el texto sea fluido y enorme en desktop */
            font-size: clamp(3rem, 8vw, 8rem);
            font-weight: 900;
            line-height: 0.9;
            letter-spacing: -2px;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
        }

        /* SECCIÓN EDITORIAL (ASIMÉTRICA) */
        .editorial-section {
            padding: 10vw 5%;
            display: grid;
            grid-template-columns: 5fr 7fr;
            gap: 8vw;
            align-items: center;
        }

        .huge-title {
            font-size: clamp(2rem, 5vw, 4.5rem);
            font-weight: 700;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 2rem;
            letter-spacing: -1px;
        }

        .editorial-text {
            font-size: 1.5rem;
            font-weight: 300;
            line-height: 1.6;
            color: var(--text-light);
        }

        /* EL SECRETO DEL DISEÑO PREMIUM: IMAGE REVEAL (CURTAIN EFFECT) */
        .img-reveal-container {
            position: relative;
            overflow: hidden;
            border-radius: 4px;
        }

        .img-reveal-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scale(1.2);
            transition: transform 2s var(--ease-out-expo);
        }

        .img-reveal-container::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: var(--primary);
            transform-origin: top;
            transition: transform 1.5s var(--ease-out-expo);
            z-index: 1;
        }

        /* Clases activas que añade el JS cuando haces scroll */
        .img-reveal-container.is-visible::after {
            transform: scaleY(0); /* El bloque azul "cae" revelando la imagen */
        }
        .img-reveal-container.is-visible img {
            transform: scale(1); /* La imagen vuelve a su tamaño normal suavemente */
        }

        /* LISTA DE HORARIOS MODERNA (Sin tarjetas, full ancho) */
        .schedule-list {
            padding: 5vw 10%;
            background-color: var(--bg-offwhite);
        }

        .schedule-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 3rem 0;
            border-bottom: 1px solid rgba(21, 41, 142, 0.2);
            transition: all 0.4s var(--ease-out-expo);
        }

        .schedule-item:hover {
            padding: 3rem 2rem;
            background-color: var(--bg-white);
            box-shadow: 0 20px 40px rgba(0,0,0,0.03);
            border-color: transparent;
        }

        .schedule-day {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
        }

        .schedule-time {
            font-size: 1.2rem;
            font-weight: 300;
            text-align: right;
        }

        /* TEXTO FADE-UP */
        .fade-up {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
        }

        .fade-up.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 900px) {
            .editorial-section { grid-template-columns: 1fr; }
            .nav-links { display: none; }
            .schedule-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
            .schedule-time { text-align: left; }
        }



        /* =======================================================
           ESTILOS DEL PIE DE PÁGINA (FOOTER)
           ======================================================= */
        .site-footer {
            /* Usamos un azul marino más oscuro para mayor profundidad */
            background-color: #08113b; 
            color: rgba(255, 255, 255, 0.6);
            padding: 8vw 5% 3vw 5%;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
            gap: 4vw;
            max-width: 1400px;
            margin: 0 auto;
            padding-bottom: 5vw;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-col {
            display: flex;
            flex-direction: column;
        }

        /* Columna de la Marca */
        /* =======================================================
           AJUSTES DEL LOGO EN EL FOOTER
           ======================================================= */
        .footer-logo {
            display: inline-block;
            margin-bottom: 1.5rem;
            text-decoration: none;
        }

        .footer-logo img {
            height: 55px; /* Esto mantendrá el ancho en 165px (proporción 3:1) */
            width: auto;
            object-fit: contain;
            transition: opacity 0.3s var(--ease-liquid);
        }

        .footer-logo:hover img {
            opacity: 0.8;
        }

        .footer-mission {
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 2rem;
            max-width: 85%;
        }

        .social-links {
            display: flex;
            gap: 1.5rem;
        }

        .social-links a {
            color: rgba(255, 255, 255, 0.5);
            transition: color 0.4s ease;
        }

        .social-links svg {
            width: 22px;
            height: 22px;
        }

        .social-links a:hover {
            color: var(--gold);
        }

        /* Títulos de las Columnas */
        .footer-heading {
            font-family: var(--font-title);
            font-size: 1.4rem;
            color: var(--gold);
            margin-bottom: 1.5rem;
            font-weight: 400;
            letter-spacing: 0.5px;
        }

        /* Listas de Contacto y Navegación */
        .footer-contact, .footer-nav {
            list-style: none;
        }

        .footer-contact li, .footer-nav li {
            margin-bottom: 1.2rem;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .footer-contact a, .footer-nav a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .footer-contact a:hover {
            color: var(--bg-white);
        }

        /* Efecto de enlace sutil para la navegación */
        .footer-nav a::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0; width: 0%; height: 1px;
            background-color: var(--gold);
            transition: width 0.3s var(--ease-liquid);
        }

        .footer-nav a:hover {
            color: var(--bg-white);
        }

        .footer-nav a:hover::after {
            width: 100%;
        }

        /* Barra Inferior (Legal y Créditos) */
        .footer-bottom {
            max-width: 1400px;
            margin: 3vw auto 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
        }

        .footer-legal {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .footer-legal a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-legal a:hover {
            color: var(--bg-white);
        }

        .separator {
            color: rgba(255, 255, 255, 0.2);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
            .brand-col {
                grid-column: span 2;
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 600px) {
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .brand-col {
                grid-column: span 1;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
            }
        }



        /* =======================================================
           BOTÓN "DONATE" EN LA NAVEGACIÓN
           ======================================================= */
        
        /* Aseguramos que la lista se alinee verticalmente con el botón */
        .nav-links {
            display: flex;
            align-items: center; 
            gap: 2.5vw;
            list-style: none;
        }

        .btn-donate {
            background-color: var(--gold);
            color: var(--bg-white) !important;
            padding: 0.7rem 1.8rem;
            font-family: var(--font-body);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-decoration: none;
            border: 1px solid var(--gold);
            transition: all 0.4s var(--ease-liquid);
        }

        /* Efecto Hover Premium */
        .btn-donate:hover {
            background-color: transparent;
            color: var(--gold) !important;
            /* Si quieres que el botón suba un poquito al pasar el cursor: */
            transform: translateY(-2px); 
        }



        /* =======================================================
           ESTILOS HORARIOS (TIPOGRÁFICO Y EDITORIAL)
           ======================================================= */
        .premium-schedule-section {
            padding: 10vw 5%;
            background-color: var(--bg-white);
            color: var(--text-dark);
        }

        .schedule-container {
            max-width: 1000px;
            margin: 0 auto;
        }

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

        .schedule-title-main {
            font-family: var(--font-title);
            font-size: clamp(3rem, 6vw, 5.5rem);
            font-weight: 300;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 4rem;
        }

        /* Controles de Pestañas */
        .schedule-tabs {
            display: flex;
            justify-content: center;
            gap: 4vw;
            margin-bottom: 5rem;
            border-bottom: 1px solid rgba(21, 41, 142, 0.1);
        }

        .tab-btn {
            background: none;
            border: none;
            font-family: var(--font-title);
            font-size: clamp(1.2rem, 2vw, 1.8rem);
            color: var(--text-gray);
            padding: 1rem 0;
            cursor: pointer;
            position: relative;
            transition: color 0.4s var(--ease-liquid);
        }

        .tab-btn::after {
            content: '';
            position: absolute;
            bottom: -1px; left: 0;
            width: 0%; height: 2px;
            background-color: var(--gold);
            transition: width 0.4s var(--ease-liquid);
        }

        .tab-btn:hover {
            color: var(--primary);
        }

        .tab-btn.active {
            color: var(--primary);
            font-style: italic;
        }

        .tab-btn.active::after {
            width: 100%;
        }

        /* Contenido de Pestañas (Ocultar/Mostrar) */
        .tab-content {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s var(--ease-liquid), transform 0.6s var(--ease-liquid);
        }

        .tab-content.active {
            display: block;
            /* Usamos setTimeout en JS para la opacidad y lograr un fade suave */
        }
        
        .tab-content.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* Filas del Horario */
        .schedule-row {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 4rem;
            padding: 3rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            align-items: start;
        }

        .schedule-row:last-child {
            border-bottom: none;
        }

        .schedule-day {
            font-family: var(--font-title);
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 400;
            color: var(--primary);
            line-height: 1.1;
        }

        .time-slot {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 0.8rem;
            font-family: var(--font-body);
        }

        .time-slot:last-child {
            margin-bottom: 0;
        }

        .time-slot .time {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary);
            letter-spacing: 1px;
        }

        .time-slot .event {
            font-size: 1.2rem;
            font-weight: 400;
            color: var(--text-gray);
            text-align: right;
            border-bottom: 1px dotted rgba(0,0,0,0.1);
            flex-grow: 1;
            margin-left: 1rem;
            text-align: right;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .schedule-row {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                padding: 2.5rem 0;
            }
            .time-slot {
                flex-direction: column;
                gap: 0.2rem;
            }
            .time-slot .event {
                margin-left: 0;
                text-align: left;
                border-bottom: none;
            }
        }

 /* =======================================================
           SECCIÓN BOLETINES (ESTILO LITURGICAL SCHEDULE)
           ======================================================= */
        .bulletins-compact-section {
            padding: 4vw 5%;
            background-color: var(--bg-white);
            display: flex;
            justify-content: center;
        }

        .bulletins-compact-container {
            width: 100%;
            max-width: 900px; /* Contenedor más estrecho para que no se desparrame */
        }

        /* Cabecera en una sola línea */
        .compact-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 0.8rem;
            margin-bottom: 1rem; /* Espacio reducido */
        }

        .compact-title {
            font-family: var(--font-title);
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.5px;
            margin: 0;
        }

        .compact-link {
            font-family: var(--font-body);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gold);
            text-transform: uppercase;
            text-decoration: none;
            letter-spacing: 1px;
            transition: color 0.3s ease;
        }

        .compact-link:hover {
            color: var(--primary);
        }

        /* Filas del Schedule */
        .compact-list {
            display: flex;
            flex-direction: column;
        }

        .compact-row {
            display: flex;
            align-items: center;
            padding: 1rem 0; /* Padding mínimo para ahorrar espacio */
            border-bottom: 1px solid rgba(21, 41, 142, 0.1); /* Línea divisoria muy sutil */
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

        .compact-row:hover {
            background-color: var(--bg-light);
        }

        /* Bloque de Fecha (Estilo Calendario/Misal) */
        .compact-date-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 60px;
            padding-right: 1.5rem;
            border-right: 1px solid rgba(0,0,0,0.1);
            margin-right: 1.5rem;
        }

        .compact-month {
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .compact-day {
            font-family: var(--font-title);
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
        }

        /* Información del Boletín */
        .compact-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .compact-doc-title {
            font-family: var(--font-title);
            font-size: 1.2rem; /* Tamaño controlado, no gigante */
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0.2rem;
            transition: color 0.3s ease;
        }

        .compact-row:hover .compact-doc-title {
            color: var(--primary); /* Hover azul marino */
        }

        .compact-meta {
            font-family: var(--font-body);
            font-size: 0.75rem;
            color: var(--text-gray);
            font-weight: 500;
        }

        /* Botón de acción integrado */
        .compact-action {
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--bg-white);
            background-color: var(--primary);
            padding: 0.4rem 1rem;
            border-radius: 2px; /* Ligeramente redondeado */
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: background-color 0.3s ease;
        }

        .compact-row:hover .compact-action {
            background-color: var(--gold); /* Cambia a dorado al hacer hover en la fila */
        }

        /* Responsive */
        @media (max-width: 600px) {
            .compact-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            .compact-action {
                display: none; /* Ocultamos el botón en móviles para que no rompa el diseño, la fila entera sigue siendo clickeable */
            }
            .compact-date-block {
                width: 50px;
                padding-right: 1rem;
                margin-right: 1rem;
            }
        }


/* =======================================================
           ARCHIVO DE BOLETINES (AÑO + PAGINACIÓN)
           ======================================================= */
        .archive-year-heading {
            font-family: var(--font-titles);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin: 2.5rem 0 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary);
        }

        .compact-list .archive-year-heading:first-child {
            margin-top: 0;
        }

        .archive-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
            margin-top: 4rem;
            padding-top: 2.5rem;
            border-top: 1px solid rgba(21, 41, 142, 0.1);
            flex-wrap: wrap;
        }

        .archive-pagination .page-numbers {
            font-family: var(--font-titles);
            font-size: 1.15rem;
            color: var(--text-light);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.4rem;
            height: 2.4rem;
            border-radius: 50%;
            transition: color 0.3s ease, background-color 0.3s ease;
        }

        .archive-pagination a.page-numbers:hover {
            color: var(--primary);
            background-color: var(--bg-offwhite);
        }

        .archive-pagination .page-numbers.current {
            background-color: var(--gold);
            color: var(--bg-white);
            font-style: italic;
        }

        .archive-pagination .page-numbers.dots {
            background: none;
            width: auto;
        }

        .archive-pagination .page-numbers.prev,
        .archive-pagination .page-numbers.next {
            width: auto;
            height: auto;
            border-radius: 0;
            font-family: var(--font-body);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--gold);
        }

        .archive-pagination .page-numbers.prev:hover,
        .archive-pagination .page-numbers.next:hover {
            color: var(--primary);
            background: none;
        }

        @media (max-width: 600px) {
            .archive-pagination {
                gap: 0.75rem;
            }
            .archive-pagination .page-numbers.prev,
            .archive-pagination .page-numbers.next {
                font-size: 0.65rem;
                letter-spacing: 1px;
            }
        }



/* =======================================================
           SECCIÓN LLAMADO A DONAR (CON IMAGEN FONDO)
           ======================================================= */
        .donate-cta-section {
            padding: 8vw 5%; /* Un poco más de padding para lucir la imagen */
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
        }

        /* Capa 1: La imagen con efecto Parallax */
        .cta-bg-image {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-size: cover;
            background-position: center center;
            background-attachment: fixed; /* Esto crea el efecto ventana/parallax suave */
            z-index: 0;
        }

        /* Capa 2: El filtro azul marino para que se lea el texto */
        .cta-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: var(--primary);
            opacity: 0.85; /* Ajusta este valor (0.0 a 1.0) para oscurecer o aclarar la foto */
            z-index: 1;
        }

        /* Capa 3: El contenedor del texto y el botón */
        .donate-cta-container {
            max-width: 800px;
            position: relative;
            z-index: 2; /* Debe estar por encima del overlay y la imagen */
        }

        .donate-cta-title {
            font-family: var(--font-title);
            font-size: clamp(2.5rem, 4vw, 3.5rem);
            font-weight: 700;
            line-height: 1.1;
            color: var(--bg-white);
            letter-spacing: -1px;
            margin-bottom: 1.5rem;
        }

        .donate-cta-text {
            font-family: var(--font-body);
            font-size: 1.1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-weight: 400;
        }

        /* Botón de Donación Principal (Se mantiene igual) */
        .btn-donate-solid {
            display: inline-block;
            background-color: var(--gold);
            color: var(--primary);
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            padding: 1rem 3rem;
            text-decoration: none;
            transition: all 0.4s var(--ease-liquid);
            border: 1px solid var(--gold);
        }

        .btn-donate-solid:hover {
            background-color: transparent;
            color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }


        /* =======================================================
   HERO CORTO (PÁGINAS INTERIORES)
   ======================================================= */
.inner-hero {
    height: 45vh; 
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    overflow: hidden;
}

.inner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 27, 94, 0.9), rgba(13, 27, 94, 0.7));
    z-index: 1;
}

.inner-hero-img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    padding-top: 4rem;
}

.inner-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.inner-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =======================================================
   SECCIÓN DE LECTURA (CARTA DEL PÁRROCO)
   ======================================================= */
.reading-section {
    padding: 6vw 5%;
    background-color: var(--bg-white);
}

.letter-container {
    max-width: 750px; /* Ancho óptimo para lectura */
    margin: 0 auto;
}

.letter-content p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Efecto Letra Capitular (Drop Cap) */
.letter-content p:first-of-type::first-letter {
    font-family: var(--font-title);
    font-size: 4.5rem;
    line-height: 0.8;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    color: var(--primary);
    font-weight: 800;
}

.letter-signature {
    margin-top: 3rem;
    font-family: var(--font-title);
    font-size: 2rem;
    font-style: italic;
    color: var(--primary);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    font-weight: 700;
}

.signature-role {
    font-family: var(--font-body); 
    font-size: 0.9rem; 
    font-style: normal; 
    color: var(--text-gray);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

/* =======================================================
   SECCIÓN BIOGRAFÍA (DISEÑO ASIMÉTRICO)
   ======================================================= */
.bio-section {
    padding: 5vw 5% 8vw 5%;
    background-color: var(--bg-light);
}

.bio-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.bio-image-wrapper {
    position: relative;
    width: 100%;
}

.bio-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: -15px 15px 0 var(--primary); /* Sombra sólida azul marino */
}

.bio-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.bio-role {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: block;
}

.bio-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

/* Responsive Design Biografía */
@media (max-width: 768px) {
    .bio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .bio-image-wrapper {
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }
}



/* =======================================================
   MISSION STATEMENT (DISEÑO EXTENDIDO Y FORMAL)
   ======================================================= */
.mission-extended-section {
    padding: 8vw 5%;
    background-color: var(--bg-light); /* Fondo sutil para resaltar la formalidad */
    display: flex;
    justify-content: center;
}

.mission-extended-container {
    width: 100%;
    max-width: 900px;
}

.mission-content-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 3rem 4rem;
    background-color: var(--bg-white);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Borde dorado muy fino */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

/* La comilla gigante de fondo */
.decorative-quote {
    position: absolute;
    top: -2rem;
    left: 2rem;
    font-family: var(--font-title);
    font-size: 12rem;
    line-height: 1;
    color: rgba(212, 175, 55, 0.15); /* Dorado muy translúcido */
    z-index: 0;
    user-select: none;
}

.mission-body {
    position: relative;
    z-index: 1; /* Asegura que el texto esté por encima de la comilla */
}

/* El párrafo principal destacado */
.mission-lead {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Los párrafos normales de la misión */
.mission-body p:not(.mission-lead) {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Lista elegante para los pilares/valores de la misión */
.mission-pillars {
    margin-top: 2rem;
    list-style: none;
    padding-left: 0;
}

.mission-pillars li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Viñeta dorada personalizada */
.mission-pillars li::before {
    content: '✦'; /* Símbolo elegante en lugar de un simple punto */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--gold);
    font-size: 0.9rem;
}

.mission-pillars strong {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .mission-content-wrapper {
        padding: 2rem 1.5rem;
    }
    .mission-lead {
        font-size: 1.4rem;
    }
    .decorative-quote {
        left: 1rem;
        font-size: 8rem;
    }
}

/* =======================================================
   2. CANONICAL MERGE (Puente Editorial)
   ======================================================= */
.merge-section {
    padding: 8vw 5%;
    background-color: var(--bg-white);
}

.merge-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.gold-divider {
    width: 80px;
    height: 2px;
    background-color: var(--gold);
    margin: 2rem auto 3rem auto;
}

.merge-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* =======================================================
   3. HISTORIA (Diseño Zig-Zag / Intercalado)
   ======================================================= */
.history-block {
    padding: 8vw 5%;
    background-color: var(--bg-white);
}

.history-block.bg-light {
    background-color: var(--bg-light); /* Fondo sutil para diferenciar las dos parroquias */
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 6vw;
    margin-bottom: 6vw;
}

.history-row:last-child {
    margin-bottom: 0;
}

/* Clase MÁGICA que invierte el orden (Texto Izq, Imagen Der) */
.history-row.reverse {
    flex-direction: row-reverse;
}

.history-img-wrapper {
    flex: 1; /* Ocupa el 50% */
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(21, 41, 142, 0.08);
}

.history-img-wrapper img {
    width: 100%;
    height: 450px; /* Altura fija para mantener consistencia */
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-liquid);
}

.history-row:hover .history-img-wrapper img {
    transform: scale(1.05); /* Efecto zoom muy sutil */
}

.history-text {
    flex: 1; /* Ocupa el otro 50% */
}

.history-text h3 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* RESPONSIVE: En móviles el zig-zag se apila de forma normal */
@media (max-width: 900px) {
    .history-row, 
    .history-row.reverse {
        flex-direction: column; /* Apila imagen arriba y texto abajo */
        gap: 2.5rem;
    }
    
    .history-img-wrapper {
        width: 100%;
    }
    
    .history-img-wrapper img {
        height: 300px;
    }
    
    .history-text {
        text-align: center;
    }
}



/* =======================================================
   PERFILES DE SANTOS (SAINT PROFILES)
   ======================================================= */
.saint-profile-section {
    padding: 8vw 5%;
    background-color: var(--bg-white);
}

.saint-profile-section.bg-light {
    background-color: var(--bg-light);
}

.saint-container {
    max-width: 1100px;
    margin: 0 auto;
}

.saint-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Imagen más pequeña, texto más ancho */
    gap: 5rem;
    align-items: start;
}

/* Modificador para alternar (Zig-Zag) si hay varios santos */
.saint-grid.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.saint-grid.reverse .saint-image-col {
    order: 2; /* Pasa la imagen a la derecha */
}

.saint-grid.reverse .saint-text-col {
    order: 1; /* Pasa el texto a la izquierda */
}

/* --- Columna de la Imagen y Datos --- */
.saint-image-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Efecto de Marco Sagrado (Holy Card Frame) */
.saint-portrait-wrapper {
    padding: 12px;
    background-color: var(--bg-white);
    border: 1px solid rgba(212, 175, 55, 0.4); /* Borde dorado fino */
    box-shadow: -15px 15px 0 var(--primary); /* Sombra sólida azul marino (Brutalismo Elegante) */
}

.saint-grid.reverse .saint-portrait-wrapper {
    box-shadow: 15px 15px 0 var(--primary); /* La sombra cambia de lado en el layout inverso */
}

.saint-portrait-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4; /* Fuerza proporción de retrato clásico */
    object-fit: cover;
    display: block;
}

/* Caja de Metadatos (Festividad, etc.) */
.saint-meta-box {
    border-top: 2px solid var(--primary);
    padding-top: 1.5rem;
}

.meta-item {
    margin-bottom: 1rem;
}

.meta-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.meta-value {
    display: block;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

/* --- Columna de Texto (Biografía) --- */
.saint-text-col {
    display: flex;
    flex-direction: column;
}

.saint-name {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.gold-divider-left {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin-bottom: 2.5rem;
}

/* Citas Destacadas (Pull Quotes) */
.saint-quote {
    position: relative;
    margin: 3rem 0;
    padding: 2.5rem 3rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--gold);
}

/* Sobrescribimos el bg-light si la sección entera ya es bg-light */
.saint-profile-section.bg-light .saint-quote {
    background-color: var(--bg-white);
}

.saint-quote::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: var(--font-title);
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

.saint-quote {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
}

.saint-quote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    font-style: normal;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .saint-grid, 
    .saint-grid.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .saint-grid.reverse .saint-image-col,
    .saint-grid.reverse .saint-text-col {
        order: unset; /* Restaura el orden normal en móviles */
    }
    
    .saint-portrait-wrapper {
        max-width: 400px;
        margin: 0 auto;
        box-shadow: -10px 10px 0 var(--primary);
    }

    .saint-grid.reverse .saint-portrait-wrapper {
        box-shadow: -10px 10px 0 var(--primary); /* Unifica la sombra en móvil */
    }

    .saint-quote {
        padding: 2rem;
    }
}

/* =======================================================
   AVISO DE INTENCIONES DE MISA (NOTICE BOX)
   ======================================================= */
.intentions-notice-section {
    padding: 6vw 5% 2vw 5%; /* Más espacio arriba para separarlo del Hero */
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
}

.intentions-notice-container {
    width: 100%;
    max-width: 800px; /* Ancho controlado para lectura cómoda */
}

.intentions-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--gold); /* Acento dorado en la parte superior */
    padding: 3rem 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Sombra muy sutil */
    border-radius: 4px;
}

.intentions-icon {
    color: var(--gold);
    width: 36px;
    height: 36px;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.intentions-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.intentions-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

.intentions-text strong {
    color: var(--primary); /* El número de teléfono resalta en azul marino */
    font-weight: 600;
}

/* Responsive Design para el Aviso */
@media (max-width: 768px) {
    .intentions-box {
        padding: 2.5rem 1.5rem;
    }
    
    .intentions-title {
        font-size: 1.5rem;
    }
}

/* =======================================================
   HORARIOS COMPLETOS (PARISH SCHEDULE PAGE)
   ======================================================= */
.full-schedule-section {
    padding: 6vw 5% 8vw 5%;
    background-color: var(--bg-white);
}

.full-schedule-section.bg-light {
    background-color: var(--bg-light);
}

.full-schedule-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Cabecera de la Parroquia */
.parish-header {
    margin-bottom: 3.5rem;
}

.parish-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

/* Categorías (Liturgia vs Ministerios) */
.schedule-category {
    margin-bottom: 4rem;
}

.category-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Línea dorada fina */
}

/* Lista de Eventos */
.schedule-list {
    display: flex;
    flex-direction: column;
}

/* =======================================================
           COLUMNAS DE HORARIO (CONTROL MILIMÉTRICO)
           ======================================================= */
        
        /* Contenedor principal de la fila sigue siendo Flex */
        .schedule-list-row {
            display: flex;
            align-items: baseline; /* Alinea los textos por su base inferior */
            padding: 1.5rem 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            transition: background-color 0.3s ease, padding-left 0.3s ease;
        }

        /* 1. Columna Exclusiva para el DÍA */
        .schedule-day-col {
            width: 300px; /* <--- AJUSTA ESTE ANCHO (ej: 150px, 200px) */
            flex-shrink: 0;
            padding-right: 1.5rem;
        }

        .schedule-day {
            font-family: var(--font-title);
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.2;
            display: block;
        }

        /* 2. Columna Exclusiva para la HORA */
        .schedule-time-col {
            width: 200px; /* <--- AJUSTA ESTE ANCHO (ej: 100px, 140px) */
            flex-shrink: 0;
            padding-right: 1.5rem;
        }

        .schedule-time {
            font-family: var(--font-body);
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-gray);
            letter-spacing: 0.5px;
            display: block;
            text-align: center;
        }

        /* 3. Columna de Información (Ocupa el resto del espacio) */
        .schedule-info-col {
            flex-grow: 1;
        }

.event-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.schedule-list-row:hover .event-name {
    color: var(--primary); /* El título se vuelve azul al pasar el ratón */
}

.event-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Responsive Design para las 3 columnas */
        @media (max-width: 768px) {
            .schedule-list-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
                padding: 1.5rem 0;
            }
            
            .schedule-list-row:hover {
                padding-left: 0; 
                background-color: transparent;
            }

            /* Hacemos que en móvil el Día y la Hora se pongan uno al lado del otro */
            .schedule-day-col, 
            .schedule-time-col {
                width: auto; /* Anula el ancho fijo en móviles */
                padding-right: 0;
                display: inline-block;
            }

            /* Un pequeño truco para que se vean en la misma línea en el teléfono */
            .schedule-day-col {
                margin-right: 1rem;
            }

            .schedule-day {
                font-size: 1.2rem;
            }

            .event-name {
                font-size: 1.3rem;
                margin-top: 0.5rem;
            }
        }



        /* =======================================================
   CLERGY & STAFF (EQUIPO)
   ======================================================= */
.staff-section {
    padding: 4vw 3%;
    background-color: var(--bg-white);
}

.staff-section.bg-light {
    background-color: var(--bg-light);
}

.staff-container {
    max-width: 1200px;
    margin: 0 auto;
}

.staff-section-header {
    margin-bottom: 2rem;
}

/* Grillas */
.staff-grid {
    display: grid;
    gap: 3rem 2.5rem;
}

/* Clero: Fotos más grandes, 2 columnas en pantallas medianas/grandes */
.clergy-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 900px; /* Centra y limita el ancho para que no queden gigantes */
    margin: 0 auto;
}

/* Equipo regular: 3 columnas */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tarjeta individual */
/* Tarjeta individual (Centrada) */
.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente todos los elementos */
    text-align: center;  /* Centra el texto */
}

/* Contenedor Fotográfico (Pequeño y Circular) */
.staff-photo-wrapper {
    width: 180px;  /* Tamaño más pequeño y fijo */
    height: 180px; /* Alto idéntico al ancho para un círculo perfecto */
    border-radius: 50%; /* Hace que la imagen sea totalmente redonda */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--primary);
    border: 3px solid var(--bg-white); /* Borde blanco para separar */
    box-shadow: 0 12px 25px rgba(21, 41, 142, 0.15); /* Sombra suave para darle volumen */
    flex-shrink: 0; /* Evita que el círculo se deforme */
}

.staff-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(40%) contrast(1.1);
    transition: filter 0.6s ease, transform 1s ease;
}

.staff-card:hover .staff-photo-wrapper img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.08); /* Un zoom un poco más notorio para el círculo */
}

/* Información Tipográfica */
.staff-name {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.staff-role {
    display: inline-block; /* Cambiado a inline-block para que el borde inferior se ajuste al texto */
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4); /* Borde ahora es dorado y más sutil */
    padding-bottom: 0.8rem;
}

/* Área de Contacto (Centrada) */
.staff-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los iconos de contacto */
    gap: 0.6rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Mantiene ícono y texto juntos en el centro */
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-icon {
    font-size: 1.1rem;
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clergy-grid, 
    .team-grid {
        grid-template-columns: 1fr; /* Una sola columna en teléfonos */
        gap: 4rem; /* Más espacio entre personas para evitar confusión */
    }
    
    .staff-photo-wrapper {
        max-width: 320px; /* Evita que la foto se vea gigantesca en móvil */
        margin-left: auto;
        margin-right: auto;
    }
    
    .staff-info {
        text-align: center;
    }
    
    .staff-contact {
        align-items: center;
    }
}


/* =======================================================
   JOIN THE PARISH (DISEÑO DE REGISTRO)
   ======================================================= */
.join-section {
    padding: 8vw 5%;
    background-color: var(--bg-white);
}

.join-container {
    max-width: 1100px;
    margin: 0 auto;
}

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.join-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* Lista de Beneficios */
.join-benefits {
    list-style: none;
    padding: 0;
}

.join-benefits li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.join-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 800;
}

/* Tarjetas de Acción */
.registration-card {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.registration-card.secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.1);
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Botones específicos para esta página */
.btn-donate-solid {
    display: inline-block;
    background-color: var(--gold);
    color: var(--primary);
    padding: 1rem 2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

/* Responsive */
@media (max-width: 900px) {
    .join-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* =======================================================
   MINISTERIOS (CARDS GRID)
   ======================================================= */
/* Introducción */
.ministries-intro {
    padding: 6vw 5%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
}

.intro-container {
    max-width: 800px;
}

.intro-lead {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.bible-verse {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Directorio de Ministerios */
.ministries-directory {
    padding: 4vw 5% 8vw 5%;
}

.directory-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ministry-category {
    margin-bottom: 5rem;
}

.ministry-category:last-child {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 3rem;
}

/* Cuadrícula de Tarjetas */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Diseño de la Tarjeta */
.ministry-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-top: 4px solid var(--primary); /* Borde superior estructural */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-liquid), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ministry-card:hover {
    transform: translateY(-8px); /* Se eleva suavemente */
    border-top-color: var(--gold); /* El borde se vuelve dorado */
    box-shadow: 0 20px 40px rgba(21, 41, 142, 0.08); /* Sombra más pronunciada en hover */
}

.ministry-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.ministry-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2rem;
    flex-grow: 1; /* Empuja el contacto hacia abajo si los textos tienen distinto largo */
}

/* Zona de Contacto dentro de la tarjeta */
.ministry-contact {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.5rem;
    margin-top: auto;
}

.contact-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.ministry-contact a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ministry-contact a:hover {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .ministries-intro {
        padding: 10vw 5%;
    }
    .intro-lead {
        font-size: 1.4rem;
    }
    .ministry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ministry-card {
        padding: 2rem;
    }
}


/* =======================================================
   GALERÍA EDITORIAL DE MINISTERIOS (FOTOS GENERALES)
   ======================================================= */
.ministry-gallery-section {
    padding: 2vw 5% 6vw 5%; /* Poco padding arriba para que pegue con la intro */
    background-color: var(--bg-white);
}

.ministry-gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas del mismo ancho */
    gap: 2rem;
    align-items: center;
}

.gallery-item {
    border-radius: 4px; /* Bordes levísimamente redondeados */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(21, 41, 142, 0.08); /* Sombra elegante */
}

/* Efecto Editorial: La foto del medio se desplaza hacia abajo */
.gallery-grid .gallery-item:nth-child(2) {
    transform: translateY(40px);
}

.gallery-item img {
    width: 100%;
    height: 280px; /* Altura controlada (fotos moderadas) */
    object-fit: cover;
    display: block;
    filter: grayscale(20%); /* Un tono levísimamente apagado para la estética clásica */
    transition: transform 0.8s var(--ease-liquid), filter 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%); /* Revive el color al pasar el mouse */
}

/* Responsive Design para la Galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* En móviles se apilan una sobre otra */
        gap: 1.5rem;
    }
    
    /* En móviles desactivamos el desplazamiento de la foto central para que quede parejo */
    .gallery-grid .gallery-item:nth-child(2) {
        transform: translateY(0);
    }
    
    .gallery-item img {
        height: 220px;
    }
}





/* =======================================================
   CONTACTO Y SACRAMENTOS (CONTACT & SACRAMENTS PAGE)
   ======================================================= */

/* --- SECCIÓN 1: CONTACTO DIVIDIDO --- */
.contact-section {
    padding: 8vw 5%;
    background-color: var(--bg-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

/* Detalles de las oficinas */
.office-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.office-block {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
}

.office-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.office-block p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-methods {
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Formulario Premium */
.form-wrapper {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary);
}

.form-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estilos limpios para inputs y textareas */
.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* --- SECCIÓN 2: TARJETAS DE SACRAMENTOS --- */
.sacraments-section {
    padding: 6vw 5% 8vw 5%;
}

.sacraments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sacrament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.sacrament-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* Línea dorada superior fina */
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-liquid), box-shadow 0.4s ease;
}

.sacrament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(21, 41, 142, 0.08);
}

.sacrament-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.sacrament-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2rem;
    flex-grow: 1; /* Mantiene la sección de acción al fondo de la tarjeta */
}

/* Llamado a la acción en la tarjeta */
.sacrament-action {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.2rem;
    margin-top: auto;
}

.action-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.action-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .form-wrapper {
        padding: 2rem;
    }

    .sacrament-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* =======================================================
   STEWARDSHIP & GIVING (DONATIONS PAGE)
   ======================================================= */
.donate-intro-section {
    padding: 6vw 5%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
}

.donate-intro-container {
    max-width: 800px;
}

.donate-quote {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.donate-lead-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Grilla de Opciones */
.donate-options-section {
    padding: 6vw 5% 8vw 5%;
}

.donate-options-container {
    max-width: 1200px;
    margin: 0 auto;
}

.donate-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Tarjeta Principal (Online Giving) - Toma más jerarquía */
.donate-main-card {
    grid-column: span 3; /* Ocupa todo el ancho superior en pantallas grandes */
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(21, 41, 142, 0.12);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background-color: var(--gold);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    letter-spacing: 1px;
    border-radius: 2px;
}

.donate-main-card .donate-card-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-white);
    letter-spacing: -0.5px;
}

.donate-main-card .donate-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Tarjetas Secundarias */
.donate-sub-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 4px solid var(--primary);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-liquid), border-color 0.4s ease;
}

.donate-sub-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--gold);
    box-shadow: 0 15px 30px rgba(21, 41, 142, 0.06);
}

.donate-card-subtitle {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.donate-card-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Bloques informativos internos de las tarjetas */
.mail-details, 
.contact-box-snippet {
    background-color: var(--bg-light);
    padding: 1rem;
    border-left: 2px solid var(--gold);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-top: auto;
}

/* --- BLOQUE DE TRANSPARENCIA --- */
.transparency-notice-section {
    padding: 4vw 5% 8vw 5%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
}

.transparency-container {
    width: 100%;
    max-width: 850px;
}

.transparency-box {
    border: 1px dashed rgba(21, 41, 142, 0.2);
    padding: 3rem;
    text-align: center;
    background-color: var(--bg-light);
}

.transparency-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
    margin: 0 auto 1rem auto;
    display: block;
}

.transparency-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.transparency-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
    .donate-options-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets y móviles */
    }
    
    .donate-main-card {
        grid-column: span 1;
        padding: 2rem;
    }
    
    .card-badge {
        position: relative;
        top: 0; right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .donate-sub-card {
        padding: 2rem;
    }
    
    .transparency-box {
        padding: 2rem 1.5rem;
    }
}



/** contact 2 */
/* =======================================================
   CONTACT US (DUAL CAMPUS HUB)
   ======================================================= */

/* --- ALERTA DE EMERGENCIA --- */
.emergency-banner {
    background-color: var(--gold);
    padding: 1.5rem 5%;
}

.emergency-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    color: var(--primary);
}

.emergency-icon {
    font-size: 2rem;
    line-height: 1;
    margin-top: -2px;
}

.emergency-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.emergency-text strong {
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* --- TARJETAS GEMELAS DE SEDES --- */
.locations-section {
    padding: 6vw 5% 4vw 5%;
    background-color: var(--bg-white);
}

.locations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.location-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.location-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background-color: var(--primary);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    letter-spacing: 1px;
}

.location-badge.secondary {
    background-color: var(--bg-light);
    color: var(--text-gray);
    border: 1px solid rgba(0,0,0,0.1);
}

.location-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    font-family: var(--font-body);
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.map-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--gold);
}

/* --- FORMULARIO CENTRALIZADO --- */
.contact-form-section {
    padding: 4vw 5% 8vw 5%;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(21, 41, 142, 0.05);
    border-top: 4px solid var(--gold);
}

/* Reutilizamos .premium-form pero le añadimos grid para filas */
.centered-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.centered-form .form-group {
    margin-bottom: 1.5rem;
}

.centered-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.centered-form input,
.centered-form select,
.centered-form textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-light); /* Fondo suave para los campos */
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.centered-form input:focus,
.centered-form select:focus,
.centered-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-submit {
    margin-top: 2rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .location-badge {
        position: relative;
        top: 0; right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .location-card {
        padding: 2.5rem 2rem;
    }

    .form-container {
        padding: 2.5rem 1.5rem;
    }

    .centered-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* =======================================================
           VISOR DE BOLETINES (FLIPBOOK)
           ======================================================= */
.flipbook-loading {
    font-family: var(--font-body);
    color: var(--text-light);
    padding: 4rem 0;
}

.flipbook-container {
    margin: 2rem auto 0;
}

.flipbook-container canvas,
.flipbook-container img {
    box-shadow: 0 10px 30px rgba(21, 41, 142, 0.15);
}

.flipbook-controls {
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.flipbook-nav-btn {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.flipbook-nav-btn:hover {
    background-color: var(--gold);
}

.flipbook-page-indicator {
    font-family: var(--font-titles);
    font-size: 1rem;
    color: var(--text-light);
    min-width: 4rem;
    text-align: center;
}

/* =======================================================
           GALERÍA DE FOTOS (EVENTOS + LIGHTBOX)
           ======================================================= */
.gallery-events-section {
    padding: 4vw 5% 8vw;
    background-color: var(--bg-white);
}

.gallery-events-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-event {
    margin-bottom: 5rem;
}

.gallery-event:last-child {
    margin-bottom: 0;
}

.gallery-event-header {
    margin-bottom: 1.75rem;
}

.gallery-event-date {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.gallery-event-title {
    font-family: var(--font-titles);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.gallery-event-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.6;
}

.gallery-event-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-photo-thumb {
    display: block;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(21, 41, 142, 0.08);
}

.gallery-photo-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
    transition: transform 0.8s var(--ease-out-expo), filter 0.5s ease;
}

.gallery-photo-thumb:hover img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.gallery-empty-notice {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 0;
}

/* --- Lightbox --- */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 30, 0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-caption {
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-close {
    top: -3.5rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.4rem;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.6rem;
}

.gallery-lightbox-prev { left: -4.5rem; }
.gallery-lightbox-next { right: -4.5rem; }

@media (max-width: 900px) {
    .gallery-lightbox-prev { left: 0.5rem; }
    .gallery-lightbox-next { right: 0.5rem; }
    .gallery-lightbox-close { top: 0.5rem; right: 0.5rem; }
    .gallery-event-photos {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    .gallery-photo-thumb img {
        height: 140px;
    }
}

/* =======================================================
           NEWS (FEED UNIFICADO + ARTÍCULO)
           ======================================================= */
.compact-type-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.compact-type-tag.type-bulletin {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.compact-type-tag.type-document {
    background: rgba(21, 41, 142, 0.08);
    color: var(--primary);
}

.compact-type-tag.type-article {
    background: rgba(21, 41, 142, 0.08);
    color: var(--primary);
}

.compact-type-tag.type-external {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-gray, #666);
}

.news-empty-notice {
    text-align: center;
    color: var(--text-light);
    padding: 4rem 0;
}

.single-article-thumb {
    margin: 0 0 2rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(21, 41, 142, 0.08);
}

.single-article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Site Alert Modal (special schedule / important news popup) --- */
.site-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 30, 0.55);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.site-alert-overlay.is-open {
    display: flex;
}

.site-alert-modal {
    position: relative;
    background: var(--bg-white);
    max-width: 480px;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    border-radius: 6px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: siteAlertIn 0.35s var(--ease-out-expo);
}

.site-alert-modal.site-alert-type-important { border-top-color: var(--primary); }
.site-alert-modal.site-alert-type-urgent { border-top-color: #c0392b; }

@keyframes siteAlertIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-alert-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.site-alert-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.site-alert-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.site-alert-type-important .site-alert-badge { color: var(--primary); }
.site-alert-type-urgent .site-alert-badge { color: #c0392b; }

.site-alert-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.8rem;
}

.site-alert-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.3rem;
}

.site-alert-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.6rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.site-alert-button:hover {
    background: var(--gold);
}

@media (max-width: 480px) {
    .site-alert-modal {
        padding: 2.2rem 1.4rem 1.6rem;
    }
}