/* =========================================================================
   Ministerio Evangelístico Clamor, Unidad y Humillación Inc.
   Tema: Azul marino profundo + Oro real (estilo "Reino / profético")
   ========================================================================= */

:root {
  --navy-950: #050a1c;
  --navy-900: #07102a;
  --navy-800: #0a1733;
  --navy-700: #102347;
  --navy-600: #16315f;
  --navy-500: #1f4079;

  --gold: #e6c25a;
  --gold-1: #f7e7a8;
  --gold-2: #d4af37;
  --gold-deep: #a9821f;

  --cream: #f6f1e4;
  --ink: #e9eefc;
  --muted: #a9b6d6;

  --grad-gold: linear-gradient(135deg, #f7e7a8 0%, #e6c25a 35%, #d4af37 60%, #b8902a 100%);
  --grad-navy: linear-gradient(160deg, #0a1733 0%, #07102a 55%, #050a1c 100%);

  --ring: rgba(230, 194, 90, 0.32);
  --card: rgba(16, 35, 71, 0.55);
  --card-line: rgba(230, 194, 90, 0.22);

  --shadow-lg: 0 26px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 10px 40px -10px rgba(230, 194, 90, 0.35);

  --font-display: "Cinzel", "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fondo estrellado / profético global */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(31, 64, 121, 0.55), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(22, 49, 95, 0.5), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(169, 130, 31, 0.10), transparent 60%),
    var(--grad-navy);
}
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 70% 20%, rgba(247,231,168,.7), transparent),
    radial-gradient(1.2px 1.2px at 40% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.2px 1.2px at 15% 85%, rgba(247,231,168,.6), transparent),
    radial-gradient(1.3px 1.3px at 60% 50%, rgba(255,255,255,.5), transparent);
  opacity: .55;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------- Botones --------------------------------- */
.btn {
  --bg: var(--grad-gold);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--grad-gold);
  color: #2a1e02;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -10px rgba(230,194,90,.55); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--gold-1);
  border-color: var(--card-line);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(230,194,90,.08); }
.btn-whatsapp { background: #1faa54; color: #fff; box-shadow: 0 12px 30px -10px rgba(31,170,84,.6); }
.btn-whatsapp:hover { transform: translateY(-3px); background: #1c9c4d; }

/* --------------------------- Encabezados ------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after { content: "✦"; margin: 0 .5rem; color: var(--gold-deep); }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: .01em;
}
.section-head p { color: var(--muted); margin-top: .9rem; font-size: 1.02rem; }

/* ============================ INTRO SPLASH ============================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 600px at 50% 30%, rgba(31,64,121,.6), transparent 60%),
    var(--grad-navy);
  transition: opacity .9s ease, visibility .9s ease;
}
.intro.hide { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; padding: 1.5rem; }
.intro-logo {
  width: min(42vw, 190px);
  transform-origin: center center;
  filter: drop-shadow(0 16px 44px rgba(230,194,90,.32));
  animation:
    introRise 1.7s cubic-bezier(.16,.7,.16,1) both,
    floaty 5s ease-in-out 2s infinite;
}
.intro-halo {
  position: absolute;
  width: min(78vw, 460px); height: min(78vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,194,90,.22), transparent 62%);
  filter: blur(8px);
  /* Estallido de luz que se expande desde el centro (estilo Netflix) y luego pulsa */
  animation: introBurst 1.6s cubic-bezier(.16,.7,.16,1) both, pulse 3.4s ease-in-out 1.6s infinite;
  pointer-events: none;
}
.intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.4vw, 2.3rem);
  margin-top: 1.4rem;
  line-height: 1.2;
  animation: fadeUp 1s ease .5s both;
}
.intro p { color: var(--gold-1); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; margin-top: .7rem; animation: fadeUp 1s ease .8s both; }
.intro-skip {
  margin-top: 2rem; font-size: .78rem; color: var(--muted); letter-spacing: .15em;
  text-transform: uppercase; cursor: pointer; animation: fadeUp 1s ease 1.4s both;
  background: none; border: 1px solid var(--card-line); border-radius: 999px; padding: .5rem 1.2rem; color: var(--gold-1);
}
/* El logo emerge desde el centro y asciende suavemente hacia su lugar */
@keyframes introRise {
  0%   { opacity: 0; transform: translateY(64px) scale(.72); filter: drop-shadow(0 0 0 rgba(230,194,90,0)) blur(6px); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.05); filter: drop-shadow(0 24px 58px rgba(230,194,90,.5)) blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 16px 44px rgba(230,194,90,.32)) blur(0); }
}
@keyframes introBurst {
  0%   { transform: scale(.1); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%,100% { transform: scale(.95); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================== HEADER ================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: .7rem 0;
}
.header.scrolled {
  background: rgba(7, 16, 42, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
  border-bottom: 1px solid rgba(230,194,90,.14);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 4px 12px rgba(230,194,90,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: .98rem; color: var(--gold-1); }
.brand-text span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--ink); opacity: .82; transition: .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-1); background: rgba(230,194,90,.08); }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--card-line); border-radius: 10px; padding: .5rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-1); margin: 4px 0; transition: .3s; }

