/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
:root {
    --primary-dark: #0f172a; 
    --accent-gold: #d4af37;  
    --text-gray: #4b5563;    
    --bg-light: #eef2f6; /* <--- Color nuevo: Un gris azulado más visible */
    --danger: #dc3545;       
    --section-alt: #f1f5f9; /* Color alternativo extra */
}

body {
    font-family: 'Inter', sans-serif, 'Poppins';
    color: var(--text-gray);
    background-color: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4, h5 { font-family: 'Cinzel', serif; font-weight: 700; color: var(--primary-dark); }
a { text-decoration: none; }

/* --- CAMBIO PRINCIPAL: REDUCCIÓN DE ESPACIOS --- */
.section-padding { padding: 50px 0; } /* Antes era 100px, ahora 50px */

/* Separadores más discretos */
.divider-gold { width: 50px; height: 3px; background-color: var(--accent-gold); margin: 15px auto; border-radius: 2px; }
.divider-icon { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; opacity: 0.6; }
.divider-line { height: 1px; width: 40px; background-color: var(--accent-gold); }


/* ==========================================================================
   2. NAVBAR (Más compacto)
   ========================================================================== */
.navbar {
    background-color: rgba(15, 23, 42, 0.98) !important;
    padding: 10px 0; /* Reducido de 15px a 10px */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.nav-link { font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: rgba(255,255,255,0.9) !important; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent-gold) !important; }
.navbar-brand { color: white !important; font-family: 'Cinzel', serif; letter-spacing: 1px; }


/* ==========================================================================
   3. HERO / PORTADAS
   ========================================================================== */
/* Carrusel Principal */
#heroCarousel .carousel-item { height: 75vh; min-height: 500px; background-color: #000; } /* Altura reducida */
#heroCarousel .carousel-item img { height: 100%; object-fit: cover; opacity: 0.6; filter: saturate(0.8); }
.hero-content { position: absolute; bottom: 35%; left: 0; right: 0; text-align: center; z-index: 2; }
.hero-title { font-size: 3rem; color: white; text-shadow: 0 5px 15px rgba(0,0,0,0.5); letter-spacing: 2px; margin-bottom: 10px; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,0.9); margin-bottom: 25px; letter-spacing: 1px; font-family: 'Inter', sans-serif; }
.btn-hero { background: transparent; border: 2px solid var(--accent-gold); color: white; padding: 10px 30px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; transition: 0.3s; }
.btn-hero:hover { background: var(--accent-gold); color: black; border-color: var(--accent-gold); }

/* Tarjetas Flotantes (Info) - Más pegadas al slider */
.floating-cards { margin-top: -60px; position: relative; z-index: 10; margin-bottom: 40px; }
.info-box { background: white; padding: 30px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); height: 100%; border-bottom: 3px solid transparent; transition: 0.3s; }
.info-box:hover { border-bottom-color: var(--accent-gold); transform: translateY(-5px); }
.info-icon { font-size: 2rem; color: var(--accent-gold); margin-bottom: 15px; display: block; }

/* Cabeceras Internas */
.page-header {
    position: relative; height: 350px; /* Reducido */
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: white !important; margin-bottom: 40px; background-color: var(--primary-dark);
}
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.7); z-index: 1; }
.header-content { position: relative; z-index: 2; padding: 20px; }
.page-title { font-family: 'Cinzel', serif; font-size: 3rem; text-shadow: 0 4px 20px rgba(0,0,0,0.8); margin-bottom: 10px; color: white; }


/* ==========================================================================
   4. MINISTERIOS (Scroll Horizontal & Draggable)
   ========================================================================== */
.ministerios-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px 40px 5px; /* Espacio para la sombra inferior */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ocultar barra en Firefox */
    -ms-overflow-style: none; /* Ocultar barra en IE/Edge */
    cursor: grab; /* Manito para indicar que se puede arrastrar */
}
.ministerios-scroll-wrapper::-webkit-scrollbar { display: none; } /* Ocultar en Chrome */

.ministerios-scroll-wrapper.active { cursor: grabbing; scroll-behavior: auto; }

.min-card-horizontal {
    flex: 0 0 280px; /* ANCHO FIJO OBLIGATORIO */
    height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    user-select: none; /* Evita que el texto se seleccione al arrastrar */
    background: #000; /* Fondo negro por si la imagen tarda en cargar */
}

