/* =============================================
   Internet Online — El internet de nuestra gente
   Identidad: Azul royal #16357E + Amarillo #FDB913
   ============================================= */

:root {
  /* Fondo y superficies */
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F7FC;
  --color-surface-3: #FAFBFE;
  --color-border: #E2E8F2;
  --color-divider: #EAEFF7;

  /* Marca — Azul Internet Online */
  --color-primary: #16357E;
  --color-primary-hover: #1E469B;
  --color-primary-light: #E9EFFA;
  --color-primary-deep: #0E255C;
  --gradient-brand: linear-gradient(135deg, #16357E 0%, #2A5BD0 60%, #1E469B 100%);

  /* Acento — Amarillo Internet Online */
  --color-accent: #FDB913;
  --color-accent-hover: #ECA600;
  --color-accent-light: #FFF2CE;

  /* Texto */
  --color-text: #111111;
  --color-text-muted: #6B7280;
  --color-text-faint: #9CA3AF;
  --color-text-inverse: #FFFFFF;
  --color-heading: #16357E;

  /* Tipografía */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl:  clamp(2.5rem, 1.4rem + 3.5vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 5.5rem);

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(22, 53, 126, 0.05);
  --shadow-md: 0 4px 12px rgba(22, 53, 126, 0.08);
  --shadow-lg: 0 12px 32px rgba(22, 53, 126, 0.12);

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1240px;

  --header-height: 80px;
}

/* =============================================
   Reset & Base
   ============================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

/* em sin estilo distintivo en el nuevo diseño */
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }

p { margin: 0 0 var(--space-4); color: var(--color-text-muted); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow { max-width: var(--content-default); }

.section-padding { padding: var(--space-20) 0; }
.section-padding-sm { padding: var(--space-16) 0; }

/* Reducir doble padding cuando hay secciones consecutivas con padding */
section.section-padding + section.section-padding,
.section-padding + section[data-section],
section[data-section] + .section-padding {
  padding-top: var(--space-12);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* =============================================
   Botones
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  transition: var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ===== Botón "Donar" — verde sólido con contraste premium =====
 *  Base: borde 1.5px más oscuro que el bg para edge definido + sombra sutil.
 *  Hover: bg más oscuro, borde aún más oscuro, sombra crece (sin transición 'all').
 *  Active: feedback de press.
 *  Focus-visible: anillo accesible para navegación con teclado.
 *  Ícono e SVG: hereda currentColor con opacity:1 — defensa contra atenuaciones.
 */
.btn-donate {
  background: #16A34A;
  color: #FFFFFF;
  border: 1.5px solid #15803D;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
  /* Transición explícita: NO 'all' (evita interpolaciones grisáceas). */
  transition: background-color 180ms ease,
              color 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease,
              transform 180ms ease;
}
.btn-donate:hover {
  background: #15803D;
  color: #FFFFFF;
  border-color: #166534;
  box-shadow: 0 12px 24px rgba(21, 128, 61, 0.22);
  transform: translateY(-1px);
}
.btn-donate:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.30);
}
.btn-donate:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.28);
  outline-offset: 3px;
}
.btn-donate i,
.btn-donate svg {
  color: currentColor;
  opacity: 1;
}

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

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

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* =============================================
   Header
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: var(--space-3) 0;
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}
.header-inner > .logo { flex-shrink: 0; }
.header-inner > .nav-desktop { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.1;
}
.logo:hover { color: var(--color-primary); }
.logo img {
  height: 48px;
  width: auto;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  min-width: 0;
}
.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.header-cta-group .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .header-cta-group { gap: 6px; }
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-desktop a {
  color: var(--color-primary);
  font-size: clamp(12.5px, 0.92vw, 14px);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  white-space: nowrap;
  /* Mismo box que el item con submenú (que es inline-flex por el caret),
     así "Ministerios" no sobresale por encima del resto. */
  display: inline-flex;
  align-items: center;
}

/* ===== Submenús (desktop dropdown) ===== */
.nav-desktop li.has-submenu { position: relative; }
.nav-desktop li.has-submenu > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-desktop .submenu-caret {
  font-size: 9px;
  transition: transform 200ms;
  opacity: 0.7;
}
.nav-desktop li.has-submenu:hover > a > .submenu-caret,
.nav-desktop li.has-submenu.submenu-open > a > .submenu-caret { transform: rotate(180deg); }
.nav-desktop ul.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 26, 54, 0.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms, transform 180ms, visibility 180ms;
  z-index: 50;
}
.nav-desktop li.has-submenu:hover > ul.submenu,
.nav-desktop li.has-submenu:focus-within > ul.submenu,
.nav-desktop li.has-submenu.submenu-open > ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Puente invisible que evita el flicker al pasar el cursor del padre al submenú */
.nav-desktop li.has-submenu > ul.submenu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-desktop ul.submenu li { width: 100%; }
.nav-desktop ul.submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--color-primary);
}
.nav-desktop ul.submenu a:hover {
  background: var(--color-surface-2, #F8FAFC);
  color: var(--color-primary);
}

/* ===== Submenús en mobile (acordeón) ===== */
.nav-mobile li.has-submenu > a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mobile .submenu-caret {
  font-size: 11px;
  margin-left: auto;
  transition: transform 200ms;
  /* Área de toque mayor para alternar el submenú sin navegar por error */
  padding: 10px;
  margin-right: -10px;
}
.nav-mobile li.has-submenu.submenu-open > a > .submenu-caret { transform: rotate(180deg); }
.nav-mobile ul.submenu {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 4px 0 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}
.nav-mobile li.has-submenu.submenu-open > ul.submenu { max-height: 500px; }
.nav-mobile ul.submenu li { padding: 4px 0; }
.nav-mobile ul.submenu a {
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  color: var(--color-primary);
  border-left: 2px solid var(--color-border);
  padding-left: 12px;
}
.nav-mobile ul.submenu a:hover { border-left-color: var(--color-accent); }
/* En anchos medianos: priorizar nav, reducir tamaño de botones de CTA */
@media (max-width: 1280px) {
  .header-cta-group .btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}
@media (max-width: 1100px) {
  .header-cta-group .btn-sm i {
    margin-right: 0;
  }
  .header-cta-group .btn-sm span,
  .header-cta-group .btn-donate span { /* sin uso pero futuro-proof */ }
}
.nav-desktop a:hover { color: var(--color-text-muted); }
.nav-desktop a.active { color: var(--color-primary); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  transition: var(--transition);
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  padding: calc(var(--header-height) + var(--space-6)) var(--space-6) var(--space-6);
  transition: right var(--transition-slow);
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nav-mobile a {
  display: block;
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-mobile a.active, .nav-mobile a:hover { color: var(--color-text-muted); }

.nav-mobile .btn { margin-top: var(--space-6); width: 100%; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 54, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* =============================================
   Hero Slider
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;       /* fallback: navegadores sin dvh */
  min-height: 100dvh;      /* iOS/Android modernos: evita el "salto" al esconderse la barra de URL */
  overflow: hidden;
}
.hero .swiper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: left;
  color: #fff;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 54, 0.35) 0%, rgba(15, 26, 54, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  padding: 0 var(--space-6);
  margin: 0 auto;
  width: 100%;
}
.hero-content-inner { max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  line-height: 1.55;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transition: var(--transition);
}
.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
  background: #fff;
  color: var(--color-primary);
}
.hero .swiper-button-prev::after,
.hero .swiper-button-next::after { font-size: 16px; font-weight: 700; }

.hero .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.hero .swiper-pagination-bullet-active { background: var(--color-accent); width: 32px; border-radius: 5px; }

/* =============================================
   Page Hero (interior)
   ============================================= */

.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  background: linear-gradient(180deg, rgba(15, 26, 54, 0.55), rgba(15, 26, 54, 0.85)),
              url('https://picsum.photos/seed/church-interior/1920/600') center/cover;
  color: #fff;
}
.page-hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-4);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li::after {
  content: '/';
  margin-left: var(--space-2);
  color: rgba(255, 255, 255, 0.3);
}
.breadcrumb li:last-child::after { content: ''; }

