/* =========================
   ✅ VERSIÓN FINAL - SCROLL FIX 2026-01-27 - ENCUENTRA IGLESIAS
   Variables y base
========================= */

/* ===================================================== */
/* 🔤 Restaurar tipografía original Montserrat (2025 PRO) */
/* ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: transparent; /* fondo global definido en layout_start.php (sky-blue gradient) */
    overscroll-behavior-y: none; /* Previene el bounce scroll en iOS */
}

/* ===================================================== */
/* 💪 Tipografía de encabezados con peso fuerte (Pro Look) */
/* ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

:root {
    --primary-blue: #123c68;
    --primary-blue-2: #1f4c84;
    --secondary-blue: #2563eb;
    --dark-blue: #0f2f52;
    --gold: #d9a028;
    --accent-gold: #d69e2e;
    --white: #fff;
    --text: #1f2d3d;
    --muted: #6b7b8c;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --header-h: 80px;
    --max-w: 1200px;
}

* {
    box-sizing: border-box;
}

/* ===================================================== */
/* ===================================================== */
/* ??????? FIX: Reglas base html/body (restaurado de v0.9.0) */
/* ===================================================== */
html,
body {
    margin: 0;
    padding: 0;
}

html {
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: none;
    overflow-x: hidden;
    width: 100%;
}
#root,
#app,
main {
    min-height: 100vh;
}

/* Header: extender fondo hacia arriba y prevenir gaps */
.ei-navbar {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer: eliminar gaps y asegurar que esté pegado al final */
footer,
footer.site-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 30px !important;
}

/* Asegurar que el contenido antes del footer no tenga margen extra */
.section:last-of-type,
section:last-of-type {
    margin-bottom: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================== */
/* ✨ HEADER OPTIMIZADO - Máximo espacio para menú       */
/* ===================================================== */

:root {
    --header-h: 70px;
    --max-w: 1400px;
}

/* Header fijo sólido */
.ei-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(13, 40, 70, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* Extender fondo azul hacia arriba para evitar gap blanco */
.ei-navbar::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(13, 40, 70, 1);
    z-index: -1;
}

.ei-navbar.scrolled {
    background: rgba(10, 30, 55, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Contenedor interno amplio */
.ei-navbar .head_in {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* ← Reducido para pegar más a los bordes */
}

.ei-navbar .head_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-h);
    gap: 20px;
}

/* Logo compacto */
.ei-navbar .head_left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0;
}

/* Navegación centrada */
.ei-navbar .ei-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Selector de idiomas a la derecha */
.ei-navbar .head_right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    z-index: 10000;
}

/* Logo visible en todas las pantallas */
.ei-navbar .logo {
    margin: 0 20px 0 0;
    padding: 0;
    display: block;
}

.ei-navbar .logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* Navegación */
.ei-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 auto;
}

/* Menú principal compacto */
.ei-nav-menu {
    display: flex;
    align-items: center;
    gap: 0px; /* ← ELIMINADO gap (de 2px a 0px) */
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.ei-nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Enlaces del menú - más compactos */
.ei-nav-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 6px; /* ← REDUCIDO de 9px a 6px */
    font-size: 0.84rem; /* ← REDUCIDO de 0.86rem */
    font-weight: 600;
    letter-spacing: 0.1px; /* ← REDUCIDO espacio entre letras */
    color: #cfe1ff;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Separadores más gruesos y visibles */
.ei-nav-menu li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 2px; /* ← AUMENTADO de 1px a 2px (más grueso) */
    height: 16px; /* ← AUMENTADO de 12px a 16px (más alto) */
    background: rgba(247, 201, 72, 0.5); /* ← MÁS OPACO (0.5 en lugar de 0.3) */
    margin: 0 3px; /* ← REDUCIDO de 4px a 3px (menos espacio) */
}

.ei-nav-menu a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.ei-nav-menu a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Padding body para header fijo */
body {
    padding-top: var(--header-h);
}


/* Botón hamburguesa móvil */
.ei-hamburger {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 8px 12px;
    margin-right: 8px;
    z-index: 2100;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ei-hamburger .bar {
    width: 26px;
    height: 3px;
    background: #cfe1ff;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

.hamburger-text {
    color: #cfe1ff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    display: none !important; /* Oculto por defecto, visible solo en móvil */
}

/* Overlay móvil */
.ei-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500;
}

.ei-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Botón cerrar menú móvil - oculto en desktop */
.mobile-close-btn {
    display: none !important;
}

/* Asegurar que hamburguesa esté oculta en desktop (>1350px) */
@media (min-width: 1351px) {
    .ei-hamburger,
    .hamburger-text {
        display: none !important;
        visibility: hidden !important;
    }
}

.btn-close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: rgb(255, 255, 255) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 8px;
    color: #dc3545 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 16px;
}

.btn-close-menu:hover {
    background: rgb(255, 255, 255) !important;
    border-color: #dc3545 !important;
}

.btn-close-menu .close-text {
    color: #dc3545 !important;
}

.btn-close-menu .close-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* ===================================================== */
/* 📱 RESPONSIVE                                         */
/* ===================================================== */

/* Pantallas grandes (más de 1400px) - más espacio */
@media (min-width: 1400px) {
    .ei-nav-menu a {
        padding: 0 11px;
        font-size: 0.9rem;
    }

    .ei-nav-menu li:not(:last-child)::after {
        margin: 0 6px;
    }
}

