:root {
  --bg: #0b1120;
  --bg-alt: #111a2e;
  --card: #16223a;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --blue: #2563eb;
  --yt: #dc2626;
  --fb: #1877f2;
  --wa: #16a34a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Merriweather', Georgia, serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
.hidden { display: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo {
  width: 46px; height: 46px; object-fit: contain;
  border-radius: 10px; background: #fff; padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.footer-brand h4 { margin-bottom: 0; }
.footer-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; flex-shrink: 0; }
.brand strong { display: block; font-size: .98rem; color: #fff; }
.brand small { display: block; font-size: .75rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; font-size: .88rem; color: #cbd5e1; }
.nav-links a:hover { color: var(--accent); }
.live-link { display: inline-flex; align-items: center; gap: .4rem; color: #fca5a5 !important; font-weight: 700; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25); display: inline-block;
}
.live-dot.white { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.btn-nav {
  background: var(--accent); color: #0b1120 !important;
  font-weight: 700; padding: .48rem 1rem; border-radius: 999px;
}

/* Hero */
.hero {
  padding: 4rem 0 3.75rem;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 55%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 2.25rem; align-items: center; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: #fde68a; background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.15rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 1.1rem; }
.lead { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 1.65rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

.hero-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.65rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: .45rem; }
.muted { color: var(--muted); font-size: .9rem; margin-bottom: 1.15rem; }
.schedule-mini { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.25rem; }
.schedule-mini li {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .68rem .85rem; background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border); border-radius: 11px; font-size: .86rem;
}
.schedule-mini strong { color: #fde68a; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .92rem; padding: .78rem 1.25rem;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.full { width: 100%; }
.btn-primary { background: var(--accent); color: #0b1120; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-live { background: #dc2626; color: #fff; }
.btn-live:hover { background: #ef4444; }
.btn-secondary { background: rgba(37, 99, 235, 0.22); border-color: rgba(96, 165, 250, 0.4); color: #dbeafe; }
.btn-outline { background: transparent; border-color: var(--border); color: #e2e8f0; }
.btn-outline:hover { border-color: var(--accent); color: #fff; }
.btn-yt { background: var(--yt); color: #fff; }
.btn-fb { background: var(--fb); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }

/* Sections */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-live {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(11, 17, 32, 0.95));
  border-top: 1px solid rgba(239, 68, 68, 0.25);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 740px; margin: 0 auto 2.5rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .1em;
  font-size: .75rem; font-weight: 800; color: var(--accent); margin-bottom: .5rem;
}
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #dc2626; color: #fff; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: .75rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .7rem; color: #fff; }
.section-head p { color: var(--muted); }

/* Culto en Vivo */
.live-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 1.75rem; align-items: start; }
.live-player-card, .live-side {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.4rem;
}
.live-caption { font-size: .84rem; color: var(--muted); margin-top: .9rem; }
.live-side h3 { font-size: 1.18rem; margin-bottom: .9rem; color: #fff; }
.live-times { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.25rem; font-size: .88rem; color: #cbd5e1; }
.live-times li { padding: .55rem .75rem; background: rgba(15, 23, 42, 0.65); border-radius: 10px; border: 1px solid var(--border); }
.live-times strong { color: #fde68a; }
.live-buttons { display: grid; gap: .65rem; }

/* Grids */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card, .schedule-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.45rem;
}
.card .icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3, .schedule-card h3 { font-size: 1.05rem; margin-bottom: .45rem; color: #fff; }
.card p, .schedule-card p { font-size: .9rem; color: #cbd5e1; }
.schedule-card .day {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  color: #93c5fd; background: rgba(37, 99, 235, 0.2);
  padding: .25rem .65rem; border-radius: 999px; margin-bottom: .7rem;
}
.schedule-card .time { color: #fde68a; font-weight: 800; font-size: 1.05rem; margin-bottom: .45rem; }

/* YouTube Showcase */
.yt-showcase { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 1.5rem; align-items: start; }
.yt-main { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem; }
.yt-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.yt-bar strong { display: block; color: #fff; font-size: .98rem; }
.yt-bar small { color: var(--muted); font-size: .82rem; }
.yt-list { display: grid; gap: .7rem; }
.yt-item {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: .6rem; color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.yt-item:hover, .yt-item.active { border-color: var(--accent); background: rgba(245, 158, 11, 0.1); }
.yt-item img { width: 112px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.yt-item strong { display: block; font-size: .86rem; line-height: 1.3; margin-bottom: .2rem; }
.yt-item small { color: var(--muted); font-size: .76rem; }

.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Facebook + Galería */
.fb-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.75rem; align-items: start; }
.media-card, .gallery-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.media-header h3, .gallery-panel h3 { font-size: 1.2rem; color: #fff; margin: .35rem 0 .35rem; }
.media-header p { font-size: .9rem; color: var(--muted); }
.badge-fb {
  display: inline-block; font-size: .75rem; font-weight: 800;
  padding: .25rem .7rem; border-radius: 999px;
  background: rgba(24, 119, 242, 0.2); color: #93c5fd;
}
.fb-frame-tall {
  width: 100%; height: 560px; border-radius: 14px;
  overflow: hidden; background: #fff;
}
.fb-frame-tall iframe { width: 100%; height: 560px; border: 0; }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.photo-card {
  background: #0b1120; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-card figcaption { padding: .55rem .75rem; font-size: .8rem; color: #cbd5e1; font-weight: 600; }

/* Location */
.location-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2rem; align-items: center; }
.location-info {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.8rem;
}
.location-info h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.info-list { list-style: none; display: grid; gap: .9rem; margin-bottom: 1.5rem; font-size: .94rem; }
.info-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.info-list a { color: #93c5fd; text-decoration: underline; }
.location-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.map-wrap {
  width: 100%; height: 390px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.form-section { max-width: 740px; }
.prayer-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.prayer-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: #e2e8f0; }
.prayer-form input, .prayer-form select, .prayer-form textarea {
  width: 100%; padding: .78rem .95rem; border-radius: 10px;
  border: 1px solid var(--border); background: #0b1120; color: #fff;
  font: inherit; font-size: .94rem;
}
.prayer-form input:focus, .prayer-form select:focus, .prayer-form textarea:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}

/* Footer */
.footer { background: #070b15; border-top: 1px solid var(--border); padding: 3.5rem 0 1.75rem; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer ul { list-style: none; display: grid; gap: .45rem; }
.footer a:hover { color: var(--accent); }
.legal-note { margin-top: .85rem; font-size: .82rem; color: #cbd5e1; padding: .75rem; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; text-align: center; font-size: .82rem; }

@media (max-width: 960px) {
  .hero-grid, .live-grid, .yt-showcase, .fb-layout, .location-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-4, .faq-grid, .form-row, .photo-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
}