/* =============================================
   Section Headings
   ============================================= */

.section-heading {
  text-align: left;
  margin-bottom: var(--space-12);
  max-width: 760px;
}
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.section-divider { display: none; }
.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* =============================================
   Quick Access Strip
   ============================================= */

.quick-access {
  background: var(--color-surface-2);
  padding: var(--space-12) 0;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.quick-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  color: var(--color-primary);
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.quick-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-right: 4px;
}
.quick-card-text { flex-grow: 1; }
.quick-card-title { font-weight: 700; font-size: var(--text-base); line-height: 1.2; }
.quick-card-sub { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 400; margin-top: 2px; }
.quick-card-arrow { color: var(--color-text-faint); transition: var(--transition); }
.quick-card:hover .quick-card-arrow { color: var(--color-primary); transform: translateX(4px); }

@media (max-width: 767px) { .quick-grid { grid-template-columns: 1fr; } }

/* =============================================
   Countdown - próxima reunión
   ============================================= */

/* ===== NEXT EVENT (countdown dinámico al próximo culto/evento) ===== */
.next-event-section {
  background: linear-gradient(135deg, #0F1A36 0%, #1A2845 100%);
  padding: var(--space-16) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.next-event-section::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.08) 0%, transparent 70%);
  top: -260px;
  right: -200px;
  pointer-events: none;
}
.ne-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.ne-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 204, 0, 0.15);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ne-title {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.ne-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 520px;
}
.ne-cta {
  margin-top: 4px;
}

.ne-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ne-box {
  background: rgba(15, 26, 54, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 28px) 8px;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 200ms;
}
.ne-box:hover { transform: translateY(-2px); }
.ne-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ne-lbl {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .ne-grid { grid-template-columns: 1fr; gap: 36px; }
  .ne-countdown { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .ne-countdown { gap: 8px; }
  .ne-box { padding: 16px 4px; border-radius: 10px; }
}

/* ===== Sección oculta (config: visible=false) ===== */
/* Producción: colapso TOTAL — sin bg, sin padding, sin altura, sin nada.
   Doble defensa contra padding inline aplicado por _renderSection o por temas. */
.em-section-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Modo edición: la sección oculta se reemplaza por un "ghost strip" rayado
   para que el admin sepa dónde está y pueda mostrarla. Los visitantes públicos
   NO la verán (la regla anterior gana cuando no hay body.em-edit-mode). */
body.em-edit-mode .em-section-hidden {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  background: repeating-linear-gradient(
    45deg,
    rgba(254, 243, 199, 0.95),
    rgba(254, 243, 199, 0.95) 12px,
    rgba(253, 230, 138, 0.95) 12px,
    rgba(253, 230, 138, 0.95) 24px
  ) !important;
  color: #92400E !important;
  border-top: 2px dashed #F59E0B !important;
  border-bottom: 2px dashed #F59E0B !important;
  position: relative !important;
  overflow: hidden !important;
  opacity: 1 !important;
}
/* Los hijos no se ven: solo el strip + el texto generado */
body.em-edit-mode .em-section-hidden > * { display: none !important; }
body.em-edit-mode .em-section-hidden::before {
  content: '🚫 Sección "' attr(data-section) '" oculta — solo visible para ti como editor';
  display: block !important;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #92400E !important;
}
body.em-edit-mode .em-section-hidden::after {
  content: 'Haz hover sobre esta franja → clic en el ojo para volver a mostrarla';
  display: block !important;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  color: rgba(146, 64, 14, 0.7) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================
   TAREA H — Botón WhatsApp flotante
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: none;            /* JS lo activa cuando hay config válida */
  align-items: center;
  gap: 0.5rem;
}
.whatsapp-btn {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: wa-pulse 2.5s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
  animation: none;
}
.whatsapp-btn:focus-visible {
  outline: 3px solid #0F1A36;
  outline-offset: 4px;
}
.whatsapp-tooltip {
  background: #0F1A36;
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 26, 54, 0.25);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 180ms, transform 180ms;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-within .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0   rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0);    }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0   rgba(37, 211, 102, 0);    }
}
@media (max-width: 600px) {
  .whatsapp-float { bottom: 1rem; right: 1rem; }
  .whatsapp-btn { width: 52px; height: 52px; font-size: 1.6rem; }
  .whatsapp-tooltip { display: none; }    /* En mobile sin tooltip — menos ruido */
}
/* En modo edición no estorba — pero permite verlo si el admin lo quiere comprobar */
body.em-edit-mode .whatsapp-float { opacity: 0.55; }
body.em-edit-mode .whatsapp-float:hover { opacity: 1; }

