/* =========================================================
   Estilos — cambia los colores de marca en :root
   ========================================================= */
:root {
  --ink: #111214;
  --ink-2: #2b2e33;
  --muted: #6b7079;
  --line: #e7e8ea;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --accent: #0a7fc0;        /* color principal de la iglesia (azul del logo) */
  --accent-2: #5cc8f2;
  --accent-deep: #063a5c;   /* tono oscuro para degradados */
  --kids: #2bb3e8;
  --teens: #8b5cf6;
  --live: #e11d48;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(17, 18, 20, .08);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill, svg.fill { fill: currentColor; stroke: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .muted { color: #b5b8bd; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1.5rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { max-width: 560px; margin: 0; }
.center { text-align: center; }
.center .section-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; transition: transform .15s, background .2s, color .2s; font-family: var(--font-body); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-wa { background: #25d366; color: #fff; margin-top: .5rem; }
.btn-live { background: var(--live); color: #fff; padding: .55em 1.1em; font-size: .85rem; white-space: nowrap; }
.btn-live .dot, .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--ink); margin-top: auto; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
#site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .25s, box-shadow .25s; color: #fff; }
#site-header.scrolled, body.solid-header #site-header, body.menu-open #site-header { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav-wrap { height: 100%; width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.brand img { border-radius: 10px; }
/* Logo (admite logos horizontales) */
.brand .logo { height: 50px; width: auto; max-width: 220px; object-fit: contain; border-radius: 0; }
.brand.logo-only span { display: none; }
#site-header .logo-on-light:not(.solo) { display: none; }
#site-header.scrolled .logo-on-dark, body.solid-header #site-header .logo-on-dark, body.menu-open #site-header .logo-on-dark { display: none; }
#site-header.scrolled .logo-on-light, body.solid-header #site-header .logo-on-light, body.menu-open #site-header .logo-on-light { display: block; }
#site-header:not(.scrolled) .logo.solo { background: #fff; padding: 4px 8px; border-radius: 10px; }
body.solid-header #site-header .logo.solo, body.menu-open #site-header .logo.solo { background: none; padding: 0; }
.brand-light .logo { height: 54px; max-width: 240px; }
.brand-light .logo.chip { background: #fff; padding: 6px 10px; border-radius: 12px; height: 64px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5em .7em; border-radius: 8px; opacity: .85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(127,127,127,.14); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 8px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); }
.lang-switch svg { width: 1em; height: 1em; opacity: .7; margin-right: 2px; }
.lang-switch button { background: none; border: 0; color: inherit; font: 700 .72rem var(--font-body); padding: .35em .5em; border-radius: 999px; cursor: pointer; opacity: .6; }
.lang-switch button.on { opacity: 1; background: var(--accent); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: var(--header-h) 0 0; background: #fff; color: var(--ink); flex-direction: column; padding: 24px 20px; gap: 4px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; margin: 0; }
  .nav-links a { font-size: 1.4rem; font-family: var(--font-head); font-weight: 700; padding: .5em .4em; }
  body.menu-open .nav-links { transform: none; }
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: block; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .btn-live { display: none; }
  .brand span { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, rgba(4,20,34,.82) 0%, rgba(4,20,34,.55) 45%, rgba(4,20,34,.15) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%), var(--hero-img, radial-gradient(1200px 600px at 80% 10%, var(--accent) 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, var(--accent-deep) 0%, transparent 55%), #0b1620);
  background-size: cover; background-position: center 22%; }
.hero-inner { padding: 160px 0 110px; }
.hero-inner > h1 { max-width: 820px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-inner > p { max-width: 620px; }
/* Inicio: texto a lo ancho y abajo, para que la foto (rostro) quede despejada arriba */
main[data-home] .hero { background-image: linear-gradient(180deg, rgba(4,20,34,.35) 0%, rgba(4,20,34,0) 22%, rgba(4,20,34,.05) 45%, rgba(4,20,34,.78) 72%, rgba(4,20,34,.92) 100%), var(--hero-img, radial-gradient(1200px 600px at 80% 10%, var(--accent) 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, var(--accent-deep) 0%, transparent 55%), #0b1620); background-position: center 30%; }
main[data-home] .hero-inner { padding: 160px 0 96px; }
main[data-home] .hero-inner > h1 { max-width: none; font-size: clamp(2.4rem, 4.6vw, 4.1rem); margin-bottom: .35em; }
main[data-home] .hero-inner > p { max-width: 1040px; font-size: clamp(1.02rem, 1.35vw, 1.2rem); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
main[data-home] .hero .btn-row { margin-top: 1.4rem; }
.hero .eyebrow { color: var(--accent-2); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 620px; opacity: .92; }
.hero .btn-row { margin-top: 2rem; }
.hero-sm { min-height: 56vh; }
.hero-sm .hero-inner { padding: 150px 0 60px; }
.hero.kids-hero { --hero-img: radial-gradient(800px 500px at 85% 20%, #ffd166 0%, transparent 55%), radial-gradient(800px 500px at 10% 90%, #2bb3e8 0%, transparent 60%), #0b4f6c; }
.hero.teens-hero { --hero-img: radial-gradient(800px 500px at 85% 20%, #ec4899 0%, transparent 55%), radial-gradient(800px 500px at 10% 90%, #8b5cf6 0%, transparent 60%), #1e1036; }
.hero.worship-hero { --hero-img: radial-gradient(700px 500px at 50% 0%, var(--accent-2) 0%, transparent 60%), radial-gradient(900px 600px at 50% 120%, var(--accent) 0%, transparent 55%), #0b1620; }

/* ---------- Horarios ---------- */
.times-band { margin-top: -60px; position: relative; z-index: 2; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.time-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--accent); }
.time-day { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.time-hours { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.time-label { color: var(--muted); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.section.dark .card { background: #1c1e22; border-color: #2c2f35; color: #fff; }
.section.dark .link-arrow { color: #fff; }

.step-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 210px; transition: background .2s, color .2s; }
.step-card .num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--accent); line-height: 1; }
.step-card:hover { background: var(--ink); color: #fff; }
.step-card:hover .muted { color: #b5b8bd; }

.ministry-card { padding: 28px; gap: 6px; }
.m-icon { font-size: 2.2rem; width: 64px; height: 64px; display: grid; place-items: center; background: var(--bg-soft); border-radius: 16px; margin-bottom: 10px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-media { border-radius: var(--radius); aspect-ratio: 4/3; overflow: hidden; }
.feature-media.ph { background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 5rem; }
.feature-media.ph.kids { background: linear-gradient(135deg, #2bb3e8, #ffd166); }
.feature-media.ph.teens { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.info-card { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .5em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.section.dark .tag-list li { background: #1c1e22; border-color: #2c2f35; }

/* ---------- Video / prédicas ---------- */
.live-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-big { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
/* Tarjeta de transmisión (abre Facebook) */
.video-facade { display: block; color: #fff; text-decoration: none; background: linear-gradient(180deg, rgba(4,20,34,.35), rgba(4,20,34,.85)), var(--thumb, linear-gradient(135deg, var(--accent), var(--accent-deep))); background-size: cover; background-position: center 25%; }
.video-facade .vf-top { position: absolute; top: 14px; left: 16px; display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700; background: #1877f2; padding: .35em .75em; border-radius: 999px; }
.video-facade .vf-live { background: var(--live); letter-spacing: .06em; }
.video-facade .vf-live .dot { width: 8px; height: 8px; }
.video-facade.is-live { box-shadow: 0 0 0 3px var(--live); }
.is-live-frame { box-shadow: 0 0 0 3px var(--live); }
.is-live-frame .live-tag { background: var(--live); letter-spacing: .06em; position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .4em; color: #fff; font-size: .78rem; font-weight: 700; padding: .35em .75em; border-radius: 999px; pointer-events: none; }
.btn-live-big { display: flex; justify-content: center; width: 100%; margin-top: 12px; padding: .9em 1.2em; font-size: 1rem; }
.live-help { font-size: .82rem; opacity: .75; margin: 8px 0 0; text-align: center; }
.video-facade .vf-top svg { width: 1em; height: 1em; }
.video-facade .vf-play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.video-facade .vf-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-facade:hover .vf-play { transform: scale(1.08); }
.video-facade .vf-bottom { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.video-facade .vf-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.video-big.video-facade .vf-title { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.video-facade .vf-cta { font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: .9; }
.sermon-card .video-facade .vf-title { display: none; }
.fb-fallback { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 600; margin: 10px 0 0; text-decoration: none; opacity: .8; }
.fb-fallback:hover { opacity: 1; text-decoration: underline; }
.sermon-card .video { border-radius: 0; }
.sermon-card .fb-fallback { margin: 10px 24px 0; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--live); color: #fff; padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }

/* ---------- Eventos ---------- */
.event-card { flex-direction: row; }
.event-date { min-width: 96px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.ed-day { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.ed-mon { text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: .8rem; color: var(--accent-2); }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.events-list { display: grid; gap: 16px; }
@media (max-width: 480px) { .event-card { flex-direction: column; } .event-date { flex-direction: row; gap: 10px; min-width: 0; } }

/* ---------- Devocionales ---------- */
.dev-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.dev-box .eyebrow { color: var(--accent-2); }
.dev-box .link-arrow { color: #fff; }
.dev-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.verse { font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.dev-box .verse { color: var(--accent-2); }
.dev-card.featured { grid-column: 1 / -1; background: var(--ink); color: #fff; border: 0; }
.dev-card.featured h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.dev-card.featured .eyebrow, .dev-card.featured .verse { color: var(--accent-2); }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .55em 1.2em; font: 600 .9rem var(--font-body); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.g-item[hidden] { display: none; }
.g-item img { width: 100%; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 32px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-weight: 600; font-size: .9rem; opacity: 0; transition: opacity .25s; }
.g-item:hover figcaption, .g-item:focus figcaption { opacity: 1; }
.g-ph { aspect-ratio: 4/3; display: grid; place-items: end start; padding: 16px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.g-item:nth-child(3n+2) .g-ph { aspect-ratio: 3/4; }
.ph-0 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ph-1 { background: linear-gradient(135deg, #2bb3e8, #ffd166); }
.ph-2 { background: linear-gradient(135deg, #111214, #6d28d9); }
.ph-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ph-4 { background: linear-gradient(135deg, #0f766e, #84cc16); }
.ph-5 { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: #fff; }
.lightbox img, .lb-ph { max-height: 80vh; max-width: min(1000px, 100%); width: auto; border-radius: var(--radius-sm); }
.lb-ph { width: min(800px, 100%); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { opacity: .6; font-size: .85rem; margin-left: .5em; }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 42px; font-size: 1.6rem; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }
.lightbox p { margin-top: 14px; font-weight: 600; }
.lb-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; cursor: pointer; }
.lb-close svg { width: 32px; height: 32px; }

/* ---------- Dirección / mapa ---------- */
.address-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .address-grid { grid-template-columns: 1fr; } }
.icon-line { display: flex; gap: 10px; align-items: flex-start; }
.icon-line svg { margin-top: .2em; color: var(--accent); }
.icon-line.big { font-size: 1.15rem; font-weight: 600; }
.icon-line a { text-decoration: none; }
.icon-line a:hover { text-decoration: underline; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--bg-soft); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: .85em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { grid-column: 1 / -1; font-weight: 600; margin: 0; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.contact-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }

/* ---------- Footer ---------- */
#site-footer { background: var(--ink); color: #fff; padding: 72px 0 0; }
#site-footer .muted { color: #a2a6ad; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links a { text-decoration: none; color: #d6d8dc; line-height: 2; }
.footer-links a:hover { color: #fff; }
.brand-light { margin-bottom: 1rem; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #24262b; transition: background .2s; }
.social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid #2c2f35; margin-top: 48px; padding: 22px 0; font-size: .85rem; color: #8c9097; }

/* ---------- Chatbot ---------- */
#chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.chat-fab { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 10px 25px rgba(232,85,43,.45); display: grid; place-items: center; transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-panel { position: absolute; right: 0; bottom: 78px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s; }
#chatbot.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head img { border-radius: 10px; background: #fff; }
.chat-head div { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.chat-head span { font-size: .78rem; color: #9fe6b5; display: flex; align-items: center; gap: 6px; }
.chat-head .dot { background: #22c55e; }
.chat-close { background: none; border: 0; color: #fff; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.msg a { color: var(--accent); font-weight: 600; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.typing { display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45em .9em; font: 600 .8rem var(--font-body); cursor: pointer; }
.chat-quick button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 14px; }
.chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .7em 1em; font: inherit; font-size: .92rem; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Animación ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- CTA final ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 640px; }

/* ---------- Videos, Spotify y vista previa ---------- */
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.video-card .video { border-radius: 0; }
.videos-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.spotify-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.spotify-item h3 { margin-bottom: .6em; }
iframe.spotify { width: 100%; border: 0; border-radius: 14px; display: block; }
.preview-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; background: #111214; color: var(--accent-2); font: 700 .8rem var(--font-body); padding: .6em 1.2em; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
[hidden] { display: none !important; }

/* ---------- Fondos de sección editables desde el panel ---------- */
.section.has-bg, .has-bg { color: #fff; background-color: #0b1620 !important;
  background-image: linear-gradient(rgba(5,18,30,var(--ov,.7)), rgba(5,18,30,var(--ov,.7))), var(--sec-bg) !important;
  background-size: cover !important; background-position: center !important; }
.has-bg .muted, .has-bg .section-head p { color: rgba(255,255,255,.85); }
.has-bg .eyebrow { color: var(--accent-2); }
.has-bg h2, .has-bg .section-head h2 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.has-bg .card, .has-bg .step-card, .has-bg .time-card, .has-bg .tag-list li, .has-bg .chip { color: var(--ink); }
.has-bg .card .muted, .has-bg .step-card .muted, .has-bg .time-card .muted { color: var(--muted); }
.has-bg .link-arrow { color: var(--ink); }
.has-bg .btn-outline { color: #fff; }
.has-bg .address-info a { color: #fff; }

.has-bg .info-card { color: var(--ink); background: #fff; }
.has-bg .info-card .muted { color: var(--muted); }
/* Banner de páginas con foto: mismo tamaño que el del inicio */
.hero.hero-sm.has-photo { min-height: 100vh; min-height: 100svh; }
.hero.hero-sm.has-photo .hero-inner { padding: 160px 0 110px; }
/* Fotos en lugar de emojis */
.info-card.has-photo { padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.info-card.has-photo h3, .info-card.has-photo p { padding: 0 24px; }
.info-card.has-photo h3 { margin-top: 18px; }
.info-card.has-photo p { padding-bottom: 22px; }
.card-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.has-photo { background-size: cover !important; background-position: center !important; background-repeat: no-repeat; }
.m-photo { display: block; margin: -28px -28px 14px; aspect-ratio: 16/10; overflow: hidden; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Color de botones elegido en el panel */
[data-btn] .btn-primary, [data-btn] .btn-dark, [data-btn] .btn-light { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
[data-btn] .btn-outline { border-color: var(--btn); color: var(--btn); }
.has-bg[data-btn] .btn-outline, .section.dark[data-btn] .btn-outline { color: #fff; }

/* =========================================================
   v2 · Banners: foto en capa propia (se puede mover y acercar)
   ========================================================= */
.hero { background: #0b1620 !important; isolation: isolate; }
.hero > .hero-inner { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img, radial-gradient(1200px 600px at 80% 10%, var(--accent) 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, var(--accent-deep) 0%, transparent 55%), linear-gradient(#0b1620, #0b1620));
  background-repeat: no-repeat; background-size: cover;
  background-position: var(--hx, 50%) var(--hy, 22%);
  transform: scale(var(--hz, 1)); transform-origin: var(--hx, 50%) var(--hy, 22%); transition: transform .2s; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4,20,34,.78) 0%, rgba(4,20,34,.5) 45%, rgba(4,20,34,.12) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.5) 100%); }
main[data-home] .hero::before { background-position: var(--hx, 50%) var(--hy, 30%); transform-origin: var(--hx, 50%) var(--hy, 30%); }
main[data-home] .hero::after { background: linear-gradient(180deg, rgba(4,20,34,.35) 0%, rgba(4,20,34,0) 22%, rgba(4,20,34,.05) 45%, rgba(4,20,34,.78) 72%, rgba(4,20,34,.92) 100%); }
.hero.kids-hero { --hero-img: radial-gradient(800px 500px at 85% 20%, #ffd166 0%, transparent 55%), radial-gradient(800px 500px at 10% 90%, #2bb3e8 0%, transparent 60%), linear-gradient(#0b4f6c, #0b4f6c); }
.hero.teens-hero { --hero-img: radial-gradient(800px 500px at 85% 20%, #ec4899 0%, transparent 55%), radial-gradient(800px 500px at 10% 90%, #8b5cf6 0%, transparent 60%), linear-gradient(#1e1036, #1e1036); }
.hero.worship-hero { --hero-img: radial-gradient(700px 500px at 50% 0%, var(--accent-2) 0%, transparent 60%), radial-gradient(900px 600px at 50% 120%, var(--accent) 0%, transparent 55%), linear-gradient(#0b1620, #0b1620); }
/* Todas las páginas: banner del mismo tamaño que el inicio */
.hero-sm, .hero.hero-sm.has-photo { min-height: 100vh; min-height: 100svh; }
.hero-sm .hero-inner, .hero.hero-sm.has-photo .hero-inner { padding: 160px 0 110px; }

/* =========================================================
   v2 · Letra más grande y menú a todo lo ancho
   ========================================================= */
html { font-size: 17.5px; }
body { font-size: 1rem; line-height: 1.65; }
@media (max-width: 560px) { html { font-size: 17px; } }
.container { width: min(1280px, 100% - 40px); }
.nav-wrap { width: calc(100% - 48px); max-width: none; gap: 20px; }
.nav-links { gap: 4px; }
.nav-links a, .nav-more > button { font-size: 1rem; font-weight: 600; }
.muted { color: #5d636c; }
.small { font-size: .92rem; }
.nav-more { position: relative; }
.nav-more > button { background: none; border: 0; color: inherit; font-family: var(--font-body); padding: .5em .7em; border-radius: 8px; cursor: pointer; opacity: .85; display: inline-flex; align-items: center; gap: .3em; }
.nav-more > button:hover, .nav-more.open > button, .nav-more.has-active > button { opacity: 1; background: rgba(127,127,127,.14); }
.nav-more-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 8px; display: none; flex-direction: column; z-index: 60; }
.nav-more.open .nav-more-menu { display: flex; }
.nav-more-menu a { padding: .6em .9em !important; border-radius: 8px; opacity: 1 !important; }
.nav-more-menu a:hover, .nav-more-menu a.active { background: var(--bg-soft) !important; }
@media (max-width: 1180px) {
  .nav-more > button { display: none; }
  .nav-more-menu { display: flex; position: static; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .nav-more-menu a { font-size: 1.4rem !important; font-family: var(--font-head); font-weight: 700; padding: .5em .4em !important; }
}

/* =========================================================
   v2 · Versículo del día y página Biblia
   ========================================================= */
.verse-section { color: #fff; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 15% 0%, rgba(92,200,242,.28), transparent 60%), radial-gradient(800px 420px at 100% 100%, rgba(10,127,192,.35), transparent 60%), linear-gradient(135deg, #061a2b 0%, #0b2f4a 55%, #061a2b 100%); }
.verse-section::before { content: "“"; position: absolute; top: -.18em; left: 50%; transform: translateX(-50%); font-family: "Cormorant Garamond", Georgia, serif; font-size: 28rem; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.verse-section.has-verse-bg { background-image: linear-gradient(rgba(4,16,28,.72), rgba(4,16,28,.82)), var(--verse-bg); background-size: cover; background-position: center; }
.verse-card { max-width: 920px; margin-inline: auto; position: relative; }
.verse-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.25); margin-bottom: 1.6rem; }
.verse-text { margin: 0 0 1.2rem; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.32; letter-spacing: .005em; }
.verse-ref { display: block; font-style: normal; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: #dbe9f3; }
.verse-ref small { font-weight: 400; opacity: .7; }
.verse-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.bible-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .bible-wrap { grid-template-columns: 1fr; } }
.bible-form { display: flex; gap: 10px; margin: 1rem 0 1.4rem; }
.bible-form input { flex: 1; padding: .9em 1.1em; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.bible-sub { font-size: 1.15rem; margin: 1.2rem 0 .7rem; }
.mood-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mood { display: inline-flex; align-items: center; gap: .45em; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5em .95em; font: 600 .92rem var(--font-body); cursor: pointer; }
.mood span { font-size: 1.15em; }
.mood:hover, .mood.on { border-color: var(--accent); background: rgba(10,127,192,.08); }
.bv { background: var(--bg-soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; border-left: 4px solid var(--accent); }
.bv p { margin: 0 0 .6em; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; line-height: 1.45; }
.bv footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.bv .link-btn, .reader-nav .link-btn { background: none; border: 0; color: var(--accent); font: 700 .92rem var(--font-body); cursor: pointer; padding: 0; }
.bible-reader { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
@media (max-width: 960px) { .bible-reader { position: static; max-height: none; } }
.reader-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.reader-bar select { padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.reader-nav { display: flex; justify-content: space-between; margin: 12px 0; }
.reader-text h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; }
.reader-text .rv { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.28rem; line-height: 1.55; margin: 0 0 .5em; }
.reader-text .rv sup { font-family: var(--font-body); font-size: .62em; font-weight: 700; color: var(--accent); margin-right: .15em; }
.reader-text .rv.hl { background: #fff4cc; border-radius: 6px; padding: 2px 6px; }
.bible-note { margin-top: 1.4rem; }
.hero.bible-hero { --hero-img: radial-gradient(900px 500px at 80% 10%, rgba(92,200,242,.55) 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, var(--accent-deep) 0%, transparent 55%), linear-gradient(#061a2b, #061a2b); }

.chat-logo { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 10px; padding: 2px; image-rendering: auto; }
.chat-wa { display: inline-block; margin-top: 6px; background: #25d366; color: #fff !important; padding: .45em .9em; border-radius: 999px; font-weight: 700; text-decoration: none; }

/* Transmisión en vivo a pantalla completa */
.live-grid.live-on { grid-template-columns: 1fr; text-align: center; }
.live-grid.live-on > :first-child { width: 100%; max-width: 1240px; margin-inline: auto; }
.live-grid.live-on .btn-row { justify-content: center; }
.live-grid.live-on .video-big { border-radius: 18px; }
/* Mapa elegante */
.map-elegant { position: relative; border-radius: 24px; overflow: hidden; border: 0; box-shadow: 0 24px 60px rgba(6,26,43,.22); aspect-ratio: 4/3; background: #e9eef2; }
.map-elegant .map-canvas, .map-elegant iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-elegant.map-google iframe { filter: grayscale(.35) contrast(1.05) saturate(.9); }
.map-cta { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: inline-flex; align-items: center; gap: .45em; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; padding: .7em 1.1em; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.map-cta:hover { background: var(--accent); color: #fff; }
.map-pin span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: #fff; box-shadow: 0 10px 24px rgba(6,26,43,.35); border: 3px solid var(--accent); }
.map-pin img { width: 36px; height: 36px; object-fit: contain; transform: rotate(45deg); }
.leaflet-popup-content { font-family: var(--font-body); font-size: .95rem; }

.step-card.has-photo { padding: 0; overflow: hidden; }
.step-card.has-photo h3, .step-card.has-photo p { padding: 0 24px; }
.step-card.has-photo h3 { margin-top: 18px; }
.step-card.has-photo p { padding-bottom: 22px; }
.bible-wrap > * { min-width: 0; }
@media (max-width: 960px) { .bible-wrap { grid-template-columns: minmax(0, 1fr); } }
.reader-bar select { max-width: 100%; min-width: 0; }
.bible-form input { min-width: 0; }

/* =========================================================
   v3 · Íconos modernos, logo grande, temporada, Biblia con color
   ========================================================= */
:root {
  --t1a: #0a7fc0; --t1b: #5cc8f2;   /* azul (marca) */
  --t2a: #0e9f9a; --t2b: #6ee7d8;   /* turquesa */
  --t3a: #2563eb; --t3b: #93c5fd;   /* azul rey */
  --t4a: #7c3aed; --t4b: #c4b5fd;   /* violeta */
  --t5a: #e08a00; --t5b: #fcd34d;   /* ámbar */
  --t6a: #e11d63; --t6b: #fda4c3;   /* rosa */
}
.tone-1 { --ta: var(--t1a); --tb: var(--t1b); } .tone-2 { --ta: var(--t2a); --tb: var(--t2b); } .tone-3 { --ta: var(--t3a); --tb: var(--t3b); }
.tone-4 { --ta: var(--t4a); --tb: var(--t4b); } .tone-5 { --ta: var(--t5a); --tb: var(--t5b); } .tone-6 { --ta: var(--t6a); --tb: var(--t6b); }
.mi { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Ícono en tarjeta: recuadro con degradado suave */
.ico.ico-svg { display: inline-grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--ta), var(--tb)); box-shadow: 0 8px 18px -8px var(--ta); }
.info-card h3 { gap: 14px; }
.m-icon.ico-svg { color: #fff; font-size: 30px; background: linear-gradient(135deg, var(--ta), var(--tb)); box-shadow: 0 10px 22px -10px var(--ta); }
.feature-media.ico-svg { color: #fff; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.28), transparent 60%), linear-gradient(135deg, var(--ta), var(--tb)) !important; }
.feature-media .mi-big { width: 38%; height: 38%; stroke-width: 1.3; filter: drop-shadow(0 10px 20px rgba(0,0,0,.18)); }
.btn .mi { width: 1.1em; height: 1.1em; }
/* Logo más grande (ajustable desde el panel) */
.brand .logo { height: var(--logo-h, 64px) !important; max-width: none; }
.brand-light .logo { height: calc(var(--logo-h, 64px) + 6px); }
/* Animación de temporada */
.season-fx { position: fixed; top: 0; z-index: 45; pointer-events: none; transition: opacity .6s ease; }
.season-fx.season-right { right: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
.season-fx.season-left { left: 0; -webkit-mask-image: linear-gradient(to left, transparent, #000 22%); mask-image: linear-gradient(to left, transparent, #000 22%); }
.season-fx.season-full { left: 0; }
.season-fx.season-out { opacity: 0 !important; }
.season-close { position: fixed; top: calc(var(--header-h, 80px) + 12px); z-index: 46; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; cursor: pointer;
  background: rgba(15,23,42,.45); color: #fff; font: 600 13px/1 system-ui, sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .7; transition: opacity .2s, transform .2s; }
.season-close:hover, .season-close:focus-visible { opacity: 1; transform: scale(1.05); }
.season-close b { font-size: 12px; opacity: .85; }
.season-close-right, .season-close-full { right: 14px; }
.season-close-left { left: 14px; }
/* Banner con altura personalizada */
.hero.hero-custom-h .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }

/* ---------- Biblia con color ---------- */
.hero.bible-hero { --hero-img: radial-gradient(800px 420px at 85% 15%, rgba(92,200,242,.6) 0%, transparent 60%), radial-gradient(700px 500px at 10% 100%, rgba(124,58,237,.55) 0%, transparent 60%), linear-gradient(135deg, #061a2b, #0b2f4a); }
.bible-panel { position: relative; border-radius: 22px; padding: clamp(22px, 3vw, 34px); color: #fff; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0a7fc0, #2563eb 55%, #7c3aed); box-shadow: 0 22px 50px -24px rgba(37,99,235,.7); }
.bible-panel h2 { color: #fff; margin-bottom: .35em; }
.bible-panel p { color: rgba(255,255,255,.88); }
.bp-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); font-size: 26px; margin-bottom: 12px; backdrop-filter: blur(4px); }
.bible-panel .bible-form input { border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.bible-panel .bible-form .btn { gap: .4em; }
.quick-words { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-words button { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: .38em .9em; font: 600 .88rem var(--font-body); cursor: pointer; }
.quick-words button:hover { background: rgba(255,255,255,.25); }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mood-grid .mood { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: 600 .95rem var(--font-body); cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; }
.mood-grid .mood:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px var(--ta, #0a7fc0); border-color: var(--tb, #5cc8f2); }
.mood-grid .mood.on { border-color: var(--ta); background: linear-gradient(135deg, color-mix(in srgb, var(--tb) 22%, #fff), #fff); }
.mood-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; color: #fff; font-size: 21px; background: linear-gradient(135deg, var(--ta, #0a7fc0), var(--tb, #5cc8f2)); }
.mood-t { line-height: 1.25; }
.res-head { display: flex; align-items: center; gap: 12px; }
.bv { background: linear-gradient(135deg, #f4f9fd, #fff); border: 1px solid #e4eef6; border-left: 4px solid var(--accent); box-shadow: 0 10px 26px -22px rgba(6,26,43,.5); }
.bible-reader { border: 0; box-shadow: 0 24px 60px -30px rgba(6,26,43,.45); padding-top: 0; overflow: auto; }
.br-head { display: flex; align-items: center; gap: 14px; margin: 0 calc(-1 * clamp(20px, 3vw, 32px)) 18px; padding: 18px clamp(20px, 3vw, 32px); color: #fff; background: linear-gradient(135deg, #061a2b, #0b2f4a 60%, #0a7fc0); position: sticky; top: 0; z-index: 2; }
.br-head h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.br-head .bp-ic { margin: 0; width: 44px; height: 44px; font-size: 22px; }
.reader-bar .btn-dark { background: var(--accent); }
.reader-text h3 { color: #0b2f4a; }
.verse-actions .btn { gap: .45em; }

/* =========================================================
   v4 · Biblia como libro abierto
   ========================================================= */
.bible-book-sec { padding-top: clamp(28px, 4vw, 56px); background: radial-gradient(1200px 500px at 50% 0%, #eaf3fb, transparent 70%), var(--bg, #fff); }
.bbook { --paper: #fbf7ee; --paper2: #f3ecdc; --ink: #2b2620; --leather: #3a1f17; --gold: #d8b46a;
  position: relative; max-width: 1180px; margin: 0 auto; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, #4a271c, var(--leather) 55%, #26130e);
  box-shadow: 0 40px 80px -40px rgba(20,10,5,.75), 0 6px 0 #1d0e0a, inset 0 0 0 2px rgba(216,180,106,.25); perspective: 2400px; }
.bbook-pages { position: relative; display: grid; grid-template-columns: 1fr 1fr; transform-style: preserve-3d;
  box-shadow: 0 2px 0 #e8dfcb, 0 4px 0 #ddd2b9, 0 6px 0 #d2c5a8; border-radius: 6px; }
.bpage { position: relative; background: var(--paper); color: var(--ink); height: clamp(560px, 74vh, 700px); display: flex; flex-direction: column; overflow: hidden; }
.bpage-left { border-radius: 6px 0 0 6px; background: linear-gradient(to right, var(--paper2), var(--paper) 12%, var(--paper) 88%, #e9dfc9); padding: 22px 26px 22px 22px; }
.bpage-right { border-radius: 0 6px 6px 0; background: linear-gradient(to left, var(--paper2), var(--paper) 12%, var(--paper) 88%, #e9dfc9); padding: 18px 22px 14px 30px; }
.bbook-pages::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(60,40,20,.10) 40%, rgba(60,40,20,.22) 50%, rgba(60,40,20,.10) 60%, transparent); z-index: 3; }
.bscene { margin: 0; position: relative; border-radius: 14px; overflow: hidden; flex: 0 0 auto; aspect-ratio: 16 / 10; box-shadow: 0 16px 34px -20px rgba(30,20,10,.6); background: #dfe9f2; }
.bscene svg { stroke: none; }
.bscene svg, .bscene img { display: block; width: 100%; height: 100%; object-fit: cover; animation: bsceneIn 1.1s ease both; }
.bscene figcaption { position: absolute; left: 14px; top: 14px; }
.bscene figcaption span { display: inline-block; padding: .35em .9em; border-radius: 999px; font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(10,20,35,.38); backdrop-filter: blur(6px); }
@keyframes bsceneIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.bquote { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 6px 0; overflow: auto; }
.bquote blockquote { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; font-style: italic; color: #2a2118; }
.bquote blockquote::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--gold); font-style: normal; }
.bquote cite { display: block; margin-top: .7rem; font: 700 .95rem var(--font-body); font-style: normal; color: #7a5a2c; }
.bquote cite small { font-weight: 500; color: #9a8667; }
.bq-actions { margin-top: .8rem; display: flex; gap: 8px; }
.bq-actions .chip { display: inline-flex; align-items: center; gap: .4em; padding: .42em .9em; border-radius: 999px; border: 1px solid #e3d6bb; background: #fff; color: #5b4630; font: 600 .85rem var(--font-body); text-decoration: none; }
.bq-actions .chip svg { width: 1.05em; height: 1.05em; }
.bp-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e6dcc6; flex-wrap: wrap; }
.bp-head .bp-ic { width: 40px; height: 40px; margin: 0; border-radius: 12px; background: linear-gradient(135deg, #0a7fc0, #7c3aed); color: #fff; }
.bp-head .bp-ic svg { width: 22px; height: 22px; }
.bp-head select { padding: .55em .7em; border: 1px solid #e0d3b8; border-radius: 10px; background: #fff; font: 600 .95rem var(--font-body); color: var(--ink); min-width: 0; max-width: 100%; }
.bp-head select[name=book] { flex: 1 1 140px; }
.bp-nav { margin-left: auto; display: flex; gap: 6px; }
.pg-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e0d3b8; background: #fff; color: #5b4630; font: 700 1.5rem/1 Georgia, serif; cursor: pointer; transition: background .2s, transform .15s; }
.pg-btn:hover { background: #fff5e2; transform: scale(1.06); }
.bpage .reader-text { flex: 1; overflow: auto; padding: 8px 6px 8px 0; scrollbar-width: thin; scrollbar-color: #d8c8a6 transparent; }
.bpage .reader-text h3 { text-align: center; font-size: 2rem; color: #4a2f1b; margin: .4em 0 .6em; }
.bpage .reader-text h3::after { content: "❦"; display: block; font-size: 1.1rem; color: var(--gold); margin-top: .2em; }
.bpage .reader-text .rv { color: #2b2620; }
.bpage .reader-text .rv sup { color: #a0742f; }
.bpage .reader-text .rv:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .8; padding: .08em .1em 0 0; color: #7a3b1a; font-weight: 600; }
.bpage .reader-text .rv.hl { background: linear-gradient(transparent 15%, #fbe7a6 15%, #fbe7a6 90%, transparent 90%); }
.bp-foot { text-align: center; font: italic .85rem "Cormorant Garamond", Georgia, serif; color: #9a8667; padding-top: 6px; }
/* Hoja que da vuelta */
.bsheet { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; transform-style: preserve-3d; pointer-events: none; }
.bsheet-next { left: 50%; transform-origin: left center; animation: bsNext .95s cubic-bezier(.45,.05,.3,1) forwards; }
.bsheet-prev { left: 0; transform-origin: right center; animation: bsPrev .95s cubic-bezier(.45,.05,.3,1) forwards; }
.bs-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--paper); }
.bs-face > .bpage { height: 100%; }
.bs-back { transform: rotateY(180deg); background: linear-gradient(to left, #efe6d2, var(--paper) 30%); }
.bs-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,.18)); opacity: 0; animation: bsShade .95s ease forwards; }
@keyframes bsNext { 0% { transform: rotateY(0); } 100% { transform: rotateY(-180deg); } }
@keyframes bsPrev { 0% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
@keyframes bsShade { 50% { opacity: 1; } 100% { opacity: 0; } }
/* Tapa que se abre */
.bbook-cover { position: absolute; top: 14px; bottom: 14px; left: 50%; right: 14px; z-index: 8; transform-origin: left center; transform-style: preserve-3d;
  animation: bcOpen 1.7s cubic-bezier(.6,.05,.25,1) .35s forwards; }
.bc-front, .bc-back { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bc-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--gold);
  background: radial-gradient(500px 300px at 30% 20%, rgba(255,255,255,.08), transparent 60%), linear-gradient(135deg, #5a2d1f, #3a1f17 60%, #241109);
  box-shadow: inset 0 0 0 10px #3a1f17, inset 0 0 0 12px rgba(216,180,106,.7), inset 0 0 0 16px #3a1f17, inset 0 0 0 17px rgba(216,180,106,.45), 0 20px 40px rgba(0,0,0,.4); }
.bc-front b { font: 600 clamp(2rem, 4vw, 3.2rem)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.bc-front small { font: 600 .8rem var(--font-body); letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.bc-cross svg { width: 54px; height: 54px; stroke: var(--gold); }
.bc-back { transform: rotateY(180deg); background: linear-gradient(to left, #2e1710, #4a271c); box-shadow: inset 0 0 0 12px #3a1f17, inset 0 0 0 13px rgba(216,180,106,.35); }
@keyframes bcOpen { 0% { transform: rotateY(0); } 100% { transform: rotateY(-180deg); } }
.bbook-cover .bc-back { animation: bcFade 1.7s .35s forwards; }
@keyframes bcFade { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
.bbook.opening .bpage-left > * { animation: bLeftIn .9s ease 1.3s both; }
@keyframes bLeftIn { from { opacity: 0; } to { opacity: 1; } }
/* Búsqueda y estados de ánimo debajo del libro */
.bible-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.bible-wrap .bible-results, .bible-wrap .bible-note { grid-column: 1 / -1; }
.bible-wrap .bible-sub:first-child { margin-top: 0; }
.bv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bv-grid .bv { margin: 0; }
@media (max-width: 960px) { .bible-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 859px) {
  .bbook { padding: 8px; }
  .bbook-pages { grid-template-columns: 1fr; }
  .bbook-pages::after { display: none; }
  .bpage { height: auto; }
  .bpage-left { border-radius: 6px 6px 0 0; padding: 14px; background: var(--paper); }
  .bpage-right { border-radius: 0 0 6px 6px; padding: 14px; height: 72vh; border-top: 1px dashed #e0d3b8; background: var(--paper); }
  .bquote { padding-top: 12px; }
  .bbook-cover { left: 8px; right: 8px; top: 8px; bottom: 8px; }
  .bpage-right.pg-in .reader-text { animation: pgIn .55s ease both; }
  @keyframes pgIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
  .bv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .bscene svg, .bscene img, .bbook.opening .bpage-left > * { animation: none; } }
/* Selector de idioma con banderas */
.lang-switch { gap: 4px; padding: 3px; }
.lang-switch button { display: inline-flex; align-items: center; gap: 6px; padding: .38em .7em .38em .45em; opacity: .75; transition: opacity .2s, background .2s; }
.lang-switch button:hover { opacity: 1; background: rgba(127,127,127,.15); }
.lang-switch button.on { opacity: 1; }
.lang-switch .flag, .la-seg .flag { opacity: 1; stroke: none; }
.lang-switch .flag { width: 22px; height: 15px; margin: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
@media (max-width: 520px) { .lang-switch button span { display: none; } .lang-switch button { padding: .38em .45em; } }
/* ---------- En vivo: subtítulos y lengua de señas ---------- */
.live-stage { position: relative; }
.sign-pip { position: absolute; right: 14px; bottom: 14px; width: clamp(150px, 27%, 300px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; z-index: 4;
  background: #0b1220; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transition: opacity .25s, transform .25s; }
.sign-pip.off { opacity: 0; transform: scale(.9); pointer-events: none; }
.sign-pip iframe, .sign-pip video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.sp-tag { position: absolute; left: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: .3em .65em; border-radius: 999px; background: rgba(11,18,32,.7); color: #fff; font: 700 .72rem var(--font-body); pointer-events: none; }
.sp-tag svg, .la-btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live-access { margin-top: 14px; }
.la-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.la-btn { display: inline-flex; align-items: center; gap: 7px; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line, #dfe3e8); background: #fff; color: var(--ink, #111); font: 700 .9rem var(--font-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.la-btn.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.la-size small { font-size: .7em; margin-left: 1px; }
.la-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: #eef2f6; }
.la-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: .45em .85em .45em .55em; border-radius: 999px; font: 700 .85rem var(--font-body); color: #475569; cursor: pointer; }
.la-seg button.on { background: #fff; color: #0b1220; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.la-seg .flag { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.cc-box { margin-top: 10px; min-height: 5.2em; padding: 14px 18px; border-radius: 14px; background: #0b1220; color: #fff; font: 600 1.15rem/1.45 var(--font-body);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.cc-box[data-size="1"] { font-size: 1.45rem; }
.cc-box[data-size="2"] { font-size: 1.85rem; }
.cc-box p { margin: 0; }
.cc-line { opacity: .55; }
.cc-line.last { opacity: 1; animation: ccIn .35s ease both; }
.cc-wait { opacity: .7; font-weight: 500; font-size: .95rem; }
@keyframes ccIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cc-note { margin: 6px 2px 0; font-size: .78rem; color: var(--muted, #6b7079); }
.live-access.cc-off .cc-box, .live-access.cc-off .cc-note, .live-access.cc-off .la-seg, .live-access.cc-off .la-size { display: none; }
@media (max-width: 640px) {
  .sign-pip { position: relative; right: auto; bottom: auto; width: 100%; aspect-ratio: 16 / 10; margin-top: 10px; }
  .sign-pip.off { display: none; }
  .la-seg button span { display: none; }
}
.live-grid.live-on .la-bar { justify-content: center; }
.is-live .season-fx, .is-live .season-close { display: none !important; }   /* durante el vivo no se distrae */
.bible-wrap .bible-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.lang-switch button.on, .lang-switch button.on:hover { background: var(--accent); color: #fff; opacity: 1; }

/* =========================================================
   v5 · Libro moderno: hojas blancas con textura y fotos reales
   ========================================================= */
.bible-book-sec { background:
  radial-gradient(circle at 1px 1px, rgba(11,47,74,.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
  radial-gradient(1100px 520px at 50% 0%, #eaf4fc, transparent 70%), #f7f9fc; }
.bbook { --paper: #ffffff; --paper2: #eef2f7; --ink: #1d2433; --gold: #c9a24f;
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.25 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: 10px; border-radius: 22px;
  background: linear-gradient(135deg, #10263d, #0b1b2c 55%, #08131f);
  box-shadow: 0 50px 90px -45px rgba(8,19,31,.65), 0 2px 0 rgba(255,255,255,.06) inset, 0 0 0 1px rgba(201,162,79,.22) inset; }
.bbook-pages { box-shadow: 0 1px 0 #e6ebf2, 0 3px 0 #dfe5ee, 0 5px 0 #d6dde8; border-radius: 14px; }
.bpage { color: var(--ink); }
.bpage-left { border-radius: 14px 0 0 14px; padding: 18px 26px 22px 18px;
  background: var(--tex), linear-gradient(to right, #fff 0%, #fff 86%, #eef2f7 100%); }
.bpage-right { border-radius: 0 14px 14px 0; padding: 18px 22px 14px 30px;
  background: var(--tex), linear-gradient(to left, #fff 0%, #fff 86%, #eef2f7 100%); }
.bpage-right::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(10,127,192,.035) 33px 34px); }
.bbook-pages::after { width: 46px; background: linear-gradient(to right, transparent, rgba(16,38,61,.07) 42%, rgba(16,38,61,.16) 50%, rgba(16,38,61,.07) 58%, transparent); }
.bs-face { background: var(--tex), #fff; }
.bs-back { background: var(--tex), linear-gradient(to left, #eef2f7, #fff 30%); }
/* Foto del paisaje */
.bscene { border-radius: 16px; aspect-ratio: 16 / 10.5; background: linear-gradient(135deg, #cfe3f3, #e9eef5); box-shadow: 0 22px 40px -24px rgba(8,19,31,.55); }
.bscene img { opacity: 0; transition: opacity .8s ease; animation: none; }
.bscene img.ok { opacity: 1; animation: bsceneIn 1.4s ease both; }
.bscene::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(8,19,31,.35), transparent 40%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.bscene figcaption { z-index: 1; }
.bscene figcaption span { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); }
/* Texto */
.bquote blockquote { color: #16202e; }
.bquote blockquote::before { color: #0a7fc0; opacity: .5; }
.bquote cite { color: #0a6aa2; }
.bquote cite small { color: #7b8797; }
.bq-actions .chip { border-color: #dfe6ef; color: #1d3a55; box-shadow: 0 4px 12px -8px rgba(8,19,31,.35); }
.bq-actions .chip:hover { border-color: #0a7fc0; }
.bp-head { border-bottom-color: #e7ecf3; position: relative; z-index: 1; }
.bp-head select { border-color: #dfe6ef; color: var(--ink); box-shadow: 0 2px 8px -6px rgba(8,19,31,.3); }
.pg-btn { border-color: #dfe6ef; color: #0b2f4a; font-family: var(--font-body); font-size: 1.35rem; }
.pg-btn:hover { background: #0a7fc0; border-color: #0a7fc0; color: #fff; }
.bpage .reader-text { position: relative; z-index: 1; scrollbar-color: #c9d6e4 transparent; }
.bpage .reader-text h3 { font-family: var(--font-head, "Outfit"), sans-serif; font-weight: 700; letter-spacing: -.01em; color: #0b2f4a; font-size: 1.8rem; }
.bpage .reader-text h3::after { content: ""; width: 44px; height: 3px; margin: .5em auto 0; border-radius: 3px; background: linear-gradient(90deg, #0a7fc0, #7c3aed); }
.bpage .reader-text .rv { color: #1d2433; }
.bpage .reader-text .rv sup { color: #0a7fc0; }
.bpage .reader-text .rv:first-of-type::first-letter { color: #0a7fc0; font-family: var(--font-head, "Outfit"), sans-serif; font-weight: 700; font-size: 3em; }
.bpage .reader-text .rv.hl { background: linear-gradient(transparent 12%, #dbeefe 12%, #dbeefe 92%, transparent 92%); }
.bp-foot { font-family: var(--font-body); font-style: normal; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa6b6; position: relative; z-index: 1; }
/* Tapa moderna */
.bc-front { color: #e9d29a;
  background: radial-gradient(600px 340px at 25% 15%, rgba(92,200,242,.18), transparent 60%), linear-gradient(140deg, #14304d, #0b1b2c 60%, #07111c);
  box-shadow: inset 0 0 0 14px transparent, inset 0 0 0 15px rgba(233,210,154,.45), 0 24px 50px rgba(0,0,0,.45); }
.bc-front b { font-family: var(--font-head, "Outfit"), sans-serif; font-weight: 700; letter-spacing: .02em; }
.bc-cross svg { stroke: #e9d29a; }
.bc-back { background: linear-gradient(to left, #0b1b2c, #14304d); box-shadow: inset 0 0 0 1px rgba(233,210,154,.25); }
@media (max-width: 859px) {
  .bpage-left, .bpage-right { background: var(--tex), #fff; }
  .bpage-left { border-radius: 14px 14px 0 0; }
  .bpage-right { border-radius: 0 0 14px 14px; border-top: 1px solid #e7ecf3; }
}

/* =========================================================
   Biblia para niños (Kids)
   ========================================================= */
.kids-bible { background: radial-gradient(900px 400px at 10% 0%, #fff3c4, transparent 60%), radial-gradient(900px 400px at 100% 100%, #d9f2ff, transparent 60%), #fffaf0; font-family: "Baloo 2", var(--font-body); }
.kids-bible h2, .kids-bible h3 { font-family: "Baloo 2", var(--font-head); letter-spacing: 0; }
.kb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.kb-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .1em 0 .2em; color: #3b2a8f; }
.kb-head p { color: #5b5470; font-size: 1.1rem; margin: 0; }
.kb-kicker { display: inline-block; padding: .3em .9em; border-radius: 999px; background: #ffd43b; color: #5a3d00; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.kb-stars { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.1em; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -12px rgba(124,58,237,.5); font-size: 1.5rem; font-weight: 800; color: #7c3aed; }
.kb-stars.bump { animation: kbBump .5s ease; }
@keyframes kbBump { 50% { transform: scale(1.25); } }
.kb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.kb-tabs button { border: 0; padding: .7em 1.2em; border-radius: 18px; background: #fff; color: #3b2a8f; font: 800 1.05rem "Baloo 2", var(--font-body); cursor: pointer; box-shadow: 0 6px 0 #e6defc; transition: transform .15s, box-shadow .15s, background .2s; }
.kb-tabs button:hover { transform: translateY(-2px); }
.kb-tabs button.on { background: #7c3aed; color: #fff; box-shadow: 0 6px 0 #5b21b6; }
.kb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kb-book { display: grid; justify-items: start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 18px; border: 3px solid transparent; background: #fff; cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 30%, #fff); transition: transform .15s, border-color .2s; font-family: "Baloo 2", var(--font-body); }
.kb-book:hover { transform: translateY(-3px) rotate(-1deg); }
.kb-book.on { border-color: var(--c); }
.kb-book-ic { font-size: 2rem; line-height: 1; }
.kb-book b { font-size: 1.05rem; color: #2d2350; line-height: 1.15; }
.kb-book small { color: #8a82a3; font-weight: 600; }
.kb-stage { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(59,42,143,.45); border: 6px solid #fff; }
.kb-screen { container-type: inline-size; position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 22px 22px 0 0; }
.kb-screen.in-right { animation: kbInR .5s ease both; } .kb-screen.in-left { animation: kbInL .5s ease both; } .kb-screen.in-up { animation: kbInU .5s ease both; }
@keyframes kbInR { from { opacity: 0; transform: translateX(40px); } } @keyframes kbInL { from { opacity: 0; transform: translateX(-40px); } } @keyframes kbInU { from { opacity: 0; transform: scale(.96); } }
.kb-el { position: absolute; transform: translate(-50%, -50%); line-height: 1; user-select: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.kb-title { position: absolute; left: 14px; top: 12px; padding: .25em .9em; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--c); font-weight: 800; font-size: .95rem; }
.kb-caption { padding: 16px 20px 18px; background: #fff; }
.kb-caption p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; color: #2d2350; margin: 0 0 12px; font-weight: 600; }
.kb-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kb-ctrl.center { justify-content: center; margin-top: 14px; }
.kb-round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #7c3aed; color: #fff; font: 800 1.6rem/1 "Baloo 2", sans-serif; cursor: pointer; box-shadow: 0 4px 0 #5b21b6; }
.kb-round:disabled { opacity: .35; cursor: default; }
.kb-listen, .kb-btn { border: 0; padding: .65em 1.2em; border-radius: 999px; background: #ffd43b; color: #5a3d00; font: 800 1.05rem "Baloo 2", var(--font-body); cursor: pointer; box-shadow: 0 4px 0 #e0a800; }
.kb-listen.on { background: #22c55e; color: #fff; box-shadow: 0 4px 0 #15803d; }
.kb-btn.ghost { background: #f1ecff; color: #5b21b6; box-shadow: 0 4px 0 #ddd2fb; }
.kb-btn.sm { padding: .35em .9em; font-size: .95rem; margin-left: 6px; }
.kb-dots { display: flex; gap: 6px; margin: 0 auto; }
.kb-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2dcf5; }
.kb-dots i.on { background: #7c3aed; width: 26px; border-radius: 6px; }
/* Animaciones de los personajes */
.a-float { animation: aFloat 3s ease-in-out infinite; } @keyframes aFloat { 50% { transform: translate(-50%, -62%); } }
.a-bob { animation: aBob 2.4s ease-in-out infinite; } @keyframes aBob { 50% { transform: translate(-50%, -56%) rotate(-3deg); } }
.a-pop { animation: aPop .7s cubic-bezier(.3,1.6,.5,1) both; } @keyframes aPop { from { transform: translate(-50%, -50%) scale(0); } }
.a-grow { animation: aGrow 1.2s ease both; transform-origin: bottom; } @keyframes aGrow { from { transform: translate(-50%, -50%) scale(.1); opacity: 0; } }
.a-rise { animation: aRise 1.4s ease both; } @keyframes aRise { from { transform: translate(-50%, 10%); opacity: 0; } }
.a-twinkle { animation: aTw 1.6s ease-in-out infinite; } @keyframes aTw { 50% { opacity: .35; transform: translate(-50%, -50%) scale(.8); } }
.a-spin { animation: aSpin 4s linear infinite; } @keyframes aSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.a-spin-slow { animation: aSpin 18s linear infinite; }
.a-drift { animation: aDrift 7s ease-in-out infinite alternate; } @keyframes aDrift { to { transform: translate(-20%, -50%); } }
.a-wave { animation: aWave 2.2s ease-in-out infinite; } @keyframes aWave { 50% { transform: translate(-56%, -44%) rotate(4deg); } }
.a-fly { animation: aFly 5s ease-in-out infinite; } @keyframes aFly { 0% { transform: translate(-50%, -50%); } 50% { transform: translate(40%, -90%); } 100% { transform: translate(-50%, -50%); } }
.a-swim { animation: aSwim 4s ease-in-out infinite; } @keyframes aSwim { 50% { transform: translate(10%, -60%) scaleX(-1); } }
.a-swim-slow { animation: aSwimS 6s ease-in-out infinite; } @keyframes aSwimS { 50% { transform: translate(-44%, -56%) rotate(-3deg); } }
.a-jump { animation: aJump 1.4s ease-in-out infinite; } @keyframes aJump { 40% { transform: translate(-50%, -95%); } 60% { transform: translate(-50%, -90%); } }
.a-hop { animation: aJump 1s ease-in-out infinite; }
.a-beat { animation: aBeat 1.2s ease-in-out infinite; } @keyframes aBeat { 30% { transform: translate(-50%, -50%) scale(1.2); } }
.a-walk { animation: aWalk 3s ease-in-out infinite alternate; } @keyframes aWalk { to { transform: translate(-10%, -54%); } }
.a-graze { animation: aGraze 3s ease-in-out infinite; } @keyframes aGraze { 50% { transform: translate(-50%, -46%) rotate(6deg); } }
.a-hammer { animation: aHam .6s ease-in-out infinite; transform-origin: bottom left; } @keyframes aHam { 50% { transform: translate(-50%, -50%) rotate(-35deg); } }
.a-rain { animation: aRain 1.1s linear infinite; } @keyframes aRain { from { transform: translate(-50%, -150%); opacity: 0; } 20% { opacity: 1; } to { transform: translate(-60%, 300%); opacity: 0; } }
.a-rock { animation: aRock 3s ease-in-out infinite; } @keyframes aRock { 25% { transform: translate(-50%, -54%) rotate(-5deg); } 75% { transform: translate(-50%, -46%) rotate(5deg); } }
.a-rock-hard { animation: aRockH 1.4s ease-in-out infinite; } @keyframes aRockH { 25% { transform: translate(-50%, -58%) rotate(-14deg); } 75% { transform: translate(-50%, -42%) rotate(14deg); } }
.a-stomp { animation: aStomp 1.6s ease-in-out infinite; } @keyframes aStomp { 50% { transform: translate(-50%, -48%) scale(1.04); } }
.a-shake { animation: aShake .5s ease-in-out infinite; } @keyframes aShake { 25% { transform: translate(-54%, -50%); } 75% { transform: translate(-46%, -50%); } }
.a-throw { animation: aThrow 2.2s ease-in infinite; } @keyframes aThrow { 0% { transform: translate(-50%, -50%); opacity: 1; } 70% { transform: translate(1700%, -140%); opacity: 1; } 100% { transform: translate(1900%, -120%); opacity: 0; } }
.a-roar { animation: aRoar 1.8s ease-in-out infinite; } @keyframes aRoar { 50% { transform: translate(-50%, -50%) scale(1.12); } }
.a-sleep { animation: aSleep 3s ease-in-out infinite; } @keyframes aSleep { 50% { transform: translate(-50%, -47%) rotate(-4deg) scale(.97); } }
.a-bubble { animation: aBub 3s ease-in infinite; } @keyframes aBub { from { transform: translate(-50%, 60%); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -260%); opacity: 0; } }
.a-multiply { animation: aMul 1.6s cubic-bezier(.3,1.6,.5,1) infinite; } @keyframes aMul { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { transform: translate(-50%, -50%) scale(1); } }
/* Tarjetas de juego */
.kb-card { position: relative; overflow: hidden; background: #fff; border-radius: 28px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 60px -30px rgba(59,42,143,.45); text-align: center; }
.kb-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #2d2350; margin: .2em 0 .6em; }
.kb-small { color: #8a82a3; font-weight: 600; margin: 12px 0 0; }
.kb-progress { height: 10px; border-radius: 999px; background: #f1ecff; overflow: hidden; }
.kb-progress i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #7c3aed); border-radius: inherit; transition: width .4s; }
.kb-q-ic { font-size: 4rem; margin-top: 14px; animation: aPopC .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes aPopC { from { transform: scale(0); } }
.kb-opts { display: grid; gap: 10px; max-width: 560px; margin: 0 auto; }
.kb-opt { border: 3px solid #e6defc; background: #fff; border-radius: 18px; padding: .8em 1em; font: 700 1.2rem "Baloo 2", var(--font-body); color: #2d2350; cursor: pointer; transition: transform .12s, border-color .2s; }
.kb-opt:hover:not(:disabled) { transform: scale(1.02); border-color: #7c3aed; }
.kb-opt.good { background: #dcfce7; border-color: #22c55e; color: #14532d; }
.kb-opt.bad { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; animation: aShakeC .4s; }
@keyframes aShakeC { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.kb-big { font-size: 5rem; animation: aPopC .7s cubic-bezier(.3,1.6,.5,1) both; }
.kb-mem-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.kb-mem-head h3 { margin: 0; }
.kb-mem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 16px auto 0; }
.kb-tile { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px; }
.kb-tile-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.kb-tile.flip .kb-tile-in, .kb-tile.done .kb-tile-in { transform: rotateY(180deg); }
.kb-front, .kb-back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kb-front { background: linear-gradient(135deg, #7c3aed, #0ea5e9); color: rgba(255,255,255,.85); font-size: 2rem; box-shadow: 0 5px 0 #5b21b6; }
.kb-back { transform: rotateY(180deg); background: #fff8dc; border: 3px solid #ffd43b; font-size: clamp(2rem, 6vw, 3rem); align-content: center; gap: 2px; }
.kb-back small { font-size: .8rem; font-weight: 700; color: #7a5a00; }
.kb-tile.done .kb-back { background: #dcfce7; border-color: #22c55e; }
.kb-mem-msg { min-height: 1.6em; font-size: 1.1rem; color: #5b21b6; }
.kb-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 18px; max-width: 760px; }
.kb-slot { min-width: 64px; min-height: 46px; padding: .3em .7em; border-radius: 12px; border: 3px dashed #d9cff7; font: 700 1.2rem "Baloo 2", var(--font-body); color: #2d2350; display: grid; place-items: center; }
.kb-slot.fill { border-style: solid; border-color: #22c55e; background: #f0fdf4; animation: aPopC .35s ease both; }
.kb-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.kb-word { border: 0; padding: .55em 1em; border-radius: 14px; background: #ffd43b; color: #4a3200; font: 800 1.2rem "Baloo 2", var(--font-body); cursor: pointer; box-shadow: 0 4px 0 #e0a800; transition: transform .12s; }
.kb-word:hover { transform: translateY(-2px); }
.kb-word.used { visibility: hidden; }
.kb-word.no { animation: aShakeC .35s; background: #fecaca; box-shadow: 0 4px 0 #ef4444; }
.kb-word.hint { animation: kbBump .6s 2; background: #bbf7d0; box-shadow: 0 4px 0 #22c55e; }
.kb-ref { margin: 16px 0 0; font-weight: 800; color: #7c3aed; font-size: 1.1rem; }
.kb-win { font: 800 1.4rem "Baloo 2", var(--font-body); color: #15803d; }
.kb-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.kb-confetti span { position: absolute; top: -10%; animation: kbFall 1.9s ease-in forwards; }
@keyframes kbFall { to { transform: translate(var(--dx), 120vh) rotate(540deg); } }
@media (max-width: 640px) {
  .kb-screen { aspect-ratio: 4 / 3.4; }
  .kb-mem { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kb-tabs button { flex: 1 1 calc(50% - 8px); font-size: .98rem; padding: .6em .7em; }
}
@media (prefers-reduced-motion: reduce) { .kb-el { animation: none !important; } }

/* =========================================================
   Galería en pantalla Smart TV
   ========================================================= */
.tv-room { position: relative; max-width: 1120px; margin: 0 auto; padding-bottom: 6px; }
.tv-room::before { content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: 10%; background: radial-gradient(closest-side, rgba(10,127,192,.35), transparent); filter: blur(40px); z-index: 0; }
.tv { position: relative; z-index: 1; padding: 10px; border-radius: 18px; background: linear-gradient(145deg, #2a2f38, #0c0f14 60%, #050608);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.04); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; outline: none; }
.tv-screen:focus-visible { box-shadow: 0 0 0 3px #5cc8f2; }
.tv-slides, .tv-slide { position: absolute; inset: 0; }
.tv-slide { opacity: 0; transition: opacity 1.1s ease; }
.tv-slide.on { opacity: 1; }
.tv-slide img, .tv-slide .g-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-slide.on img { animation: tvKen 7s ease-out both; }
@keyframes tvKen { from { transform: scale(1); } to { transform: scale(1.09); } }
.tv-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 35%), linear-gradient(to bottom, rgba(0,0,0,.35), transparent 22%); }
.tv-hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.tv-chip { display: inline-flex; align-items: center; gap: 8px; padding: .35em .85em; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff; font: 700 .85rem var(--font-body); backdrop-filter: blur(10px); }
.tv-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.tv-clock { font-variant-numeric: tabular-nums; }
.tv-bottom { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: #fff; pointer-events: none; }
.tv-bottom b { display: block; font: 700 clamp(1.1rem, 2.4vw, 1.7rem) var(--font-head); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tv-bottom small { font-weight: 600; opacity: .8; letter-spacing: .08em; }
.tv-bar { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.tv-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5cc8f2, #fff); }
.tv-ctrl { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; opacity: 0; transition: opacity .3s; }
.tv-screen:hover .tv-ctrl, .tv-screen:focus-within .tv-ctrl { opacity: 1; }
.tv-ctrl button { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(10,14,20,.45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.tv-ctrl button:hover { transform: scale(1.08); background: rgba(10,127,192,.75); }
.tv-ctrl .tv-play { width: 72px; height: 72px; }
.tv-ctrl svg { width: 26px; height: 26px; }
.tv-ctrl .tv-full { position: absolute; right: 16px; bottom: 54px; width: 44px; height: 44px; }
.tv-ctrl .tv-full svg { width: 20px; height: 20px; }
.tv-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 28%); }
.tv-chin { display: flex; align-items: center; justify-content: center; gap: 10px; height: 22px; margin-top: 6px; }
.tv-brand { font: 800 .62rem var(--font-body); letter-spacing: .4em; color: rgba(255,255,255,.35); }
.tv-led { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.tv-stand { position: relative; z-index: 1; height: 54px; display: flex; flex-direction: column; align-items: center; }
.tv-stand i { width: 70px; height: 34px; background: linear-gradient(#2a2f38, #12151b); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tv-stand b { width: 34%; height: 10px; border-radius: 10px; background: linear-gradient(#3a404b, #15181e); box-shadow: 0 16px 30px -6px rgba(0,0,0,.5); }
.tv-apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.tv-app { border: 1px solid var(--line, #e3e5e8); background: #fff; color: #1c2533; padding: .55em 1.1em; border-radius: 12px; font: 700 .92rem var(--font-body); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.tv-app:hover { transform: translateY(-2px); }
.tv-app.on { background: #0b1220; color: #fff; border-color: #0b1220; }
.tv-rail { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tv-thumb { flex: 0 0 auto; width: 150px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; padding: 0; border: 3px solid transparent; background: #e9eef4; cursor: pointer; scroll-snap-align: center; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; }
.tv-thumb:hover { opacity: 1; transform: translateY(-2px); }
.tv-thumb.on { opacity: 1; border-color: #0a7fc0; }
.tv-thumb img, .tv-thumb .g-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-screen.tv-max, .tv-screen:fullscreen { position: fixed; inset: 0; z-index: 9999; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .tv { padding: 6px; border-radius: 12px; }
  .tv-ctrl { opacity: 1; background: transparent; }
  .tv-ctrl button { width: 40px; height: 40px; } .tv-ctrl .tv-play { width: 50px; height: 50px; }
  .tv-ctrl { justify-content: space-between; padding: 0 8px; }
  .tv-ctrl button { opacity: .85; }
  .tv-ctrl .tv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; }
  .tv-ctrl .tv-full { bottom: 46px; right: 10px; opacity: .9; }
  .tv-thumb { width: 110px; }
  .tv-hud { top: 8px; left: 8px; right: 8px; } .tv-chip { font-size: .72rem; }
  .tv-bottom { left: 12px; right: 12px; bottom: 10px; }
}

/* ---------- Intercesión ---------- */
.hero.int-hero { --hero-img: radial-gradient(800px 420px at 85% 10%, rgba(124,58,237,.55), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(10,127,192,.6), transparent 60%), linear-gradient(135deg, #0b1530, #1d1450); }
.feature-media.int { background: linear-gradient(135deg, #7c3aed, #0a7fc0); }
.int-verse { margin: 1.4rem 0 0; padding: 18px 22px; border-left: 4px solid #7c3aed; border-radius: 0 16px 16px 0; background: linear-gradient(135deg, #f5f0ff, #eef7fd);
  font: italic 500 1.45rem/1.4 "Cormorant Garamond", Georgia, serif; color: #2a1f55; }
.int-verse cite { display: block; margin-top: .4rem; font: 700 .9rem var(--font-body); font-style: normal; color: #7c3aed; }
.int-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.int-form-card { background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -34px rgba(11,21,48,.45); border: 1px solid #eef0f4; }
.int-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1rem; }
.int-form .full { grid-column: 1 / -1; }
.int-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.int-form input:not([type=checkbox]), .int-form textarea { width: 100%; padding: .85em 1em; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; background: #fbfcfe; }
.int-form input:focus, .int-form textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.int-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; color: var(--muted); }
.int-check input { width: 18px; height: 18px; accent-color: #7c3aed; }
.int-form .form-status.ok { color: #15803d; font-weight: 600; }
.int-form .form-status.err { color: #b91c1c; }
.btn-wa-sm { background: #25d366; color: #fff; padding: .45em 1em; font-size: .9rem; margin-left: 6px; }
.int-side { display: grid; gap: 16px; }
.int-when, .int-join { border-radius: 24px; padding: 24px 26px; }
.int-when { background: #f4f7fb; border: 1px solid #e6ecf3; }
.int-join { color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #7c3aed, #0a7fc0); }
.int-join h3 { color: #fff; } .int-join p { color: rgba(255,255,255,.9); }
@media (max-width: 860px) { .int-grid, .int-form { grid-template-columns: minmax(0, 1fr); } }
.kb-stage { max-width: 1040px; margin: 0 auto; }
@media (max-width: 640px) { .kb-caption .kb-ctrl { flex-wrap: nowrap; } .kb-caption .kb-dots { display: none; } .kb-caption .kb-listen { flex: 1; } }
/* Menú compacto en pantallas medianas (más secciones en el menú) */
@media (min-width: 1181px) and (max-width: 1560px) {
  .nav-wrap { gap: 14px; width: calc(100% - 32px); }
  .nav-links { gap: 0; }
  .nav-links a, .nav-more > button { font-size: .92rem; padding: .45em .5em; }
  .lang-switch button span { display: none; }
  .lang-switch button { padding: .38em .45em; }
  .nav-actions .btn-live { padding-inline: 1em; }
}
@media (min-width: 1181px) and (max-width: 1340px) {
  .brand .logo { height: min(var(--logo-h, 64px), 56px) !important; }
  .nav-links a, .nav-more > button { font-size: .86rem; padding: .4em .4em; }
  .nav-actions .btn-live { font-size: .85rem; }
}
.int-form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
/* Menú: más a la izquierda (junto al logo) y botones a la derecha */
@media (min-width: 1181px) {
  .nav-links { margin-left: clamp(8px, 1.6vw, 32px); margin-right: auto; }
  .nav-actions { margin-left: auto; flex-shrink: 0; }
  .brand { flex-shrink: 0; }
}
/* Si en alguna pantalla no cabe completo, se cambia solo al menú ☰ */
body.nav-collapse .nav-links { position: fixed; inset: var(--header-h) 0 0; background: #fff; color: var(--ink); flex-direction: column; padding: 24px 20px; gap: 4px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; margin: 0; }
body.nav-collapse .nav-links a { font-size: 1.4rem; font-family: var(--font-head); font-weight: 700; padding: .5em .4em; }
body.nav-collapse.menu-open .nav-links { transform: none; }
body.nav-collapse .menu-toggle { display: block; }
body.nav-collapse .nav-actions { margin-left: auto; }
body.nav-collapse .nav-more > button { display: none; }
body.nav-collapse .nav-more-menu { display: flex; position: static; box-shadow: none; padding: 0; min-width: 0; background: none; }
body.nav-collapse .nav-more-menu a { font-size: 1.4rem !important; font-family: var(--font-head); font-weight: 700; padding: .5em .4em !important; }
/* Vivo con la página de Facebook (cuando no hay link del día) */
.live-fbpage { position: relative; display: flex; justify-content: center; padding: 18px; border-radius: 18px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(24,119,242,.25), transparent 70%), #0b1220; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.live-fbpage iframe { width: 100%; max-width: 500px; height: 760px; border: 0; border-radius: 10px; background: #fff; }
.live-fbpage .live-tag { position: absolute; left: 16px; top: 16px; z-index: 2; }
@media (max-width: 640px) { .live-fbpage { padding: 8px; } .live-fbpage iframe { height: 640px; } }

/* ---------- Antes del vivo: aviso y presentación ---------- */
.prelive { position: relative; overflow: hidden; border-radius: 20px; text-align: center; }
.prelive .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: plPulse 1.6s infinite; }
@keyframes plPulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.pl-kicker { display: inline-flex; align-items: center; gap: 8px; padding: .35em 1em; border-radius: 999px; font: 700 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.prelive.wait { margin-bottom: 18px; padding: clamp(22px, 3vw, 34px); color: #fff;
  background: radial-gradient(500px 240px at 100% 0%, rgba(92,200,242,.35), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(124,58,237,.4), transparent 60%), linear-gradient(135deg, #0b1530, #0b2f4a); box-shadow: 0 24px 50px -28px rgba(11,21,48,.7); }
.prelive.wait .pl-kicker { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.prelive.wait h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .5em 0 .3em; }
.prelive.wait p { color: rgba(255,255,255,.88); margin: .3em 0; }
.prelive.wait p b { text-transform: capitalize; }
.prelive.wait .muted { color: rgba(255,255,255,.7) !important; }
.pl-count { font: 800 clamp(2.6rem, 7vw, 5.5rem)/1 var(--font-head); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: .25em 0; }
.pl-count.sm { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.pl-count small { display: block; font: 600 .85rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: .3em; }
.prelive.pres { aspect-ratio: 16 / 9; background: #050a14; color: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.pl-slides { position: absolute; inset: 0; }
.pl-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.pl-slides img.on { opacity: 1; animation: tvKen 9s ease-out both; }
.pl-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,10,20,.35), rgba(5,10,20,.8)), linear-gradient(to top, rgba(5,10,20,.85), transparent 55%); }
.pl-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; }
.pl-logo { height: clamp(48px, 8vw, 90px); width: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); margin-bottom: 6px; }
.prelive.pres .pl-kicker { background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.45); color: #fff; }
.prelive.pres h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 3.2rem); margin: .3em 0 .1em; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.prelive.pres .pl-count { text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.pl-msg { font-size: clamp(1rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); margin: .2em 0 0; }
.pl-msg.in { animation: plMsg .8s ease both; }
@keyframes plMsg { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) { .prelive.pres { aspect-ratio: 4 / 5; } }