/* Pantallas medianas (1200px - 1400px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .ei-nav-menu a {
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .ei-nav-menu li:not(:last-child)::after {
        margin: 0 5px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .ei-navbar .head_in {
        padding: 0 16px;
    }

    .ei-navbar .head_inner {
        gap: 30px;
    }

    .ei-navbar .logo img {
        height: 38px;
    }

    .ei-nav-menu a {
        font-size: 0.82rem;
        padding: 0 7px;
    }

    .ei-nav-menu li:not(:last-child)::after {
        margin: 0 3px;
    }
}

/* ===================================================== */
/* 🍔 MENÚ MÓVIL/TABLET - ÚNICO, SIN CONFLICTOS (0–1350px) */
/* ===================================================== */
@media (max-width: 1350px) {

    /* Forzar header completamente estable */
    .ei-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transition: none !important;
        will-change: auto !important;
        height: var(--header-h) !important;
        min-height: var(--header-h) !important;
        max-height: var(--header-h) !important;
        overflow: visible !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    .ei-navbar .head_in,
    .ei-navbar .head_inner {
        overflow: visible;
    }

    /* Ajustar padding del header en móvil */
    .ei-navbar .head_in {
        padding: 0 10px !important;
    }
    
    .ei-navbar .head_inner {
        gap: 10px !important;
    }
    
    .ei-navbar .logo {
        margin: 0 10px 0 0 !important;
    }
    
    .ei-navbar .logo img {
        height: 40px !important;
    }
    
    /* Mostrar hamburguesa - FORZADO EN TODAS LAS VISTAS */
    .ei-hamburger {
        display: flex !important;
        z-index: 99999999 !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        pointer-events: auto !important;
        min-height: 44px !important; /* Área táctil mínima recomendada */
        padding: 10px 12px !important;
        margin-right: 0 !important;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .ei-hamburger:active {
        background-color: rgba(212, 160, 23, 0.15);
    }
    
    /* Mostrar texto "Menú" solo en móvil */
    .hamburger-text {
        display: inline-block !important;
    }

    /* Menú lateral */
    .ei-nav-menu {
        position: fixed;
        top: var(--header-h);
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - var(--header-h));
        background: #0f2f52;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 20px;
        padding-bottom: 40px;
        gap: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        transition: left 0.3s ease !important;
        z-index: 9999999 !important;
        display: flex !important;
    }

    .ei-nav-menu.active {
        left: -10px;
    }

    .ei-nav-menu li {
        width: 100% !important;
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ei-nav-menu a {
        display: block !important;
        width: 100% !important;
        padding: 16px 24px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        font-size: 1rem !important;
        color: #cfe1ff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Quitar separadores */
    .ei-nav-menu li:not(:last-child)::after {
        display: none !important;
    }

    /* Overlay detrás del menú */
    .ei-nav-overlay {
        z-index: 9999998 !important;
    }

    /* Botón cerrar */
    .mobile-close-btn {
        display: block !important;
        margin-top: auto;
    }

    /* Animación hamburguesa - ajustada para el nuevo contenedor */
    .ei-hamburger.active .hamburger-icon .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .ei-hamburger.active .hamburger-icon .bar:nth-child(2) {
        opacity: 0;
    }

    .ei-hamburger.active .hamburger-icon .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Selector de idiomas en móvil */
    .ei-navbar .head_right {
        display: flex;
    }

    .ei-navbar .ei-nav {
        display: none; /* Ocultar nav en móvil cuando menú no está abierto */
    }
}

@media (max-width: 480px) {
    .ei-navbar .head_in {
        padding: 0 12px;
    }

    .ei-navbar .logo img {
        height: 36px;
    }
}

/* Safety: restaura menú en desktop (solo >1350px, NO tablets) */
@media (min-width: 1351px) {
    .ei-nav-menu {
        position: static !important;
        height: auto !important;
        left: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: none !important;
    }
}
/* =========================
   HERO / Banner
========================= */
.hero,
.banner {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue-2));
    overflow: visible;
    margin-top: 0 !important;
    padding-top: var(--header-h) !important;
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.12;
    z-index: 0;
}
.banner_in {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: var(--white);
    padding: 48px 0;
}
.banner_logo {
    width: 300px;
    height: 300px;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    padding: 20px;
}
.banner h1 {
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 1.1;
    margin: 8px 0 16px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.banner p.lead {
    max-width: 900px;
    margin: 0 auto 28px;
    color: #e3eeff;
    font-weight: 500;
}

/* =========================
   Buscador del hero
========================= */
.search-wrap {
    display: flex;
    justify-content: center;
}
.search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    padding: 14px 14px 14px 22px;
    box-shadow: var(--shadow);
    max-width: 620px;
    width: 100%;
}
.search input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 1rem;
    color: #223;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 36px;
    font-weight: 700;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.btn--gold {
    background: var(--gold);
    color: #1f2430;
    padding: 12px 20px;
    box-shadow: 0 8px 18px rgba(217, 160, 40, 0.25);
}
.btn--ghost {
    background: transparent;
    color: #cfe1ff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
}
.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 18px;
}

/* =========================
   Secciones globales
========================= */
.section {
    position: relative;
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin: 0 auto 18px;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: #233246;
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
    color: var(--muted);
}
.section.light {
    background: rgba(255, 255, 255, 0.5);
}

/* =========================
   Franja de estadísticas
========================= */
.stats {
    position: relative;
    z-index: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0;
}
/* Si no usas el efecto de solape, quita el margin-top negativo */
.wrapper .stats {
    background: #1a365d;
    color: var(--white);
    margin-top: -50px;
    z-index: 3;
}
.stats .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat {
    text-align: center;
}
.stat .num {
    font-weight: 900;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    color: var(--gold);
}
.stat .label {
    color: #cfe1ff;
    margin-top: 6px;
    font-weight: 600;
}

/* =========================
   Stats Grid (para páginas de estado)
========================= */
.stats_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.stat_item {
    text-align: center;
}
.stat_item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}
.stat_item p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   Tarjetas destacadas
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.card .pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #eef5ff;
    color: #2b4f84;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}
.card .title {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1f2d3d;
    margin: 10px 0 6px;
}
.card .desc {
    color: #536273;
}
.card .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7b8c;
    font-size: 0.95rem;
}
.card .actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* =========================
   States grid
========================= */
.states_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.state_item {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--text);
}
.state_item:hover {
    transform: translateY(-3px);
    color: var(--primary-blue);
}
.state_item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.state_item p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* =========================
   Denominations grid
========================= */
.denominations_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.denomination_card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid var(--gold);
}
.denomination_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.denomination_card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}
.denomination_card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 700;
}
.denomination_card p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
}
.denomination_meta {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}
.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 20px;
    font-size: 0.9rem;
}
.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* =========================
   Steps grid
========================= */
.steps_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.step_item {
    text-align: center;
    padding: 30px 20px;
}
.step_number {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}
.step_item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.step_item p {
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   About Section
========================= */
.about_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about_text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
}
.about_text p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.7;
}
.features_list {
    margin-top: 30px;
}
.feature_item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.feature_item i {
    color: var(--gold);
    font-size: 1.2rem;
}
.feature_item span {
    font-weight: 600;
    color: var(--text);
}
.about_image {
    text-align: center;
}
.about_image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================
   Footer Styles
========================= */
footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    color: #cbd5e1;
    background: #0c2a49;
}
.footer_content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer_section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold);
}
.footer_section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer_section ul {
    list-style: none;
}
.footer_section ul li {
    margin-bottom: 10px;
}
.footer_section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer_section ul li a:hover {
    color: var(--white);
}
.social_footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social_footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}
.social_footer a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}
.contact_info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact_item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact_item i {
    color: var(--gold);
    width: 20px;
}
/* Icono de WhatsApp en verde */
.contact_item .fa-whatsapp {
    color: #25D366 !important;
}
.contact_item span {
    color: rgba(255, 255, 255, 0.8);
}
/* Link de WhatsApp */
.contact_item a[href^="https://wa.me"] {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact_item a[href^="https://wa.me"]:hover {
    color: #25D366;
}
.footer_bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================
   Helpers
========================= */
.mt-0 {
    margin-top: 0 !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mt-40 {
    margin-top: 40px !important;
}
.text-center {
    text-align: center !important;
}
.center {
    text-align: center;
}

/* =========================
   Estilos para páginas de iglesias (Específicos)
========================= */
.church_hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.church_hero_bg {
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-2) 100%);
}
.church_hero_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}
.church_hero_content {
    position: relative;
    z-index: 2;
    color: var(--white);
}
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.breadcrumb a:hover {
    opacity: 0.8;
}
.church_hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.church-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.church-title-wrap h1 {
    margin: 0;
    flex: 1;
    min-width: 60%;
}
.church_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.denomination_badge {
    background: var(--gold);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
.location_info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.9;
}
.quick_actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Church Details Grid */
.church_details_grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.church_main_info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info_card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
}
.info_card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info_item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.info_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.info_icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info_content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.info_content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Sidebar */
.church_sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar_card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}
.sidebar_card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar_card h3 i {
    color: var(--gold);
}

