/* ========================================================================== 
   UPEM - Diseño institucional premium, responsive y dinámico
   ========================================================================== */
:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --accent: #d97706;
    --accent-2: #f59e0b;
    --accent-light: #60a5fa;
    --dark-bg: #020617;
    --dark-card: #0f172a;
    --dark-card-2: #1e293b;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --line: rgba(148, 163, 184, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.16);
    --shadow: 0 22px 55px -22px rgba(2, 6, 23, 0.45);
    --shadow-soft: 0 18px 45px -28px rgba(15, 23, 42, 0.45);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --transition: 280ms ease;
    --transition-slow: 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    font-family: 'Urbanist', 'Poppins', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, #eef4ff 48%, #f8fafc 100%);
    overflow-x: hidden;
    min-height: 100vh;
}
body.menu-open { overflow: hidden; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: rgba(96, 165, 250, 0.32); color: #0f172a; }

.container { width: min(92%, 1200px); margin-inline: auto; }
.section-padding { padding: clamp(72px, 9vw, 112px) 0; }
.section-soft { position: relative; overflow: hidden; }
.section-soft::before {
    content: '';
    position: absolute;
    inset: auto -20% 8% auto;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.12), transparent 70%);
    pointer-events: none;
}
.bg-dark-cards {
    position: relative;
    color: var(--text-white);
    background:
        radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.16), transparent 36rem),
        radial-gradient(circle at 86% 32%, rgba(217, 119, 6, 0.12), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #111827 100%);
    overflow: hidden;
}
.bg-dark-cards::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 90%);
    pointer-events: none;
}
.bg-dark-cards > .container { position: relative; z-index: 1; }
.highlight { color: var(--accent-light); }

/* ========================================================================== 
   UI global
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, #172554 0%, #020617 58%);
    transition: opacity 500ms ease, visibility 500ms ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    animation: preloaderPulse 1.4s infinite ease-in-out;
}
.preloader-mark i { color: var(--accent-light); filter: drop-shadow(0 0 18px rgba(96,165,250,0.75)); }
@keyframes preloaderPulse { 50% { transform: scale(1.05); opacity: 0.78; } }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.6);
}
.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 68%);
    transition: opacity 220ms ease;
}

/* Logo visible y elegante durante toda la experiencia */
.preloader-mark.brand-preloader {
    gap: 16px;
    letter-spacing: 0;
    text-transform: none;
}
.preloader-logo-shell {
    position: relative;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}