/* ============================== HERO =================================== */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--card-line); background: rgba(230,194,90,.06);
  color: var(--gold-1); padding: .4rem .9rem; border-radius: 999px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: .005em;
}
.hero h1 .gold-text { display: block; }
.hero-verse {
  margin: 1.4rem 0 1.9rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 36ch;
  border-left: 2px solid var(--gold-deep);
  padding-left: 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-visual { display: grid; place-items: center; position: relative; }
.hero-logo {
  width: min(78%, 420px);
  filter: drop-shadow(0 30px 70px rgba(230,194,90,.30));
  animation: floaty 6s ease-in-out infinite;
}
.hero-visual::before {
  content: ""; position: absolute; width: 115%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,194,90,.18), transparent 60%);
  animation: pulse 5s ease-in-out infinite;
}
.hero-ring {
  position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(230,194,90,.30);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.scroll-cue .dot { width: 22px; height: 36px; border: 2px solid var(--card-line); border-radius: 999px; margin: .5rem auto 0; position: relative; }
.scroll-cue .dot::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--gold); border-radius: 99px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; top: 6px; } 40% { opacity: 1; } 100% { opacity: 0; top: 18px; } }

/* ========================= CARDS GENÉRICAS ============================= */
.glass {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

/* ===================== PRÓXIMO EVENTO / ANUNCIOS ====================== */
.event-feature {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden;
  border-radius: 24px;
}
.event-feature .ef-media {
  position: relative; min-height: 360px;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-800));
  display: grid; place-items: center; padding: 1.2rem;
}
/* La imagen del evento se muestra completa (sin recorte) y enmarcada */
.event-feature .ef-media img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; }
.event-feature .ef-media .tag {
  position: absolute; top: 1rem; left: 1rem; background: var(--grad-gold); color: #2a1e02;
  font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px;
}
.event-feature .ef-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.event-feature h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; }
.ef-meta { display: flex; flex-direction: column; gap: .6rem; margin: 1.2rem 0; }
.ef-meta div { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink); font-size: .96rem; }
.ef-meta svg { flex: none; margin-top: 3px; color: var(--gold); }
.event-feature p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.ann-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.ann-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.ann-card .ac-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--navy-700); }
.ann-card .ac-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ann-card h4 { font-family: var(--font-display); font-size: 1.18rem; }
.ann-card .ac-date { color: var(--gold); font-size: .82rem; font-weight: 600; }
.ann-card p { color: var(--muted); font-size: .92rem; }
.empty-note { text-align: center; color: var(--muted); padding: 2rem; }

/* ====================== PETICIONES DE ORACIÓN ========================= */
.prayer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.form-card { padding: clamp(1.5rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--gold-1); margin-bottom: .4rem; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(5, 10, 28, .6); border: 1px solid var(--card-line);
  color: var(--ink); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .86rem; color: var(--muted); margin-bottom: 1.1rem; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-2); margin-top: 2px; }