/* Share Buttons */
.share_buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share_btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}
.share_btn.facebook {
    background: #1877f2;
    color: white;
}
.share_btn.twitter {
    background: #1da1f2;
    color: white;
}
.share_btn.whatsapp {
    background: #25d366;
    color: white;
}
.share_btn.copy {
    background: var(--muted);
    color: white;
}
.share_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Map and Directions */
.map_container {
    margin-bottom: 30px;
}

.directions_info {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.directions_info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.directions_info p {
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.directions_buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.directions_buttons .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.directions_buttons .btn i {
    font-size: 1rem;
}

.directions_buttons .btn .fa-desktop,
.directions_buttons .btn .fa-mobile-alt {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Ajustes específicos para móvil */
@media (max-width: 768px) {
    .directions_buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .directions_buttons .btn {
        width: 100%;
        font-size: 1rem;
        padding: 14px 20px;
        justify-content: center;
    }
    
    .directions_buttons .btn i {
        font-size: 1.1rem;
    }
}

/* Header social (para páginas de iglesia) */
.head_right {
    display: flex;
    align-items: center;
}
.social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
.social ul li a {
    color: #cfe1ff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.social ul li a:hover {
    color: var(--gold);
}

/* =========================
   Responsivo
========================= */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .about_content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .denominations_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .church_details_grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .church_hero h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 640px) {
    :root {
        --header-h: 68px;
    }
    
    /* Desactivar scroll smooth que puede causar problemas con fixed header */
    html {
        scroll-behavior: auto !important;
    }

    /* Forzar header completamente fijo sin movimiento */
    .ei-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        height: var(--header-h) !important;
        min-height: var(--header-h) !important;
        max-height: var(--header-h) !important;
        overflow: visible !important;
    }

    /* Forzar estabilidad del contenido interno del header */
    .ei-navbar .head_in,
    .ei-navbar .head_inner {
        height: 100%;
        min-height: var(--header-h);
        max-height: var(--header-h);
        overflow: visible;
    }

    /* Asegurar que todos los elementos hijos no causen expansión */
    .ei-navbar .head_left,
    .ei-navbar .head_right,
    .ei-navbar .ei-nav {
        flex-shrink: 0;
        overflow: visible;
    }
    .search {
        max-width: 100%;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .stats_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cta-row {
        flex-direction: column;
    }
    .denominations_grid {
        grid-template-columns: 1fr;
    }
    .steps_grid {
        grid-template-columns: 1fr;
    }
    .states_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer_content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .church_hero {
        padding: 80px 0 60px;
    }
    .church_hero h1 {
        font-size: clamp(1.3rem, 5vw, 2rem);
        line-height: 1.2;
    }
    /* Botón favoritos debajo del título en móvil */
    .church_hero_content > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .church_meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .quick_actions {
        flex-direction: column;
    }
    .social ul {
        display: none;
    }
}


/* Safety net: en desktop el menú vuelve a su flujo normal (solo >1350px) */
@media (min-width: 1351px) {
    .ei-nav-menu {
        position: static;
        height: auto;
        left: auto;
        box-shadow: none;
        overflow: visible;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================== */
/* REGLA FINAL ABSOLUTA - HEADER SIEMPRE FIJO EN MÓVIL */
/* ===================================================== */
@media (max-width: 1350px) {
    header.ei-navbar,
    .ei-navbar {
        position: fixed !important;
        top: 0px !important;
        left: 0px !important;
        right: 0px !important;
        width: 100% !important;
        bottom: auto !important;
        transform: translate3d(0px, 0px, 0px) !important;
        -webkit-transform: translate3d(0px, 0px, 0px) !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
        z-index: 2000 !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        margin: 0 !important;
        padding: 0;
    }

    /* Forzar que el contenedor interno tampoco se mueva */
    header.ei-navbar .head_in,
    .ei-navbar .head_in,
    header.ei-navbar .head_inner,
    .ei-navbar .head_inner {
        transform: translate3d(0px, 0px, 0px) !important;
        -webkit-transform: translate3d(0px, 0px, 0px) !important;
        margin: 0 !important;
        position: relative !important;
        top: 0 !important;
    }

    /* Prevenir cualquier recalculo de layout - EXCEPTO el menú */
    header.ei-navbar *:not(.ei-nav-menu):not(.ei-hamburger .bar),
    .ei-navbar *:not(.ei-nav-menu):not(.ei-hamburger .bar) {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================
   Compatibilidad páginas de Estado (cards, buscador, botones)
   ========================= */

/* Título de sección (el HTML usa underscore) */
.section_title {
    text-align: center;
    margin: 0 auto 18px;
}
.section_title h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: #233246;
    font-weight: 800;
    margin: 0 0 6px;
}
.section_title p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted);
}

/* Grid de cards usado en estados */
.cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Las cards ya tienen .card; solo pulimos contenido interno usado en estados */
.card.church-card {
    position: relative;
}
.card_content h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}
.card_content p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.95rem;
}
.card_content p i {
    margin-right: 6px;
}

/* Meta de la card (denominación + botón) */
.card_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}
.denomination_tag {
    background: var(--gold);
    color: #1f2430;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Barra de filtros / buscador arriba de las cards */
.filter_controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 12px 0 22px;
}
.search_section {
    flex: 1;
}
.search_title {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text);
}
.search_filter {
    max-width: 420px;
}
.filter_input {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.filter_input:focus {
    border-color: #bcd0ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.results_info {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Paginación / load more contenedor */
.pagination_container {
    margin-top: 26px;
}
.load_more_container {
    display: grid;
    gap: 10px;
    justify-items: center;
}
.pagination_info {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .filter_controls {
        flex-direction: column;
        align-items: stretch;
    }
    .results_info {
        text-align: right;
    }
}

/* ====== Botón principal dorado (solo para "Ver Detalles") ====== */
.btn-primary {
    background: var(--gold);
    color: #1f2430;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(217, 160, 40, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(217, 160, 40, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(217, 160, 40, 0.25);
}
.btn-sm {
    padding: 8px 14px;
    font-size: 0.9rem;
}

/* Denominación como texto simple (sin “pastilla”) */
.denomination_tag {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

/* Por si alguna vino como <a> o <button> */
a.denomination_tag,
button.denomination_tag {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    cursor: default;
    pointer-events: none; /* quita el comportamiento de enlace si lo tuviera */
}

/* === Tamaño global del logo en el HEADER === */
.ei-navbar .logo img {
    height: 60px; /* ← ajusta aquí el alto que quieras */
    width: auto;
    max-height: var(--header-h);
    object-fit: contain;
    display: block;
}

/* Responsive: logo un poco más pequeño en móvil */
@media (max-width: 640px) {
    .ei-navbar .logo img {
        height: 48px;
    }
}

/* =========================
   AJUSTES FINALES PARA FOOTER (footer_brand)
========================= */

/* Estilo para la sección de la marca en el footer */

/* Contenedor del logo para asegurar que el texto de descripción también se alinea */
.footer_brand .footer_logo {
    display: block; /* Asegura que el logo toma su propio espacio */
}

/* Estilo para la imagen del logo en el footer */
.footer-logo-img {
    width: 200px; /* Define el tamaño (ajusta a tu gusto) */
    height: auto; /* Mantiene las proporciones */
    max-width: 100%;
}

/* Estilo para el párrafo debajo del logo */
.footer_brand p {
    margin-top: 12px;
    color: #e6eef8; /* Un blanco azulado */
    font-size: 0.95rem;
}

/* =========================
   🔍 Buscador Inteligente (Home)
   ========================= */
.ei-hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.ei-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ei-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 160, 40, 0.25);
}

.ei-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    z-index: 999;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}

