/* ============================================================
   Unidos en Cristo — Editorial Dark Warm, navy + gold (marca propia)
   ============================================================ */

:root {
  --navy-deep: #0A1628;
  --navy: #0F2544;
  --navy-card: #16305A;
  --navy-line: rgba(242, 236, 224, 0.14);
  --gold: #C9A961;
  --gold-bright: #E3C787;
  --cream: #F2ECE0;
  --cream-mute: rgba(242, 236, 224, 0.72);
  --cream-dim: rgba(242, 236, 224, 0.48);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 80px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
@supports (backdrop-filter: blur(10px)) { .nav.is-scrolled { backdrop-filter: blur(10px); } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.crown-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,169,97,0.4);
}
.nav-brand span {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.nav-brand b { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--cream-mute); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 700; font-size: 0.86rem;
  padding: 10px 20px; border-radius: 4px; text-decoration: none;
  transition: background-color 0.3s;
}
.nav-cta:hover { background: var(--gold-bright); }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ---------- Hairline divider (signature motif) ---------- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider .mark { color: var(--gold); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,169,97,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(201,169,97,0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
/* Floating background — bibles, swords, shields */
.hero-icons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-icon {
  position: absolute;
  color: var(--gold-bright);
  opacity: 0.62;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
.hero-icon--shield { opacity: 0.85; }
.hi-2.hero-icon--sword { transform: rotate(28deg); }
.hi-5.hero-icon--sword { transform: rotate(-28deg); }
.hero-icon-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  fill: var(--gold-bright);
}
.hi-1 { width: 52px; left: 6%;  top: 16%; }
.hi-2 { width: 46px; left: 88%; top: 13%; }
.hi-3 { width: 108px; left: 2%;  top: 54%; }
.hi-4 { width: 52px; left: 90%; top: 58%; }
.hi-5 { width: 46px; left: 12%; top: 79%; }
.hi-6 { width: 108px; left: 80%; top: 76%; }

@media (prefers-reduced-motion: no-preference) {
  .hi-1 { animation: iconDriftA 15s ease-in-out infinite; }
  .hi-2 { animation: swordDriftB 18s ease-in-out infinite -4s; }
  .hi-3 { animation: iconDriftA 21s ease-in-out infinite -7s; }
  .hi-4 { animation: iconDriftB 16s ease-in-out infinite -2s; }
  .hi-5 { animation: swordDriftA 19s ease-in-out infinite -10s; }
  .hi-6 { animation: iconDriftB 23s ease-in-out infinite -5s; }
}
@keyframes iconDriftA {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50%      { transform: translate(14px, -20px) rotate(5deg); }
}
@keyframes iconDriftB {
  0%, 100% { transform: translate(0, 0) rotate(5deg); }
  50%      { transform: translate(-16px, -14px) rotate(-6deg); }
}
@keyframes swordDriftA {
  0%, 100% { transform: translate(0, 0) rotate(28deg); }
  50%      { transform: translate(14px, -20px) rotate(36deg); }
}
@keyframes swordDriftB {
  0%, 100% { transform: translate(0, 0) rotate(-28deg); }
  50%      { transform: translate(-16px, -14px) rotate(-36deg); }
}
@media (max-width: 760px) {
  .hero-icon { opacity: 0.25; }
  .hi-3, .hi-6 { width: 68px; }
}

.hero-inner { position: relative; z-index: 1; text-align: center; width: 100%; }
.hero-crown {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 1px solid rgba(201,169,97,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hero .kicker {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p.lede {
  margin: 26px auto 0;
  font-size: 1.15rem;
  max-width: 56ch;
  color: var(--cream-mute);
}
.cta-row { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 4px; font-weight: 700; text-decoration: none; font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), background-color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 30px rgba(201,169,97,0.25); }
.btn-primary:hover { background: var(--gold-bright); }
.btn-ghost { border-color: var(--cream-dim); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.hero-motto {
  margin-top: 56px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

/* ---------- Section shared ---------- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .kicker { font-family: var(--font-script); font-style: italic; color: var(--gold-bright); font-size: 1.3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 8px;
  text-wrap: balance;
}
.section-head p.section-sub { margin-top: 16px; max-width: 60ch; margin-inline: auto; color: var(--cream-mute); font-size: 1.05rem; }

/* ---------- Verses ticker (moving) ---------- */
.verses-band {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding: 26px 0;
  position: relative;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-deep), transparent); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 3.5rem; white-space: nowrap; will-change: transform;
}
.verse-item {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-script); font-style: italic;
  font-size: 1.25rem; color: var(--cream-mute);
}
.verse-item b { font-family: var(--font-body); font-style: normal; font-weight: 700; color: var(--gold-bright); font-size: 0.82rem; letter-spacing: 0.02em; }
.verse-item .sep { color: var(--gold); opacity: 0.6; font-family: var(--font-body); }

/* ---------- Pastors / about ---------- */
.pastors { background: var(--navy); padding: 100px 0; }
.pastors-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .pastors-grid { grid-template-columns: 1fr; } }
.pastors-figure {
  aspect-ratio: 3/2;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--navy-card), var(--navy-deep));
  border: 1px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.pastors-figure::before {
  content: ""; position: absolute; inset: -40% -10% -20% -10%;
  background: radial-gradient(45% 35% at 50% 30%, rgba(201,169,97,0.18), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.pastors-figure img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.pastors-figure span {
  position: relative;
  font-family: var(--font-script); font-style: italic; font-size: 1.3rem;
  color: var(--cream-dim); text-align: center; padding: 24px;
}
.pastors-copy p { margin-top: 18px; color: var(--cream-mute); font-size: 1.05rem; }
.pastors-copy p:first-of-type { margin-top: 20px; }
.pastors-names {
  margin-top: 26px;
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.15rem;
}
.pastors-names span { display: block; color: var(--cream-mute); font-family: var(--font-body); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Ministries ---------- */
.ministries { background: var(--navy-deep); padding: 100px 0; }
.min-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .min-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .min-grid { grid-template-columns: 1fr; } }
.min-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 32px 28px;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.55s var(--ease-soft), box-shadow 0.45s var(--ease-soft), border-color 0.3s;
}
.min-card:hover {
  transition-duration: 0.15s;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  border-color: rgba(201,169,97,0.4);
}
.min-card .icon { font-size: 1.7rem; margin-bottom: 16px; display: block; }
.min-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.min-card p { color: var(--cream-mute); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--navy); padding: 100px 0; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
.gal-item {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--navy-card), var(--navy-deep));
  border: 1px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script); font-style: italic; font-size: 1.1rem; color: var(--cream-dim);
  text-align: center; padding: 12px;
  transition: transform 0.5s var(--ease-soft), border-color 0.3s;
  overflow: hidden;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item:hover { transform: translateY(-6px); border-color: rgba(201,169,97,0.4); }