.form-msg { font-size: .88rem; margin-top: .8rem; min-height: 1.2rem; }
.form-msg.ok { color: #7ee0a3; }
.form-msg.err { color: #ff9b9b; }

.prayer-wall { display: flex; flex-direction: column; gap: 1rem; max-height: 560px; overflow-y: auto; padding-right: .4rem; }
.prayer-wall::-webkit-scrollbar { width: 7px; }
.prayer-wall::-webkit-scrollbar-thumb { background: var(--card-line); border-radius: 99px; }
.prayer-item { padding: 1.05rem 1.2rem; border-radius: 14px; }
.prayer-item .pi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.prayer-item strong { color: var(--gold-1); font-family: var(--font-display); font-size: 1rem; }
.prayer-item .pi-date { color: var(--muted); font-size: .72rem; }
.prayer-item p { color: var(--ink); opacity: .9; font-size: .92rem; }
.wall-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; color: var(--gold-1); }

/* ====================== OFRENDAR / DONACIONES ========================= */
.give-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.8rem; align-items: stretch; }
.zelle-card { padding: clamp(1.6rem, 3vw, 2.4rem); text-align: center; position: relative; overflow: hidden; }
.zelle-card .zlabel { font-size: .76rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.zelle-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 1rem auto 1.3rem;
  background: #6d1ed4; color: #fff; padding: .5rem 1.1rem; border-radius: 10px; font-weight: 700; letter-spacing: .04em;
}
.zelle-number {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: .06em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zelle-name { color: var(--muted); margin-top: .3rem; font-size: .9rem; }
.copy-btn { margin-top: 1.3rem; }
.give-note { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
.give-verse { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.give-verse blockquote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--gold-1); }
.give-verse cite { display: block; margin-top: 1rem; color: var(--muted); font-style: normal; letter-spacing: .04em; }

/* ========================== ACTIVIDADES =============================== */
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem; }
.act-card { padding: 1.7rem 1.5rem; text-align: center; transition: transform .3s, border-color .3s; }
.act-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.act-icon {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(230,194,90,.1); border: 1px solid var(--card-line);
}
.act-icon svg { color: var(--gold); }
.act-card h4 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: .5rem; }
.act-card p { color: var(--muted); font-size: .9rem; }

/* =========================== BIOGRAFÍA =============================== */
.bio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.bio-photo { position: relative; display: grid; place-items: center; }
.bio-photo img { width: min(80%, 360px); filter: drop-shadow(0 24px 60px rgba(230,194,90,.28)); }
.bio-photo::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(230,194,90,.16), transparent 62%); }
.bio-body p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.bio-body .sign { font-family: var(--font-display); color: var(--gold-1); font-size: 1.25rem; margin-top: .4rem; }
.bio-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.bio-tags span { border: 1px solid var(--card-line); color: var(--gold-1); padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; }

/* ============================ GALERÍA =============================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; grid-auto-rows: 300px; }
.gallery figure {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--card-line);
  cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-800));
  box-shadow: inset 0 0 0 1px rgba(230,194,90,.06);
}
/* Las fotos se muestran completas (sin recorte) sobre un marco oscuro, como un cuadro */
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: .7rem; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: .8rem 1rem;
  background: linear-gradient(transparent, rgba(5,10,28,.92));
  color: var(--gold-1); font-size: .85rem; font-family: var(--font-display);
  opacity: 0; transform: translateY(10px); transition: .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery .tall { grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(3,6,18,.92); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox .close { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2rem; color: var(--gold-1); cursor: pointer; background: none; border: none; }

/* ============================ CONTACTO ============================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.contact-card { padding: clamp(1.6rem, 3vw, 2.2rem); }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: .5rem; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.contact-list .ci-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(230,194,90,.1); border: 1px solid var(--card-line); color: var(--gold); }
.contact-list .ci-text small { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list .ci-text strong { font-weight: 600; }
.social-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.social-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--card-line); background: rgba(255,255,255,.03); color: var(--gold-1); font-size: .85rem; font-weight: 600; transition: .2s; }
.social-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.yt-embed { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line); }
.yt-embed iframe { width: 100%; height: 100%; border: 0; }

/* ============================= FOOTER =============================== */
.footer { padding: 3rem 0 2rem; border-top: 1px solid rgba(230,194,90,.14); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand img { width: 56px; height: 56px; }
.footer p { color: var(--muted); font-size: .9rem; margin-top: .8rem; max-width: 38ch; }
.footer h5 { font-family: var(--font-display); color: var(--gold-1); margin-bottom: .9rem; font-size: 1.05rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul a { color: var(--muted); font-size: .9rem; transition: .2s; }
.footer ul a:hover { color: var(--gold-1); }
.footer-bottom { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); }

/* ===================== BOTONES FLOTANTES ============================ */
.fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 880; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; border: none; box-shadow: var(--shadow-lg); transition: transform .25s ease;
}
.fab:hover { transform: scale(1.08); }

/* Botón flotante con el logo del ministerio (asistente inteligente) */
.fab-assist {
  width: 58px; height: 58px; padding: 0; overflow: hidden; position: relative;
  background: radial-gradient(120% 120% at 50% 12%, #1b2f64, #07102a);
  border: 2px solid rgba(230,194,90,.6);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.55), 0 0 0 4px rgba(230,194,90,.08);
}
.fab-assist img {
  width: 74%; height: 74%; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.fab-assist::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(230,194,90,.45); animation: ring 2.6s infinite;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(230,194,90,.45);} 70% { box-shadow: 0 0 0 16px rgba(230,194,90,0);} 100% { box-shadow: 0 0 0 0 rgba(230,194,90,0);} }

