/* IMPE 2026 — Design system */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --brand: #0c1b3d;
  --brand-soft: #1a3366;
  --accent: #4a6cf7;
  --accent-hover: #3a58d4;
  --accent-warm: #d97757;
  --surface: #f6f7fb;
  --surface-elevated: #ffffff;
  --text: #1c2434;
  --text-muted: #5c6578;
  --border: rgba(12, 27, 61, 0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 20px rgba(12, 27, 61, 0.06);
  --shadow-md: 0 12px 40px rgba(12, 27, 61, 0.1);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
  --prose: 680px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 0;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}

.site-header.is-scrolled .container { min-height: 60px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled .brand img {
  width: 36px;
  height: 36px;
}

.brand-text strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.site-header.is-scrolled .brand-text span { display: none; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop > a,
.nav-item > button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop > a:hover,
.nav-item > button:hover,
.nav-desktop > a.is-active,
.nav-item.is-active > button {
  background: rgba(74, 108, 247, 0.1);
  color: var(--accent);
}

.nav-item { position: relative; }

.nav-item .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  list-style: none;
  margin: 0;
}

.nav-item:hover .sub,
.nav-item:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item .sub a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.nav-item .sub a:hover {
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  cursor: pointer;
  font-size: 1.25rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 27, 61, 0.2);
}

.btn--solid:hover { background: var(--brand-soft); color: #fff; }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(74, 108, 247, 0.35);
}

.btn--accent:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface-elevated);
  border-color: rgba(74, 108, 247, 0.3);
  color: var(--accent);
}

/* —— Section label —— */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* —— Home —— */
.home-main { padding-bottom: 4rem; }

.home-hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.15;
}

.home-hero p {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.home-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Bento grid (home) */
.home-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 72px;
  gap: 0.65rem;
  margin-top: 1.25rem;
  min-height: 520px;
}

.bento-card {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 27, 61, 0.85) 100%);
  z-index: 1;
  transition: opacity 0.3s var(--ease);
}

.bento-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: #fff;
  text-decoration: none;
}

.bento-card:hover .bento-card__bg { transform: scale(1.05); }

.bento-card > *:not(.bento-card__bg) { position: relative; z-index: 2; }

.bento-card .eyebrow { color: rgba(255, 255, 255, 0.85); margin-bottom: 0.35rem; }

.bento-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.9;
}

/* Home bento — mosaico asimétrico */
.bento-home--historia { grid-column: 1 / 8; grid-row: 1 / 5; }
.bento-home--iglesias { grid-column: 8 / 13; grid-row: 1 / 3; }
.bento-home--galeria { grid-column: 8 / 13; grid-row: 3 / 5; }
.bento-home--jovenes { grid-column: 1 / 5; grid-row: 5 / 8; }
.bento-home--sermones { grid-column: 5 / 9; grid-row: 5 / 8; }
.bento-home--vision { grid-column: 9 / 11; grid-row: 5 / 7; }
.bento-home--fe { grid-column: 11 / 13; grid-row: 5 / 8; }
.bento-home--varones { grid-column: 1 / 4; grid-row: 8 / 10; }
.bento-home--alabanza { grid-column: 4 / 7; grid-row: 8 / 10; }
.bento-home--youtube { grid-column: 1 / 8; grid-row: 10 / 12; }
.bento-home--instagram { grid-column: 8 / 10; grid-row: 8 / 10; }
.bento-home--discipulado { grid-column: 10 / 13; grid-row: 8 / 10; }
.bento-home--estudios { grid-column: 8 / 10; grid-row: 10 / 12; }
.bento-home--certificados { grid-column: 10 / 13; grid-row: 10 / 12; }
.bento-home--visitanos { grid-column: 10 / 13; grid-row: 10 / 12; }

.bento-card--compact {
  padding: 0.75rem 0.9rem;
}

.bento-card--compact h2 {
  font-size: 1rem;
}

.bento-card--compact .eyebrow {
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}

.bento-card--compact p {
  display: none;
}