.ei-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.ei-suggestion-item:hover {
    background-color: #f3f4f6;
}

.ei-suggestion-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* =========================
   🌙 Modo oscuro automático (detecta preferencia del usuario)
========================= */
@media (prefers-color-scheme: dark) {
    body {
        background: #0e1726;
        color: #e5e7eb;
    }
    header {
        background: #0d1c33;
    }
    .section.light {
        background: rgba(255, 255, 255, 0.05);
    }
    .card,
    .info_card,
    .sidebar_card {
        background: #14233a;
        color: #f1f5f9;
        border-color: #1f3b64;
    }
    .footer_section p,
    .footer_section a {
        color: #cbd5e1;
    }
    .filter_input {
        background: #1e293b;
        border-color: #334155;
        color: #f8fafc;
    }
}

/* =========================
   ✨ Transiciones globales
========================= */
a,
button,
.card,
.btn,
.state_item,
.denomination_card {
    transition: all 0.25s ease-in-out;
}

/* =========================
   💠 Hover mejorado en botones
========================= */
.btn--gold:hover,
.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* =========================
   🏪 Compatibilidad para Store
========================= */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.store-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.store-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.store-card .store-info {
    padding: 20px;
}

.store-card .store-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.store-card .store-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.store-card .btn-buy {
    margin-top: auto;
    background: var(--gold);
    color: #1f2430;
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: 0 8px 18px rgba(217, 160, 40, 0.25);
}
.store-card .btn-buy:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* =========================
   📱 Ajustes responsivos extra
========================= */
@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
    .store-card img {
        height: 180px;
    }
    .store-card .store-title {
        font-size: 1.05rem;
    }
}


/* =====================================================
   ✅ FIX: Fondo del footer ocupa todo el ancho
   ===================================================== */
footer.site-footer {
    width: 100%;
    background: linear-gradient(180deg, #0c2a49 0%, #081d38 100%);
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* Centrado interno y límite de ancho */
footer.site-footer .footer_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mantiene el fondo general del sitio blanco */
body {
    background-color: #fff;
}

/* Transición suave entre el contenido y el footer */
body > footer.site-footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Encabezados jerárquicos */
.pais-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f2f52;
    margin-top: 40px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e5e7eb;
}

.estado-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f4c84;
    margin-top: 20px;
}

.ciudad-header {
    font-size: 1.05rem;
    font-weight: 500;
    color: #334155;
    margin-top: 12px;
    margin-bottom: 4px;
}

/* Tarjeta de resultado */
.result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    cursor: pointer; /* 🔹 indica que todo se puede clicar */
}

/* Hover limpio sin salto */
.result-card:hover {
    border-color: #f5d27a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* El enlace invisible cubre toda la tarjeta */
.result-card a.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

/* Botón visual fijo */
.result-card .btn.btn-sm.btn-primary {
    background: #d4a017;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    position: relative;
    z-index: 2; /* sobre el enlace invisible */
    cursor: default; /* 🔹 ya no parece un botón separado */
    transition: none;
}

.result-card .btn.btn-sm.btn-primary:hover {
    background: #d4a017; /* 🔹 sin efecto hover */
}

/* Fondo suave por ciudad */
.ciudad-header + .result-card {
    border-left: 4px solid #d4a017;
    padding-left: 12px;
    background: #fafafa;
}

/* ===================================================== */
/* 🎯 Centrado único del botón Ver Iglesias Destacadas   */
/* ===================================================== */
.cta-row.single {
    justify-content: center;
    text-align: center;
}

.cta-row.single .btn--gold {
    margin: 0 auto;
    min-width: 240px;
    text-align: center;
}

.cta-row.single .btn--gold:hover {
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.6);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.ad-infeed {
    background: #fff8e1;
    border: 1px dashed #d4a017;
    padding: 20px;
    border-radius: 10px;
    margin: 40px auto;
    text-align: center;
}
.mock-ad {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
}

/* =====================================================
   🔍 Ajustes específicos - Búsqueda Avanzada
   ===================================================== */

.search-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    padding: 30px 24px;
    margin-bottom: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.filter_label {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.filter_select,
.filter_input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1f2d3d;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.filter_select:focus,
.filter_input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 160, 40, 0.25);
    outline: none;
}

.checkbox_group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 6px;
    color: var(--text);
}

.result-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

#results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.church_card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.church_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.church_card h3 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 6px;
}

.church_card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.church_card .denomination {
    color: var(--gold);
    font-weight: 600;
    margin-top: 6px;
}