.preloader-copy { display: grid; gap: 4px; line-height: 1.05; }
.preloader-copy strong { font-size: 1.65rem; letter-spacing: 0.1em; }
.preloader-copy small { color: #cbd5e1; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

.glass {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    pointer-events: none;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(96, 165, 250, 0.34);
}
.bg-dark-cards .glass-card,
.bg-gradient-join .glass-card,
.church-spotlight .glass-card {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
}

.btn {
    position: relative;
    isolation: isolate;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.96rem;
    cursor: pointer;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn::after {
    content: '';
    position: absolute;
    inset: -60% auto auto -30%;
    width: 70%;
    height: 220%;
    transform: rotate(24deg) translateX(-130%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transition: transform 640ms ease;
    z-index: -1;
}
.btn:hover::after { transform: rotate(24deg) translateX(260%); }
.btn:hover { transform: translateY(-3px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 16px 35px -18px rgba(217, 119, 6, 0.9);
}
.btn-primary:hover { box-shadow: 0 18px 45px -16px rgba(217, 119, 6, 0.92); }
.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}
.btn-glass:hover { background: rgba(255,255,255,0.22); }
.btn-outline {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.78);
    background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--primary); }
.w-100 { width: 100%; }

.section-title {
    text-align: center;
    margin-bottom: clamp(42px, 6vw, 64px);
    position: relative;
    z-index: 1;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(217, 119, 6, 0.1);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.bg-dark-cards .eyebrow,
.bg-gradient-join .eyebrow { color: #fde68a; background: rgba(245, 158, 11, 0.12); }
.section-title h2 {
    font-size: clamp(2.05rem, 4.8vw, 3.65rem);
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}
.bg-dark-cards .section-title h2 { color: #fff; }
.section-title p {
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.14rem);
    line-height: 1.65;
}
.bg-dark-cards .section-title p { color: #cbd5e1; }

/* ========================================================================== 
   Header
   ========================================================================== */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1500;
    padding: 22px 0;
    transition: padding var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
header.scrolled,
header.menu-active {
    padding: 12px 0;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 45px -30px rgba(0,0,0,0.75);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    min-width: 0;
}
.logo-emblem {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    padding: 7px;
    background:
        radial-gradient(circle at 35% 22%, rgba(255,255,255,0.22), transparent 45%),
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 38px -24px rgba(96,165,250,0.9);
    overflow: hidden;
    transition: width var(--transition), height var(--transition), border-radius var(--transition), padding var(--transition), background var(--transition);
}
.logo-emblem::after {
    content: '';
    position: absolute;
    inset: -40% auto auto -55%;
    width: 78%;
    height: 190%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
    animation: logoShine 5.8s infinite ease-in-out;
}
@keyframes logoShine {
    0%, 62% { transform: rotate(24deg) translateX(-120%); opacity: 0; }
    74% { opacity: 1; }
    100% { transform: rotate(24deg) translateX(230%); opacity: 0; }
}
.logo-emblem img,
.preloader-logo-shell img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.logo-emblem i,
.preloader-logo-shell i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent-light);
    font-size: 1.35rem;
    opacity: 0.16;
    z-index: 1;
}
.logo-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    line-height: 1.02;
}
.logo-copy strong {
    font-size: clamp(1.08rem, 1.6vw, 1.45rem);
    letter-spacing: 0.08em;
}
.logo-copy small {
    max-width: 230px;
    color: rgba(255,255,255,0.72);
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
header.scrolled .logo-emblem,
header.menu-active .logo-emblem { width: 48px; height: 48px; border-radius: 16px; padding: 6px; }
header.scrolled .logo-copy small,
header.menu-active .logo-copy small { opacity: 0.72; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav-links a {
    position: relative;
    color: rgba(255,255,255,0.84);
    font-weight: 700;
    font-size: 0.96rem;
    padding: 8px 0;
    transition: color var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 1.15rem;
}

/* Logo presente en portada y títulos */
.section-title { isolation: isolate; }
.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -38px;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    background: url('img/logo_x192.png') center/contain no-repeat;
    opacity: 0.07;
    filter: saturate(1.15);
    z-index: -1;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    right: clamp(-70px, -4vw, 10px);
    bottom: clamp(70px, 13vh, 135px);
    width: clamp(210px, 29vw, 420px);
    height: clamp(210px, 29vw, 420px);
    background: url('img/logo_x192.png') center/contain no-repeat;
    opacity: 0.055;
    filter: blur(0.2px) saturate(1.2);
    z-index: 1;
    pointer-events: none;
}

/* ========================================================================== 
   Hero
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: var(--dark-bg);
}
.hero-slider,
.hero-bg,
.hero-overlay,
.hero-particles { position: absolute; inset: 0; }
.hero-bg {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1400ms ease, transform 7000ms ease;
}
.hero-bg.active { opacity: 1; transform: scale(1.02); }
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.92)),
        linear-gradient(to bottom, rgba(2,6,23,0.4), rgba(2,6,23,0.94));
}
.hero-particles span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.85);
    animation: particleFloat var(--duration, 8s) infinite ease-in-out;
    animation-delay: var(--delay, 0s);
}
@keyframes particleFloat {
    0%, 100% { transform: translate3d(0,0,0) scale(0.8); opacity: 0.15; }
    50% { transform: translate3d(var(--moveX, 30px), -80px, 0) scale(1.25); opacity: 0.85; }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    color: #fff;
    padding-top: 80px;
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.hero-content h1 {
    font-size: clamp(2.75rem, 8vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 800;
    margin-bottom: 22px;
    text-shadow: 0 30px 70px rgba(0,0,0,0.42);
}
.hero-dynamic {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
}
#typedWord {
    color: #fde68a;
    min-width: 132px;
    text-align: left;
}
#typedWord::after {
    content: '|';
    margin-left: 3px;
    color: var(--accent-light);
    animation: blink 850ms infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.verse {
    max-width: 760px;
    margin: 0 auto 42px;
    color: #cbd5e1;
    font-size: clamp(1.02rem, 2.2vw, 1.28rem);
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
}
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
/* ========================================================================== 
   Stats / Cards base
   ========================================================================== */
#stats { margin-top: -58px; position: relative; z-index: 5; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    text-align: center;
}
.stat-item {
    position: relative;
    padding: 14px 10px;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18%;
    right: -8px;
    width: 1px;
    height: 64%;
    background: rgba(148, 163, 184, 0.25);
}
.stat-item i {
    font-size: 2.35rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.stat-item h3 {
    font-size: clamp(2.1rem, 5vw, 3rem);
    line-height: 1;
    color: var(--primary);
    font-weight: 800;
}
.stat-item p { margin-top: 8px; color: #475569; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; }

.conocenos-grid,
.directiva-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.card { min-height: 276px; }
.icon-wrapper {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    margin-bottom: 24px;
    color: #fff;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 18px 35px -20px var(--primary);
}
.card h3,
.contact-info-card h3 { color: var(--primary); font-size: 1.45rem; margin-bottom: 13px; font-weight: 800; }
.card p,
.contact-info-card p { color: #475569; line-height: 1.7; }

/* Directiva */
.team-card { padding: 0; text-align: center; }
.team-img {
    height: clamp(240px, 28vw, 315px);
    background-position: center top;
    background-size: cover;
    position: relative;
    transition: transform var(--transition-slow), filter var(--transition);
}
.team-img::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(2,6,23,0.74), transparent);
}
.team-card:hover .team-img { transform: scale(1.045); filter: saturate(1.08) contrast(1.02); }
.team-info { padding: 28px; }
.team-info h3 { color: #fff; font-size: 1.42rem; font-weight: 800; margin-bottom: 10px; }
.role {
    display: inline-flex;
    margin-bottom: 13px;
    color: #fde68a;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}
.team-info p { color: #cbd5e1; line-height: 1.65; }

/* ========================================================================== 
   Iglesias premium
   ========================================================================== */
.churches-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(217, 119, 6, 0.12), transparent 32rem),
        radial-gradient(circle at 90% 28%, rgba(96, 165, 250, 0.14), transparent 36rem),
        linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
}
.churches-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.church-search {
    flex: 1 1 340px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(148,163,184,0.28);
    box-shadow: 0 14px 35px -28px rgba(15,23,42,0.45);
}
.church-search i { color: var(--primary-light); }
.church-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
}
.church-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    border: 1px solid rgba(30, 58, 138, 0.16);
    background: rgba(255,255,255,0.68);
    color: var(--primary);
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -24px var(--primary);
}
.church-spotlight { margin-bottom: 34px; }
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #0f172a;
    box-shadow: 0 28px 70px -32px rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
}
.carousel-track {
    display: flex;
    will-change: transform;
    transition: transform var(--transition-slow);
}
.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 560px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 12%, rgba(96,165,250,0.24), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #172554 120%);
}
.pastor-info-side {
    padding: clamp(32px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.slide-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    font-weight: 900;
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pastor-info-side h2 {
    font-size: clamp(2.05rem, 4.5vw, 3.65rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin-bottom: 14px;
}
.pastor-info-side h3 {
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.pastor-info-side p {
    color: #cbd5e1;
    line-height: 1.68;
    max-width: 560px;
}
.church-meta {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}
.church-meta p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #dbeafe;
    font-weight: 700;
    font-size: 0.96rem;
}
.church-meta i { color: #fde68a; margin-top: 4px; }
.map-btn { width: fit-content; padding: 12px 22px; }
.pastor-image-side {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(96,165,250,0.24), transparent 32rem),
        linear-gradient(135deg, #1e293b, #020617);
}
.pastor-image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0f172a 0%, rgba(15,23,42,0.1) 38%, transparent 64%);
    z-index: 2;
    pointer-events: none;
}
.pastor-image-side img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.04);
}
.pastor-image-side.image-fallback {
    display: grid;
    place-items: center;
}
.pastor-image-side.image-fallback img { display: none; }
.pastor-image-side.image-fallback::after {
    content: attr(data-initials);
    position: relative;
    z-index: 1;
    width: clamp(132px, 23vw, 220px);
    height: clamp(132px, 23vw, 220px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 10px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 80px rgba(96,165,250,0.32);
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,23,42,0.5);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    backdrop-filter: blur(14px);
}
.carousel-nav-btn:hover { background: var(--accent-light); transform: translateY(-50%) scale(1.08); }
.prev-btn { left: 18px; }
.next-btn { right: 18px; }
.carousel-dots {
    position: absolute;
    z-index: 5;
    left: clamp(28px, 5vw, 60px);
    bottom: 24px;
    display: flex;
    gap: 9px;
    align-items: center;
}
.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    border: 0;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { width: 30px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.event-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 17px;
    margin-bottom: 24px;
    width: min(100%, 475px);
    position: relative;
    overflow: hidden;
}
.event-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    z-index: 1;
}
.event-details { z-index: 1; }
.event-label {
    display: block;
    font-size: 0.69rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 4px;
}
.event-details h4 { font-size: 0.98rem; margin-bottom: 4px; }
.event-details p { font-size: 0.84rem; margin: 0; color: #cbd5e1; }
.active-event { background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.28); }
.active-event::before {
    content: '';
    position: absolute;
    inset: -80% -20%;
    background: radial-gradient(circle, rgba(96,165,250,0.28), transparent 58%);
    animation: pulseGlow 2.7s infinite ease-in-out;
}
.active-event .event-icon { background: linear-gradient(135deg, var(--accent-light), var(--primary)); color: #fff; box-shadow: 0 0 20px rgba(96,165,250,0.45); }
.active-event .event-label { color: #bfdbfe; }
.empty-event { background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.18); }
.empty-event .event-icon { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.empty-event .event-label { color: #94a3b8; }
@keyframes pulseGlow { 50% { transform: scale(1.15); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

.church-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.church-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: #0f172a;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.church-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.church-card-media,
.church-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.church-card-media img { object-fit: cover; filter: saturate(1.05) contrast(1.03); transition: transform 900ms ease; }
.church-card:hover img { transform: scale(1.08); }
.church-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.94), rgba(2,6,23,0.36), rgba(2,6,23,0.1));
}
.church-card-media.image-fallback {
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(96,165,250,0.18), transparent 65%), linear-gradient(135deg, #172554, #020617);
}
.church-card-media.image-fallback img { display: none; }
.church-card-media.image-fallback::before {
    content: attr(data-initials);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 7px solid rgba(255,255,255,0.14);
    font-size: 2.4rem;
    font-weight: 900;
}
.church-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}
.church-card .status-pill {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(96,165,250,0.16);
    color: #bfdbfe;
    border: 1px solid rgba(96,165,250,0.24);
}
.church-card .status-pill.actualizando { background: rgba(245,158,11,0.14); color: #fde68a; border-color: rgba(245,158,11,0.24); }
.church-card h3 { font-size: 1.35rem; line-height: 1.1; margin-bottom: 6px; }
.church-card p { color: #cbd5e1; margin-bottom: 12px; font-weight: 700; }
.church-card-meta { display: grid; gap: 7px; color: #dbeafe; font-size: 0.9rem; }
.church-card-meta span { display: flex; gap: 8px; align-items: flex-start; }
.church-card-meta i { color: #fde68a; margin-top: 3px; }
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: rgba(255,255,255,0.72);
    border: 1px dashed rgba(30, 58, 138, 0.24);
    font-weight: 800;
}

/* ========================================================================== 
   Timeline / Únete / Contacto
   ========================================================================== */
.timeline-wrapper { position: relative; padding-top: 28px; }
.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.38), transparent);
}
.timeline-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.timeline-dot {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    margin: 0 auto 28px;
    background: var(--accent-light);
    border: 5px solid #020617;
    box-shadow: 0 0 24px rgba(96,165,250,0.75);
    transition: var(--transition);
}
.timeline-item:hover .timeline-dot { transform: scale(1.22); background: var(--accent); }
.timeline-content { min-height: 210px; }
.timeline-period {
    display: block;
    color: #fde68a;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 900;
    margin-bottom: 10px;
}
.timeline-content h4 { color: #fff; font-size: 1.24rem; margin-bottom: 10px; }
.timeline-content p { color: #cbd5e1; line-height: 1.62; }

.bg-gradient-join {
    color: #fff;
    background:
        radial-gradient(circle at 75% 25%, rgba(217,119,6,0.18), transparent 32rem),
        linear-gradient(135deg, var(--primary) 0%, #020617 64%);
}
.join-container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 60px);
    padding: clamp(28px, 5vw, 58px) !important;
    background: rgba(255,255,255,0.05) !important;
}
.join-text-side h2 {
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-bottom: 18px;
}
.join-text-side p { color: #dbeafe; line-height: 1.7; margin-bottom: 26px; }
.benefits-list { display: grid; gap: 15px; }
.benefits-list li { display: flex; align-items: flex-start; gap: 12px; color: #e2e8f0; line-height: 1.45; font-weight: 700; }
.benefits-list i { color: #fde68a; margin-top: 3px; }
.modern-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 15px;
    color: #fff;
    outline: none;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.07);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.modern-form input::placeholder,
.modern-form textarea::placeholder { color: #a8b6c9; }
.modern-form input:focus,
.modern-form textarea:focus { border-color: var(--accent-light); background: rgba(255,255,255,0.11); box-shadow: 0 0 0 4px rgba(96,165,250,0.12); }
.modern-form .field-error { border-color: #fca5a5 !important; box-shadow: 0 0 0 4px rgba(248,113,113,0.12) !important; }
.form-note { color: #94a3b8; font-size: 0.86rem; line-height: 1.5; }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
}
.contact-info-card h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-list-details { display: grid; gap: 17px; margin-top: 24px; }
.contact-list-details li { display: flex; gap: 13px; align-items: flex-start; font-weight: 800; line-height: 1.4; }
.contact-list-details i { color: var(--accent); margin-top: 3px; }
.contact-map-card { padding: 14px; }

/* ========================================================================== 
   Footer / Floating elements
   ========================================================================== */
.footer {
    color: #94a3b8;
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 70px;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.75fr;
    gap: 38px;
    align-items: center;
    padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { max-width: 490px; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 11px; }
.social-links a {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    color: #fff;
    transition: var(--transition);
}
.social-links a:hover { transform: translateY(-4px); background: var(--accent); }
.footer-links-nav h3 { color: #fff; margin-bottom: 17px; font-size: 1.18rem; }
.footer-links-nav li { margin-bottom: 10px; }
.footer-links-nav a { transition: color var(--transition); }
.footer-links-nav a:hover { color: var(--accent-light); }
.footer-logo-right { display: flex; justify-content: flex-end; }
.footer-official-logo {
    max-width: 205px;
    height: auto;
    padding: 14px;
    border-radius: 28px;
    opacity: 0.92;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 24px 55px -34px rgba(96,165,250,0.52);
    transition: var(--transition);
}
.footer-official-logo:hover { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(96,165,250,0.22)); }
.footer-bottom-bar {
    text-align: center;
    padding: 28px 0;
    background: #00020a;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-verse { color: #cbd5e1; font-style: italic; margin-bottom: 14px; padding-inline: 16px; }
.copyright-text p { font-size: 0.88rem; margin: 5px 0; }
.copyright-text a { color: var(--accent-light); font-weight: 900; }
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 20px 45px -24px rgba(2,6,23,0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
/* ========================================================================== 
   Animaciones reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 800ms ease, transform 800ms ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========================================================================== 
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .logo-copy small { display: none; }
    .nav-links { gap: clamp(10px, 1.25vw, 18px); }
    .carousel-slide { grid-template-columns: 1fr; }
    .pastor-image-side { min-height: 360px; order: -1; }
    .pastor-image-side::before { background: linear-gradient(to top, #0f172a 0%, rgba(15,23,42,0.2) 38%, transparent 80%); }
    .pastor-image-side img { min-height: 360px; }
    .church-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline-line { display: none; }
    .timeline-dot { margin-left: 0; }
    .join-container,
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
    header { padding: 14px 0; }
    .logo-emblem { width: 50px; height: 50px; border-radius: 16px; }
    .logo-copy strong { font-size: 1.12rem; }
    .hamburger { display: grid; place-items: center; }
    .nav-links {
        position: fixed;
        inset: 72px 4% auto 4%;
        display: grid;
        gap: 7px;
        padding: 18px;
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 22px 55px -22px rgba(0,0,0,0.8);
        backdrop-filter: blur(18px);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links a { display: block; padding: 13px 14px; border-radius: 14px; }
    .nav-links a:hover,
    .nav-links a.active { background: rgba(255,255,255,0.08); }
    .nav-links a::after { display: none; }
    .stats-grid,
    .conocenos-grid,
    .directiva-grid { grid-template-columns: 1fr; }
    .stat-item:not(:last-child)::after { display: none; }
    #stats { margin-top: -34px; }
    .hero-content { padding-top: 88px; }
    .hero-buttons .btn { width: min(100%, 340px); }
    .churches-toolbar { align-items: stretch; }
    .church-filters { width: 100%; }
    .filter-btn { flex: 1 1 auto; }
    .carousel-nav-btn { top: 220px; width: 43px; height: 43px; }
    .carousel-dots { left: 50%; transform: translateX(-50%); bottom: 16px; }
    .pastor-info-side { padding: 30px 22px 58px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin-inline: auto; }
    .social-links,
    .footer-logo-right { justify-content: center; }
}
@media (max-width: 640px) {
    .container { width: min(92%, 520px); }
    html { scroll-padding-top: 78px; }
    .section-padding { padding: 64px 0; }
    .badge { font-size: 0.72rem; }
    .hero-dynamic { display: block; }
    #typedWord { display: inline-block; min-width: auto; }
    .stats-grid { padding: 18px; }
    .stat-item { padding: 18px 8px; }
    .church-card-grid { grid-template-columns: 1fr; }
    .carousel-slide { min-height: auto; }
    .pastor-image-side { min-height: 310px; }
    .pastor-image-side img { min-height: 310px; }
    .pastor-info-side h2 { letter-spacing: -0.04em; }
    .church-meta p { font-size: 0.9rem; }
    .event-widget { align-items: flex-start; }
    .map-btn { width: 100%; }
    .timeline-grid { grid-template-columns: 1fr; }
    .timeline-content { min-height: auto; }
    .contact-map-card { padding: 10px; }
}
@media (hover: none) {
    .cursor-glow { display: none; }
    .glass-card:hover,
    .church-card:hover,
    .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================================================== 
   NUEVA SECCIÓN IGLESIAS - Galería pastoral igualitaria + agenda flotante
   ========================================================================== */
.churches-equal-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(96, 165, 250, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 30%, rgba(217, 119, 6, 0.10), transparent 30rem),
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(239,246,255,0.86));
}
.churches-equal-section::before {
    content: '';
    position: absolute;
    inset: 8% -10% auto auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.12), transparent 70%);
    pointer-events: none;
}
.churches-equal-panel {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    padding: clamp(20px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 30px 80px -46px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(18px);
}
.churches-equal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 24px;
}
.churches-equal-head h3 {
    margin-top: 12px;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    color: var(--primary);
    letter-spacing: -0.04em;
}
.churches-equal-head p {
    max-width: 760px;
    margin-top: 10px;
    color: var(--text-muted);
    line-height: 1.65;
}
.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: #1e40af;
    background: rgba(96, 165, 250, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.23);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.church-page-counter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 104px;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: 0 18px 38px -24px rgba(15,23,42,0.7);
}
.church-page-counter span {
    font-size: 1.45rem;
    font-weight: 900;
}
.church-page-counter small {
    color: #cbd5e1;
    font-weight: 700;
}
.equal-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 16px;
    align-items: center;
}
.equal-carousel-viewport {
    overflow: hidden;
    border-radius: 26px;
}
.equal-carousel-track {
    display: flex;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.equal-carousel-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.equal-church-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 22px 44px -34px rgba(15,23,42,0.62);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}
.equal-church-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -38px rgba(15,23,42,0.78);
    border-color: rgba(96, 165, 250, 0.38);
}
.equal-church-media {
    position: relative;
    height: 168px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 25%, rgba(96,165,250,0.34), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e3a8a 55%, #d97706);
}
.equal-church-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 420ms ease;
}
.equal-church-card:hover .equal-church-media img { transform: scale(1.05); }
.equal-church-media.image-fallback img,
.church-modal-media.image-fallback img { display: none; }
.equal-church-media.image-fallback::after,
.church-modal-media.image-fallback::after {
    content: attr(data-initials);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.equal-church-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.52), transparent 62%);
    z-index: 1;
    pointer-events: none;
}
.equal-badge {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.equal-church-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}
.equal-church-body h3 {
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.16;
    margin-bottom: 7px;
    letter-spacing: -0.025em;
}
.pastors-name {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
}
.church-summary {
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.94rem;
    margin-bottom: 16px;
}
.mini-church-meta {
    display: grid;
    gap: 9px;
    margin-top: auto;
    margin-bottom: 18px;
}
.mini-church-meta li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.35;
}
.mini-church-meta i { color: var(--accent); margin-top: 2px; }
.equal-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.mini-action {
    min-height: 40px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 9px;
    font-size: 0.83rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}