.bento-card__bg--soft {
  background: linear-gradient(145deg, #1a3366 0%, #4a6cf7 55%, #d97757 100%) !important;
}

/* —— Page hero —— */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(160deg, rgba(74, 108, 247, 0.08) 0%, rgba(12, 27, 61, 0.04) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.page-hero .lead {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-hero--cover {
  position: relative;
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(160deg, rgba(12, 27, 61, 0.82) 0%, rgba(12, 27, 61, 0.55) 45%, rgba(74, 108, 247, 0.35) 100%),
    var(--hero-image) center / cover no-repeat;
  border-bottom: none;
  margin-bottom: 2rem;
}

.page-hero--cover .breadcrumbs a,
.page-hero--cover .breadcrumbs span,
.page-hero--cover .eyebrow,
.page-hero--cover .lead {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero--cover h1 {
  color: #fff;
}

.page-hero--cover .breadcrumbs a:hover {
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.35rem; opacity: 0.5; }

/* —— Content layout —— */
.page-main { padding-bottom: 4rem; }

.layout-split {
  display: grid;
  grid-template-columns: 1fr min(380px, 38%);
  gap: 2.5rem;
  align-items: start;
}

.layout-split__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.layout-split__visual img { display: block; width: 100%; }

.prose {
  max-width: var(--prose);
}

.prose > *:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 1rem;
  color: var(--text);
}

.prose h3, .prose h4 {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.prose.is-collapsed {
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

.prose.is-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}

.read-more-toggle { margin-top: 1rem; }

/* Church cards (iglesias) */
.church-grid {
  display: grid;
  gap: 1.25rem;
}

.church-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.25s var(--ease);
}

.church-card:hover { box-shadow: var(--shadow-sm); }

.church-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: var(--brand);
}

.church-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.church-card iframe {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  min-height: 200px;
  border: 0;
}

.church-grid .wp-block-pullquote {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.church-grid .wp-block-pullquote blockquote {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.church-grid .wp-block-pullquote p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.church-grid .wp-block-pullquote strong {
  color: var(--brand);
  font-size: 1rem;
}

.church-grid .wp-block-pullquote iframe {
  margin-top: 1rem;
  border-radius: var(--radius-md);
}

/* Archive cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.archive-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.archive-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.archive-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--brand);
}

.archive-card__excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.archive-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Video embed */
.video-block {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  aspect-ratio: 16/9;
}

.video-block iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Map block */
.map-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.map-block h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--brand);
}

.map-block iframe {
  border-radius: var(--radius-md);
  width: 100%;
  min-height: 280px;
  border: 0;
}

/* Gallery / lightbox trigger */
.prose img[data-lightbox],
.gallery-thumb {
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease);
}

.prose img[data-lightbox]:hover { transform: scale(1.02); }

/* —— Footer —— */
.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 0.2rem 0;
  font-weight: 500;
}

.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Float buttons */
.fab {
  position: fixed;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab:hover { transform: scale(1.06); }

.fab--whatsapp {
  right: 1.25rem;
  bottom: 5.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  font-size: 1.5rem;
}

.fab--top {
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-elevated);
  color: var(--brand);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}

.fab--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 27, 61, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

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

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* —— Galerías de publicaciones —— */
.page-has-gallery .prose > p:first-child {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.page-has-gallery .prose .tiled-gallery__row,
.page-has-gallery .prose .tiled-gallery__col,
.page-has-gallery .prose .tiled-gallery__item,
.page-has-gallery .prose figure.tiled-gallery__item {
  display: none !important;
}

.prose .wp-block-jetpack-tiled-gallery {
  display: none;
}

.impe-gallery-wrap {
  margin: 1.5rem 0 0;
}

.impe-gallery-wrap[data-gallery-collapsed] .impe-gallery__item:nth-child(n + 9) {
  display: none;
}

.impe-gallery-wrap.is-expanded .impe-gallery__item {
  display: block;
}

.impe-gallery-wrap.is-expanded .gallery-expand-btn {
  display: none;
}

.gallery-expand-btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

.impe-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 108px;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  width: 100%;
}

.impe-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.impe-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.impe-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.impe-gallery__item--lead {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .impe-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
  }

  .impe-gallery__item--lead {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 180px;
  }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(12, 27, 61, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.nav-drawer.is-open { opacity: 1; visibility: visible; }

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--surface-elevated);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }

.nav-drawer a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.nav-drawer .sub a {
  font-weight: 500;
  font-size: 0.875rem;
  padding-left: 1rem;
  color: var(--text-muted);
}

/* Legacy WP content tweaks */
.prose figure { margin: 1.5rem 0; }
.prose .wp-block-embed iframe { border-radius: var(--radius-md); }

/* —— Posts —— */
.post-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.post-back:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-article {
  max-width: var(--prose);
}

.post-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.12) 0%, rgba(12, 27, 61, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.post-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.post-cta h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.25rem;
  color: var(--brand);
}