.church_card .btn-details {
    display: inline-block;
    margin-top: 12px;
    background: var(--gold);
    color: #1f2430;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.church_card .btn-details:hover {
    background: linear-gradient(180deg, #f2b93a 0%, #d1880f 100%);
    box-shadow: 0 6px 12px rgba(184, 123, 19, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    /* Todos los campos del formulario a 100% ancho en móvil */
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Clase col-span-2 ya ocupará el ancho completo naturalmente */
    .col-span-2 {
        grid-column: 1 / -1;
    }
}

/* ===================================================== */
/* 🧭 Paginación dentro del grid - Versión PRO 2025      */
/* ===================================================== */
.results-container,
#results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.results-container .pagination-container,
#results-container .pagination-container {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-container a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination-container a:hover {
    color: var(--dark-blue);
}

.pagination-container .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===================================================== */
/* 🧭 Asegurar que las cards sean elementos válidos del grid */
/* ===================================================== */
.church_card,
.result-card {
    display: block;
}

/* ===================================================== */
/* 🔵 Iglesias Destacadas - Tarjetas Clickables (2025)   */
/* ===================================================== */

.featured-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Botón fijo azul (sin hover ni transición) */
.btn-vermas-static {
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 22px;
    text-align: center;
    margin-top: 18px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none; /* no bloquea el click del enlace completo */
    transition: none;
}

/* Sin efecto hover */
.btn-vermas-static:hover {
    background: var(--primary-blue);
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 30px 0;
}

.page-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active {
    background: var(--gold, #f7c948);
    color: #000;
    border-color: #e5b700;
    font-weight: bold;
}

.hero-estado {
    background: linear-gradient(180deg, #153b73 0%, #0e2a52 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0 80px;
}

.stats-section {
    background: #0e2a52;
    color: #fff;
    padding: 40px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f7c948;
    display: block;
}

.stat-label {
    color: #e0e6ef;
    font-size: 1rem;
}

.churches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.church-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.church-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.church-card h3 {
    font-size: 1.1rem;
    margin: 8px 0;
}

.tag {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #f7c948;
    color: #000;
    border-radius: 12px;
    font-size: 0.85rem;
}

.church-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.church-card-link:hover .church-card {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.church-btn-wrap {
    margin-top: 12px;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* 💡 Hover visual mejorado */
.church-card:hover .btn-small {
    background: #f7c948;
    color: #0e2a52;
    transition: all 0.2s ease-in-out;
}

/* ===================================================== */
/* 📄 PAGINACIÓN DORADA - EncuentraIglesias 2025 PRO      */
/* ===================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.pagination-container a,
.pagination-container span {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.pagination-container a.prev,
.pagination-container a.next {
    background: var(--gold);
    color: #1f2430;
    box-shadow: 0 6px 12px rgba(217, 160, 40, 0.3);
}

.pagination-container a.prev:hover,
.pagination-container a.next:hover {
    background: linear-gradient(180deg, #f2b93a 0%, #d1880f 100%);
    box-shadow: 0 6px 14px rgba(184, 123, 19, 0.55);
}

.pagination-container .disabled.prev,
.pagination-container .disabled.next {
    opacity: 0.6;
    background: #f0f0f0;
    color: #777;
    box-shadow: none;
    cursor: not-allowed;
}

.pagination-container .page-info {
    color: #1f2d3d;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
    }
}

.page-selector {
    padding: 10px 14px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    background: #fff;
    color: #1f2d3d;
    cursor: pointer;
}

.page-selector:hover {
    border-color: var(--gold);
}

.pagination-container.top {
    margin-bottom: 10px;
}

.ad-infeed-card {
    grid-column: 1 / -1;
    background: #fff8e1;
    border: 1px dashed #f1c232;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
}

.ad-infeed-card strong {
    display: block;
    font-size: 1rem;
    color: #c59a00;
    margin-bottom: 6px;
}

.ad-infeed-card .mock-ad {
    font-size: 0.9rem;
    color: #777;
    background: #fffef9;
    border: 1px solid #ffe599;
    border-radius: 8px;
    padding: 10px;
}

/* ===================================================== */
/* 📺 Control de visibilidad de anuncios por dispositivo  */
/* ===================================================== */
.ad-desktop { display: block; }
.ad-mobile { display: none; }

@media (max-width: 768px) {
    .ad-desktop { display: none; }
    .ad-mobile { display: block; }
}

/* ===================================================== */
/* 📏 FIX: Alturas reservadas y scroll anchors           */
/* ===================================================== */

/* Reserva espacio para evitar salto de layout */
#iglesias-destacadas {
    min-height: 760px; /* puedes subirlo a 800px si el bloque es alto */
}

@media (max-width: 992px) {
    #iglesias-destacadas { min-height: 600px; }
}

/* Anclas invisibles pero activas */
.ei-anchor {
    position: absolute;
    pointer-events: none;
}

/* Scroll suave global */
html {
    scroll-behavior: smooth;
}

/* Ajuste de desplazamiento si el usuario entra directo con hash */
#estados,
#denominaciones {
    scroll-margin-top: 100px; /* header (~80px) + aire */
}

/* ===================================================== */
/* ✨ DESKTOP HEADER LAYOUT                             */
/* ===================================================== */

/* Menú desktop - solo para pantallas grandes */
@media (min-width: 1351px) {
    /* Ocultar hamburguesa en desktop */
    .ei-navbar .ei-hamburger {
        display: none !important;
    }

    /* Ocultar botón cerrar en desktop */
    .ei-nav-menu .mobile-close-btn {
        display: none !important;
    }

    /* Logo y header layout */
    .ei-navbar .head_inner {
        justify-content: center !important;
        gap: 30px !important;
    }

    .ei-navbar .head_left {
        margin-right: 0 !important;
        flex: 0 0 auto !important;
    }

    .ei-navbar .logo {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Asegurar que el nav esté visible */
    .ei-nav {
        display: flex !important;
        flex: 0 1 auto !important;
        justify-content: center;
        align-items: center;
    }

    .ei-nav-menu {
        display: flex !important;
        position: static !important;
        justify-content: center;
        align-items: center;
        gap: 0px;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: row !important;
        height: 100% !important;
        width: auto !important;
        max-width: none !important;
        background: transparent !important;
        box-shadow: none !important;
        left: auto !important;
    }

    .ei-nav-menu li {
        display: flex !important;
        align-items: center;
        height: 100% !important;
        width: auto !important;
    }

    .ei-nav-menu a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 10px !important;
        font-size: 1rem !important;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: #cfe1ff !important;
        white-space: nowrap;
        transition: all 0.2s ease;
        height: 100% !important;
        width: auto !important;
        border-bottom: none !important;
    }

    .ei-nav-menu a:hover {
        color: #fff !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }

    /* Separadores dorados */
    .ei-nav-menu li:not(:last-child)::after {
        content: "" !important;
        display: inline-block !important;
        width: 2px;
        height: 16px;
        background: rgba(247, 201, 72, 0.5);
        margin: 0 6px;
    }
}

/* ===================================================== */
/* 🛠 FIX DEFINITIVO: Header fijo siempre visible en Home */
/* ===================================================== */

/* Asegurar que el header esté siempre fijo en la parte superior */
.ei-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}

/* En home, el banner/hero NO debe tener margin-top adicional */
/* El padding-top del body ya crea el espacio necesario */
body.home .banner,
body.home .hero {
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}


/* ===================================================== */
/* ✕ BOTÓN CERRAR MENÚ MÓVIL (al final del drawer)       */
/* ===================================================== */

.mobile-close-btn {
    display: none; /* Oculto en desktop */
    margin-top: auto; /* Lo empuja hasta abajo */
    padding: 0 !important;
}

.btn-close-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #cfe1ff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 20px 24px;
    width: calc(100% - 48px);
}

.btn-close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.close-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

.close-text {
    font-size: 1rem;
}


/* ===================================================== */
/* ⚖️ LEGAL PAGES                                        */
/* ===================================================== */
.legal-page {
  padding: 80px 20px;
  background: #f9fafc;
  color: #1f2d3d;
  min-height: 80vh;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 24px;
  color: var(--primary-blue);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 20px;
  list-style: disc;
}

/* ===================================================== */
/* 🔧 FIX: Eliminar flash blanco + hover/active amarillo suave */
/* ===================================================== */

/* Elimina el outline blanco al hacer clic */
.ei-nav-menu a,
.ei-hamburger,
.btn-close-menu {
    outline: none !important;
    -webkit-tap-highlight-color: transparent; /* elimina flash en móviles */
}

/* Hover amarillo suave en desktop */
.ei-nav-menu a:hover {
    color: #d4a017; /* amarillo suave tipo "Cómo Llegar" */
    text-shadow: 0 0 6px rgba(212, 160, 23, 0.3);
    transition: all 0.2s ease;
}

/* Active/Focus amarillo (para accesibilidad con teclado) */
.ei-nav-menu a:focus-visible {
    color: #d4a017;
    outline: 2px solid #d4a017;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===================================================== */
/* 🍔 Hamburguesa: Hover y Active amarillo suave        */
/* ===================================================== */

.ei-hamburger {
    transition: transform 0.2s ease;
}

.ei-hamburger:hover .bar,
.ei-hamburger:active .bar {
    background: #d4a017; /* amarillo suave al pasar/click */
}

.ei-hamburger:active {
    transform: scale(0.95); /* pequeño efecto de presión */
}

/* ===================================================== */
/* 📱 Móvil: Click en enlaces del menú = amarillo suave */
/* ===================================================== */

@media (max-width: 1350px) {
    /* Al hacer tap en móvil, se pone amarillo suave */
    .ei-nav-menu a:active {
        background: rgba(212, 160, 23, 0.12);
        color: #d4a017;
    }

    /* Botón cerrar menú con hover/active amarillo suave */
    .btn-close-menu:hover,
    .btn-close-menu:active {
        background: rgba(212, 160, 23, 0.08);
        border-color: #d4a017;
        color: #d4a017;
    }
}


/* ===================================================== */
/* ✝️ Fe y Vida — Igualar estilo con Denominaciones */
/* ===================================================== */
.fevida-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #233246; /* igual que .section_title h2 */
  margin: 0 0 6px;
  text-align: center;
}

@media (max-width: 768px) {
  .fevida-title {
    font-size: 2rem;
  }
}


@media (max-width: 768px) {
  .fevida-title {
    font-size: 2rem;
  }
}

/* ===================================================== */
/* 🙌 SECCIÓN ACERCA DE */
/* ===================================================== */
#acerca-de {
  background: #f8fafc;
  padding: 60px 0;
}

/* =========================
   📐 Estructura general
========================= */
.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.about-text {
  flex: 1 1 55%;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* =========================
   📄 Texto
========================= */
.about-text p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-text .intro {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 1.4rem;
}

.about-text p + p {
  margin-top: 1.3em;
}

/* =========================
   🔗 Enlaces generales
========================= */
.about-text a {
  color: #153b73;
  font-weight: 600;
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

/* =========================
   🌅 Imagen lateral
========================= */
.about-image {
  flex: 1 1 40%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.about-verse {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #5a6a7a;
  line-height: 1.6;
  margin-top: 14px;
  padding: 0 8px;
}
.about-verse-ref {
  display: block;
  font-weight: 600;
  color: #d4a017;
  margin-top: 4px;
  font-style: normal;
}

/* =========================
   📱 Responsive
========================= */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .about-text {
    text-align: left;
  }
}

/* ===================================================== */
/* 🎯 Botones inline ("Fe y Vida" / "Regístrala") */
/* ===================================================== */
.btn-link-fevida,
.btn-link-register {
  display: inline-block;
  background: #f4c542; /* tono dorado cálido */
  color: #111;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
}

.btn-link-fevida:hover,
.btn-link-register:hover {
  background: #e0b232;
  color: #000;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .btn-link-fevida,
  .btn-link-register {
    display: block;
    text-align: center;
    margin: 12px auto;
  }
}

/* ===================================================== */
/* 💬 Mensajes del formulario de agregar iglesia */
/* ===================================================== */
#agregar-msg {
  margin-top: 10px;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.5;
  transition: opacity 0.6s ease;
}

/* ✅ Éxito */
#agregar-msg.success {
  background: #e6ffed;
  border: 1px solid #22c55e;
  color: #166534;
  font-weight: 600;
}

/* ❌ Error */
#agregar-msg.error {
  background: #fff2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
  font-weight: 500;
  padding: 14px 18px;
  line-height: 1.6;
}