/* ===== Overlay de MANTENIMIENTO / EN CONSTRUCCIÓN ===== */
body.has-maint-overlay { overflow: hidden; }
.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #0F1A36 0%, #1A2845 60%, #0B1530 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: maint-fade-in 300ms ease;
}
@keyframes maint-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.maint-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.maint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: rgba(255, 204, 0, 0.15);
  border: 2px solid rgba(255, 204, 0, 0.35);
  color: #FFCC00;
  border-radius: 50%;
  font-size: 38px;
  margin: 0 auto 24px;
  animation: maint-pulse 2.5s ease-in-out infinite;
}
.maint-overlay-global .maint-icon i {
  animation: maint-gear-spin 5s linear infinite;
}
@keyframes maint-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 204, 0, 0.08); }
}
@keyframes maint-gear-spin {
  to { transform: rotate(360deg); }
}
.maint-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}
.maint-message {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.maint-eta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(15, 26, 54, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 28px;
  margin-bottom: 24px;
}
.maint-eta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.maint-eta-counter {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #FFCC00;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
}
.maint-eta-when {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.maint-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #FFCC00;
  color: #0F1A36;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 150ms, box-shadow 150ms;
  margin-bottom: 24px;
}
.maint-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.35);
}
.maint-footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 16px 0 0;
}
.maint-footer a { color: #FFCC00; text-decoration: none; }
.maint-footer a:hover { text-decoration: underline; }

/* =============================================
   Welcome Section
   ============================================= */

.welcome { background: var(--color-bg); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-16);
  align-items: center;
}
.welcome-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.welcome-text p { color: var(--color-text-muted); }

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.stat { text-align: left; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.welcome-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

@media (max-width: 767px) {
  .welcome-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .welcome-stats { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* =============================================
   Schedule Cards
   ============================================= */

.schedule { background: var(--color-surface-2); }
/* ===== Schedule grid (mobile-first) =====
 *  Mobile (<768px):   1 columna
 *  Tablet (768-1023): 2 columnas
 *  Desktop (>=1024):  4 columnas en 1 fila
 *  Cards compactas para que 4 quepan en 1024px (~240px cada una con gap).
 */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .schedule-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.schedule-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;                    /* mobile (≤767px): 20px todos los lados */
  transition: var(--transition);
  min-width: 0;                        /* permite que grid items se compriman sin romper */
}
@media (min-width: 768px) {
  /* tablet + desktop: más respiro vertical, lateral algo más compacto */
  .schedule-card { padding: 1.75rem 1.5rem; }
}
.schedule-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.schedule-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;                 /* 16px de separación entre ícono y texto */
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-day {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;              /* 4px — eyebrow pegado al título */
  /* Permite truncar en 1024px si "Primer viernes del mes" es muy largo */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.schedule-card h3 {
  font-size: clamp(15px, 1.2vw, 17px);
  margin-bottom: 0.5rem;               /* 8px */
  line-height: 1.3;
}

.schedule-time {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--color-primary);
  margin-bottom: 0.75rem;              /* 12px — más respiro antes de la descripción */
  font-weight: 700;
  letter-spacing: -0.01em;
}

.schedule-card p {
  font-size: 13px;
  margin: 0;                           /* el padding del card da el espacio inferior */
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =============================================
   Mission Banner
   ============================================= */

.mission-banner {
  position: relative;
  padding: var(--space-20) 0;
  /* Antes: ... center/cover fixed  →  causaba repaints continuos en iOS Safari
     (background-attachment: fixed no se puede componer en capa GPU). Quitado el "fixed". */
  background: linear-gradient(180deg, rgba(15, 26, 54, 0.75), rgba(15, 26, 54, 0.9)),
              url('https://picsum.photos/seed/mission/1920/800') center/cover no-repeat;
  text-align: center;
  color: #fff;
}
.mission-banner .section-eyebrow {
  background: rgba(255, 204, 0, 0.15);
  color: var(--color-accent);
}
.mission-banner h2 {
  font-size: var(--text-3xl);
  max-width: 900px;
  margin: 0 auto var(--space-6);
  line-height: 1.15;
  color: #fff;
}
.mission-banner p {
  max-width: 700px;
  margin: 0 auto var(--space-8);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
}

/* =============================================
   Ministerios - Grid grande estilo Su Presencia
   ============================================= */

.ministries { background: var(--color-bg); }
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.ministry-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  isolation: isolate;
}
.ministry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 26, 54, 0.85) 100%);
  z-index: 1;
  transition: var(--transition);
}
.ministry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ministry-card:hover::before { background: linear-gradient(180deg, rgba(15, 26, 54, 0.3) 0%, rgba(15, 26, 54, 0.95) 100%); }
.ministry-card > * { position: relative; z-index: 2; color: #fff; }
.ministry-icon-bare {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
}
.ministry-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.ministry-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin: 0;
}
.ministry-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}
.ministry-card:hover .ministry-link { gap: var(--space-3); }

@media (max-width: 991px) { .ministries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ministries-grid { grid-template-columns: 1fr; } .ministry-card { aspect-ratio: 16/9; } }

/* Detalle de ministerios (página interior) */
.ministry-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ministry-detail:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); }
.ministry-detail-image {
  height: 240px;
  background-size: cover;
  background-position: center;
}
.ministry-detail-body { padding: var(--space-8); flex-grow: 1; display: flex; flex-direction: column; }
.ministry-detail-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.ministry-detail-body p { font-size: var(--text-sm); }
.ministry-meta {
  list-style: none;
  margin: var(--space-4) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.ministry-meta li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-1) 0; }
.ministry-meta i { color: var(--color-primary); width: 16px; }
.ministry-detail .btn { align-self: flex-start; margin-top: var(--space-4); }

/* =============================================
   Verse Section
   ============================================= */