.post-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.post-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* —— Discipulado / audio —— */
.audio-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.audio-playlist__item {
  padding: 1rem 1.15rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.audio-playlist__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.audio-playlist audio {
  width: 100%;
  border-radius: var(--radius-pill);
}

.prose audio { width: 100%; border-radius: var(--radius-pill); }

@media (max-width: 900px) {
  .home-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 88px;
    min-height: auto;
  }

  .bento-home--historia { grid-column: 1 / 7; grid-row: 1 / 4; }
  .bento-home--iglesias { grid-column: 1 / 4; grid-row: 4 / 6; }
  .bento-home--galeria { grid-column: 4 / 7; grid-row: 4 / 6; }
  .bento-home--jovenes { grid-column: 1 / 4; grid-row: 6 / 8; }
  .bento-home--sermones { grid-column: 4 / 7; grid-row: 6 / 8; }
  .bento-home--vision { grid-column: 1 / 3; grid-row: 8 / 9; }
  .bento-home--fe { grid-column: 3 / 5; grid-row: 8 / 9; }
  .bento-home--varones { grid-column: 5 / 7; grid-row: 8 / 9; }
  .bento-home--alabanza { grid-column: 1 / 3; grid-row: 9 / 10; }
  .bento-home--youtube { grid-column: 3 / 7; grid-row: 9 / 11; }
  .bento-home--instagram { grid-column: 1 / 3; grid-row: 10 / 11; }
  .bento-home--discipulado { grid-column: 3 / 5; grid-row: 11 / 12; }
  .bento-home--estudios { grid-column: 5 / 7; grid-row: 10 / 11; }
  .bento-home--certificados { grid-column: 5 / 7; grid-row: 11 / 12; }
  .bento-home--visitanos { grid-column: 5 / 7; grid-row: 11 / 12; }

  .bento-card--compact p { display: none; }
  .layout-split { grid-template-columns: 1fr; }
  .layout-split__visual { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 600px) {
  .home-hero { padding-top: 1.5rem; }
  .fab--whatsapp { bottom: 5rem; }
}

/* —— Iglesias explorer —— */
.page-iglesias .page-hero {
  padding: 1.75rem 0 1.25rem;
  margin-bottom: 1.25rem;
}

.page-iglesias .page-main { padding-bottom: 2.5rem; }

.iglesias-explorer { margin-top: 0; }

.iglesias-explorer__layout {
  display: grid;
  grid-template-columns: minmax(220px, 30%) 1fr;
  gap: 0.85rem;
  align-items: stretch;
  min-height: min(540px, 72vh);
}

.iglesias-map-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 320px;
}

.iglesias-map-panel .eyebrow,
.iglesias-right > .eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.625rem;
}

.iglesias-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.iglesias-filter {
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.iglesias-filter:hover,
.iglesias-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.iglesias-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8ecf8;
}

.iglesias-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  z-index: 0;
}

.iglesias-map .leaflet-container {
  font-family: var(--font);
  background: #e8ecf8;
}

.iglesias-map .leaflet-control-zoom a {
  color: var(--brand);
}

.iglesias-map__hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Columna derecha: bento + detalle */
.iglesias-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: min(540px, 72vh);
  min-width: 0;
  height: 100%;
}

.iglesias-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 280px;
  width: 100%;
  padding: 0.55rem;
  border-radius: var(--radius-lg);
  background: rgba(74, 108, 247, 0.05);
  border: 1px solid rgba(74, 108, 247, 0.1);
  align-content: stretch;
}