/* 📋 Listas internas (errores múltiples) */
#agregar-msg.error strong {
  display: inline;
  font-weight: 700;
  text-transform: uppercase;
  color: #b91c1c;
  margin-left: 4px;
}


#agregar-msg.error ul {
  margin-top: 4px;
  margin-bottom: 6px;
  padding-left: 24px;
  list-style: disc;
}

#agregar-msg.error li {
  margin-bottom: 3px;
}

#agregar-msg.error strong {
  text-transform: uppercase;
  color: #b91c1c;
}

#agregar-msg.error, #agregar-msg.success {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* ===================================================== */
/* 🔧 FIX FINAL: Hamburger visible en TODAS las vistas móviles/tablets */
/* ===================================================== */
@media (max-width: 1350px) {
    /* Ajustar el header para que muestre logo + hamburger */
    .ei-navbar .head_inner {
        justify-content: space-between !important;
    }

    /* Asegurar que head_left contenga logo + hamburger */
    .ei-navbar .head_left {
        display: flex !important;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
    }

    /* Hamburger siempre visible en móvil/tablet */
    .ei-hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2100 !important;
        transform: none !important;
        position: relative !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    /* Asegurar que el header sea fijo y visible */
    .ei-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        transform: translateY(0) !important;
    }

    /* Mostrar el contenedor <nav> en móvil para permitir que el menú fijo exista */
    .ei-nav {
        display: block !important;
    }

    /* El menú lateral (.ei-nav-menu) debe estar activo como flex */
    .ei-nav-menu {
        display: flex !important;
        /* El resto de estilos ya están definidos arriba en el otro media query */
    }
}

/* ===================================================== */
/* 🔴 CRITICAL FIX: Hamburger debe funcionar en TODAS las vistas */
/* Máxima especificidad para evitar conflictos */
/* ===================================================== */
@media (max-width: 1350px) {
    /* Triple especificidad para máxima prioridad */
    body .ei-navbar .head_left .ei-hamburger,
    .ei-navbar .head_left .ei-hamburger,
    .ei-hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2100 !important;
        position: relative !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        flex-direction: column !important;
        gap: 5px !important;
        background: transparent !important;
        border: 0 !important;
        padding: 8px !important;
        width: auto !important;
        height: auto !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }

    /* Asegurar que las barras sean visibles */
    .ei-hamburger .bar,
    .ei-hamburger span.bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 26px !important;
        height: 3px !important;
        background: #cfe1ff !important;
        border-radius: 2px !important;
    }
}


/* ===================================================== */
/* 🌎 Selector de Iglesias Destacadas - Diseño Estable  */
/* ===================================================== */

.featured-country-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid #f7c948;
    box-shadow: 0 4px 15px rgba(247, 201, 72, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    /* NO usamos position ni transform para máxima estabilidad */
    transition: box-shadow 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}