.verse {
  background: var(--color-surface-2);
  padding: var(--space-20) 0;
  text-align: center;
}
.verse-content {
  max-width: 820px;
  margin: 0 auto;
}
.verse-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.3;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.verse-reference {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* =============================================
   Events
   ============================================= */

.events { background: var(--color-bg); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ===== Carrusel "Próximos eventos" =====
   El wrapper se inyecta dinámicamente en main.js. Cuando hay carrusel, la grid
   pasa a ser un row horizontal con scroll-snap. Sin carrusel (skeleton),
   la grid sigue siendo 3 columnas. */
.events-carousel-wrap {
  position: relative;
  /* min-height: protege contra el bug "sección vacía hasta resize".
     Aun si el grid interno no ha calculado layout cuando setupEventsCarousel
     ejecuta, el contenedor reserva alto suficiente para que ResizeObserver
     detecte el cambio y los cards no queden visualmente "aplastados". */
  min-height: 380px;
}
.events-grid-carousel {
  display: flex;
  grid-template-columns: none;            /* anular el grid */
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;                  /* Firefox: barra fina */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;                    /* deja respirar la sombra del hover */
}
.events-grid-carousel::-webkit-scrollbar { height: 6px; }
.events-grid-carousel::-webkit-scrollbar-thumb { background: rgba(15, 26, 54, 0.18); border-radius: 999px; }
.events-grid-carousel > .event-card {
  flex: 0 0 calc((100% - 2 * var(--space-6)) / 3);   /* 3 cards visibles en desktop */
  scroll-snap-align: start;
}
.events-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 26, 54, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 5;
  transition: opacity 180ms, transform 180ms, background 180ms;
}
.events-carousel-prev { left: -22px; }
.events-carousel-next { right: -22px; }
.events-carousel-btn:hover { background: var(--color-primary); color: #fff; }
.events-carousel-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.events-carousel-btn.disabled {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}

@media (max-width: 991px) {
  .events-grid-carousel > .event-card { flex: 0 0 calc((100% - var(--space-6)) / 2); }   /* 2 visibles tablet */
  .events-carousel-prev { left: -8px; }
  .events-carousel-next { right: -8px; }
}
@media (max-width: 575px) {
  .events-grid-carousel > .event-card { flex: 0 0 88%; }                                 /* 1 visible móvil, con peek */
  .events-carousel-btn { width: 38px; height: 38px; }
  .events-carousel-prev { left: 4px; }
  .events-carousel-next { right: 4px; }
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.event-card-skeleton {
  opacity: 0.45;
  pointer-events: none;
  animation: ec-pulse 1.4s ease-in-out infinite;
}
.event-card-skeleton .event-image {
  background: linear-gradient(90deg, #E5E7EB, #F3F4F6, #E5E7EB);
  background-size: 200% 100%;
  animation: ec-shimmer 1.4s linear infinite;
}
.event-card-skeleton .event-body { padding: var(--space-6); }
@keyframes ec-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes ec-pulse   { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.3; } }

.event-image {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.event-date {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: #fff;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 64px;
  box-shadow: var(--shadow-sm);
}
.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1;
  font-weight: 700;
}
.event-month {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.event-body {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.event-meta i { color: var(--color-primary); margin-right: 4px; }
.event-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.event-body p { font-size: var(--text-sm); flex-grow: 1; }
.event-body .btn { align-self: flex-start; margin-top: var(--space-4); }

@media (max-width: 991px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .events-grid { grid-template-columns: 1fr; } }

.event-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.filter-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   Gallery
   ============================================= */

.gallery { background: var(--color-bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: var(--space-3);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 54, 0.7);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: auto; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 54, 0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: #fff;
  color: var(--color-primary);
}
.lightbox-close { top: var(--space-6); right: var(--space-6); }
.lightbox-prev { left: var(--space-6); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-6); top: 50%; transform: translateY(-50%); }

/* =============================================
   Testimonials
   ============================================= */

.testimonials { background: var(--color-surface-2); }
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.testimonial-quote {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  line-height: 1.5;
  font-weight: 500;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-3);
}
.testimonial-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}
.testimonial-role {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}

.testimonials .swiper-pagination { position: relative; margin-top: var(--space-8); }
.testimonials .swiper-pagination-bullet { background: var(--color-border); opacity: 1; }
.testimonials .swiper-pagination-bullet-active { background: var(--color-primary); }

/* =============================================
   Donate CTA
   ============================================= */

.donate-cta {
  background: var(--color-primary);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.donate-cta-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.donate-cta .section-eyebrow {
  background: rgba(255, 204, 0, 0.15);
  color: var(--color-accent);
}
.donate-cta h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); color: #fff; }
.donate-cta p { color: rgba(255, 255, 255, 0.8); font-size: var(--text-lg); margin-bottom: var(--space-8); }

/* =============================================
   FAQ
   ============================================= */

.faq { background: var(--color-bg); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 991px) { .faq-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* =============================================
   Contact
   ============================================= */

.contact-section { background: var(--color-surface-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--color-primary); transform: translateX(4px); }
.contact-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.contact-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
  color: var(--color-primary);
  font-weight: 700;
}
.contact-item p { color: var(--color-text-muted); margin: 0; font-size: var(--text-sm); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--color-border);
  position: relative;
}
.map-wrapper iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.map-directions-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-primary, #0F1A36);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(15, 26, 54, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms, background 180ms;
  z-index: 2;
}
.map-directions-btn:hover {
  background: var(--color-primary, #0F1A36);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 26, 54, 0.45);
}
.map-directions-btn i { color: var(--color-accent, #FFCC00); font-size: 15px; }
@media (max-width: 600px) {
  .map-directions-btn { left: 16px; right: 16px; justify-content: center; }
}

@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

/* =============================================
   Contact Form
   ============================================= */

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}
.form-group { margin-bottom: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 26, 54, 0.08);
}
.form-control::placeholder { color: var(--color-text-faint); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-error {
  display: none;
  color: #DC2626;
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  font-weight: 500;
}
.form-group.invalid .form-error { display: block; }
.form-group.invalid .form-control { border-color: #DC2626; }

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  text-align: center;
  display: none;
  font-weight: 500;
  font-size: var(--text-sm);
}
.form-status.show { display: block; }
.form-status.success { background: #ECFDF5; border: 1px solid #6EE7B7; color: #047857; }
.form-status.error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; }

@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; } }