.iglesia-bento {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 108, 247, 0.14);
  background: linear-gradient(152deg, #f4f6fc 0%, #e8ecf8 100%);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
  box-shadow: 0 1px 3px rgba(12, 27, 61, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.iglesia-bento:hover {
  border-color: rgba(74, 108, 247, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.iglesia-bento.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.25), var(--shadow-sm);
  transform: translateY(-1px);
}

/* Tintes suaves por región */
.iglesia-bento--tint-blue {
  background: linear-gradient(152deg, #eef2fc 0%, #dce6fa 100%);
  border-color: rgba(74, 108, 247, 0.2);
}

.iglesia-bento--tint-indigo {
  background: linear-gradient(152deg, #eaedf8 0%, #d8dff5 100%);
  border-color: rgba(26, 51, 102, 0.18);
}

.iglesia-bento--tint-sky {
  background: linear-gradient(152deg, #edf6fc 0%, #d9ecf8 100%);
  border-color: rgba(56, 120, 170, 0.2);
}

.iglesia-bento--tint-lilac {
  background: linear-gradient(152deg, #f3f0fa 0%, #e6dff5 100%);
  border-color: rgba(107, 91, 168, 0.2);
}

.iglesia-bento--tint-periwinkle {
  background: linear-gradient(152deg, #eef0fa 0%, #dde2f6 100%);
  border-color: rgba(90, 108, 180, 0.2);
}

.iglesia-bento--tint-teal {
  background: linear-gradient(152deg, #ecf7f4 0%, #d5efe8 100%);
  border-color: rgba(45, 120, 100, 0.22);
}

.iglesia-bento--tint-sage {
  background: linear-gradient(152deg, #f0f5f1 0%, #dfece4 100%);
  border-color: rgba(61, 110, 80, 0.2);
}

.iglesia-bento--tint-coral {
  background: linear-gradient(152deg, #fdf3ef 0%, #fae4dc 100%);
  border-color: rgba(217, 119, 87, 0.25);
}

.iglesia-bento--tint-sand {
  background: linear-gradient(152deg, #faf6f0 0%, #f2ebe0 100%);
  border-color: rgba(160, 130, 90, 0.22);
}

.iglesia-bento.is-active.iglesia-bento--tint-blue,
.iglesia-bento.is-active.iglesia-bento--tint-indigo,
.iglesia-bento.is-active.iglesia-bento--tint-sky,
.iglesia-bento.is-active.iglesia-bento--tint-lilac,
.iglesia-bento.is-active.iglesia-bento--tint-periwinkle {
  background: linear-gradient(152deg, #dce6fa 0%, #c8d6f5 100%);
}

.iglesia-bento.is-active.iglesia-bento--tint-teal,
.iglesia-bento.is-active.iglesia-bento--tint-sage {
  background: linear-gradient(152deg, #d5efe8 0%, #c0e5d8 100%);
}

.iglesia-bento.is-active.iglesia-bento--tint-coral,
.iglesia-bento.is-active.iglesia-bento--tint-sand {
  background: linear-gradient(152deg, #fae4dc 0%, #f5d6c8 100%);
}

.iglesia-bento--hero {
  padding: 0.75rem 0.85rem;
}

.iglesia-bento--hero .iglesia-bento__name { font-size: 1rem; }

.iglesia-bento--wide .iglesia-bento__name { font-size: 0.9rem; }

.iglesia-bento__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.iglesia-bento__meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.25;
}

/* Panel de detalle compacto */
.iglesia-detail {
  flex-shrink: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  animation: iglesiaIn 0.3s var(--ease);
}

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

.iglesia-detail__grid {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 38%);
  gap: 0.75rem 1rem;
  align-items: start;
}

.iglesia-detail .eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
}

.iglesia-detail h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.iglesia-detail__label {
  margin: 0.15rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.iglesia-detail__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.iglesia-detail__facts li {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text);
}

.iglesia-detail__facts strong {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.35rem;
}

.iglesia-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.iglesia-detail__map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}

.iglesia-detail__map iframe {
  width: 100%;
  height: 200px;
  min-height: 200px;
  border: 0;
  display: block;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
}

.iglesia-detail__empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .iglesias-explorer__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .iglesias-map { min-height: 200px; max-height: 220px; }

  .iglesias-right {
    min-height: 0;
    height: auto;
  }

  .iglesias-leaflet-map {
    min-height: 220px;
  }

  .iglesias-bento {
    flex: none;
    height: auto;
    min-height: 260px;
  }

  .iglesia-detail__grid {
    grid-template-columns: 1fr;
  }

  .iglesia-detail__map iframe { height: 140px; }
}

@media (max-width: 520px) {
  .iglesias-bento {
    min-height: 320px;
  }
}

/* —— Visítanos —— */
.page-visit .page-hero { padding-bottom: 1.5rem; }

.visit-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}

.visit-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.visit-toc a:hover { text-decoration: underline; }

.visit-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 3rem;
}

.visit-block h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.visit-lead { font-size: 1.05rem; line-height: 1.65; max-width: 42rem; }

.visit-checklist,
.visit-highlights,
.visit-schedule-inline {
  margin: 1rem 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.visit-checklist li,
.visit-highlights li { margin-bottom: 0.35rem; }

.visit-cta-line { margin: 1.25rem 0; color: var(--text-muted); }

.visit-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.visit-note--sm { font-size: 0.75rem; margin-top: 1rem; }

.visit-block--hq {
  background: var(--surface-elevated, #f8f9fc);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border, #e8ecf2);
}

.visit-hq-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}

.visit-hq-card__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-sm);
}

.visit-directions-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.visit-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border, #e8ecf2);
}

.visit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.visit-table th,
.visit-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e8ecf2);
  vertical-align: top;
}

.visit-table th {
  background: var(--surface-elevated, #f4f6fa);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.visit-hq-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.visit-table__link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.visit-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.visit-event-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border, #e8ecf2);
  background: #fff;
}

.visit-event-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.visit-event-card__loc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.visit-event-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.visit-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

.visit-gcal-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.visit-placeholder {
  padding: 1rem;
  background: #fff8e6;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: #6b5a00;
}

.visit-block code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.iglesia-detail__hq {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.iglesia-detail__schedule,
.iglesia-detail__directions {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-elevated, #f8f9fc);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border, #e8ecf2);
}

.iglesia-detail__schedule h3,
.iglesia-detail__directions h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.iglesia-detail__schedule ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iglesia-detail__schedule li {
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.iglesia-detail__schedule li strong { min-width: 7rem; }

.iglesia-detail__schedule li span { color: var(--text-muted); }

.iglesia-detail__more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.iglesia-detail__directions p {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 768px) {
  .visit-hq-card { grid-template-columns: 1fr; }
}
