/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #f5fbfe;
  --bg-2:       #eaf6fc;
  --bg-3:       #dcf0fa;
  --bg-deep:    #0e6ba8;
  --bg-deep-2:  #094e7d;
  --white:      #ffffff;
  --ink:        #0b2942;
  --ink-soft:   #2c4a63;
  --ink-mute:   #5b7690;
  --accent:     #2f9bd6;
  --accent-2:   #1478b8;
  --gold:       #f4b942;
  --gold-soft:  #fdeec4;
  --line:       rgba(11,41,66,0.12);
  --line-soft:  rgba(11,41,66,0.08);
  --shadow-soft: 0 20px 50px rgba(14,107,168,0.14);
  --shadow-card: 0 14px 34px rgba(11,41,66,0.10);

  --display: "Nunito", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --script: "Caveat", cursive;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
em { font-style: normal; color: var(--accent-2); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--white);
  border-radius: 10px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .9rem;
}
.section-note {
  font-size: .85rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: .6rem;
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Split words (hero title) */
.split-word { display: inline-block; opacity: 0; transform: translateY(100%); will-change: transform; }
.split-word.is-in { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn-sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(20,120,184,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(20,120,184,0.42); }
.btn-ghost {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); }
.btn-glass {
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@supports not (backdrop-filter: blur(1px)) {
  .btn-glass { background: rgba(20,90,140,0.55); }
}
.btn-glass:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-solid {
  background: rgba(245,251,254,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 24px rgba(11,41,66,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .55rem; }
.nav-brand-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
}
.nav-brand-icon svg { width: 18px; height: 18px; }
.nav-brand-text {
  font-family: var(--display); font-weight: 900; font-size: 1.18rem;
  color: var(--ink);
}
.nav.is-solid .nav-brand-text { color: var(--ink); }
.nav:not(.is-solid) .nav-brand-text { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,0.25); }
.nav:not(.is-solid) .nav-brand-icon { background: rgba(255,255,255,0.22); backdrop-filter: blur(8px); }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-weight: 600; font-size: .95rem;
  position: relative; padding-block: .3rem;
  color: var(--ink);
}
.nav:not(.is-solid) .nav-links a { color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: currentColor; transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav:not(.is-solid) .btn-ghost { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); color: var(--white); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto; transition: transform .3s var(--ease-out), opacity .3s; }
.nav:not(.is-solid) .nav-toggle { color: var(--white); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links.is-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); padding: 1.6rem 6vw 2rem;
  box-shadow: 0 20px 30px rgba(11,41,66,0.12);
}
.nav-links.is-open a { color: var(--ink); font-size: 1.05rem; }
.nav:not(.is-solid) .nav-links.is-open a { color: var(--ink); text-shadow: none; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(47,155,214,0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(244,185,66,0.22) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-deep-2) 0%, var(--bg-deep) 55%, var(--accent-2) 130%);
}
.hero-blob {
  position: absolute; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  filter: blur(70px); opacity: .5; animation: blobDrift 24s ease-in-out infinite;
}
.hero-blob-a { width: 420px; height: 420px; top: -8%; left: -6%; background: radial-gradient(circle, var(--accent), transparent 70%); }
.hero-blob-b { width: 480px; height: 480px; bottom: -14%; right: -8%; background: radial-gradient(circle, var(--gold), transparent 70%); animation-direction: reverse; }
.hero-blob-c { width: 320px; height: 320px; bottom: 20%; left: 30%; background: radial-gradient(circle, var(--white), transparent 72%); opacity: .12; }
.hero-logo-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(60vw, 760px);
  max-width: none;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1) opacity(0.16);
  pointer-events: none;
}
@media (max-width: 719px) {
  .hero-logo-bg { width: min(92vw, 520px); top: 48%; }
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 14vh; min-height: 90px;
  z-index: -1;
}
.hero-inner { position: relative; z-index: 1; padding-block: 6rem 8rem; color: var(--white); }
.hero .kicker { color: var(--gold); }
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  max-width: 22ch;
  text-wrap: balance;
  color: var(--white);
  text-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.hero-title em { color: var(--white); font-style: normal; }
.hero-verse-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: rgba(255,255,255,0.94);
  max-width: 30ch;
  margin-top: 1.1rem;
  text-wrap: balance;
}
.hero-verse-line em { color: var(--gold); font-weight: 800; }
.hero-verse-ref {
  font-family: var(--script);
  font-size: 1.25rem;
  color: var(--gold);
  margin-top: .5rem;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  margin-top: 3.4rem;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 1.3rem 1.7rem;
  max-width: 620px;
}
@supports not (backdrop-filter: blur(1px)) { .hero-stats { background: rgba(9,55,88,0.55); } }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--white); line-height: 1; }
.hero-stat-text { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--white); }
.hero-stat-label { font-size: .84rem; color: rgba(255,255,255,0.85); margin-top: .25rem; }
.hero-stat-divider { width: 1px; height: 42px; background: rgba(255,255,255,0.35); }