/* =============================================
   Timeline
   ============================================= */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) var(--space-12);
  margin-bottom: var(--space-4);
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: var(--space-6);
  left: 15px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 700;
}
.timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.timeline-content h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.timeline-content p { color: var(--color-text-muted); margin: 0; font-size: var(--text-sm); }

/* =============================================
   Values
   ============================================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.value-card {
  text-align: left;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-5);
}
.value-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.value-card p { font-size: var(--text-sm); margin: 0; }

@media (max-width: 767px) { .values-grid { grid-template-columns: 1fr; } }

/* =============================================
   Team
   ============================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.team-photo { aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.team-body { padding: var(--space-6); }
.team-name { font-family: var(--font-display); font-size: var(--text-base); margin-bottom: var(--space-1); font-weight: 700; }
.team-role {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.team-card p { font-size: var(--text-sm); margin: 0; }

@media (max-width: 991px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .team-grid { grid-template-columns: 1fr; } }

/* =============================================
   Accordion
   ============================================= */

.accordion {
  width: 100%;
}
.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item:hover { border-color: var(--color-primary); }
.accordion-item.open { border-color: var(--color-primary); }
.accordion-header {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  gap: var(--space-4);
}
.accordion-header i {
  color: var(--color-primary);
  transition: transform var(--transition);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.accordion-item.open .accordion-header i {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
}
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.accordion-body-inner { padding: 0 var(--space-6) var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); }
.accordion-item.open .accordion-body { max-height: 500px; }

/* =============================================
   Sermones
   ============================================= */

.search-bar {
  max-width: 640px;
  margin: 0 auto var(--space-12);
  position: relative;
}
.search-bar input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-6);
  color: var(--color-text);
  font-size: var(--text-base);
}
.search-bar input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15, 26, 54, 0.08); }
.search-bar i {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.sermon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.sermon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.sermon-thumb {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}
.sermon-thumb::after {
  content: '\f04b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 54, 0.45);
  color: #fff;
  font-size: 2.5rem;
  transition: var(--transition);
}
.sermon-card:hover .sermon-thumb::after { background: rgba(15, 26, 54, 0.7); }
.sermon-body { padding: var(--space-6); flex-grow: 1; display: flex; flex-direction: column; }
.sermon-topic {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.sermon-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.sermon-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-5);
}
.sermon-actions { display: flex; gap: var(--space-3); margin-top: auto; }
.sermon-actions .btn { flex: 1; }

@media (max-width: 991px) { .sermons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sermons-grid { grid-template-columns: 1fr; } }

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background: var(--color-primary);
  padding: var(--space-20) 0 var(--space-6);
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-col h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-brand img {
  height: 56px;
  margin-bottom: var(--space-4);
  filter: brightness(1.1);
}
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: var(--text-sm); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: var(--space-1) 0; }
.footer-col a, .footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-col p { margin-bottom: var(--space-2); }

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
}

@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* =============================================
   Helpers
   ============================================= */

.hide-on-mobile { display: block; }
@media (max-width: 991px) { .hide-on-mobile { display: none; } }

/* =============================================
   Back-to-top FAB
   Posición: encima de WhatsApp en la misma columna derecha.
   Robusto: si WhatsApp está oculto (display:none), este sigue en esquina inferior derecha.
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;                 /* WhatsApp ocupa hasta ~5rem desde el borde inferior */
  right: 1.5rem;
  width: 44px;                    /* tamaño táctil mínimo */
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(15, 26, 54, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms, background 180ms, box-shadow 180ms;
  z-index: 998;                   /* WhatsApp está en z:1000; back-to-top apenas debajo */
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #1A2845;
  box-shadow: 0 6px 20px rgba(15, 26, 54, 0.28);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.back-to-top:active { transform: translateY(0) scale(0.96); }
body.em-edit-mode .back-to-top { opacity: 0.55; }
body.em-edit-mode .back-to-top.visible:hover { opacity: 1; }

@media (max-width: 600px) {
  /* WhatsApp en móvil va a bottom:1rem + 52px = ~4.25rem. Subimos un poco más. */
  .back-to-top { width: 40px; height: 40px; bottom: 4.75rem; right: 1rem; }
}

/* =============================================
   Cookie Consent Banner + Modal
   Ley 1581/2012 — Colombia
   ============================================= */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 32px);
  width: calc(100% - 2rem);
  max-width: 980px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 26, 54, 0.18);
  padding: 18px 20px;
  z-index: 1100;                    /* sobre WhatsApp (1000) y back-to-top (998) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}
.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; gap: 20px; }
}
.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #374151;
  flex: 1;
}
.cookie-banner-text strong { display: block; color: var(--color-primary); margin-bottom: 4px; font-size: 14px; }
.cookie-banner-text a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  font-family: inherit;
  transition: background 160ms, border-color 160ms, color 160ms, transform 80ms;
}
.cookie-btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-btn-primary:hover { background: #1A2845; }
.cookie-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-btn-outline:hover { background: rgba(15, 26, 54, 0.06); }
.cookie-btn-ghost {
  background: transparent;
  color: var(--color-text-muted, #6B7280);
  border-color: transparent;
}
.cookie-btn-ghost:hover { background: #F3F4F6; color: var(--color-primary); }

@media (max-width: 600px) {
  .cookie-banner { padding: 14px 16px; bottom: 0.5rem; width: calc(100% - 1rem); }
  .cookie-btn { flex: 1; min-width: 0; }      /* en móvil los 3 botones ocupan toda la fila */
}