.gal-item--empty {
  border-style: dashed;
  border-color: rgba(201,169,97,0.3);
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-body); font-style: normal; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.gal-item--empty::before { content: "+"; display: block; font-size: 1.8rem; color: var(--gold); margin-bottom: 6px; font-family: var(--font-display); }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-deep); padding: 60px 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.stats-row { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; text-align: center; }
.stat b { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); display: block; }
.stat span { font-size: 0.9rem; color: var(--cream-mute); }

/* ---------- Location / contact ---------- */
.contact { background: var(--navy); padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright); margin-bottom: 18px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--navy-line);
}
.contact-list li .ic { font-size: 1.2rem; }
.contact-list li b { display: block; font-size: 0.98rem; }
.contact-list li span { color: var(--cream-mute); font-size: 0.92rem; }
.addr-link {
  display: inline-block;
  color: var(--cream-mute);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px dashed var(--cream-dim);
  transition: color 0.3s, border-color 0.3s;
}
.addr-link:hover { color: var(--gold-bright); border-color: var(--gold); }
.whatsapp-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.whatsapp-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-bright); }
.whatsapp-card p { color: var(--cream-mute); }

/* ---------- Social platforms ---------- */
.social { background: var(--navy-deep); padding: 100px 0; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .social-grid { grid-template-columns: 1fr; } }
.social-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 30px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.4s var(--ease-soft);
}
.social-card:hover { border-color: rgba(201,169,97,0.4); transform: translateY(-4px); }
.social-card .icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.social-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; }
.social-card .handle {
  display: block; color: var(--cream-mute); text-decoration: none; font-size: 0.88rem;
  padding: 6px 0; border-top: 1px solid var(--navy-line); transition: color 0.3s;
}
.social-card .handle:first-of-type { border-top: none; }
.social-card .handle:hover { color: var(--gold-bright); }

.donate-band {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--navy-card), var(--navy));
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: 8px;
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.donate-band h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright); }
.donate-band p { color: var(--cream-mute); margin-top: 6px; max-width: 46ch; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); padding: 70px 0 36px; border-top: 1px solid var(--navy-line); }
.footer-inner { text-align: center; }
footer h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
  max-width: 24ch; margin-inline: auto;
}
footer p.lede { color: var(--cream-mute); max-width: 46ch; margin: 0 auto; }
.social-list { list-style: none; margin: 28px auto 0; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.social-list a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-card); color: var(--cream);
  border: 1px solid var(--navy-line);
  padding: 12px 22px; border-radius: 4px; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; transition: border-color 0.3s, color 0.3s;
}
.social-list a:hover { border-color: var(--gold); color: var(--gold-bright); }
.foot-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--cream-dim);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition-duration: 0.25s; }
}