/* =============================================================
   7. Sections shared
   ============================================================= */
.section { position: relative; padding-block: 6rem; }
.section-blob {
  position: absolute; z-index: 0; pointer-events: none;
  filter: blur(60px);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  opacity: .55;
}
.blob-a { top: -6%; right: -8%; width: 460px; height: 460px; background: radial-gradient(circle, var(--bg-3), transparent 70%); animation: blobDrift 22s ease-in-out infinite; }
.blob-b { bottom: -10%; left: -10%; width: 520px; height: 520px; background: radial-gradient(circle, var(--gold-soft), transparent 70%); animation: blobDrift 26s ease-in-out infinite reverse; }
.blob-c { top: 10%; left: -12%; width: 420px; height: 420px; background: radial-gradient(circle, var(--bg-3), transparent 70%); animation: blobDrift 20s ease-in-out infinite; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(3%, 4%) scale(1.08); }
}

/* =============================================================
   8. Historia
   ============================================================= */
.historia { background: var(--bg); }
.historia-grid {
  position: relative; z-index: 1;
  display: grid; gap: 2.8rem; align-items: start;
}
.historia-media { position: relative; }
.historia-media img { border-radius: 26px; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; }
.historia-badge {
  position: absolute; bottom: -1.4rem; right: -1rem;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-card);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: .7rem;
  font-size: .8rem; color: var(--ink-mute); font-weight: 600;
}
.historia-badge-num { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--accent-2); }
.historia-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.3rem; }
.historia-copy p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.historia-copy strong { color: var(--ink); }
.pull-quote {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--accent-2);
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin-block: 1.6rem;
  line-height: 1.4;
}

.pastor-card {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: var(--bg-2); border-radius: 20px; padding: 1.5rem;
  margin-top: 1.8rem;
}
.pastor-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white); font-family: var(--display); font-weight: 900; font-size: 1.1rem;
}
.pastor-role { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); }
.pastor-info h3 { font-size: 1.05rem; margin-block: .2rem .4rem; }
.pastor-info p { font-size: .88rem; color: var(--ink-mute); margin-bottom: .5rem; }
.pastor-info a { font-size: .88rem; font-weight: 700; color: var(--accent-2); }

/* =============================================================
   9. Pilares
   ============================================================= */
.pilares { background: var(--bg-2); }
.pilares-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.pilar-card {
  position: relative; background: var(--white); border-radius: 22px; padding: 2rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pilar-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(11,41,66,0.16); }
.pilar-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white); margin-bottom: 1.1rem;
}
.pilar-icon svg { width: 26px; height: 26px; }
.pilar-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pilar-card p { color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   10. Asistente promo
   ============================================================= */
.asistente-promo { background: var(--bg); }
.asistente-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.asistente-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.asistente-copy p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.asistente-list { margin-bottom: 1.6rem; }
.asistente-list li {
  position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--ink-soft);
}
.asistente-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: 800;
}
.asistente-fineprint { font-size: .82rem; color: var(--ink-mute); margin-top: 1rem; }
.asistente-fineprint a { color: var(--accent-2); font-weight: 700; }

.asistente-mock {
  background: linear-gradient(160deg, var(--bg-deep), var(--bg-deep-2));
  border-radius: 26px; padding: 1.6rem; box-shadow: var(--shadow-soft);
  max-width: 420px; margin-inline: auto;
}
.asistente-mock-head { display: flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 700; margin-bottom: 1.2rem; }
.asistente-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #58e08a; box-shadow: 0 0 0 4px rgba(88,224,138,0.25); }
.asistente-mock-bubble {
  padding: .9rem 1.1rem; border-radius: 16px; margin-bottom: .8rem; font-size: .92rem; max-width: 88%;
  line-height: 1.5;
}
.bubble-them { background: rgba(255,255,255,0.14); color: var(--white); border-bottom-left-radius: 4px; }
.bubble-us { background: var(--white); color: var(--ink); margin-left: auto; border-bottom-right-radius: 4px; }

/* =============================================================
   11. Testimonios
   ============================================================= */