/* ===== Modal de preferencias ===== */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms;
}
.cookie-modal.visible { opacity: 1; visibility: visible; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 54, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.cookie-modal-card {
  position: relative;
  margin: auto;
  margin-top: 8vh;
  max-width: 560px;
  width: calc(100% - 2rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 26, 54, 0.3);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 220ms ease;
}
.cookie-modal.visible .cookie-modal-card { transform: translateY(0); }
.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--color-primary), #1A2845);
  color: #fff;
}
.cookie-modal-head h3 { margin: 0; font-size: 17px; color: #fff; }
.cookie-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover { background: rgba(255, 255, 255, 0.22); }
.cookie-modal-body { padding: 18px 22px; max-height: 60vh; overflow-y: auto; }
.cookie-modal-intro { font-size: 13px; line-height: 1.6; color: #4B5563; margin: 0 0 16px; }
.cookie-modal-intro a { color: var(--color-primary); text-decoration: underline; }

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border, #E5E7EB);
  cursor: pointer;
}
.cookie-row:first-of-type { border-top: 0; }
.cookie-row-locked { cursor: not-allowed; opacity: 0.78; }
.cookie-row-text strong { display: block; color: var(--color-primary); font-size: 14px; margin-bottom: 3px; }
.cookie-row-text span { font-size: 12.5px; line-height: 1.5; color: #6B7280; }

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 999px;
  transition: background 180ms;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 180ms;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--color-primary); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--color-accent); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.cookie-modal-foot {
  padding: 16px 22px;
  background: #F9FAFB;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  border-top: 1px solid var(--color-border, #E5E7EB);
}
@media (max-width: 600px) {
  .cookie-modal-foot .cookie-btn { flex: 1; min-width: 0; }
}

/* En modo edición visual: atenuado para que no estorbe al editar (coherente con whatsapp-float y back-to-top) */
body.em-edit-mode .cookie-banner,
body.em-edit-mode .cookie-modal { opacity: 0.55; }
body.em-edit-mode .cookie-banner.visible:hover,
body.em-edit-mode .cookie-modal.visible:hover { opacity: 1; }

/* =============================================
   Grupos Pequeños page — UX Redesign v2
   ============================================= */

/* ---- Hero ---- */
.gp-hero {
  background: linear-gradient(135deg, #0F1A36 0%, #1a2d5a 100%);
  /* El header es position:fixed (80px). Compensamos para que el título no quede
     detrás del header y darle presencia de portada editorial.
     Bottom = 0: la onda blanca debe quedar al ras (sin franja navy debajo). */
  padding: calc(var(--header-height) + 64px) 0 0;
  position: relative;
  overflow: hidden;
}
.gp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,204,0,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255,204,0,.08) 0%, transparent 40%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px);
  pointer-events: none;
}
.gp-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,204,0,.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.gp-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.gp-hero-text { flex: 1; }
.gp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,204,0,.15);
  color: #FFCC00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 5px 14px 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  border: 1px solid rgba(255,204,0,.2);
  backdrop-filter: blur(4px);
}
.gp-hero-badge::before {
  content: '\f02e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #FFCC00;
}
.gp-hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.gp-hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  margin-bottom: 14px;
}
.gp-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}
.gp-hero-logo { flex-shrink: 0; }
.gp-hero-logo img {
  width: 140px;
  height: auto;
  opacity: .7;
  filter: brightness(0) invert(1);
}
.gp-hero-wave { margin-top: -1px; line-height: 0; }
.gp-hero-wave svg { display: block; width: 100%; height: 60px; }
@media (max-width: 640px) {
  .gp-hero { padding: calc(var(--header-height) + 16px) 0 0; }
  .gp-hero-inner { flex-direction: column; text-align: center; }
  .gp-hero-text h1 { font-size: 34px; }
  .gp-hero-sub { font-size: 17px; }
  .gp-hero-desc { max-width: 100%; }
  .gp-hero-logo img { width: 90px; }
}

/* ---- Intro ---- */
.gp-intro { padding: 70px 0; background: #fff; }
.gp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #FFCC00;
  margin-bottom: 8px;
}
.gp-section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: #FFCC00;
  border-radius: 2px;
}
.gp-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0F1A36;
  margin: 0 0 16px;
  line-height: 1.2;
}
.gp-section-title em { color: #FFCC00; font-style: normal; }
.gp-intro p { font-size: 15px; line-height: 1.75; color: #555; margin: 0 0 16px; }
.gp-cite {
  font-size: 14px !important;
  font-style: italic;
  color: #666 !important;
  padding: 14px 18px;
  background: #f5f7fa;
  border-radius: 12px;
  border-left: 3px solid #FFCC00;
  position: relative;
}
.gp-cite::before {
  content: '\201c';
  font-size: 28px;
  color: #FFCC00;
  font-style: normal;
  line-height: 0;
  position: relative;
  top: 6px;
  margin-right: 2px;
}
.gp-cite strong { color: #0F1A36; }
.gp-intro-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.gp-stat {
  text-align: center;
  background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%);
  border-radius: 16px;
  padding: 28px 16px;
  flex: 1;
  border: 1px solid #eef0f4;
  box-shadow: 0 2px 8px rgba(15,26,54,.04);
  transition: transform .2s, box-shadow .2s;
}
.gp-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,26,54,.08); }
.gp-stat-icon {
  font-size: 24px;
  color: #FFCC00;
  margin-bottom: 10px;
  display: block;
}
.gp-stat-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #0F1A36;
  line-height: 1;
  margin-bottom: 6px;
}
.gp-stat-label {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .gp-intro { padding: 44px 0; }
  .gp-section-title { font-size: 24px; }
  .gp-intro-stats { flex-wrap: wrap; gap: 12px; }
  .gp-stat { padding: 20px 12px; flex: 1 1 calc(50% - 6px); }
  .gp-stat-num { font-size: 26px; }
}

