/* Iglesia Bautista La Barca — estilos */
:root {
  --navy: #1b2a4e;
  --navy-deep: #111b33;
  --gold: #e8a33d;
  --gold-soft: #f6d9a3;
  --coral: #c8453a;
  --sand: #faf6ef;
  --paper: #ffffff;
  --ink: #23262f;
  --muted: #5d6273;
  --line: #e7e0d3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 27, 51, .10);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --heading: "Lora", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy); color: #e9ecf4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; color: var(--coral); margin-bottom: .6em; display: block;
}
.section--navy .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 27, 51, .96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--gold);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { height: 54px; width: auto; }
@media (max-width: 420px) { .brand-logo { height: 46px; } }
.hero-logo { margin: 0 0 .3em; line-height: 0; }
.hero-logo img { width: min(520px, 88%); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.footer-logo { width: 210px; height: auto; margin-bottom: 14px; }

.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #dfe4f0; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--navy-deep); background: var(--gold); }
.nav a.nav-live { display: inline-flex; align-items: center; gap: 6px; }
.nav a.nav-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(200,69,58,.3); }

.menu-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); display: none; border-bottom: 3px solid var(--gold); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #f2b65a; color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--whatsapp { background: #1f9d55; color: #fff; }
.btn--whatsapp:hover { background: #178346; color: #fff; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Portada ---------- */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: var(--navy-deep) url("../img/atardecer.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,27,51,.55) 0%, rgba(17,27,51,.35) 45%, rgba(17,27,51,.85) 100%);
}
.hero .container { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-family: var(--serif); letter-spacing: .05em; font-size: clamp(2.6rem, 8vw, 5rem); margin-bottom: .1em; }
.hero .hero-sub { font-family: var(--serif); letter-spacing: .35em; font-size: clamp(.85rem, 2vw, 1.1rem); color: var(--gold-soft); margin-bottom: 1.6em; }
.hero blockquote { margin: 0 0 2em; max-width: 34rem; font-family: var(--heading); font-style: italic; font-size: 1.3rem; }
.hero blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .95rem; color: var(--gold-soft); margin-top: .4em; }

.page-hero {
  position: relative; color: #fff; padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 80px);
  background: var(--navy-deep) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,27,51,.6), rgba(17,27,51,.85)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { font-size: 1.2rem; color: #e3e7f1; max-width: 40rem; margin: 0; }

/* ---------- Horarios ---------- */
.times { margin-top: -56px; position: relative; z-index: 2; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.time-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border-top: 5px solid var(--gold);
}
.time-card .day { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--coral); }
.time-card .hour { font-family: var(--heading); font-size: 2rem; color: var(--navy); font-weight: 700; line-height: 1.1; margin: 4px 0; }
.time-card p { margin: 0; color: var(--muted); }

/* ---------- Divisiones ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 16 / 10; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .2s ease;
}
a.card:hover { transform: translateY(-4px); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 22px; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); margin: 0; }
.card-link { font-weight: 700; color: var(--coral); display: inline-block; margin-top: 12px; }

/* ---------- Versículos ---------- */
.verse {
  border-left: 4px solid var(--gold); background: #fff8ea; padding: 16px 20px; margin: 1.2em 0;
  border-radius: 0 10px 10px 0; font-family: var(--heading); font-style: italic; font-size: 1.12rem;
}
.verse cite { display: block; font-style: normal; font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--coral); margin-top: 6px; }
.section--navy .verse { background: rgba(255,255,255,.06); color: #fff; }
.section--navy .verse cite { color: var(--gold); }
.version-note { font-size: .85rem; color: var(--muted); }

.banner-verse { text-align: center; max-width: 48rem; margin: 0 auto; }
.banner-verse p { font-family: var(--heading); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: #fff; margin-bottom: .4em; }
.banner-verse cite { color: var(--gold); font-style: normal; font-weight: 700; letter-spacing: .08em; }

/* ---------- Pasos de salvación ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }
.step { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 22px 92px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 26px; top: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.4rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .4em; }
@media (max-width: 560px) { .step { padding: 80px 20px 18px; } .step::before { left: 20px; top: 20px; } }

.prayer { max-width: 820px; margin: 0 auto; background: var(--navy); color: #eef1f8; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.prayer h3 { color: #fff; }
.prayer p { color: #eef1f8; }
.prayer .verse { background: rgba(255,255,255,.08); color: #fff; }
.prayer .verse cite { color: var(--gold); }
.prayer .prayer-text { font-family: var(--heading); font-style: italic; font-size: 1.15rem; border-left: 3px solid var(--gold); padding-left: 18px; }

/* ---------- Lo que creemos ---------- */
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.belief { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.belief h3 { margin-bottom: .35em; }
.belief p { color: var(--muted); flex: 1; margin-bottom: .8em; }
.belief .ref { font-weight: 700; font-size: .88rem; color: var(--coral); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111b33' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Medios ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff;
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.platform { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.platform:hover { color: var(--ink); transform: translateY(-2px); }
.platform svg { width: 40px; height: 40px; flex: none; }
.platform strong { display: block; color: var(--navy); }
.platform span { color: var(--muted); font-size: .95rem; }
.fb-wrap { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; justify-content: center; overflow: hidden; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fdfcf9; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,61,.25); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 26px; height: 26px; color: var(--coral); flex: none; margin-top: 3px; }
.info-list strong { display: block; color: var(--navy); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 20px; }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: #b9c1d6; padding: 56px 0 28px; font-size: .98rem; }
.site-footer a { color: #e5e9f3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--heading); font-size: 1.1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--gold); color: var(--navy-deep); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

.note { background: #fff8ea; border: 1px dashed var(--gold); border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: .95rem; }