.testimonios { background: var(--bg-2); }
.testimonios-track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.testimonio-card {
  background: var(--white); border-radius: 22px; padding: 2rem 1.7rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .4s var(--ease-out);
}
.testimonio-card:hover { transform: translateY(-5px); }
.testimonio-quote-mark { font-family: var(--script); font-size: 3rem; color: var(--bg-3); line-height: 0; position: absolute; top: 1.6rem; right: 1.6rem; }
.testimonio-card p.quote { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.4rem; position: relative; z-index: 1; }
.testimonio-name { font-family: var(--display); font-weight: 800; }
.testimonio-role { display: block; font-size: .78rem; color: var(--ink-mute); margin-top: .1rem; }

/* =============================================================
   12. En vivo
   ============================================================= */
.en-vivo { background: var(--bg); }
.en-vivo-grid { position: relative; z-index: 1; display: grid; gap: 1.6rem; }
.en-vivo-card, .en-vivo-social {
  background: linear-gradient(160deg, var(--bg-deep), var(--bg-deep-2));
  color: var(--white); border-radius: 26px; padding: 2.6rem 2.2rem; box-shadow: var(--shadow-soft);
}
.en-vivo-card .kicker, .en-vivo-social .kicker { color: var(--gold); }
.en-vivo-card h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .9rem; }
.en-vivo-card h2 em { color: var(--gold); }
.en-vivo-card p { color: rgba(255,255,255,0.88); margin-bottom: 1rem; }
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff5c5c;
  box-shadow: 0 0 0 5px rgba(255,92,92,0.25); margin-bottom: 1rem;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.en-vivo-time { font-weight: 700; margin-bottom: 1.5rem !important; }
.en-vivo-social-lead { color: rgba(255,255,255,0.85); margin-bottom: 1.6rem; }
.social-row { display: flex; gap: .8rem; }
.social-btn {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  transition: transform .3s var(--ease-out), background .3s;
}
.social-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.26); }
.social-btn svg { width: 20px; height: 20px; }

/* =============================================================
   13. Noticias / newsletter
   ============================================================= */
.noticias { background: var(--bg-2); }
.noticias-grid { position: relative; z-index: 1; display: grid; gap: 1.8rem; }
.noticias-list { display: grid; gap: 1.1rem; }
.noticia-card {
  background: var(--white); border-radius: 18px; padding: 1.5rem 1.6rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.noticia-date {
  font-family: var(--display); font-weight: 900; color: var(--accent-2);
  background: var(--bg-3); border-radius: 12px; padding: .5rem .8rem; text-align: center;
  font-size: .85rem; min-width: 62px; text-transform: uppercase;
}
.noticia-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; color: var(--ink);
  background: var(--gold); border-radius: 999px; padding: .28rem .8rem;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem;
}
.noticia-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.noticia-card p { color: var(--ink-mute); font-size: .92rem; }
.noticia-featured { padding: 2rem 1.8rem; gap: 1.5rem; border-top: 4px solid var(--gold); }
.noticia-featured .noticia-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2.1rem; line-height: 1; min-width: 74px; padding: .8rem .6rem;
  background: linear-gradient(160deg, var(--bg-deep), var(--bg-deep-2)); color: var(--white);
}
.noticia-featured .noticia-date small { font-size: .7rem; letter-spacing: .08em; opacity: .85; font-weight: 800; }
.noticia-featured h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .7rem; }
.noticia-featured p { font-size: 1rem; color: var(--ink-soft); }
.noticia-question { margin-top: .9rem; font-family: var(--script); font-size: 1.45rem !important; color: var(--accent-2) !important; line-height: 1.25; }
.noticia-meta { margin-top: 1.1rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-soft); }
.noticia-meta strong { color: var(--ink); }
@media (max-width: 539px) {
  .noticia-featured { flex-direction: column; }
}

.newsletter-card {
  background: linear-gradient(160deg, var(--white), var(--bg-3));
  border-radius: 22px; padding: 2rem 1.8rem; box-shadow: var(--shadow-card);
  align-self: start;
}
.newsletter-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.newsletter-card p { color: var(--ink-mute); margin-bottom: 1.3rem; font-size: .92rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .8rem; }
.form-note { font-size: .82rem; margin-top: .7rem; color: var(--accent-2); font-weight: 600; min-height: 1.2em; }

input, textarea {
  width: 100%; padding: .85rem 1.1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,155,214,0.15); outline: none; }
textarea { resize: vertical; min-height: 90px; }

/* =============================================================
   14. Contacto
   ============================================================= */
