/* ============================================
   OPAN - Oficina de Pastoral para la Niñez y la Familia
   Hoja de estilos principal
   Para cambiar la paleta de colores, edita solo las variables de :root
   ============================================ */

:root {
  /* Paleta oficial del isologo OPAN V4 (2026): azul, verde y azul-teal */
  --color-primary: #203567;      /* Azul institucional oficial (isologo V4) */
  --color-primary-dark: #16264a;
  --color-secondary: #0493d0;    /* Azul brillante oficial (isologo V4) — reemplaza el café anterior */
  --color-secondary-dark: #0376a6;
  --color-accent: #7fbd5c;       /* Verde institucional oficial (isologo V4) */
  --color-info: #0793b1;         /* Azul-teal oficial (isologo V4), disponible para acentos adicionales */
  --color-bg: #f7f5f0;           /* Fondo cálido claro */
  --color-bg-alt: #ffffff;
  --color-text: #2b2b2b;
  --color-text-light: #5a5a5a;
  --color-border: #e3ded4;
  --color-amigo-red: #8c2331;    /* Rojo institucional Amigonianos, solo para el sello/insignia */
  --color-secondary-tint: #42aedc; /* Azul claro, para texto de acento sobre fondos oscuros — derivado del azul oficial */
  --color-accent-tint: #9fce85;    /* Verde claro, para texto de acento sobre fondos oscuros — derivado del verde oficial */

  --font-heading: 'Fraunces', 'Georgia', serif;   /* Títulos editoriales */
  --font-ui: 'Poppins', 'Segoe UI', sans-serif;    /* Botones, logo, cifras, etiquetas */
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2.1rem; margin-bottom: 1rem; font-weight: 600; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; font-weight: 600; }
p { margin-bottom: 1rem; color: var(--color-text-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }

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

.eyebrow {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.section-header { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(18, 37, 58, 0.14);
  transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 37, 58, 0.2); }

.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary-dark); }

.btn-outline { background: transparent; border-color: #fff; color: #fff; box-shadow: none; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }

.btn-outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); box-shadow: none; }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-dark); }

/* ---------- Header ---------- */
/* ---------- Cinta superior de redes sociales ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 101;
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--color-primary-dark);
}
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
}
.top-bar .social-links { margin: 0; gap: 0.6rem; }
.top-bar .social-links a {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.1);
}
.top-bar .social-links a:hover { background: var(--color-secondary); }

.site-header {
  position: sticky;
  top: 38px;
  z-index: 100;
  background: var(--color-bg-alt);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.main-nav li { position: relative; }

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-secondary); text-decoration: none; }

.nav-cta {
  background: var(--color-secondary);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
}

/* ---------- Menú desplegable de subsecciones ---------- */
.has-dropdown > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.7rem;
  color: var(--color-text-light);
  vertical-align: middle;
}
.dropdown-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-bg-alt);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}
.nav-cta + .dropdown-menu { left: auto; right: 0; }
.nav-cta:hover { background: var(--color-secondary-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero::before {
  width: 460px;
  height: 460px;
  background: var(--color-accent);
  opacity: 0.08;
  top: -180px;
  right: -140px;
}
.hero::after {
  width: 320px;
  height: 320px;
  background: var(--color-secondary);
  opacity: 0.07;
  bottom: -160px;
  left: -110px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 2.7rem; margin-bottom: 1.2rem; }
.hero h1 .hl-accent { color: var(--color-secondary); }
.hero h1 .hl-accent-2 { color: var(--color-accent); }
.hero p { color: var(--color-text-light); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
/* ---------- Video incrustado (YouTube) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-photo { position: relative; }
.hero-image {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-image img, .hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.hero-badge strong {
  font-family: var(--font-ui);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.hero-badge span { font-size: 0.75rem; color: var(--color-text-light); }

/* ---------- Page banner (páginas internas) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3.6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.12;
  top: -200px;
  right: -100px;
}
.page-banner::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.06;
  bottom: -160px;
  left: -80px;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner h1 .hl-accent { color: var(--color-secondary-tint); }
.page-banner h1 .hl-accent-2 { color: var(--color-accent-tint); }
.page-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }

/* ---------- Tarjetas ---------- */
.grid {
  display: grid;
  gap: 1.8rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(18, 37, 58, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(18, 37, 58, 0.12);
  border-top-color: var(--color-secondary);
}

.card-image {
  aspect-ratio: 16/9;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p { flex: 1; font-size: 0.95rem; }

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 58, 92, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--color-secondary);
  color: #fff;
  padding: 3.2rem 0;
}
.stats .grid-3, .stats .grid-4 {
  text-align: center;
  position: relative;
}
.stats .grid-3 > div, .stats .grid-4 > div {
  position: relative;
  padding: 0 1rem;
}
.stats .grid-3 > div:not(:last-child)::after,
.stats .grid-4 > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.9rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.25);
}
.stat-number { font-family: var(--font-ui); font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.92rem; opacity: 0.92; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  padding: 3.8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.08;
  top: -160px;
  left: -80px;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  opacity: 0.1;
  bottom: -220px;
  right: -120px;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 1.5rem; }

/* ---------- Banda de cita / eslogan ---------- */
.quote-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.15;
  top: -180px;
  left: -100px;
}
.quote-band::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.15;
  bottom: -160px;
  right: -100px;
}
.quote-band .container { position: relative; z-index: 1; }
.quote-band blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 1rem;
}
.quote-band cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Blog ---------- */
.post-meta {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.post-content {
  max-width: 760px;
  margin: 0 auto;
}
.post-content h2 { margin-top: 2rem; }
.post-content p { color: var(--color-text); }
.post-hero-image {
  aspect-ratio: 21/9;
  background: var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  overflow: hidden;
}
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.85rem;
  background: #fff7ec;
  border: 1px solid #f0deb8;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* ---------- Donación ---------- */
.donation-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--color-bg-alt);
}
.donation-option h3 { color: var(--color-primary); }