/* Rueda de configuración (transparente) */
.fab-gear {
  width: 50px; height: 50px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-line);
  color: var(--gold-1);
  backdrop-filter: blur(6px);
}
.fab-gear svg { animation: spin 9s linear infinite; }
.fab-gear:hover { background: rgba(230,194,90,.14); }

/* ===================== ASISTENTE INTELIGENTE ====================== */
.assistant {
  position: fixed; right: 18px; bottom: 90px; z-index: 890;
  width: min(370px, 92vw);
  border-radius: 20px; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transition: .3s ease;
}
.assistant.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.assistant-head {
  background: linear-gradient(135deg, #14275a, #07102a);
  border-bottom: 1px solid rgba(230,194,90,.28);
  color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem;
}
.assistant-head img {
  width: 44px; height: 44px; border-radius: 50%; background: #07102a;
  border: 1px solid rgba(230,194,90,.55); padding: 3px; object-fit: contain;
}
.assistant-head .ah-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--gold-1); }
.assistant-head .ah-status { font-size: .72rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.assistant-head .ah-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5efc82; box-shadow: 0 0 8px #5efc82; }
.assistant-head .ah-close { margin-left: auto; cursor: pointer; background: none; border: none; color: #fff; font-size: 1.3rem; }
.assistant-body {
  background:
    linear-gradient(rgba(7,16,42,.94), rgba(7,16,42,.94));
  padding: 1.1rem; height: 360px; max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem;
}
.bubble { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.bubble.bot { background: rgba(255,255,255,.07); border: 1px solid var(--card-line); color: var(--ink); border-top-left-radius: 4px; align-self: flex-start; }
.bubble.user { background: linear-gradient(135deg, var(--gold), var(--gold-1)); color: #07102a; font-weight: 600; align-self: flex-end; border-top-right-radius: 4px; }
.bubble a { color: var(--gold-1); text-decoration: underline; }
.bubble.user a { color: #07102a; }
/* Indicador "escribiendo…" */
.bubble.typing { display: flex; gap: .25rem; align-items: center; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-1); opacity: .5; animation: typingDot 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.assistant-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem 1.1rem .8rem; background: rgba(7,16,42,.94); }
.assistant-quick.hidden { display: none; }
.quick-btn { font-size: .8rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--card-line); background: rgba(230,194,90,.06); color: var(--gold-1); cursor: pointer; transition: .2s; }
.quick-btn:hover { border-color: var(--gold); background: rgba(230,194,90,.14); }
.assistant-foot { padding: .7rem .9rem; background: rgba(7,16,42,.94); border-top: 1px solid var(--card-line); display: flex; gap: .5rem; align-items: center; }
.assistant-foot input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--card-line); border-radius: 999px;
  padding: .6rem .9rem; color: var(--ink); font-size: .9rem; font-family: inherit; outline: none;
}
.assistant-foot input:focus { border-color: var(--gold); }
.assistant-send {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #07102a;
  background: linear-gradient(135deg, var(--gold), var(--gold-1));
  transition: transform .2s ease;
}
.assistant-send:hover { transform: scale(1.08); }

/* ====================== ANIMACIÓN AL HACER SCROLL ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 920px) {
  .hero-grid, .prayer-grid, .give-grid, .bio-grid, .contact-grid, .event-feature, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(62%, 300px); }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(7,16,42,.97); backdrop-filter: blur(14px); padding: 1rem; gap: .3rem;
    border-bottom: 1px solid var(--card-line);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .event-feature .ef-media { min-height: 240px; }
  .bio-photo { order: -1; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 240px; }
  .gallery .tall { grid-row: span 1; }
  .fab-wrap { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