.min-card-horizontal:hover { transform: translateY(-10px); z-index: 2; }

.min-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.8;
}
.min-card-horizontal:hover .min-img { transform: scale(1.1); opacity: 0.6; }

.min-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    pointer-events: none;
}

.min-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 12px;
    text-transform: uppercase;
}

.min-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    /* Limitar a 3 líneas de texto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   5. REUNIONES (Más Compacto)
   ========================================================================== */
.reuniones-carousel-wrapper { position: relative; overflow: hidden; padding: 10px 0 30px 0; }
.reuniones-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; cursor: grab; padding: 5px; scrollbar-width: none; }
.reu-card-carousel { flex: 0 0 300px; text-align: center; user-select: none; }
.reu-card-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); text-transform: uppercase; margin-bottom: 5px; }
.reu-card-link { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--danger); display: inline-block; margin-bottom: 10px; cursor: pointer; text-decoration: none; }
.reu-card-img-container { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; cursor: pointer; height: 180px; } /* Altura reducida */
.reu-card-img-container:hover { transform: translateY(-5px); }
.reu-card-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }


/* ==========================================================================
   6. EVENTOS
   ========================================================================== */
.events-wrapper { display: flex; overflow-x: auto; gap: 15px; padding: 10px 5px 30px 5px; scrollbar-width: none; }
.evt-card-h { flex: 0 0 240px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; position: relative; }
.evt-card-h:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.evt-img-h { width: 100%; height: 280px; object-fit: cover; transition: 0.5s; }
.evt-card-h:hover .evt-img-h { transform: scale(1.05); }
.evt-date-badge { position: absolute; top: 10px; left: 10px; background: white; color: #333; border-radius: 6px; padding: 4px 10px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.2); z-index: 2; }
.evt-day { font-size: 1.2rem; font-weight: 800; line-height: 1; color: var(--danger); }
.evt-month { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.evt-overlay-title { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 15px 10px; color: white; }
.evt-overlay-title h6 { font-size: 0.95rem; margin-bottom: 0; }

/* Grid Página Eventos */
.evt-grid-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; cursor: pointer; border: none; }
.evt-grid-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.evt-grid-img { height: 200px; width: 100%; object-fit: cover; }
.date-box { background: var(--danger); color: white; padding: 8px 10px; border-radius: 6px; text-align: center; display: flex; flex-direction: column; min-width: 60px; margin-right: 10px; }


/* ==========================================================================
   7. LIDERAZGO
   ========================================================================== */
.pastor-minimal { text-align: center; padding: 15px; background: white; border: 1px solid #f0f0f0; transition: 0.3s; border-radius: 10px; }
.pastor-minimal:hover { border-color: var(--accent-gold); box-shadow: 0 5px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.pastor-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; filter: grayscale(100%); transition: 0.3s; border: 3px solid #f8f9fa; }
.pastor-minimal:hover .pastor-img { filter: grayscale(0%); border-color: var(--accent-gold); }


/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding-top: 50px; /* Reducido de 80px */
    padding-bottom: 20px; /* Reducido */
    border-top: 1px solid rgba(255,255,255,0.05);
    /* Corrección de clics */
    position: relative; 
    z-index: 100;
    width: 100%;
    clear: both;
}

.footer-title { font-family: 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 20px; letter-spacing: 0.5px; color: white; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 8px; font-size: 0.85rem; transition: 0.3s; cursor: pointer; }
.footer-link:hover { color: var(--accent-gold); padding-left: 5px; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; font-size: 0.85rem; }

/* Redes Sociales */
.social-wrapper { display: flex; gap: 8px; }
.social-btn {
    width: 35px; height: 35px; background: rgba(255, 255, 255, 0.1);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white; text-decoration: none; font-size: 1rem;
    transition: all 0.3s ease; position: relative; border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer; z-index: 101;
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); color: white; border-color: transparent; }
.social-btn.facebook:hover { background: #1877F2; box-shadow: 0 0 10px #1877F2; }
.social-btn.youtube:hover { background: #FF0000; box-shadow: 0 0 10px #FF0000; }
.social-btn.instagram:hover { background: #E1306C; box-shadow: 0 0 10px #E1306C; }
.social-btn.whatsapp:hover { background: #25D366; box-shadow: 0 0 10px #25D366; }
.social-btn.twitter:hover, .social-btn.x:hover { background: #000000; box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

.social-circle {
    display: inline-flex; width: 35px; height: 35px;
    background: white; color: #0a0f1c; border-radius: 50%;
    align-items: center; justify-content: center; font-size: 1.1rem;
    margin-right: 8px; transition: 0.3s; text-decoration: none; cursor: pointer;
}
.social-circle:hover { transform: scale(1.1); background: var(--accent-gold); color: white; }


/* ==========================================================================
   9. WHATSAPP & MODALES
   ========================================================================== */
.whatsapp-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.btn-wa-float {
    background: #25d366; color: white; width: 55px; height: 55px;
    border-radius: 50%; border: none; font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
}
.btn-wa-float:hover { transform: scale(1.1); }

.wa-chat-box {
    position: absolute; bottom: 70px; right: 0; width: 300px;
    background: white; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    visibility: hidden; opacity: 0; transform: translateY(15px);
    transition: 0.3s; overflow: hidden;
}
.wa-chat-box.active { visibility: visible; opacity: 1; transform: translateY(0); }
.wa-header { background: #075e54; color: white; padding: 12px; display: flex; align-items: center; }
.wa-body { background: #e5ddd5; padding: 12px; }

/* Reader Modal */
.modal-content-reader { border: none; border-radius: 0; background: #fff; }
.reader-container { max-width: 700px; margin: -60px auto 0; position: relative; background: white; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-radius: 8px 8px 0 0; }
.reader-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: var(--primary-dark); }
.reader-body { font-family: 'Merriweather', serif; font-size: 1.1rem; line-height: 1.8; color: #2c3e50; }
.btn-close-floating { position: absolute; top: 15px; right: 15px; z-index: 1056; background: rgba(255,255,255,0.9); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* =========================================
   OPCIONES DE DISEÑO: SOMOS FAMILIA
   ========================================= */

/* --- OPCIÓN 1: CINEMÁTICO (Overlay Oscuro) --- */
.welcome-option-1 {
    position: relative;
    padding: 120px 0;
    color: white;
    background-color: var(--primary-dark); /* Color de respaldo */
    overflow: hidden;
}
/* La imagen de fondo se pondrá en línea en el HTML o vía JS */
.welcome-bg-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.4; /* Oscurecer imagen */
    filter: blur(2px); transform: scale(1.1);
}
.welcome-content-1 {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto; text-align: center;
}
.welcome-btn-1 {
    border: 2px solid var(--accent-gold); color: white;
    padding: 12px 40px; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s; background: transparent;
}
.welcome-btn-1:hover { background: var(--accent-gold); color: black; }


/* --- OPCIÓN 2: SPLIT MODERNO (Mitad Oscura / Mitad Imagen) --- */
.welcome-option-2 { background-color: white; padding: 0; overflow: hidden; }
.split-text-col {
    background-color: var(--primary-dark);
    padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
}
.split-title { color: white; font-size: 3rem; margin-bottom: 20px; }
.split-desc { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.split-img-col { padding: 0; min-height: 500px; }
.split-img-col img { width: 100%; height: 100%; object-fit: cover; }
.welcome-btn-2 {
    background: var(--accent-gold); color: white; padding: 15px 30px;
    border: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.welcome-btn-2:hover { background: white; color: var(--primary-dark); }


/* --- OPCIÓN 3: TARJETA FLOTANTE (Overlap) --- */
.welcome-option-3 { padding: 100px 0; background-color: var(--bg-light); }
.floating-text-card {
    background: white; padding: 60px; border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    position: relative; z-index: 10;
    margin-right: -80px; /* Hace que se monte sobre la imagen */
}
.floating-img-container {
    height: 500px; border-radius: 15px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: relative; z-index: 1;
}
.floating-img-container img { width: 100%; height: 100%; object-fit: cover; }
.welcome-btn-3 {
    border-bottom: 2px solid var(--accent-gold); color: var(--primary-dark);
    padding-bottom: 5px; font-weight: 700; text-transform: uppercase;
}
.welcome-btn-3:hover { color: var(--accent-gold); letter-spacing: 1px; }

/* Ajuste móvil para Opción 3 */
@media (max-width: 991px) {
    .floating-text-card { margin-right: 0; margin-bottom: 30px; text-align: center; }
}

/* =========================================
   ESTILOS DE PÁGINA INTERNA
   ========================================= */

/* Estilo para el texto que viene del editor */
.contenido-dinamico {
    font-family: 'Merriweather', serif; /* Fuente serif para lectura cómoda */
    font-size: 1.1rem;
    line-height: 1.8; /* Buen espaciado entre líneas */
    color: #333;
}

.contenido-dinamico h2, 
.contenido-dinamico h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.contenido-dinamico ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.contenido-dinamico li {
    margin-bottom: 10px;
}

.contenido-dinamico img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tarjeta del Líder (Sidebar) */
.leader-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.leader-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 20px auto; /* Centrar imagen */
    display: block;
}

.leader-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.leader-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================
   MENÚ DESPLEGABLE AUTOMÁTICO (HOVER) - REFORZADO
   ========================================= */

/* Solo para PC/Laptop (Pantallas mayores a 992px) */
@media (min-width: 992px) {
    
    /* 1. Forzar que se muestre al pasar el mouse sobre el ítem completo */
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important; /* El !important vence a Bootstrap */
        margin-top: 0; /* Elimina espacios para que no se cierre */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    /* 2. Pequeña animación de entrada */
    .navbar .dropdown-menu {
        display: none; /* Oculto por defecto */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px); /* Empieza un poco más abajo */
    }

    /* 3. Ajuste para quitar el triangulito o bordes raros si los hubiera */
    .navbar .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -5px; /* Crea un puente invisible hacia arriba */
        left: 0;
        width: 100%;
        height: 10px;
    }
}


/* =========================================
   ESTILOS DE PÁGINA INTERNA (pagina.php)
   ========================================= */

/* --- Galería Compacta --- */
.gallery-mini-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.gallery-mini-item:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.gallery-mini-item img {
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-mini-item:hover img {
    transform: scale(1.08); /* Zoom suave */
    filter: brightness(0.9);
}

/* Icono de lupa al pasar el mouse */
.gallery-overlay {
    position: absolute; 
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: 0.3s;
}

.gallery-mini-item:hover .gallery-overlay { 
    opacity: 1; 
}

/* --- Tarjeta del Líder --- */
.leader-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.leader-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 20px auto;
    display: block;
}

.leader-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.leader-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Estilos de contenido enriquecido (Texto del editor) */
.contenido-dinamico img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
.contenido-dinamico ul, .contenido-dinamico ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* Contenedor principal de la sección */
#bienvenida {
    position: relative;
    /* Asegúrate de que la imagen de fondo tenga un ligero filtro cálido si es posible */
}

/* La tarjeta de texto flotante */
.floating-text-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%); /* Degradado muy sutil hacia crema */
    padding: 3rem;
    /* FORMA ORGÁNICA: Esto reemplaza el border-radius simple */
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    /* SOMBRA CÁLIDA: Un resplandor dorado suave */
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.2);
    position: relative;
    z-index: 2;
    max-width: 550px; /* Limitar el ancho para que no se vea enorme */
    transition: all 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.floating-text-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(218, 165, 32, 0.3);
}

/* Título principal */
.display-5.fw-bold {
    color: #2c3e50; /* Un azul oscuro cálido en vez de negro puro */
    font-family: 'Cinzel', serif; /* Asegurar que use la fuente elegante */
}

/* El pequeño texto "BIENVENIDOS" */
.text-warning {
    color: #d4af37 !important; /* Un dorado más rico */
    letter-spacing: 2px;
    font-weight: 800;
}

/* Párrafo */
.floating-text-card p.text-muted {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6c757d;
}

/* Botón mejorado */
.welcome-btn-3 {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #d4af37; /* Fondo dorado */
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* Botón redondeado */
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.welcome-btn-3:hover {
    background-color: #b39024; /* Dorado más oscuro al hover */
    transform: scale(1.05);
    box-shadow: 0 15px 25px -10px rgba(212, 175, 55, 0.7);
}

.welcome-btn-3 i {
    margin-left: 10px;
    transition: margin-left 0.3s;
}
.welcome-btn-3:hover i {
    margin-left: 15px;
}

/* =========================================
   NUEVA CABECERA PROFESIONAL
   ========================================= */

/* 1. Barra Superior (Top Bar) */
.top-bar {
    background-color: #0d1b2a; /* Azul muy oscuro */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}
.top-bar a:hover { color: #fff; }
.top-bar i { color: var(--accent-gold); margin-right: 5px; }

/* 2. Barra de Navegación Principal */
.navbar-custom {
    background-color: #1b263b; /* Azul oscuro elegante */
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Nombre de la Iglesia */
.brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Enlaces del Menú */
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    position: relative;
    transition: 0.3s;
}

/* Efecto Hover (Subrayado Dorado Animado) */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-gold); /* Tu color dorado */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 80%; /* Ancho de la línea al pasar el mouse */
}

.navbar-custom .nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Dropdown Menu (Submenús) */
.dropdown-menu {
    background-color: #1b263b;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 15px; /* Separación para que no se cierre al bajar el mouse */
}
.dropdown-item {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--accent-gold);
    padding-left: 25px; /* Pequeño movimiento a la derecha */
    transition: 0.3s;
}

.hover-gold:hover {
    color: var(--accent-gold) !important;
    text-decoration: underline !important;
}

/* Asegura que el menú esté siempre encima */
.navbar {
    z-index: 1050; 
}

/* Opcional: Hace que el menú se abra al pasar el mouse en PC */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
    }
}

/* Estilo del Dropdown */
.dropdown-menu {
    border-radius: 0 0 10px 10px; /* Bordes redondeados abajo */
    padding: 0;
    overflow: hidden;
}
.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    transition: 0.3s;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #d4af37; /* Tu color dorado */
    padding-left: 25px; /* Efecto de movimiento */
}

/* FORZAR FLECHAS ENCIMA DE TODO */
.swiper-button-next, 
.swiper-button-prev, 
.swiper-pagination {
    z-index: 99 !important; /* Capa superior absoluta */
    cursor: pointer;
}

/* Hacerlas un poco más visibles */
.swiper-button-next, 
.swiper-button-prev {
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    background-color: rgba(0,0,0,0.2); /* Fondo sutil para mejorar clic */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Asegurar que se vean en móvil también (Opcional) */
.d-none.d-md-block {
    display: block !important; /* Forzar mostrar en celular si lo deseas */
}

/* Estilos Generales */
    .ls-1 { letter-spacing: 2px; }
    .font-title { font-family: 'Cinzel', serif; /* O tu fuente de títulos */ }
    
    /* Iconos */
    .icon-box { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border-radius: 50%; }
    
    /* Efectos Hover */
    .hover-up { transition: transform 0.3s; }
    .hover-up:hover { transform: translateY(-5px); }
    
    /* Galería */
    .gallery-item { cursor: pointer; height: 250px; position: relative; }
    .hover-zoom { transition: transform 0.5s ease; }
    .gallery-item:hover .hover-zoom { transform: scale(1.1); }
    
    .divider-gold { height: 4px; width: 60px; background-color: #d4af37; border-radius: 2px; }
    .object-fit-cover { object-fit: cover; }

    .content-body { font-size: 1.1rem; line-height: 1.8; color: #555; }
    .hover-zoom { transition: transform 0.3s; cursor: pointer; }
    .hover-zoom:hover { transform: scale(1.05); }
    .object-fit-cover { object-fit: cover; }

    
    /* Cabecera */
    .page-header {
        height: 400px;
        background-size: cover;
        background-position: center;
        background-attachment: fixed; /* Efecto Parallax sutil */
    }
    .page-header .overlay {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(rgba(26, 37, 47, 0.7), rgba(26, 37, 47, 0.9));
    }
    .divider-gold { height: 4px; width: 80px; background-color: #d4af37; border-radius: 2px; }
    .ls-2 { letter-spacing: 2px; }
    
    /* Tarjetas */
    .meeting-card { border-radius: 12px; transition: transform 0.3s, box-shadow 0.3s; }
    .hover-lift:hover { transform: translateY(-10px); box-shadow: 0 1rem 3rem rgba(0,0,0,.15)!important; }
    
    /* Imagen y Badge Fecha */
    .card-img-wrapper { height: 220px; overflow: hidden; position: relative; }
    .card-img-top { height: 100%; width: 100%; object-fit: cover; transition: 0.5s; }
    .hover-lift:hover .card-img-top { transform: scale(1.05); }
    
    .date-badge {
        position: absolute; top: 15px; left: 15px;
        background: rgba(255,255,255,0.95);
        color: #1a252f;
        padding: 8px 15px;
        border-radius: 50px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        font-family: 'Cinzel', serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-left: 4px solid #d4af37;
    }

    /* Detalles */
    .small-details { font-size: 0.95rem; line-height: 1.5; }
    .badge { font-weight: 600; letter-spacing: 0.5px; }

   