/* ---------- Etiquetas de ubicación ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ---------- Mapa de cobertura (ilustrado, localidades de Bogotá + Cundinamarca) ---------- */
.coverage-map-wrap {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.coverage-map {
  width: 100%;
  height: auto;
  display: block;
}
.coverage-map .region-backdrop { fill: #ffffff; }
.coverage-map .loc-neutral {
  fill: #bfe0f5;
  stroke: #fff;
  stroke-width: 2;
}
.coverage-map .loc-presence {
  fill: var(--color-accent);
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.2s ease;
}
.coverage-map .loc-presence:hover { fill: var(--color-primary); }

.map-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-presence { background: var(--color-accent); }

/* Tooltip flotante al pasar el cursor */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 330px;
  z-index: 10;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.12s ease;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip-sede { display: block; }
.map-tooltip-sede + .map-tooltip-sede {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}
.map-tooltip.map-tooltip-multi {
  display: flex;
  align-items: flex-start;
  max-width: 470px;
}
.map-tooltip.map-tooltip-multi .map-tooltip-sede {
  flex: 1;
  min-width: 0;
}
.map-tooltip.map-tooltip-multi .map-tooltip-sede + .map-tooltip-sede {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px dashed var(--color-border);
}
.map-tooltip-photo {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}
.map-tooltip-photo-logo {
  object-fit: contain;
  background: #fff;
  padding: 0.6rem;
  box-sizing: border-box;
}
.map-tooltip-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  color: var(--color-text-light);
  font-size: 1.1rem;
}
.map-tooltip-photo-placeholder span {
  font-size: 0.65rem;
  font-family: var(--font-ui);
  text-align: center;
  line-height: 1.2;
}
.map-tooltip strong {
  display: block;
  font-family: var(--font-ui);
  color: var(--color-primary-dark);
  margin-bottom: 0.15rem;
}
.map-tooltip-meta {
  display: block;
  color: var(--color-text-light);
  font-size: 0.78rem;
}
.map-tooltip-modalidad {
  display: block;
  font-weight: 600;
  margin-top: 0.25rem;
}

[id] { scroll-margin-top: 140px; }

/* ---------- Congregación / Amigonianos ---------- */
.logo-mark img, .footer-logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.congregation-section {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 2.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.congregation-section::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.1;
  top: -180px;
  right: -100px;
  z-index: 0;
}
.congregation-section > * { position: relative; z-index: 1; }
.congregation-section h2, .congregation-section h3 { color: #fff; }
.congregation-section p { color: rgba(255,255,255,0.82); }
.congregation-badge {
  width: 180px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.congregation-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.2) brightness(0.95);
  mix-blend-mode: luminosity;
  opacity: 0.92;
}
.congregation-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.65),
    inset -3px -3px 8px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.congregation-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin: 1rem 0;
}

.footer-partner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-partner-logo {
  width: 110px;
  height: 40px;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
}
.footer-partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-partner p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; }
.footer-partner p + p { margin-top: 0.35rem; }
.footer-partner a { color: rgba(255,255,255,0.85); }

/* ---------- Aliados ---------- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 180px;
  text-align: center;
}
.partner-logo-box {
  height: 64px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
}
.partner-logo-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: all 0.2s ease;
}
.partner-badge:hover .partner-logo-box img { filter: grayscale(0); opacity: 1; }
.partner-name { font-size: 0.78rem; color: var(--color-text-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.7rem; }
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem;
}
.social-links a:hover { background: var(--color-secondary); text-decoration: none; }
.footer-motto {
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent-tint);
  font-size: 0.95rem;
  margin: 2rem 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .congregation-section { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 680px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow);
    display: none;
    padding: 1rem 1.5rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .main-nav li { width: 100%; }
  .menu-toggle { display: flex; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-left: 2px solid var(--color-border);
    padding: 0.3rem 0 0.3rem 0.8rem;
    margin-top: 0.5rem;
  }
  .dropdown-menu a { padding: 0.4rem 0; font-size: 0.85rem; color: var(--color-text-light); }
  .nav-cta + .dropdown-menu { right: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .stats .grid-3 > div, .stats .grid-4 > div { padding: 0.6rem 0; }
  .stats .grid-3 > div:not(:last-child)::after, .stats .grid-4 > div:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: -0.6rem;
    width: 40px; height: 1px; transform: translateX(-50%);
  }
  .hero-badge { position: static; margin-top: 1rem; display: inline-flex; }
}

/* ---------- Videos de TikTok incrustados ---------- */
.tiktok-grid {
  justify-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.tiktok-embed { margin: 0 auto; }
@media (max-width: 680px) {
  .tiktok-grid { grid-template-columns: 1fr; }
}

/* Pares de video de TikTok con su texto arriba, dos por fila */
.tiktok-pair-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.tiktok-card { text-align: center; }
.tiktok-card h3 { font-size: 1.3rem; }
.tiktok-card p { max-width: 340px; margin-left: auto; margin-right: auto; }
.tiktok-card .tiktok-embed { max-width: 320px !important; min-width: 260px !important; }
@media (max-width: 680px) {
  .tiktok-pair-row { grid-template-columns: 1fr; gap: 2rem; }
}