/* Efecto hover - solo propiedades seguras */
.featured-country-selector:hover {
    background: linear-gradient(135deg, #fffdf4 0%, #fff8e1 100%);
    border-color: #eab308;
    box-shadow: 0 6px 20px rgba(247, 201, 72, 0.25),
                0 3px 10px rgba(0, 0, 0, 0.12);
}

/* REMOVIDO el ::before que causaba el juego */

.section_title {
    text-align: center;
}

.featured-country-selector label {
    font-weight: 700;
    color: #0e2a52;
    font-size: 1rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.featured-country-selector select {
    background: #ffffff;
    border: 2px solid #f7c948;
    border-radius: 12px;
    padding: 10px 16px;
    padding-right: 36px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0e2a52;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230e2a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: background-color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.featured-country-selector select:hover {
    background-color: #fffdf4;
    border-color: #eab308;
}

.featured-country-selector select:focus {
    background-color: #ffffff;
    border-color: #eab308;
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.25);
}

/* Responsive */
@media (max-width: 640px) {
    .featured-country-selector {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
        width: 90%;
        max-width: 320px;
    }

    .featured-country-selector select {
        width: 100%;
    }
}
/* ===================================================== */
/* 🔒 FIX ABSOLUTO - Header 100% fijo sin movimiento    */
/* ===================================================== */
.ei-navbar,
header,
.ei-navbar *,
header * {
    will-change: auto !important;
}

.ei-navbar,
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    translate: none !important;
    transition: none !important;
    animation: none !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;

}

/* ===================================================== */
/* 🦶 FOOTER - ACCORDIONS EN MÓVIL (GLOBAL) */
/* ===================================================== */

/* Desktop: sin cambios */
@media (min-width: 769px) {
  .footer-accordion-toggle {
    display: none !important;
  }
  
  .footer_section ul {
    display: block !important;
  }
}

/* Móvil: accordions colapsables */
@media (max-width: 768px) {
  /* Reducir gap entre columnas del footer */
  .footer_content {
    gap: 5px !important;
    margin-bottom: 20px !important;
  }
  
  /* Columna de marca siempre visible - layout horizontal */
  .footer_brand {
    margin-bottom: 15px;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: start;
  }
  
  /* Logo en la primera fila, primera columna */
  .footer_brand .footer_logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }
  
  .footer_brand .footer_logo img {
    width: 130px !important;
    height: auto;
  }
  
  /* Texto descriptivo en la primera fila, segunda columna */
  .footer_brand p {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.87rem !important;
    line-height: 1.45 !important;
    margin: 0 0 10px 0 !important;
    text-align: justify !important;
  }
  
  /* Redes sociales en la segunda fila, segunda columna */
  .footer_brand .social_footer {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0 !important;
    gap: 14px !important;
    justify-content: flex-start !important;
  }
  
  .footer_brand .social_footer a {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem;
  }
  
  /* Columnas 2-4: colapsables */
  .footer_section:not(.footer_brand) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
  }
  
  /* Título clickeable */
  .footer_section:not(.footer_brand) h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 8px 0;
    font-size: 1rem;
    transition: color 0.2s ease;
  }
  
  .footer_section:not(.footer_brand) h4:hover {
    color: #f4c542;
  }
  
  /* Icono de toggle */
  .footer-accordion-toggle {
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.25s ease;
    margin-left: auto;
  }
  
  .footer_section.active .footer-accordion-toggle {
    transform: rotate(180deg);
  }
  
  /* Contenido del accordion (ul) */
  .footer_section:not(.footer_brand) ul,
  .footer_section:not(.footer_brand) .contact_info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  
  /* Estado expandido */
  .footer_section.active ul,
  .footer_section.active .contact_info {
    max-height: 500px; /* Suficiente para cualquier contenido */
    opacity: 1;
    margin-top: 12px;
  }
}

/* =========================
   FIXES 2026-01-30 - Correcciones de estilos
   Vista iglesia.php - Chrome compatibility
========================= */

/* Fix: Texto de descripción más visible */
.info_card p,
.info_content p,
.church_main_info p {
    color: #374151 !important;
    opacity: 1 !important;
}

/* Fix: Títulos de sidebar visibles */
.sidebar_card h3 {
    color: #123c68 !important;
    font-weight: 700 !important;
}

.sidebar_card h3 i {
    color: #d9a028 !important;
}

/* Fix: Texto de sidebar más visible */
.sidebar_card p {
    color: #374151 !important;
    opacity: 1 !important;
}

/* Fix: Botón secundario mejor contraste */
.btn-secondary,
.sidebar_card .btn-secondary,
.sidebar_card .btn {
    background: #d9a028 !important;
    color: #1f2d3d !important;
    border: 2px solid #d9a028 !important;
    font-weight: 600 !important;
}

.btn-secondary:hover,
.sidebar_card .btn-secondary:hover,
.sidebar_card .btn:hover {
    background: #c4911f !important;
    color: #fff !important;
}

/* Fix: Sección Acerca de - texto legible */
.info_card h2 {
    color: #123c68 !important;
}

/* =========================
   FIX: Forzar fondo blanco en sidebar (ignorar dark mode)
========================= */
.sidebar_card {
    background: #ffffff !important;
    color: #1f2d3d !important;
    border-color: #e5e7eb !important;
}

.sidebar_card h3,
.sidebar_card p,
.sidebar_card a {
    color: #1f2d3d !important;
}

.sidebar_card h3 {
    color: #123c68 !important;
}

.sidebar_card h3 i {
    color: #d9a028 !important;
}

.info_card {
    background: #ffffff !important;
    color: #1f2d3d !important;
}

.info_card h2 {
    color: #123c68 !important;
}

.info_card p,
.info_content p {
    color: #374151 !important;
}

/* Fix: Restaurar borde amarillo superior */
.sidebar_card {
    border-top: 4px solid #d9a028 !important;
}

/* Fix: Borde amarillo completo alrededor de la caja */
.sidebar_card {
    border: 2px solid #d9a028 !important;
    border-top: 4px solid #d9a028 !important;
}

/* ===================================================== */
/* 📱 MOBILE OVERFLOW FIX (global) */
/* ===================================================== */
img, video, iframe, embed, object, table, pre, code {
    max-width: 100%;
}

/* Reviews section - dark mode fix */
@media (prefers-color-scheme: dark) {
    .church-reviews {
        background: transparent !important;
    }
    .church-reviews #review-form {
        background: #1a2332 !important;
        border-color: #2d3748 !important;
        color: #e5e7eb !important;
    }
    .church-reviews #review-form input,
    .church-reviews #review-form textarea {
        background: #0e1726 !important;
        border-color: #2d3748 !important;
        color: #e5e7eb !important;
    }
    .church-reviews #review-form label {
        color: #cbd5e0 !important;
    }
    .church-reviews #reviews-list > div {
        border-color: #2d3748 !important;
    }
}

/* ===================================================== */
/* ✨ PREMIUM VISUAL UPGRADES - 2026 */
/* ===================================================== */

/* 2. Biblical Character Orbs in Hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.hero-particles .hero-orb {
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.hero-orb {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    animation: floatOrb 15s ease-in-out infinite;
    z-index: 2;
    font-size: 1.2rem;
    pointer-events: auto;
}

.hero-orb:hover {
    transform: scale(1.4);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px currentColor;
}

.hero-orb .hero-orb-emoji {
    pointer-events: none;
}

/* Different float timing for each orb */
.hero-orb:nth-child(2n) {
    animation-duration: 18s;
}