/* ---- Guía rápida ---- */
.gp-guia { padding: 70px 0; background: #f5f7fa; }
.gp-guia-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  height: 100%;
  border: 1px solid #eef0f4;
  box-shadow: 0 2px 8px rgba(15,26,54,.04);
  transition: box-shadow .25s, transform .25s;
}
.gp-guia-card:hover { box-shadow: 0 10px 35px rgba(15,26,54,.1); transform: translateY(-3px); }
.gp-guia-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(15,26,54,.06), rgba(255,204,0,.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: #0F1A36;
}
.gp-guia-card h3 { font-size: 17px; font-weight: 700; color: #0F1A36; margin: 0 0 10px; }
.gp-guia-card p { font-size: 14px; line-height: 1.7; color: #666; margin: 0; }
.gp-guia-card p strong { color: #0F1A36; }
@media (max-width: 640px) { .gp-guia { padding: 44px 0; } }

/* ---- Índice visual ---- */
.gp-indice { padding: 70px 0; background: #fff; }
.gp-section-heading { text-align: center; margin-bottom: 36px; }
.gp-section-desc { font-size: 15px; color: #888; max-width: 500px; margin: 8px auto 0; line-height: 1.6; }
.gp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 22px 14px 18px;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  height: 100%;
  box-shadow: 0 1px 4px rgba(15,26,54,.03);
}
.gp-card:hover {
  border-color: #FFCC00;
  background: #fffbe6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,204,0,.12);
}
.gp-card-num {
  font-size: 24px;
  font-weight: 800;
  color: #FFCC00;
  line-height: 1;
  margin-bottom: 2px;
}
.gp-card-mes {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
}
.gp-card-tema {
  font-size: 13px;
  font-weight: 600;
  color: #0F1A36;
  line-height: 1.3;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .gp-indice { padding: 44px 0; }
  .gp-card { padding: 18px 10px 14px; }
  .gp-card-num { font-size: 20px; }
  .gp-card-tema { font-size: 12px; }
}

/* ---- Contenido mensual ---- */
.gp-meses { padding: 56px 0 80px; background: #f5f7fa; }
/* Contenedor un poco más ancho solo aquí: evita el efecto "banda estrecha". */
.gp-meses .container-narrow { max-width: 900px; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.gp-mes { margin-bottom: 16px; }
.gp-mes details {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f4;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,26,54,.03);
  transition: box-shadow .25s;
}
.gp-mes details[open] { box-shadow: 0 6px 30px rgba(15,26,54,.08); }
.gp-mes details summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #0F1A36;
  color: #fff;
  transition: background .2s;
  position: relative;
}
.gp-mes details summary::-webkit-details-marker { display: none; }
.gp-mes details summary:hover { background: #1a2d5a; }
.gp-mes details summary::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 16px;
  color: rgba(255,204,0,.6);
  transition: transform .25s ease, color .2s;
  flex-shrink: 0;
  margin-left: auto;
}
.gp-mes details[open] summary::after { transform: rotate(180deg); color: #FFCC00; }
.gp-mes-num {
  font-size: 12px;
  font-weight: 800;
  color: #FFCC00;
  background: rgba(255,204,0,.15);
  padding: 2px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}
.gp-mes-head { display: flex; flex-direction: column; gap: 1px; }
.gp-mes-name { font-size: 15px; font-weight: 700; }
.gp-mes-tema { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.gp-mes-body {
  padding: 24px 24px 20px;
  animation: gp-fade-in .3s ease;
}
@keyframes gp-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gp-mes-meta {
  font-size: 14px;
  font-style: italic;
  color: #666;
  padding: 14px 18px;
  background: #f5f7fa;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 3px solid #FFCC00;
}
.gp-mes-nota {
  font-size: 13px;
  padding: 10px 14px;
  background: #fffbe6;
  border-radius: 10px;
  margin-bottom: 16px;
  border-left: 3px solid #FFCC00;
  color: #8a7a00;
}

/* ---- Semanas dentro de cada mes ---- */
.gp-week {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #f0f2f5;
  transition: box-shadow .2s;
}
.gp-week:hover { box-shadow: 0 2px 12px rgba(15,26,54,.05); }
.gp-week:last-child { margin-bottom: 0; }
.gp-week h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0F1A36;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFCC00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gp-week h4::before {
  content: '\f02a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: #FFCC00;
}
.gp-week h4 span {
  font-weight: 500;
  color: #FFCC00;
  font-size: 13px;
  margin-left: auto;
  background: rgba(255,204,0,.1);
  padding: 1px 10px;
  border-radius: 8px;
}
.gp-week p {
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.65;
  color: #555;
  padding-left: 0;
}
.gp-week p:last-child { margin-bottom: 0; }
.gp-week p strong:first-child {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #0F1A36;
  background: rgba(255,204,0,.12);
  padding: 1px 10px;
  border-radius: 6px;
  margin-right: 6px;
}

/* ---- CTA ---- */
.gp-cta {
  padding: 84px 0;
  /* CTA clara/editorial: se diferencia del footer navy por luminosidad. */
  background: #ffffff;
  color: #0F1A36;
  position: relative;
  /* Línea sutil que la separa del gris de los acordeones de arriba. */
  border-top: 1px solid #e8ebf1;
}
.gp-cta::before { content: none; }
.gp-cta h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin: 0 0 14px; color: #0F1A36; letter-spacing: -.02em; }
.gp-cta p { font-size: 17px; color: #3a4456; margin: 0 0 28px; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.gp-cta .btn-primary {
  background: #0F1A36;
  color: #FFFFFF;
  border: 2px solid #0F1A36;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 16px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(15,26,54,.16);
}
.gp-cta .btn-primary:hover { background: #16284d; border-color: #16284d; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,26,54,.22); }
.gp-cta .btn-primary i { margin-right: 8px; }
.gp-cta-note {
  font-size: 13px !important;
  color: #6B7280 !important;
  margin-top: 16px !important;
}
@media (max-width: 640px) { .gp-cta { padding: 44px 0; } }

/* =============================================
   Print / PDF — hidden on screen, full on print
   ============================================= */
.gp-print-only { display: none; }

/* ---- Print cover ---- */
.print-page { page-break-after: always; }
.print-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0F1A36;
  color: #fff;
  text-align: center;
  page-break-after: always;
}
.print-cover-inner { max-width: 480px; padding: 40px; }
.print-cover-inner .print-logo {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}
.print-cover-inner h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.print-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  margin: 0 0 20px;
}
.print-divider {
  width: 60px;
  height: 3px;
  background: #FFCC00;
  margin: 0 auto 20px;
  border-radius: 2px;
}
.print-church { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.print-meta { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }
.print-date { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 20px; }

/* ---- Print TOC ---- */
.print-toc {
  padding: 60px 48px;
  background: #fff;
}
.print-toc h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0F1A36;
  margin: 0 0 24px;
  border-bottom: 2px solid #FFCC00;
  padding-bottom: 12px;
}
.print-toc table { width: 100%; border-collapse: collapse; }
.print-toc tr { border-bottom: 1px solid #eef0f4; }
.print-toc td { padding: 10px 12px; font-size: 14px; color: #333; }
.print-toc .toc-num {
  font-weight: 800;
  color: #FFCC00;
  width: 40px;
}

/* ---- Print month pages ---- */
.print-mes { padding: 48px; background: #fff; }
.print-mes-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #0F1A36;
  border-radius: 12px;
  color: #fff;
}
.print-mes-num {
  font-size: 18px;
  font-weight: 800;
  color: #FFCC00;
  background: rgba(255,204,0,.15);
  padding: 4px 12px;
  border-radius: 10px;
}
.print-mes-head h2 { font-size: 22px; font-weight: 700; margin: 0; color: #fff; }
.print-mes-head p { font-size: 14px; color: rgba(255,255,255,.7); margin: 2px 0 0; }
.print-mes-meta {
  font-size: 14px;
  font-style: italic;
  color: #666;
  padding: 12px 16px;
  background: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 3px solid #FFCC00;
}
.print-week {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef0f4;
}
.print-week:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.print-week h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0F1A36;
  margin: 0 0 8px;
}
.print-week p { font-size: 13px; margin: 0 0 4px; line-height: 1.6; color: #444; }
.print-week p strong { color: #0F1A36; }

/* =============================================
   @media print
   ============================================= */
@page {
  /* Carta (Letter) — tamaño estándar en Colombia. */
  size: letter;
  margin: 18mm 20mm 20mm;
}

@media print {
  /* Sin esto, Chrome/Safari NO imprimen los fondos navy → la portada y las 12
     cabeceras de mes saldrían en blanco-sobre-blanco (texto invisible). */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  .site-header, .nav-mobile, .nav-backdrop, .hamburger,
  .site-footer, .whatsapp-float, .cookie-banner, .cookie-modal,
  .back-to-top, .skip-link, .header-cta-group,
  .gp-hero, .gp-intro, .gp-guia, .gp-indice, .gp-meses,
  .gp-cta, .breadcrumb { display: none !important; }

  .gp-print-only { display: block !important; }

  body {
    padding-top: 0 !important;
    margin: 0;
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  a { color: #0F1A36 !important; text-decoration: underline; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3, h4 { page-break-after: avoid; }
  .print-week { page-break-inside: avoid; }
  .print-mes-head { page-break-inside: avoid; page-break-after: avoid; }
  /* Portada ocupa una sola página (evita el desborde de 100vh a 2 hojas). */
  .print-cover { min-height: 232mm; }
  /* Sin hoja en blanco extra al final del documento. */
  .gp-print-only .print-page:last-child { page-break-after: avoid; }
}

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

/* =============================================
   Internet Online — Componentes de la landing ISP
   ============================================= */

/* Hero con gradiente de marca (sin foto) */
.hero-gradient .hero-slide { background: var(--gradient-brand); }
.hero-gradient .hero-slide::before {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(253,185,19,0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(14,37,92,0.30) 0%, rgba(14,37,92,0.70) 100%);
}
/* scroll suave entre secciones ancla, compensando el header sticky */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

/* Tarjetas de beneficios estáticas (no son enlaces) */
.quick-card--static { cursor: default; }
.quick-card--static:hover { transform: translateY(-4px); }

/* Encabezado de sección centrado */
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.section-head .section-eyebrow { display: inline-block; }

/* ---------- Planes ---------- */
.plans-section { background: var(--color-surface-2); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card--featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.plan-ribbon {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-primary-deep);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.plan-head { text-align: center; padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-divider); margin-bottom: var(--space-6); }
.plan-badge {
  display: inline-block;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-primary);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  margin-bottom: var(--space-4);
}
.plan-badge--full { background: var(--color-accent-light); }
.plan-price-amount { font-size: var(--text-xl); font-weight: 800; color: var(--color-heading); }
.plan-tagline { color: var(--color-text-muted); margin-top: var(--space-2); font-size: var(--text-sm); }
.plan-features { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: var(--space-3); flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-base); }
.plan-features li i { color: var(--color-accent); margin-top: 3px; }
.plan-card--featured .plan-features li i { color: var(--color-primary); }
.plans-disclaimer { text-align: center; color: var(--color-text-muted); font-style: italic; font-size: var(--text-sm); margin-top: var(--space-10); }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Persuasión / beneficios ---------- */
.lead-text { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-5); }
.benefit-list { display: grid; gap: var(--space-6); }
.benefit-item { display: flex; gap: var(--space-5); align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.benefit-icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--radius-lg); background: var(--gradient-brand); color: #fff; display: grid; place-items: center; font-size: 22px; }
.benefit-item h3 { font-size: var(--text-base); font-weight: 700; margin: 0 0 4px; color: var(--color-heading); }
.benefit-item p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }

/* ---------- Cobertura ---------- */
.coverage-section { background: var(--color-surface-2); }
.coverage-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  box-shadow: var(--shadow-md);
}
.coverage-icon { width: 72px; height: 72px; margin: 0 auto var(--space-5); border-radius: var(--radius-full); background: var(--color-primary-light); color: var(--color-primary); display: grid; place-items: center; font-size: 30px; }
.coverage-zones { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin: var(--space-8) 0; }
.zone-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--color-primary); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-full); }
.zone-pill i { color: var(--color-accent); }

/* ---------- Banner CTA ---------- */
.cta-banner { background: var(--gradient-brand); color: #fff; padding: var(--space-16) 0; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta-banner-title { color: #fff; font-size: var(--text-2xl); font-weight: 800; margin: 0 0 var(--space-2); line-height: 1.1; }
.cta-banner-sub { color: rgba(255,255,255,0.88); margin: 0; max-width: 520px; }
.cta-banner-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-info-card { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-2xl); padding: var(--space-10) var(--space-8); height: 100%; }
.contact-info-card h3 { color: #fff; margin: 0 0 var(--space-6); font-size: var(--text-lg); }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.contact-info-list li { display: flex; align-items: center; gap: var(--space-4); }
.contact-info-list li i { width: 22px; text-align: center; color: var(--color-accent); font-size: 18px; }
.contact-info-list a, .contact-info-list span { color: #fff; text-decoration: none; word-break: break-word; }
.contact-info-list a:hover { color: var(--color-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
}