.map-action { background: rgba(217, 119, 6, 0.12); color: #92400e; }
.social-action { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.detail-action { background: #0f172a; color: #fff; }
.mini-action:hover { transform: translateY(-2px); }
.pending-social { opacity: 0.78; }
.equal-carousel-btn {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: 0 22px 44px -32px rgba(15,23,42,0.82);
    cursor: pointer;
    transition: transform 220ms ease, opacity 220ms ease;
}
.equal-carousel-btn:hover { transform: translateY(-2px); }
.equal-carousel-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.equal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.equal-carousel-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.24);
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}
.equal-carousel-dots button.active {
    width: 32px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.churches-note {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.93rem;
    text-align: center;
}
.churches-note i { color: var(--primary-light); }

/* Modal de iglesias */
.church-modal[hidden] { display: none; }
.church-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: grid;
    place-items: center;
    padding: 22px;
}
.church-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}
.church-modal-card {
    position: relative;
    width: min(940px, 100%);
    max-height: min(88vh, 760px);
    overflow: auto;
    display: grid;
    grid-template-columns: 0.95fr 1.1fr;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 34px 90px -36px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.35);
}
.modal-close,
.agenda-close {
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}
.church-modal-media {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #d97706);
}
.church-modal-media img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
}
.church-modal-content {
    padding: clamp(26px, 4vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.church-modal-content h2 {
    margin: 16px 0 8px;
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.055em;
}
.modal-pastors {
    font-size: 1.08rem;
    color: #0f172a;
    font-weight: 850;
    margin-bottom: 14px;
}
.church-modal-content > p:not(.modal-pastors) {
    color: var(--text-muted);
    line-height: 1.7;
}
.modal-meta-grid {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}
.modal-meta-grid div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(148,163,184,0.18);
}
.modal-meta-grid i { color: var(--accent); margin-top: 3px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn-glass { background: #0f172a; border-color: #0f172a; }
body.modal-open,
body.agenda-open { overflow: hidden; }

/* Botón flotante y panel de agenda */
.agenda-floating-btn {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 2100;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 56px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #0f172a 62%, #d97706);
    box-shadow: 0 18px 48px -24px rgba(2,6,23,0.82);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.agenda-pulse {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
}
.agenda-pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(96,165,250,0.65);
    animation: agendaPulse 1.9s infinite ease-out;
}
@keyframes agendaPulse {
    0% { transform: scale(0.82); opacity: 0.85; }
    100% { transform: scale(1.45); opacity: 0; }
}
.agenda-overlay[hidden] { display: none; }
.agenda-overlay {
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(5px);
}
.agenda-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3000;
    width: min(460px, 94vw);
    height: 100vh;
    padding: clamp(22px, 4vw, 34px);
    background:
        radial-gradient(circle at 20% 10%, rgba(96,165,250,0.22), transparent 32rem),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: -34px 0 90px -48px rgba(2,6,23,0.72);
    transform: translateX(105%);
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow: auto;
}
.agenda-drawer.open { transform: translateX(0); }
.agenda-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.agenda-drawer-head h2 {
    margin-top: 12px;
    color: var(--primary);
    font-size: 2rem;
    letter-spacing: -0.055em;
}
.agenda-drawer-head p {
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 8px;
}
.agenda-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: #0f172a;
}
.agenda-tabs {
    display: flex;
    gap: 9px;
    padding: 6px;
    border-radius: 18px;
    background: #eef2ff;
    margin-bottom: 18px;
}
.agenda-tab {
    flex: 1;
    border: 0;
    border-radius: 14px;
    padding: 10px 12px;
    color: #475569;
    background: transparent;
    cursor: pointer;
    font-weight: 850;
}
.agenda-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    box-shadow: 0 12px 28px -20px rgba(15,23,42,0.75);
}
.agenda-list { display: grid; gap: 14px; }
.agenda-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 20px 42px -34px rgba(15,23,42,0.55);
}
.agenda-item.is-hidden { display: none; }
.agenda-date {
    height: 74px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1e3a8a);
    text-align: center;
}
.agenda-date span { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.agenda-date strong { font-size: 1.06rem; }
.agenda-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: #1d4ed8;
    font-size: 0.73rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.agenda-info h3 {
    color: #0f172a;
    font-size: 1.06rem;
    line-height: 1.25;
    margin-bottom: 7px;
}
.agenda-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 7px;
}
.agenda-info a {
    color: #1d4ed8;
    font-weight: 900;
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .equal-carousel-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .churches-equal-head { flex-direction: column; }
    .church-page-counter { align-self: flex-start; }
    .equal-carousel {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .equal-carousel-viewport { order: 1; }
    .equal-prev { order: 2; justify-self: start; margin-left: 4px; }
    .equal-next { order: 2; justify-self: end; margin-top: -66px; margin-right: 4px; }
    .equal-carousel-page { grid-template-columns: 1fr; }
    .equal-church-media { height: 190px; }
    .equal-card-actions { grid-template-columns: 1fr; }
    .churches-note { align-items: flex-start; font-size: 0.86rem; }
    .church-modal-card { grid-template-columns: 1fr; max-height: 88vh; }
    .church-modal-media,
    .church-modal-media img { min-height: 260px; }
    .modal-actions .btn { width: 100%; }
    .agenda-floating-btn {
        right: 16px;
        bottom: 82px;
        min-height: 52px;
        padding-right: 14px;
        font-size: 0.92rem;
    }
    .agenda-item { grid-template-columns: 1fr; }
    .agenda-date { width: 76px; }
}
@media (max-width: 420px) {
    .agenda-floating-btn span:last-child { display: none; }
    .agenda-floating-btn { padding: 9px; }
}
.disabled-social {
    opacity: 0.72;
    cursor: pointer;
}


/* ========================================================================== 
   Agenda anual en carrusel por meses
   ========================================================================== */
.annual-carousel-wrapper {
    position: relative;
    z-index: 1;
    border-radius: 32px;
    padding: clamp(20px, 3vw, 34px);
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px -46px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(18px);
    overflow: hidden;
}
.annual-carousel-wrapper::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -10%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,0.16), transparent 70%);
    pointer-events: none;
}
.annual-carousel-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}
.annual-carousel-head h3 {
    margin-top: 12px;
    color: #fff;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    letter-spacing: -0.045em;
}
.annual-carousel-head p {
    margin-top: 8px;
    max-width: 680px;
    color: #cbd5e1;
    line-height: 1.62;
}
.annual-counter {
    flex: 0 0 auto;
    min-width: 104px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 18px 38px -24px rgba(0,0,0,0.9);
}
.annual-counter span { font-size: 1.45rem; font-weight: 900; }
.annual-counter small { color: #e2e8f0; font-weight: 800; }
.annual-carousel-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 16px;
    align-items: center;
}
.annual-viewport {
    overflow: hidden;
    border-radius: 26px;
}
.annual-track {
    display: flex;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.annual-slide {
    min-width: 100%;
}
.annual-month-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.26fr) minmax(0, 1fr);
    min-height: 330px;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 18%, rgba(96,165,250,0.16), transparent 30rem),
        linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
}
.annual-month-side {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 26px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(217,119,6,0.92), rgba(30,58,138,0.88));
}
.annual-month-side span {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.86rem;
}
.annual-month-side strong {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}
.annual-month-side small {
    color: #e2e8f0;
    font-weight: 800;
}
.annual-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: clamp(20px, 3vw, 30px);
    align-content: center;
}
.annual-event-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 50px -36px rgba(0,0,0,0.75);
}
.annual-event-card h4 {
    color: #fff;
    font-size: 1.22rem;
    margin: 8px 0 10px;
    line-height: 1.2;
}
.annual-event-card p {
    color: #cbd5e1;
    line-height: 1.58;
    font-size: 0.94rem;
}
.annual-event-card a {
    width: fit-content;
    margin-top: auto;
    padding-top: 14px;
    color: #bfdbfe;
    font-weight: 900;
}
.annual-event-card a:hover { color: #fde68a; }
.annual-nav {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: 0 22px 44px -32px rgba(0,0,0,0.9);
    cursor: pointer;
    transition: transform 220ms ease, opacity 220ms ease;
}
.annual-nav:hover { transform: translateY(-2px); }
.annual-nav:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.annual-dots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.annual-dots button {
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    font-weight: 900;
    font-size: 0.78rem;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.annual-dots button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: translateY(-2px);
}
.agenda-empty {
    margin-top: 14px;
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    color: #475569;
    background: #fff;
    border: 1px dashed rgba(30, 58, 138, 0.22);
}
.agenda-empty i {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 50%;
    color: #1d4ed8;
    background: #eef2ff;
}
.agenda-empty strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}
.agenda-empty p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}
@media (max-width: 860px) {
    .annual-carousel-head { flex-direction: column; }
    .annual-counter { align-self: flex-start; }
    .annual-carousel-shell { grid-template-columns: 1fr; }
    .annual-viewport { order: 1; }
    .annual-prev { order: 2; justify-self: start; margin-left: 4px; }
    .annual-next { order: 2; justify-self: end; margin-top: -68px; margin-right: 4px; }
    .annual-month-card { grid-template-columns: 1fr; }
    .annual-month-side { min-height: 150px; }
    .annual-events { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .logo-copy small { display: none; }
    .logo-emblem { width: 46px; height: 46px; }
    .preloader-mark.brand-preloader { flex-direction: column; text-align: center; }
    .preloader-copy small { max-width: 220px; }
    .annual-carousel-wrapper { padding: 16px; border-radius: 26px; }
    .annual-month-card { border-radius: 22px; }
    .annual-event-card { min-height: auto; padding: 18px; }
    .annual-dots button { min-width: 38px; height: 32px; font-size: 0.72rem; }
}

/* Ajuste limpio para sección Actividades resumida */
.activities-agenda-cta {
    margin-top: 34px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 18px;
}
.activities-agenda-cta p {
    color: #cbd5e1;
    font-weight: 750;
    line-height: 1.55;
    max-width: 680px;
}
.activities-agenda-cta i {
    color: #fde68a;
    margin-right: 6px;
}