.hero-orb:nth-child(3n) {
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg); 
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg); 
    }
}

/* Mobile optimization: smaller orbs and fewer visible */
@media (max-width: 768px) {
    .hero-orb {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Hide some orbs on mobile to reduce clutter */
    .hero-orb:nth-child(n+9) {
        display: none;
    }
}

/* ===================================================== */
/* 🎮 Hero Card Modal - Collectible Card Design */
/* ===================================================== */
.hero-card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-card-modal.active {
    opacity: 1;
}

.hero-card-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #fbbf24;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    color: white;
    text-align: center;
}

.hero-card-modal.active .hero-card-content {
    transform: scale(1);
}

.hero-card-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fbbf24;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.hero-card-close:hover {
    background: rgba(251, 191, 36, 0.2);
}

.hero-card-rarity {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.hero-card-emoji {
    font-size: 3.5rem;
    margin: 20px 0 16px 0;
    display: block;
}

.hero-card-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fbbf24;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-card-title {
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.hero-card-stats {
    margin: 20px 0;
}

.hero-stat {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.stat-icon {
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 70px;
    text-align: left;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 8px;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.stat-val {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 25px;
    text-align: right;
    color: #fbbf24;
}

.hero-card-quote {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 20px 0 8px 0;
    color: #f1f5f9;
    position: relative;
    padding: 0 16px;
}

.hero-card-quote:before {
    content: """;
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 2rem;
    color: #fbbf24;
    line-height: 1;
}

.hero-card-quote:after {
    content: """;
    position: absolute;
    right: 0;
    bottom: -16px;
    font-size: 2rem;
    color: #fbbf24;
    line-height: 1;
}

.hero-card-ref {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
    margin: 0;
}

/* Rarity-specific border effects */
.hero-card-content[data-rarity="rare"] {
    border-color: #4FC3F7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 195, 247, 0.3);
}

.hero-card-content[data-rarity="epic"] {
    border-color: #E040FB;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 64, 251, 0.3);
    animation: epicGlow 2s ease-in-out infinite alternate;
}

.hero-card-content[data-rarity="legendary"] {
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
    animation: legendaryPulse 1.5s ease-in-out infinite alternate;
}

@keyframes epicGlow {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 64, 251, 0.3); }
    100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(224, 64, 251, 0.5); }
}

@keyframes legendaryPulse {
    0% { 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
        border-color: #FFD700;
    }
    100% { 
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.6);
        border-color: #FFF700;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .hero-card-content {
        padding: 20px;
        max-width: 320px;
    }
    
    .hero-card-emoji {
        font-size: 3rem;
        margin: 16px 0 12px 0;
    }
    
    .hero-card-name {
        font-size: 1.5rem;
    }
    
    .stat-label {
        min-width: 60px;
        font-size: 0.8rem;
    }
}

/* 3. Premium verse typography */
.verse {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
}

.verse blockquote {
    position: relative;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.7;
    padding: 0 30px;
    font-style: normal;
}

.verse blockquote::before {
    content: '❝';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(212, 160, 23, 0.2);
    line-height: 1;
}

.verse blockquote::after {
    content: '❞';
    position: absolute;
    bottom: -40px;
    right: -10px;
    font-size: 4rem;
    color: rgba(212, 160, 23, 0.2);
    line-height: 1;
}

/* 4. Glassmorphism cards (lightweight - no backdrop-filter for performance) */
.denomination_card, .church_card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 5. Page transition fade — REMOVED to avoid white flash on language switch */

/* 6. Subtle gradient on header/navbar (static - no animation for performance) */
.ei-navbar {
    background: linear-gradient(135deg, rgba(13, 40, 70, 1) 0%, rgba(31, 76, 132, 1) 50%, rgba(13, 40, 70, 1) 100%);
}

/* 7. Stats section icons (static - no infinite animation for performance) */
.stat-icon {
    display: inline-block;
}

/* 8. Skeleton loading placeholders */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-title {
    height: 20px;
    width: 70%;
}

.skeleton-line.short {
    width: 40%;
}

/* ==========================================
   📖 Hero Logo Click → Random Verse Modal
   ========================================== */
.hero-logo-clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-logo-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(212, 160, 23, 0.3) !important;
}
.hero-logo-clickable:active {
    transform: scale(0.97);
}

.verse-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.verse-modal.active {
    opacity: 1;
}

.verse-modal-content {
    background: linear-gradient(145deg, #0c2a49 0%, #153b73 50%, #0e2a52 100%);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 160, 23, 0.1);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.verse-modal.active .verse-modal-content {
    transform: scale(1) translateY(0);
}

.verse-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.verse-modal-close:hover {
    color: #fff;
}

.verse-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.verse-modal-quote {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #e3eeff;
    line-height: 1.6;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    position: relative;
}
.verse-modal-quote::before {
    content: '❝';
    display: block;
    font-size: 2.5rem;
    color: rgba(212, 160, 23, 0.4);
    font-style: normal;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.verse-modal-ref {
    display: block;
    color: #d4a017;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: normal;
}

.verse-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.verse-modal-another {
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: #d4a017;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}
.verse-modal-another:hover {
    background: rgba(212, 160, 23, 0.25);
    transform: scale(1.05);
}
.verse-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}
.verse-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .verse-modal-content {
        padding: 2rem 1.5rem;
    }
    .verse-modal-quote {
        font-size: 1.1rem;
    }
}

/* Guest particles (subtle dots) */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.3);
    pointer-events: none;
    animation: floatParticle 20s ease-in-out infinite;
}
@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-15px) translateX(8px); opacity: 0.5; }
    50% { transform: translateY(-5px) translateX(-5px); opacity: 0.2; }
    75% { transform: translateY(-20px) translateX(12px); opacity: 0.4; }
}

/* ===== AD PLACEHOLDERS ===== */
.ei-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
    border-bottom: 1px solid #eef0f2;
}
.ei-ad-slot .ei-ad-inner {
    max-width: 728px;
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* When AdSense is loaded, hide placeholder text */
.ei-ad-slot ins.adsbygoogle { width: 100%; }
.ei-ad-inner::before {
    content: 'PUBLICIDAD';
    color: #c0c8d0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .ei-ad-slot .ei-ad-inner {
        min-height: 100px;
    }
}

/* ===== VERSE CTA (Above hero logo — informational only) ===== */
.verse-cta {
    margin: 0 auto 10px;
    padding: 0;
    text-align: center;
}
.verse-cta-main {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8d48b;
    margin-bottom: 4px;
}
.verse-cta-hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}
.verse-cta-arrow {
    display: inline-block;
    animation: verseFloat 3s ease-in-out infinite;
}
@keyframes verseFloat {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.5; }
}
@media (max-width: 768px) {
    .verse-cta {
        max-width: 260px;
        padding: 8px 16px;
    }
    .verse-cta-main { font-size: 0.88rem; }
    .verse-cta-hint { font-size: 0.72rem; }
}