.contacto { background: var(--bg); }
.contacto-grid { position: relative; z-index: 1; display: grid; gap: 2.6rem; align-items: start; }
.contacto-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .9rem; }
.contacto-copy > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.contacto-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contacto-list li { display: flex; align-items: center; gap: .9rem; font-weight: 600; }
.contacto-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--bg-3); color: var(--accent-2);
}
.contacto-icon svg { width: 20px; height: 20px; }
.contact-form { display: flex; flex-direction: column; gap: .9rem; max-width: 460px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.contacto-map { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); min-height: 380px; }
.contacto-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { position: relative; background: var(--bg-deep); color: rgba(255,255,255,0.85); padding-top: 3rem; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; transform: translateY(-100%); }
.footer-inner { display: grid; gap: 2.4rem; padding-block: 2rem 3rem; }
.footer-brand .nav-brand-text { color: var(--white); font-size: 1.4rem; }
.footer-brand .nav-brand-text em { color: var(--gold); }
.footer-verse { font-family: var(--script); font-size: 1.25rem; color: var(--gold); margin-top: .8rem; max-width: 32ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.footer-cols h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }
.footer-cols a { display: block; color: rgba(255,255,255,0.75); font-size: .92rem; margin-bottom: .6rem; transition: color .25s; }
.footer-cols a:hover { color: var(--white); }
.footer-social .social-btn { background: rgba(255,255,255,0.1); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid rgba(255,255,255,0.15); padding-block: 1.4rem;
  font-size: .82rem; color: rgba(255,255,255,0.6);
}
.footer-credits a { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* =============================================================
   16. Chat widget
   ============================================================= */
.chat-widget { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 900; }
.chat-fab {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white); box-shadow: 0 14px 34px rgba(20,120,184,0.45);
  display: grid; place-items: center;
  transition: transform .35s var(--ease-bounce);
  position: relative;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 26px; height: 26px; position: absolute; transition: opacity .25s, transform .25s; }
.chat-fab-icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.chat-fab[aria-expanded="true"] .chat-fab-icon-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.chat-fab[aria-expanded="true"] .chat-fab-icon-close { opacity: 1; transform: none; }

.chat-panel[hidden] { display: none; }
.chat-panel {
  position: absolute; right: 0; bottom: 78px;
  width: min(360px, 88vw); max-height: 72vh;
  background: var(--white); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(11,41,66,0.28);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn .35s var(--ease-out);
}
@keyframes chatIn { from { opacity: 0; transform: scale(.9) translateY(12px); } to { opacity: 1; transform: none; } }
.chat-panel-head {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white); padding: 1.1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-panel-head strong { display: block; font-size: .96rem; }
.chat-panel-head span { display: block; font-size: .74rem; opacity: .85; }
.chat-close { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.chat-close:hover { background: rgba(255,255,255,0.18); }
.chat-close svg { width: 16px; height: 16px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; min-height: 240px; }
.chat-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.chat-msg.bot { background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { display: flex; gap: 4px; align-items: center; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: typingDot 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem .8rem; }
.chat-suggestion {
  font-size: .78rem; padding: .5rem .85rem; border-radius: 999px;
  background: var(--bg-2); color: var(--accent-2); font-weight: 600;
  border: 1px solid var(--line-soft);
}
.chat-suggestion:hover { background: var(--bg-3); }

.chat-input-row { display: flex; gap: .6rem; padding: .9rem; border-top: 1px solid var(--line-soft); }
.chat-input-row input { flex: 1; border-radius: 999px; padding: .7rem 1.1rem; }
.chat-input-row button {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--white); display: grid; place-items: center;
  transition: background .25s;
}
.chat-input-row button:hover { background: var(--accent-2); }
.chat-input-row button svg { width: 18px; height: 18px; }

/* =============================================================
   17. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .historia-grid { grid-template-columns: 1fr 1.15fr; }
  .en-vivo-grid { grid-template-columns: 1.3fr 1fr; }
  .contacto-grid { grid-template-columns: 1.1fr 1fr; }
  .noticias-grid { grid-template-columns: 1.5fr 1fr; }
  .asistente-grid { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 960px) {
  .pilares-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonios-track { grid-template-columns: repeat(3, 1fr); }
  .historia-grid { grid-template-columns: .9fr 1.2fr; gap: 4rem; }
}

@media (min-width: 1280px) {
  .hero-title { max-width: 26ch; }
}

/* =============================================================
   18. Effects — hover tilt on cards with fine pointer
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  .pilar-card, .testimonio-card, .noticia-card { will-change: transform; }
}

/* =============================================================
   19. Reduced motion — only the truly intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .section-blob { animation: none; }
  .hero-blob { animation: none; }
  .live-dot { animation: none; }
}
