/* =========================================================
   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; } }

/* ---------- Kids: centro de juegos y tareas ---------- */
.kids-hero-btns { margin-top: 1.2rem; }
.kg-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kg-card { position: relative; overflow: hidden; display: grid; justify-items: start; gap: 4px; text-align: left; padding: 20px 18px 18px; border: 0; border-radius: 24px; cursor: pointer; color: #fff;
  background: radial-gradient(160px 120px at 100% 0%, rgba(255,255,255,.35), transparent 70%), linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 60%, #1e1b4b));
  box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 55%, #000), 0 22px 40px -22px var(--c); font-family: "Baloo 2", var(--font-body); transition: transform .18s, box-shadow .18s; }
.kg-card:hover { transform: translateY(-4px) rotate(-1deg); }
.kg-card:active { transform: translateY(3px); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 55%, #000); }
.kg-ic { font-size: 3rem; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); animation: kgFloat 3s ease-in-out infinite; }
@keyframes kgFloat { 50% { transform: translateY(-6px) rotate(4deg); } }
.kg-card b { font-size: 1.35rem; line-height: 1.1; margin-top: 6px; }
.kg-card small { font-size: .95rem; opacity: .9; }
.kg-play { margin-top: 8px; padding: .25em .9em; border-radius: 999px; background: rgba(255,255,255,.25); font-weight: 800; font-size: .9rem; }
.kg-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font: 800 1.3rem "Baloo 2", var(--font-body); }
.kg-sub { color: #5b5470; font-weight: 600; margin: 0 0 12px; }
.kg-hud { display: flex; justify-content: center; gap: 24px; font: 800 1.4rem "Baloo 2", var(--font-body); color: #2d2350; margin-bottom: 8px; }
.kg-canvas { display: block; width: 100%; max-width: 900px; margin: 0 auto; border-radius: 20px; touch-action: none; box-shadow: inset 0 0 0 3px rgba(0,0,0,.04); }
.kg-canvas.sq { max-width: min(560px, 100%); aspect-ratio: 1; }
.kg-canvas.bump { animation: aShakeC .3s; }
.kg-arca { position: relative; }
.kg-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(255,250,240,.9); backdrop-filter: blur(4px); border-radius: 28px; z-index: 2; }
.kg-overlay[hidden] { display: none; }
.kg-overlay p { max-width: 520px; margin: 0 auto 14px; color: #5b5470; font-size: 1.1rem; }
.kg-pad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; justify-content: center; margin: 14px auto 0; }
.kg-pad button { height: 58px; border: 0; border-radius: 16px; background: #16a34a; color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: 0 5px 0 #166534; }
.kg-pad button:active { transform: translateY(3px); box-shadow: 0 2px 0 #166534; }
.kg-moves { display: grid; place-items: center; font: 800 1.2rem "Baloo 2", sans-serif; color: #166534; }
.kg-wgrid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; }
.kg-l { aspect-ratio: 1; border: 0; border-radius: 10px; background: #fff8dc; color: #3b2a8f; font: 800 clamp(.95rem, 3.6vw, 1.45rem) "Baloo 2", sans-serif; cursor: pointer; box-shadow: 0 3px 0 #f1e2a8; }
.kg-l.sel { background: #7c3aed; color: #fff; box-shadow: 0 3px 0 #5b21b6; }
.kg-l.ok { background: hsl(var(--h, 140) 80% 55%); color: #fff; box-shadow: 0 3px 0 hsl(var(--h, 140) 70% 38%); }
.kg-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.kg-list span { padding: .3em .9em; border-radius: 999px; background: #f1ecff; color: #5b21b6; font: 800 1rem "Baloo 2", sans-serif; }
.kg-list span.done { background: #dcfce7; color: #15803d; text-decoration: line-through; }
.kg-colwrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.kg-svg { width: 100%; border-radius: 18px; background: #fff; cursor: crosshair; }
.kg-svg [data-p] { transition: fill .25s; }
.kg-pal { display: grid; grid-template-columns: repeat(2, 44px); gap: 8px; }
.kg-sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; cursor: pointer; }
.kg-sw.on { box-shadow: 0 0 0 3px #2d2350; transform: scale(1.1); }
.kg-tareas { text-align: left; }
.kg-tareas .kb-big { text-align: center; }
.kg-tareas > h3, .kg-tareas > p { text-align: center; }
.kg-t-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.kg-t-head h3 { margin: 0 0 .2em; } .kg-t-head p { margin: 0; color: #5b5470; }
.kg-t-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.kg-t-btns .kb-btn { text-decoration: none; }
.kg-t-frame { border-radius: 18px; overflow: hidden; border: 3px solid #f1ecff; background: #fff; }
.kg-t-frame iframe { display: block; width: 100%; height: 560px; border: 0; }
@media (max-width: 640px) {
  .kg-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kg-card { padding: 14px 12px; } .kg-card b { font-size: 1.1rem; } .kg-ic { font-size: 2.4rem; }
  .kg-colwrap { grid-template-columns: minmax(0, 1fr); }
  .kg-pal { grid-template-columns: repeat(6, 40px); justify-content: center; } .kg-sw { width: 40px; height: 40px; }
  .kg-t-frame iframe { height: 460px; }
}
.kg-svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 560; }

/* =========================================================
   v6 · Ajustes de diseño (UX): todo centrado y equilibrado
   ========================================================= */
/* Encabezados de sección centrados, con el texto debajo del título */
.section-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { max-width: 640px; margin: 0 auto; }
.section-head .link-arrow, .section-head .btn { margin-top: 4px; }
/* Banners de páginas internas: texto centrado */
.hero.hero-sm .hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero.hero-sm .hero-inner p { margin-inline: auto; max-width: 680px; }
.hero.hero-sm .btn-row { justify-content: center; }
/* Tarjetas: última fila centrada cuando no se llena */
.grid-3, .grid-4 { justify-content: center; }
.info-card, .card { height: 100%; }
/* Fotos: se priorizan las caras (parte superior) al recortar */
.card img, .m-card img, .step-card img, .feature-media img, .event-card img, .info-card img { object-position: 50% 30%; }

/* ---------- Transmisión a todo lo ancho ---------- */
.live-grid.live-on { width: 100vw; max-width: none; position: relative; left: 50%; transform: translateX(-50%); padding-inline: clamp(10px, 2vw, 28px); }
.live-grid.live-on > :first-child { max-width: none !important; width: 100%; }
.live-grid.live-on .video-big, .live-grid.live-on .prelive.pres { border-radius: 14px; max-height: calc(100vh - var(--header-h, 90px) - 40px); width: 100%; }
.live-grid.live-on .is-live-frame { aspect-ratio: 16 / 9; height: auto; }
.live-grid.live-on .is-live-frame iframe { width: 100%; height: 100%; }
.live-grid.live-on > :not(:first-child) { max-width: 900px; margin-inline: auto; }
section[data-section="live"]:has(.live-on) { padding-top: clamp(16px, 2vw, 28px); }

/* ---------- Galería y presentación: fotos completas, sin recortar ---------- */
.tv-slide .tv-bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.tv-slide .tv-fg { position: relative; width: 100%; height: 100%; object-fit: contain !important; }
.tv-slide.on .tv-fg { animation: tvKenSoft 7s ease-out both; }
.tv-slide.on .tv-bg { animation: none; }
@keyframes tvKenSoft { from { transform: scale(1); } to { transform: scale(1.035); } }
.pl-slides .pl-bg { filter: blur(28px) brightness(.5); transform: scale(1.12); object-fit: cover; }
.pl-slides img.pl-fg { object-fit: contain; }
.tv-thumb img { object-position: 50% 30%; }
.pl-slides .pl-pair { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.pl-slides .pl-pair.on { opacity: 1; }
.pl-slides .pl-pair img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.pl-slides .pl-pair.on .pl-fg { animation: tvKenSoft 9s ease-out both; }

/* ---------- Kids v2: íconos de línea, piano, burbujas, rompecabezas, galería de dibujos ---------- */
.kicon { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; }
.kb-tabs button { display: inline-flex; align-items: center; gap: .5em; }
.kb-tabs button .kicon { width: 1.25em; height: 1.25em; }
.kg-ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(0,0,0,.35); backdrop-filter: blur(6px); animation: none; color: #fff; }
.kg-ic .kicon { width: 32px; height: 32px; }
.kg-card:hover .kg-ic { animation: kgFloat 1.6s ease-in-out infinite; }
.kg-title { display: inline-flex; align-items: center; gap: .5em; color: var(--c); }
.kg-mini { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--c); color: #fff; }
.kg-mini .kicon { width: 22px; height: 22px; }
.kg-hub { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Piano */
.kg-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f1ecff; margin-bottom: 12px; }
.kg-seg button { border: 0; background: none; padding: .55em 1.1em; border-radius: 999px; font: 800 .95rem "Baloo 2", sans-serif; color: #5b21b6; cursor: pointer; }
.kg-seg button.on { background: #7c3aed; color: #fff; }
.kg-lyric { min-height: 2.2em; font: 700 clamp(1.1rem, 2.6vw, 1.6rem) "Baloo 2", sans-serif; color: #2d2350; }
.kg-lyric span.done { color: #16a34a; } .kg-lyric span.now { color: #fff; background: #7c3aed; border-radius: 8px; padding: 0 .25em; }
.kg-keys { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: 720px; margin: 10px auto 0; }
.kg-key { position: relative; height: clamp(150px, 30vw, 230px); border: 0; border-radius: 0 0 18px 18px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 12px; gap: 2px;
  background: linear-gradient(#fff 55%, color-mix(in srgb, var(--k) 25%, #fff)); box-shadow: inset 0 -8px 0 var(--k), 0 8px 18px -10px rgba(0,0,0,.4); font: 800 1.05rem "Baloo 2", sans-serif; color: #2d2350; touch-action: none; transition: transform .08s; }
.kg-key small { color: #9a93b5; font-size: .75rem; }
.kg-key.hit { animation: kgKey .25s ease; }
@keyframes kgKey { 40% { transform: translateY(5px); background: color-mix(in srgb, var(--k) 45%, #fff); } }
.kg-key.next { box-shadow: inset 0 -8px 0 var(--k), 0 0 0 4px var(--k), 0 0 24px var(--k); animation: kgGlow 1s ease-in-out infinite; }
@keyframes kgGlow { 50% { transform: translateY(-4px); } }
.kg-key.miss { animation: aShakeC .3s; }
/* Burbujas */
.kg-bub { position: relative; }
.kg-field { position: relative; height: clamp(360px, 60vh, 520px); border-radius: 22px; overflow: hidden; background: radial-gradient(600px 300px at 50% 120%, #a7f3d0, transparent 60%), linear-gradient(#e0f2fe, #f0fdfa); }
.kg-bubble { position: absolute; bottom: -140px; border: 0; border-radius: 50%; cursor: pointer; color: #134e4a; font: 800 .95rem "Baloo 2", sans-serif; padding: 6px; display: grid; place-items: center; text-align: center; line-height: 1.05;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95), rgba(255,255,255,.35) 32%, hsla(var(--h), 85%, 70%, .55) 70%, hsla(var(--h), 85%, 55%, .75));
  box-shadow: inset 0 0 18px rgba(255,255,255,.7), 0 8px 18px -8px hsla(var(--h), 70%, 40%, .5); animation: kgRise linear forwards; touch-action: none; }
.kg-bubble.bad { color: #f8fafc; background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.6), rgba(148,163,184,.6) 40%, rgba(71,85,105,.85)); }
.kg-bubble.pop { animation: kgPop .35s ease forwards !important; }
@keyframes kgRise { to { transform: translateY(calc(-1 * clamp(360px, 60vh, 520px) - 160px)) translateX(20px); } }
@keyframes kgPop { to { transform: scale(1.6); opacity: 0; } }
/* Rompecabezas */
.kg-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(480px, 100%); aspect-ratio: 800 / 560; margin: 0 auto; padding: 4px; border-radius: 18px; background: #e9e4fb; }
.kg-tile { border: 0; border-radius: 10px; cursor: pointer; background-color: hsl(var(--h, 260) 80% 70%); color: #fff; font: 800 1.6rem "Baloo 2", sans-serif; box-shadow: 0 3px 0 rgba(0,0,0,.12); transition: transform .12s; }
.kg-tile:hover { transform: scale(.97); }
.kg-tile.hole { background: transparent; box-shadow: none; }
.kg-tile.no { animation: aShakeC .3s; }
.kg-sref { display: block; width: 140px; margin: 10px auto 0; border-radius: 10px; opacity: .85; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); }
/* Galería de dibujos para colorear */
.kg-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kg-cthumb { border: 2px solid #ece7fb; background: #fff; border-radius: 18px; padding: 8px 8px 10px; cursor: pointer; display: grid; gap: 6px; transition: transform .15s, border-color .2s, box-shadow .2s; font-family: "Baloo 2", sans-serif; }
.kg-cthumb:hover { transform: translateY(-3px); border-color: #ec4899; box-shadow: 0 14px 26px -16px #ec4899; }
.kg-cimg svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 560; border-radius: 12px; pointer-events: none; }
.kg-cthumb b { color: #2d2350; font-size: 1rem; }
.kg-svgbox svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 560; border-radius: 18px; background: #fff; cursor: crosshair; }
@media (max-width: 640px) { .kg-keys { gap: 4px; } .kg-key { font-size: .85rem; } .kg-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kg-bubble { font-size: .8rem; } }

/* =========================================================
   v7 · Encabezado profesional en dos niveles, inicio más amplio
   ========================================================= */
@media (min-width: 1181px) {
  body.nav-two .nav-wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . actions" "nav nav nav"; align-items: center; row-gap: 0; height: 100%; width: calc(100% - 64px); }
  body.nav-two .brand { grid-area: brand; }
  body.nav-two .nav-actions { grid-area: actions; margin-left: 0; }
  body.nav-two .nav-links { grid-area: nav; justify-content: center; margin: 0 !important; gap: 4px; padding-bottom: 6px; border-top: 1px solid rgba(127,127,127,.18); padding-top: 6px; }
  body.nav-two .nav-links a { font-size: 1.04rem; font-weight: 600; padding: .55em 1em; letter-spacing: .01em; }
  body.nav-two .nav-links a.active { background: rgba(127,127,127,.16); }
  body.nav-two .nav-actions .btn-live { font-size: 1rem; padding: .75em 1.4em; }
  body.nav-two .lang-switch button span { display: inline; }
}
/* Banner principal a pantalla completa */
main[data-home] .hero { min-height: 100svh; }
main[data-home] .hero-inner { padding-top: calc(var(--header-h) + 60px); }
/* Transmisión / última prédica: video grande arriba, texto centrado abajo */
.live-grid.live-wide { grid-template-columns: 1fr; text-align: center; gap: 28px; }
.live-grid.live-wide > :first-child { width: min(1180px, 100%); margin-inline: auto; }
.live-grid.live-wide .btn-row { justify-content: center; }
.live-grid.live-wide > :last-child { max-width: 760px; margin-inline: auto; }
.live-grid.live-wide .video-big { border-radius: 20px; }
/* Mapa y «Hay un lugar para ti» lado a lado */
.visit-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.visit-map .address-grid { grid-template-columns: 1fr; gap: 18px; height: 100%; }
.visit-map .address-info h2 { margin-bottom: .4em; }
.cta-band.cta-side { flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; gap: 14px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(420px 260px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, #0a7fc0, #0b3a5e); box-shadow: 0 30px 60px -34px rgba(11,58,94,.7); }
.cta-side h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; color: #fff; }
.cta-side p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }
.cta-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.cta-ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 900px) { .visit-row { grid-template-columns: minmax(0, 1fr); } }
/* Sin eventos: solo el devocional, centrado */
section.no-events .grid-2 { grid-template-columns: minmax(0, 760px); justify-content: center; }
section.no-events .grid-2 > :first-child { display: none; }
.hero-sm .hero-inner, .hero.hero-sm.has-photo .hero-inner { padding-top: calc(var(--header-h) + 56px); }
@media (min-width: 1181px) { body.nav-two .nav-links a { padding: .55em .72em; } }
@media (min-width: 1181px) and (max-width: 1440px) { body.nav-two .nav-links a { font-size: .97rem; padding: .5em .55em; } body.nav-two .nav-wrap { width: calc(100% - 40px); } }

/* =========================================================
   Kids v3: Biblia digital animada (libro), niveles y botones 3D
   ========================================================= */
/* Libro abierto */
.kb-stage { background: transparent; border: 0; box-shadow: none; max-width: 1100px; }
.kb-openbook { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 12px; border-radius: 26px; perspective: 2200px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000), color-mix(in srgb, var(--c) 55%, #1e1b4b)); box-shadow: 0 34px 60px -30px rgba(30,27,75,.6), inset 0 0 0 2px rgba(255,255,255,.15); }
.kb-page { position: relative; background: #fffdf7; min-height: 360px; overflow: hidden; }
.kb-page-l { border-radius: 16px 0 0 16px; padding: 14px 12px 14px 14px; background: linear-gradient(to right, #fffdf7 90%, #f1ead8); }
.kb-page-r { border-radius: 0 16px 16px 0; padding: clamp(18px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 10px; background: linear-gradient(to left, #fffdf7 90%, #f1ead8); }
.kb-openbook::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 40px; transform: translateX(-50%); background: linear-gradient(to right, transparent, rgba(60,40,20,.14) 48%, rgba(60,40,20,.2) 50%, rgba(60,40,20,.14) 52%, transparent); pointer-events: none; z-index: 2; }
.kb-page-l .kb-screen { border-radius: 14px; height: 100%; aspect-ratio: auto; min-height: 330px; }
.kb-chap { display: inline-flex; align-items: center; gap: .4em; align-self: flex-start; padding: .3em .9em; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font: 800 .95rem "Baloo 2", sans-serif; }
.kb-ref { color: #9a8d74; font: 700 .85rem "Baloo 2", sans-serif; }
.kb-booktext { font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1.45 "Baloo 2", var(--font-body); color: #2d2350; margin: 0; }
.kb-booktext::first-letter { color: var(--c); font-weight: 800; font-size: 1.25em; }
.kb-caption-ctrl { background: transparent; padding: 14px 4px 0; }
.kb-caption-ctrl .kb-dots i { background: #e2dcf5; }
/* Hoja que da vuelta */
.kb-sheet { position: absolute; top: 12px; bottom: 12px; width: calc(50% - 12px); z-index: 4; transform-style: preserve-3d; pointer-events: none; }
.kb-sheet-right { left: 50%; transform-origin: left center; animation: kbFlipR .8s cubic-bezier(.45,.05,.3,1) forwards; }
.kb-sheet-left { left: 12px; transform-origin: right center; animation: kbFlipL .8s cubic-bezier(.45,.05,.3,1) forwards; }
.kb-sheet-f, .kb-sheet-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(to left, #f6efdd, #fffdf7 40%); }
.kb-sheet-right .kb-sheet-f { border-radius: 0 16px 16px 0; } .kb-sheet-b { transform: rotateY(180deg); background: linear-gradient(to right, #f6efdd, #fffdf7 40%); }
@keyframes kbFlipR { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes kbFlipL { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
/* Tapa que se abre al elegir una historia */
.kb-cover { position: absolute; top: 12px; bottom: 12px; left: 50%; width: calc(50% - 12px); z-index: 5; transform-origin: left center; transform-style: preserve-3d; animation: kbCover 1.3s cubic-bezier(.6,.05,.25,1) .15s forwards; pointer-events: none; }
.kb-cover-f, .kb-cover-b { position: absolute; inset: 0; border-radius: 6px 18px 18px 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kb-cover-f { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; padding: 20px;
  background: radial-gradient(300px 200px at 30% 20%, rgba(255,255,255,.3), transparent 60%), linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 50%, #1e1b4b)); box-shadow: inset 0 0 0 6px rgba(255,255,255,.25); }
.kb-cover-f span { font-size: 4rem; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.kb-cover-f b { font: 800 clamp(1.4rem, 3vw, 2.2rem) "Baloo 2", sans-serif; }
.kb-cover-f small { font: 700 .8rem "Baloo 2", sans-serif; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.kb-cover-b { transform: rotateY(180deg); background: color-mix(in srgb, var(--c) 70%, #1e1b4b); animation: kbFade 1.3s .15s forwards; }
@keyframes kbCover { to { transform: rotateY(-180deg); } }
@keyframes kbFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.kb-openbook.opening .kb-page-r > * { animation: kbIn .6s ease 1.1s both; }
@keyframes kbIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) {
  .kb-openbook { grid-template-columns: 1fr; padding: 8px; }
  .kb-openbook::after, .kb-sheet { display: none; }
  .kb-page-l { border-radius: 16px 16px 0 0; } .kb-page-r { border-radius: 0 0 16px 16px; min-height: 0; }
  .kb-page-l .kb-screen { min-height: 240px; aspect-ratio: 4 / 3; }
  .kb-cover { left: 8px; width: calc(100% - 16px); top: 8px; bottom: 8px; }
}
/* Botones 3D modernos */
.kg-btn3d { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 0; cursor: pointer; padding: .8em 1.4em; border-radius: 18px; color: #fff;
  font: 800 1.05rem "Baloo 2", var(--font-body); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000), 0 14px 24px -12px var(--c), inset 0 2px 0 rgba(255,255,255,.45); transition: transform .12s, box-shadow .12s; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.kg-btn3d:hover { transform: translateY(-2px); }
.kg-btn3d:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000), inset 0 2px 0 rgba(255,255,255,.4); }
.kg-btn3d.sm { padding: .5em 1em; font-size: .95rem; border-radius: 14px; }
.kg-btn3d small { font-size: .75em; opacity: .9; }
.kg-btn3d .kicon { width: 1.2em; height: 1.2em; }
.kg-card { border-radius: 28px; padding: 18px 16px 16px; box-shadow: 0 9px 0 color-mix(in srgb, var(--c) 55%, #000), 0 26px 40px -24px var(--c), inset 0 2px 0 rgba(255,255,255,.35); }
.kg-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 40%; border-radius: 22px; background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none; }
.kg-new { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: #facc15; color: #713f12; font: 800 .72rem "Baloo 2", sans-serif; padding: .2em 2.6em; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.kg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px; }
.kg-foot .kg-play { margin-top: 0; }
.kg-lv { padding: .22em .7em; border-radius: 999px; background: rgba(0,0,0,.22); font: 800 .8rem "Baloo 2", sans-serif; }
.kg-lvbar { display: inline-flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.kg-lvdot { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: #f1ecff; color: #5b21b6; font: 800 .9rem "Baloo 2", sans-serif; box-shadow: 0 3px 0 #ddd2fb; }
.kg-lvdot.on { background: #7c3aed; color: #fff; box-shadow: 0 3px 0 #5b21b6; }
/* Ventana de nivel superado */
.kg-win { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(30,27,75,.55); backdrop-filter: blur(5px); animation: kbIn .3s ease both; }
.kg-win-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 28px; padding: 30px 22px 24px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: aPopC .5s cubic-bezier(.3,1.6,.5,1) both; }
.kg-win-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: .3em 1.2em; border-radius: 999px; background: #7c3aed; color: #fff; font: 800 .9rem "Baloo 2", sans-serif; box-shadow: 0 4px 0 #5b21b6; }
.kg-win-card h3 { margin: .2em 0 .3em; }
.kg-win-card p { color: #5b5470; font-weight: 600; }
.kg-stars3 { font-size: 2.2rem; letter-spacing: .1em; }
.kg-stars3 span { display: inline-block; animation: aPopC .5s cubic-bezier(.3,1.6,.5,1) both; }
.kg-stars3 span:nth-child(2) { animation-delay: .15s; } .kg-stars3 span:nth-child(3) { animation-delay: .3s; }
.kg-win-btns { display: grid; gap: 10px; margin-top: 14px; }
.kb-mem { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); max-width: 760px; }
/* Ahorcado con globos */
.kg-balloons { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: clamp(2rem, 6vw, 3rem); min-height: 1.4em; }
.kg-balloons span { filter: hue-rotate(calc(var(--h) * 1deg)); animation: kgFloat 2.4s ease-in-out infinite; animation-delay: calc(var(--h) * .01s); }
.kg-balloons span.pop { animation: kgPop .4s forwards; }
.kg-hword { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.kg-hword span { width: clamp(30px, 7vw, 46px); height: clamp(40px, 9vw, 56px); display: grid; place-items: center; border-bottom: 4px solid #c4b5fd; font: 800 clamp(1.3rem, 4vw, 2rem) "Baloo 2", sans-serif; color: #2d2350; }
.kg-hword span.on { border-color: #22c55e; animation: aPopC .3s ease both; }
.kg-abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-width: 640px; margin: 0 auto; }
.kg-key3d { height: 48px; border: 0; border-radius: 12px; background: linear-gradient(#fff, #f1ecff); color: #3b2a8f; font: 800 1.15rem "Baloo 2", sans-serif; box-shadow: 0 4px 0 #d9cff7; cursor: pointer; }
.kg-key3d:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9cff7; }
.kg-key3d.ok { background: #22c55e; color: #fff; box-shadow: 0 4px 0 #15803d; } .kg-key3d.bad { background: #e5e7eb; color: #9ca3af; box-shadow: none; }
/* Pac-Oveja */
.kg-pac .kg-canvas { background: #0f172a; }
.kg-pac .kg-pad button { background: #4338ca; box-shadow: 0 5px 0 #312e81; }
/* Lotería */
.kg-lot-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 16px; text-align: left; }
.kg-lot-call { width: 150px; aspect-ratio: 3 / 4; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 10px; background: #fff7ed; border: 4px solid #dc2626; box-shadow: 0 10px 22px -12px #dc2626; }
.kg-lot-call.flip { animation: kgCall .5s ease; }
@keyframes kgCall { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.kg-lot-emoji { font-size: 3.4rem; line-height: 1; }
.kg-lot-call b { font: 800 1.1rem "Baloo 2", sans-serif; color: #7f1d1d; text-align: center; }
.kg-lot-call small { color: #9a3412; font-weight: 700; }
.kg-lot-board { display: grid; grid-template-columns: repeat(var(--s), minmax(0, 1fr)); gap: 8px; max-width: min(440px, 100%); margin: 0 auto; }
.kg-lcard { position: relative; aspect-ratio: 3 / 4; border: 3px solid #fde68a; border-radius: 12px; background: #fffbeb; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; font-family: "Baloo 2", sans-serif; }
.kg-lcard span { font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1; }
.kg-lcard b { font-size: clamp(.65rem, 2vw, .85rem); color: #78350f; }
.kg-lcard .bean { position: absolute; width: 38%; aspect-ratio: 1.3; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a16207, #451a03); box-shadow: 0 3px 6px rgba(0,0,0,.4); transform: scale(0) rotate(-20deg); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.kg-lcard.on .bean { transform: scale(1) rotate(-20deg); }
.kg-lcard.no { animation: aShakeC .3s; }
@media (max-width: 640px) { .kg-lot-top { grid-template-columns: 1fr; justify-items: center; text-align: center; } .kg-lot-call { width: 120px; } .kg-lvbar { width: 100%; } }

/* =========================================================
   v13-nov: logos Kids / Chavos y Punto, eslogan, predicación, Biblia rápida
   ========================================================= */
/* Logos en el encabezado de Kids y Chavos y Punto */
.hero-logo { display: block; width: min(340px, 72vw); height: auto; margin: 0 auto 10px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.35)); animation: logoIn .9s cubic-bezier(.3,1.5,.5,1) both; }
.hero-logo-teens { width: min(320px, 70vw); }
.kids-hero h1, .teens-hero h1 { margin-top: 4px; }
@keyframes logoIn { from { opacity: 0; transform: scale(.8) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
/* Logo en tarjetas de ministerios */
.m-logo { display: grid; place-items: center; margin: -28px -28px 14px; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 40%, #fff, #eef4fb); border-bottom: 1px solid var(--line, #e5e7eb); }
.m-logo img { width: 78%; height: 78%; object-fit: contain; }
/* Eslogan en movimiento debajo de la foto principal */
.slogan-band { background: linear-gradient(90deg, var(--accent, #0a7fc0), #0b4f86); color: #fff; overflow: hidden; padding: 14px 0; position: relative; z-index: 2; }
.slogan-track { display: flex; width: max-content; animation: sloganMove 38s linear infinite; }
.slogan-track > div { display: flex; align-items: center; flex-shrink: 0; }
.slogan-track span { font: 800 clamp(1.15rem, 2.4vw, 1.7rem)/1 "Outfit", sans-serif; letter-spacing: .02em; white-space: nowrap; padding: 0 28px; }
.slogan-track i { font-style: normal; opacity: .6; font-size: 1.1rem; }
.slogan-band:hover .slogan-track { animation-play-state: paused; }
@keyframes sloganMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .slogan-track { animation: none; } }
/* Predicación: encabezado arriba y video a todo lo ancho */
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; width: min(1180px, 100%); margin: 0 auto 22px; text-align: left; }
.live-head h2 { margin: .25em 0 .1em; }
.live-date { margin: 0; color: rgba(255,255,255,.75); font-weight: 600; }
.live-date:empty { display: none; }
.live-head .btn-row { margin: 0; }
.live-grid.live-solo > :last-child { max-width: none; }
@media (max-width: 700px) { .live-head { text-align: center; justify-content: center; } .live-head .btn-row { justify-content: center; } }
/* Horario de reunión en «¿Dónde estamos?» */
.meet-line b { font-weight: 700; }
/* Intercesión: solo el formulario de peticiones */
.int-grid.int-solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
/* Acceso rápido a la Biblia junto al asistente */
.bible-fab { position: fixed; right: 20px; bottom: 94px; z-index: 79; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px 0 13px; border-radius: 999px; background: #fff; color: #1e3a5f; text-decoration: none; font: 700 .95rem "Outfit", sans-serif; box-shadow: 0 10px 24px -8px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s; }
.bible-fab svg { width: 24px; height: 24px; fill: none; stroke: var(--accent, #0a7fc0); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bible-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06); }
#chatbot.open ~ .bible-fab, body.chat-open .bible-fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .bible-fab { padding: 0; width: 50px; justify-content: center; bottom: 92px; } .bible-fab span { display: none; } }
.times-band + .slogan-band { margin-top: clamp(18px, 3vw, 34px); }

/* =========================================================
   v14-nov: Biblia visible al abrir, letra más grande, logos por página, Conferencias
   ========================================================= */
/* Biblia: encabezado compacto para que el libro se vea al abrir la sección */
.hero.hero-sm.bible-hero .hero-inner { padding: calc(var(--header-h, 120px) + 14px) 0 22px !important; }
.hero.bible-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .15em; }
.hero.bible-hero p { font-size: 1rem; margin-bottom: 0; opacity: .9; }
.bible-book-sec { padding-top: clamp(14px, 2vw, 26px) !important; padding-bottom: clamp(26px, 3vw, 44px); }
/* Busca en la Biblia y «¿Cómo te sientes hoy?»: más grande y legible */
.bible-wrap .bible-panel h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.bible-wrap .bible-panel p { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; }
.bible-wrap .bible-form input { font-size: 1.15rem; height: 58px; }
.bible-wrap .bible-form .btn { font-size: 1.1rem; height: 58px; padding-inline: 1.4em; }
.bible-wrap .quick-words button { font-size: 1.02rem; padding: .5em 1.1em; }
.bible-wrap .bible-sub { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.bible-wrap .mood-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bible-wrap .mood-grid .mood { font-size: clamp(1.05rem, 1.4vw, 1.18rem); padding: 16px 18px; min-height: 76px; border-radius: 18px; }
.bible-wrap .mood-grid .mood-ic { width: 42px; height: 42px; flex: none; }
.bible-wrap .mood-grid .mood-ic svg { width: 22px; height: 22px; }
.bible-results, .bible-results p, .bible-results blockquote { font-size: 1.08rem; }
/* Logo propio en el encabezado de Kids y Chavos y Punto */
.brand .logo.logo-page { height: calc(var(--logo-h, 64px) + 6px) !important; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
/* Conferencias */
.conf-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.conf-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; background: #fff; }
.conf-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .6; }
.conf-search input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; background: transparent; }
.conf-tools select { height: 52px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; padding: 0 16px; font-size: 1rem; background: #fff; }
.conf-years { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chip-btn { border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: 999px; padding: .45em 1.1em; font: 600 .95rem var(--font-body); cursor: pointer; }
.chip-btn.on { background: var(--accent, #0a7fc0); border-color: var(--accent, #0a7fc0); color: #fff; }
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.conf-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line, #e5e7eb); border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.conf-card:hover, .conf-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(15,23,42,.45); }
.conf-card[hidden] { display: none; }
.conf-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #0b4f86, #0a7fc0 55%, #5cc8f2); overflow: hidden; }
.conf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.conf-ph { font: 800 3.4rem "Outfit", sans-serif; color: rgba(255,255,255,.85); }
.conf-cover em { position: absolute; top: 10px; left: 10px; z-index: 2; font-style: normal; font: 700 .78rem var(--font-body); background: #facc15; color: #713f12; padding: .25em .7em; border-radius: 999px; }
.conf-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.conf-body b { font: 700 1.12rem/1.3 "Outfit", sans-serif; }
.conf-body small { color: var(--accent-deep, #0b4f86); font-weight: 600; font-size: .95rem; }
.conf-date { color: var(--muted, #6b7280); font-size: .88rem; }
.conf-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); }
.conf-modal-box { width: min(1100px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; }
.conf-modal-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line, #e5e7eb); }
.conf-modal-top > div { flex: 1; display: grid; }
.conf-modal-top small { color: var(--muted, #6b7280); }
.conf-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 1.1rem; cursor: pointer; }
.conf-modal iframe { flex: 1; width: 100%; border: 0; }
.center { text-align: center; }
.hero.hero-sm.bible-hero { min-height: 0 !important; height: auto !important; }
.hero.hero-sm.bible-hero .hero-inner { padding-top: calc(var(--header-h, 120px) + 8px) !important; }

/* =========================================================
   v14b-nov: banner con varias fotos, QR de Kids, logo grande arriba
   ========================================================= */
.hero.has-slides { isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slides .hs { position: absolute; inset: 0; background-size: cover; background-position: var(--hx, 50%) var(--hy, 35%); opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-slides .hs.on { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,34,.45) 0%, rgba(4,20,34,.12) 30%, rgba(4,20,34,.35) 55%, rgba(4,20,34,.88) 100%); }
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.on { width: 28px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slides .hs { transition: opacity .3s; transform: none; } }
/* Logo de Kids / Chavos y Punto más grande en la esquina superior izquierda */
.brand .logo.logo-page { height: calc(var(--logo-h, 64px) + 22px) !important; max-width: 200px; }
@media (max-width: 700px) { .brand .logo.logo-page { height: calc(var(--logo-h, 64px) + 6px) !important; } }
/* Botones grandes del encabezado de Kids */
.kids-hero-btns .btn { font-size: 1.08rem; padding: .85em 1.5em; }
/* Compartir los juegos con QR */
.kids-share { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 26px; background: linear-gradient(135deg, #fff7ed, #eef6ff); border: 1px solid #e8eef7; max-width: 900px; margin: 0 auto; }
.kids-qr { width: clamp(150px, 22vw, 210px); aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 16px 32px -20px rgba(15,23,42,.45); }
.kids-qr img { width: 100%; height: 100%; display: block; }
.kids-share h2 { margin: 0 0 .3em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.kids-share p { margin: 0 0 14px; color: #475569; font-size: 1.05rem; }
.kids-share .btn-row { gap: 10px; }
.kids-share code { display: inline-block; margin-top: 10px; font-size: .9rem; background: #fff; padding: .35em .7em; border-radius: 8px; border: 1px solid #e2e8f0; word-break: break-all; }
@media (max-width: 640px) { .kids-share { grid-template-columns: 1fr; justify-items: center; text-align: center; } .kids-share .btn-row { justify-content: center; } }
.btn-ghost-dark { border: 1.5px solid #cbd5e1; color: #1e293b; background: #fff; }
.btn-ghost-dark:hover { border-color: #94a3b8; }

/* =========================================================
   Kids v4: historias con iconos modernos, juegos a pantalla completa, guitarra, aventura de David
   ========================================================= */
/* Estante de historias: iconos grandes en mosaico de color */
.kb-shelf { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.kb-book { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 16px 12px 14px; border-radius: 24px; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 32%, #fff), 0 18px 30px -22px var(--c); }
.kb-book-ic { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 26px; color: #fff; font-size: 2.6rem;
  background: radial-gradient(60px 40px at 30% 20%, rgba(255,255,255,.45), transparent 70%), linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 10px 18px -8px var(--c), inset 0 -4px 0 rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.kb-book-ic svg { width: 50px; height: 50px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.kb-book:hover .kb-book-ic, .kb-book.on .kb-book-ic { transform: scale(1.08) rotate(-4deg); }
.kb-book-tx { display: grid; gap: 2px; }
.kb-book b { font-size: 1.12rem; }
@media (max-width: 520px) { .kb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-book-ic { width: 70px; height: 70px; } .kb-book-ic svg { width: 42px; height: 42px; } }
/* Juegos a pantalla completa y responsivos */
.kb-panel.kg-fs { position: fixed; inset: 0; z-index: 300; margin: 0; overflow: auto; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: radial-gradient(900px 500px at 10% 0%, #e0f2fe, transparent 60%), radial-gradient(900px 500px at 100% 100%, #fae8ff, transparent 60%), #fffaf2; display: flex; flex-direction: column; }
.kb-panel.kg-fs:fullscreen { background-color: #fffaf2; }
.kb-panel.kg-fs .kg-top { position: sticky; top: 0; z-index: 5; padding: 4px 0 10px; background: inherit; }
.kb-panel.kg-fs [data-game-area] { flex: 1; display: flex; flex-direction: column; }
.kb-panel.kg-fs [data-game-area] > .kb-card { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; }
.kb-panel.kg-fs .kg-canvas { max-width: min(100%, calc((100dvh - 210px) * 1.6)); max-height: calc(100dvh - 210px); width: 100%; height: auto; object-fit: contain; }
.kb-panel.kg-fs .kg-canvas.sq { max-width: min(100%, calc(100dvh - 230px)); }
body.kg-fs-on { overflow: hidden; }
body.kg-fs-on .bible-fab, body.kg-fs-on #chatbot { display: none !important; }
@media (max-width: 640px) { .kb-panel.kg-fs .kg-title { font-size: 1rem; } .kb-panel.kg-fs .kg-lvbar { display: none; } }
/* Dificultad del ahorcado */
.kg-diff { display: flex; justify-content: center; margin: 0 auto 10px; width: max-content; max-width: 100%; }
/* Guitarra */
.kg-guitar { text-align: center; }
.kg-gt-song { min-height: 74px; }
.kg-gt-line { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 10px; scroll-snap-type: x mandatory; }
.kg-gt-line span { flex: none; scroll-snap-align: center; display: grid; gap: 2px; padding: 8px 12px; border-radius: 14px; background: #f8fafc; border: 2px solid #e2e8f0; font: 700 1rem "Baloo 2", sans-serif; color: #475569; transition: transform .2s; }
.kg-gt-line span b { color: var(--c); font-size: 1.35rem; line-height: 1; }
.kg-gt-line span.now { border-color: #7c3aed; background: #f5f3ff; transform: scale(1.08); color: #2d2350; }
.kg-gt-line span.ok { opacity: .55; }
.kg-gt-time { height: 8px; border-radius: 999px; background: #ede9fe; overflow: hidden; max-width: 520px; margin: 0 auto; }
.kg-gt-time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e); }
.kg-gt-neck { position: relative; height: clamp(170px, 30vh, 260px); margin: 10px auto 14px; max-width: 980px; border-radius: 18px; touch-action: none; cursor: grab; overflow: hidden;
  background: linear-gradient(90deg, #5b3a1d, #7a4b24 30%, #6b4120 70%, #4a2e17); box-shadow: inset 0 0 0 4px #3b2412, 0 18px 30px -18px #3b2412; display: flex; flex-direction: column; justify-content: space-around; padding: 14px 0; }
.kg-gt-frets { position: absolute; inset: 0; display: flex; justify-content: space-around; pointer-events: none; }
.kg-gt-frets i { width: 4px; background: linear-gradient(#e5e7eb, #9ca3af); opacity: .7; }
.kg-gt-hole { position: absolute; right: 7%; top: 50%; width: clamp(90px, 16vw, 150px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #1c1208 55%, #8b5a2b 57%, #2b1a0b 62%, transparent 63%); pointer-events: none; }
.kg-gt-str { position: relative; z-index: 2; display: block; height: var(--w); background: linear-gradient(#fef3c7, #d6b46a); box-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.kg-gt-str.hit { animation: gtVib .45s ease-out; }
@keyframes gtVib { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-3px); } 30% { transform: translateY(3px); } 45% { transform: translateY(-2px); } 60% { transform: translateY(2px); } 75% { transform: translateY(-1px); } }
.kg-gt-chords { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.kg-gt-ch { min-width: 84px; padding: 10px 14px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; display: grid; gap: 0; font-family: "Baloo 2", sans-serif;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000); transition: transform .1s; }
.kg-gt-ch b { font-size: 1.6rem; line-height: 1; } .kg-gt-ch small { font-weight: 700; opacity: .9; }
.kg-gt-ch:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000); }
.kg-gt-ch.on { outline: 4px solid #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000), 0 0 0 7px var(--c); }
.kg-gt-ch.hint { animation: gtHint 1s ease-in-out infinite; }
@keyframes gtHint { 50% { transform: translateY(-4px) scale(1.05); } }
.kg-gt-strum { font-size: 1.2rem; padding: .9em 2.2em; }
.kb-shake { animation: aShakeC .35s; }
/* La aventura de David */
.kg-plat-wrap { position: relative; }
.kg-plat-cv { background: #bae6fd; }
.kg-plat-verse { text-align: center; font: 700 clamp(1rem, 2.2vw, 1.35rem) "Baloo 2", sans-serif; color: #475569; margin-bottom: 8px; min-height: 1.6em; }
.kg-plat-verse b { color: #7c3aed; animation: aPopC .35s ease both; display: inline-block; }
.kg-plat-verse small { color: #0f766e; font-weight: 800; }
.kg-plat-pad { display: none; justify-content: space-between; gap: 12px; margin: 12px auto 4px; max-width: 520px; user-select: none; -webkit-user-select: none; }
.kg-plat-pad button { width: 78px; height: 78px; border-radius: 50%; border: 0; font-size: 2rem; color: #fff; background: linear-gradient(#6366f1, #4338ca); box-shadow: 0 6px 0 #312e81; touch-action: none; }
.kg-plat-pad button.jump { width: 96px; height: 96px; background: linear-gradient(#22c55e, #15803d); box-shadow: 0 6px 0 #14532d; margin-left: auto; }
.kg-plat-pad button.on { transform: translateY(4px); box-shadow: none; }
@media (pointer: coarse), (max-width: 900px) { .kg-plat-pad { display: flex; } }
@media (orientation: portrait) and (max-width: 700px) { .kg-plat-wrap::after, .kg-arca::after { content: "📱↻ Gira tu celular para jugar en grande"; display: block; text-align: center; font: 700 .9rem "Baloo 2", sans-serif; color: #7c3aed; margin-top: 6px; } html[lang="en"] .kg-plat-wrap::after { content: "📱↻ Turn your phone sideways to play bigger"; } }

/* =========================================================
   v14c-nov: menú en la orilla superior (una sola línea, extendido), encabezado armonizado, eslogan elegante
   ========================================================= */
@media (min-width: 1181px) {
  body.nav-one .nav-wrap { display: flex; width: calc(100% - 48px); max-width: none; gap: 16px; }
  body.nav-one .nav-links { flex: 1 1 auto; justify-content: space-between; margin: 0 8px 0 18px !important; gap: 2px; min-width: 0; }
  body.nav-one .nav-links a { font-size: 1rem; font-weight: 600; padding: .5em .4em; white-space: nowrap; letter-spacing: 0; }
  body.nav-one .nav-links a.active { background: rgba(127,127,127,.16); }
  body.nav-one .nav-actions { margin-left: 0; flex: none; }
  body.nav-one .brand { flex: none; }
  /* Dos niveles: las secciones ocupan todo el ancho */
  body.nav-two .nav-links { justify-content: space-between; }
}
@media (min-width: 2100px) { body.nav-one .nav-links a { font-size: 1.08rem; padding: .5em .7em; } }
/* Encabezado del inicio: título y texto con tamaños equilibrados */
main[data-home] .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; margin-bottom: .35em; }
main[data-home] .hero p { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.6; max-width: 760px; }
main[data-home] .hero .hero-inner { padding-bottom: clamp(40px, 7vh, 80px); }
/* Eslogan elegante: «Recuerda que · Con Dios es mejor» */
.slogan-band { padding: clamp(26px, 4vw, 44px) 16px; overflow: hidden; color: #fff;
  background: radial-gradient(700px 200px at 50% 0%, rgba(92,200,242,.18), transparent 70%), linear-gradient(135deg, #071a2c 0%, #0b2f4a 50%, #071a2c 100%); }
.slogan-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%); transform: translateX(-100%); animation: slShine 7s ease-in-out infinite; pointer-events: none; }
@keyframes slShine { 60%, 100% { transform: translateX(100%); } }
.slogan-el { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 36px); max-width: 1100px; margin: 0 auto; }
.slogan-el p { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.sl-pre { font: 600 clamp(.78rem, 1.1vw, .92rem) var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: #9fd8f3; }
.sl-main { font: italic 600 clamp(2rem, 5vw, 3.6rem)/1.05 "Cormorant Garamond", Georgia, serif; letter-spacing: .01em;
  background: linear-gradient(90deg, #f6e7b8, #ffffff 45%, #f3d98c 70%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: slGold 9s ease-in-out infinite alternate; }
@keyframes slGold { to { background-position: 100% 0; } }
.sl-line { flex: 1 1 0; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,217,140,.85)); position: relative; }
.sl-line:last-child { background: linear-gradient(90deg, rgba(243,217,140,.85), transparent); }
.sl-line::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: #f3d98c; transform: translateY(-50%) rotate(45deg); }
.sl-line:first-child::after { right: -3px; } .sl-line:last-child::after { left: -3px; }
@media (max-width: 520px) { .sl-line { max-width: 40px; } }
@media (prefers-reduced-motion: reduce) { .slogan-band::before, .sl-main { animation: none; } }
/* Inicio: texto de bienvenida extendido a lo ancho (sin botones) */
main[data-home] .hero .hero-inner { width: calc(100% - 72px); max-width: none; margin-inline: 36px; }
main[data-home] .hero .hero-inner > h1 { max-width: none; }
main[data-home] .hero .hero-inner > p { max-width: 1560px; text-wrap: pretty; }
@media (max-width: 700px) { main[data-home] .hero .hero-inner { width: calc(100% - 32px); margin-inline: 16px; } }
/* Logos horizontales de ministerio en el encabezado (Worship, Intercesión) */
body[data-logo-light] .brand .logo.logo-page { height: calc(var(--logo-h, 64px) - 6px) !important; max-width: 300px; filter: none; }
@media (max-width: 700px) { body[data-logo-light] .brand .logo.logo-page { max-width: 190px; height: auto !important; } }
.m-logo { position: relative; } .m-logo img { position: absolute; inset: 9% 8%; width: 84%; height: 82%; object-fit: contain; }

/* =========================================================
   v15-nov: menú del celular completo, todo responsivo, Biblia dentro del asistente
   ========================================================= */
/* El desenfoque del encabezado encerraba el menú desplegable: se quita al abrir el menú */
body.menu-open #site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
@media (max-width: 1180px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); z-index: 90; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
  .nav-links a { font-size: clamp(1.15rem, 4.6vw, 1.4rem); padding: .55em .5em; border-bottom: 1px solid #eef2f7; border-radius: 0; opacity: 1; color: var(--ink); }
  .nav-links a.active { color: var(--accent); background: transparent; }
}
body.nav-collapse .nav-links { top: var(--header-h); height: calc(100dvh - var(--header-h)); z-index: 90; }
/* Acciones del encabezado en pantallas chicas */
@media (max-width: 560px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn-live { padding: .55em .9em; font-size: .88rem; }
  .lang-switch button span { display: none; }
  .brand .logo.logo-page { max-height: 64px; }
}
@media (max-width: 380px) { .nav-actions .btn-live { display: none; } }
/* Encabezados de páginas internas: el texto nunca se sale de la pantalla */
.hero.hero-sm .hero-inner { width: min(1180px, 100% - 32px); }
.hero.hero-sm .hero-inner p, .hero.hero-sm .hero-inner h1 { max-width: min(760px, 100%); overflow-wrap: anywhere; }
.hero.hero-sm .hero-inner h1 { font-size: clamp(2rem, 7vw, 4rem); }
/* Kids: encabezado limpio (los accesos a Historias, Juegos y Tareas están abajo) */
.hero.kids-hero { min-height: min(72vh, 620px); }
@media (max-width: 700px) { .hero.kids-hero, .hero.teens-hero { min-height: 58vh; } }
/* Pestañas de Kids más grandes y fáciles de tocar */
.kb-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
.kb-tabs button { justify-content: center; font-size: clamp(1rem, 2.6vw, 1.2rem); padding: .85em .6em; }
.kb-tabs button .kicon { width: 1.4em; height: 1.4em; }
/* Biblia dentro del asistente */
.chat-bible { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: inherit; text-decoration: none; font: 700 .85rem var(--font-body); }
.chat-bible svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-bible:hover { background: rgba(255,255,255,.3); }
.chat-quick button[data-q="bible"] { background: var(--accent, #0a7fc0); color: #fff; border-color: transparent; }
/* Responsivo general */
img, video, iframe, canvas { max-width: 100%; }
@media (max-width: 700px) {
  .section { padding-block: clamp(44px, 10vw, 72px); }
  .container { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .visit-row { grid-template-columns: 1fr !important; }
  .live-head { flex-direction: column; align-items: center; }
  .conf-tools select { width: 100%; }
}
@media (min-width: 701px) and (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.menu-open #chatbot { display: none; }

/* =========================================================
   v15b-nov: devocional por Zoom y grabaciones por fecha
   ========================================================= */
.devz-sec { padding-bottom: 24px; }
.devz { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 3vw, 28px); padding: clamp(18px, 3vw, 30px); border-radius: 24px; color: #fff;
  background: radial-gradient(500px 200px at 0% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1e3a8a, #2563eb 60%, #0ea5e9); box-shadow: 0 24px 40px -26px #1e3a8a; }
.devz.is-live { background: radial-gradient(500px 200px at 0% 0%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, #7f1d1d, #dc2626 60%, #f97316); box-shadow: 0 24px 40px -22px #dc2626; }
.devz-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.devz-ic svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.devz-tx h2 { margin: .25em 0 .1em; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: #fff; }
.devz-tx p { margin: 0; opacity: .9; font-weight: 600; }
.devz-badge { display: inline-flex; align-items: center; gap: 8px; padding: .3em .8em; border-radius: 999px; background: #fff; color: #dc2626; font: 800 .8rem var(--font-body); letter-spacing: .06em; }
.devz-badge.soft { background: rgba(255,255,255,.2); color: #fff; letter-spacing: .02em; }
.devz-badge .dot, .devz-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: livePulse 1.4s infinite; }
.devz-btn { white-space: nowrap; font-size: 1.05rem; padding: .9em 1.5em; }
.devz .btn-dark { background: #fff; color: #1e3a8a; }
@keyframes livePulse { 50% { opacity: .35; } }
@media (max-width: 700px) { .devz { grid-template-columns: auto 1fr; } .devz-btn { grid-column: 1 / -1; justify-content: center; } }
.devv-month + .devv-month { margin-top: 28px; }
.devv-month h3 { font-size: 1.2rem; margin: 0 0 12px; text-transform: capitalize; }
.devv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.devv-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.devv-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(15,23,42,.5); }
.devv-play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.devv-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.devv-d { display: grid; gap: 2px; } .devv-d b { font-size: 1rem; } .devv-d small { color: var(--muted, #6b7280); }
.devv-box video { flex: 1; width: 100%; min-height: 0; background: #000; }
.devz.is-live .btn-live { background: #fff; color: #dc2626; box-shadow: 0 10px 22px -10px rgba(0,0,0,.4); }
/* Celular: el logo nunca empuja el botón ☰ fuera de la pantalla */
#site-header .brand { min-width: 0; flex: 0 1 auto; }
#site-header .nav-actions { flex: none; }
@media (max-width: 560px) {
  #site-header .brand .logo, #site-header .brand img { max-width: min(52vw, 210px) !important; height: auto !important; max-height: 50px !important; object-fit: contain; object-position: left center; }
  #site-header .brand .logo.logo-page { max-height: 58px !important; }
}

/* =========================================================
   v15d-nov: pantalla del devocional por Zoom y predicaciones con portada
   ========================================================= */
.devz { display: block; padding: clamp(16px, 2.6vw, 28px); }
.devz-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 2.4vw, 24px); margin-bottom: clamp(14px, 2vw, 22px); }
.devz-tx h2 { margin: 0 0 .1em; }
.devz-screen { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; width: 100%; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none;
  background: radial-gradient(600px 300px at 50% 45%, rgba(45,140,255,.35), transparent 70%), linear-gradient(180deg, #0b1220, #111b2e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 24px 40px -24px rgba(0,0,0,.7); padding: clamp(12px, 2.4vw, 24px); }
.devz-screen.on { background: radial-gradient(600px 320px at 50% 45%, rgba(239,68,68,.35), transparent 70%), linear-gradient(180deg, #0b1220, #1a1020); }
.devz-screen.has-stream { padding: 0; background: #000; }
.devz-screen iframe { width: 100%; height: 100%; border: 0; }
.devz-scr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.devz-zoom { font: 800 clamp(1rem, 2vw, 1.4rem) "Outfit", sans-serif; color: #2d8cff; background: #fff; padding: .15em .7em; border-radius: 10px; letter-spacing: -.01em; }
.devz-scr-mid { display: grid; justify-items: center; gap: clamp(8px, 1.6vw, 16px); text-align: center; }
.devz-scr-mid b { font: 800 clamp(1.2rem, 3.2vw, 2.4rem) "Outfit", sans-serif; }
.devz-cam { width: clamp(56px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #2d8cff; box-shadow: 0 0 0 10px rgba(45,140,255,.18); }
.devz-screen.on .devz-cam { background: #ef4444; box-shadow: 0 0 0 10px rgba(239,68,68,.2); animation: camPulse 1.6s ease-in-out infinite; }
@keyframes camPulse { 50% { box-shadow: 0 0 0 22px rgba(239,68,68,.06); } }
.devz-cam svg { width: 48%; height: 48%; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.devz-scr-bot { text-align: center; font-size: clamp(.85rem, 1.4vw, 1rem); opacity: .8; }
.devz-screen .devz-btn { pointer-events: none; }
.devz-screen:hover .devz-btn { transform: translateY(-2px); }
@media (max-width: 700px) { .devz-head { grid-template-columns: auto 1fr; } .devz-btn-top { display: none; } .devz-screen { aspect-ratio: 4 / 3; } }
/* Predicaciones con la portada de su presentación */
[data-render="sermons-list"].grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pred-card { display: flex; flex-direction: column; border: 1px solid var(--line, #e5e7eb); border-radius: 20px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.pred-card:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -24px rgba(15,23,42,.5); }
.pred-cover { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: linear-gradient(135deg, #0b2f4a, #0a7fc0 60%, #5cc8f2); color: #fff; }
.pred-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s; }
.pred-card:hover .pred-cover img { transform: scale(1.04); }
.pred-ph { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 18px 22px; text-align: left; }
.pred-ph b { font: 800 clamp(1.15rem, 2vw, 1.45rem)/1.15 "Outfit", sans-serif; }
.pred-ph small { opacity: .85; font-weight: 600; }
.pred-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); box-shadow: 0 10px 22px -8px rgba(0,0,0,.5); }
.pred-play svg { width: 24px; height: 24px; fill: #0a7fc0; } .pred-play svg path + path { fill: none; stroke: #0a7fc0; stroke-width: 2; }
.pred-tag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: .25em .7em; border-radius: 999px; background: #ef4444; color: #fff; font: 700 .78rem var(--font-body); }
.pred-body { padding: 14px 18px 18px; display: grid; gap: 4px; flex: 1; }
.pred-body h3 { margin: 2px 0 0; font-size: 1.15rem; }
.pred-body .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .85rem; }
.pred-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-self: end; }
.devz-screen { max-width: 980px; margin-inline: auto; max-height: 72vh; }

/* =========================================================
   v16-nov: encabezados compactos, Biblia grande con marcadores, wallpaper, testimonios, insignias, QR
   ========================================================= */
/* Encabezado compacto (Biblia, Prédicas, Conferencias, Wallpaper) */
.hero.hero-sm.hero-compact { min-height: 0 !important; height: auto !important; }
.hero.hero-sm.hero-compact .hero-inner { padding: calc(var(--header-h, 120px) + 10px) 0 22px !important; }
.hero.hero-compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important; margin-bottom: .15em; }
.hero.hero-compact p { font-size: 1rem; margin-bottom: 0; opacity: .9; }
/* Biblia más grande */
.bible-book-sec .container { width: min(1560px, 100% - 24px); }
.bbook { max-width: 1520px; }
.bpage { height: clamp(620px, 84vh, 960px); }
.reader-text { font-size: clamp(1.08rem, 1.25vw, 1.28rem); line-height: 1.75; }
.reader-text .rv { cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: 0 -6px 4px; transition: background .15s; }
.reader-text .rv:hover { background: rgba(10,127,192,.06); }
.reader-text .rv.mk { background: linear-gradient(transparent 55%, rgba(250,204,21,.55) 55%); }
.reader-text .rv.sel { background: rgba(37,99,235,.14); box-shadow: inset 3px 0 0 #2563eb; }
.bsel-bar { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #0f172a; color: #fff; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); max-width: calc(100% - 24px); animation: kbIn .25s ease both; }
.bsel-bar[hidden] { display: none; }
.bsel-bar b { font-size: .9rem; margin-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.bsel-bar button { border: 0; border-radius: 999px; padding: .55em .9em; background: rgba(255,255,255,.12); color: #fff; font: 700 .88rem var(--font-body); cursor: pointer; white-space: nowrap; }
.bsel-bar button.pri { background: #2563eb; }
@media (max-width: 560px) { .bsel-bar { padding-left: 10px; } .bsel-bar button span { display: none; } .bsel-bar b { max-width: 40vw; } }
/* Wallpaper */
.wp-stage { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(22px, 5vw, 64px); align-items: center; max-width: 1100px; margin: 0 auto; }
.wp-phone { aspect-ratio: 9 / 16; border-radius: 40px; padding: 12px; background: #0b0f17; box-shadow: 0 40px 70px -30px rgba(15,23,42,.6), inset 0 0 0 2px #2b3446; }
.wp-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; display: block; }
.wp-verse { font: italic 600 clamp(1.6rem, 3.2vw, 2.6rem)/1.25 "Cormorant Garamond", Georgia, serif; margin: .3em 0 .2em; }
.wp-ref { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent, #0a7fc0); }
.wp-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.wp-count { color: var(--muted, #64748b); } .wp-count b { color: var(--ink, #0f172a); font-size: 1.3rem; }
.wp-comments { max-width: 820px; margin: clamp(32px, 6vw, 60px) auto 0; }
.wp-form, .tst-form { display: grid; gap: 10px; margin: 12px 0 18px; }
.wp-form input, .wp-form textarea, .tst-form input, .tst-form textarea, .badge-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; font: inherit; background: #fff; }
.wp-form .btn, .tst-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.wp-list { display: grid; gap: 10px; }
.wp-c { padding: 12px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #eef2f7; } .wp-c small { margin-left: 8px; color: var(--muted, #64748b); } .wp-c p { margin: 4px 0 0; }
.wp-prev { max-width: 1100px; margin: clamp(32px, 6vw, 60px) auto 0; }
.wp-prev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.wp-mini { display: grid; gap: 6px; text-decoration: none; color: inherit; text-align: center; } .wp-mini img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 20px -12px rgba(0,0,0,.5); } .wp-mini small { color: var(--muted, #64748b); }
@media (max-width: 700px) { .wp-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; } .wp-phone { width: min(300px, 80vw); } .wp-dl { justify-content: center; } }
/* Testimonios de intercesión */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.tst-grid .tst-empty { grid-column: 1 / -1; }
.tst-card { margin: 0; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #eef2f7; box-shadow: 0 14px 30px -24px rgba(15,23,42,.5); display: grid; gap: 12px; }
.tst-card blockquote { margin: 0; font: italic 500 1.12rem/1.6 "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }
.tst-card blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent, #0a7fc0); }
.tst-card figcaption { display: grid; } .tst-card small { color: var(--muted, #64748b); }
.tst-form { max-width: 720px; margin: 0 auto; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: #fff; border: 1px solid #eef2f7; }
.tst-form h3 { margin: 0; } .tst-form label { display: grid; gap: 6px; font-weight: 600; }
/* Insignias */
.badge-chip { position: fixed; left: 16px; bottom: 20px; z-index: 78; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; background: #fff; color: #0f172a; box-shadow: 0 10px 24px -10px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06); font: 700 .9rem var(--font-body); cursor: pointer; }
.badge-chip span { font-size: 1.15rem; letter-spacing: -2px; }
body.menu-open .badge-chip, body.kg-fs-on .badge-chip { display: none; }
@media (max-width: 560px) { .badge-chip b { display: none; } .badge-chip { padding: 10px; } }
.badge-box { height: auto; max-height: 88vh; width: min(720px, 100%); }
.badge-body { padding: 18px; overflow: auto; display: grid; gap: 18px; }
.badge-form { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #f8fafc; } .badge-form p { margin: 0; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.bd { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: #f1f5f9; opacity: .55; filter: grayscale(.8); }
.bd.on { background: linear-gradient(160deg, #fff7ed, #fef3c7); opacity: 1; filter: none; box-shadow: 0 10px 20px -14px #b45309; }
.bd span { font-size: 2.2rem; } .bd small { color: #64748b; font-size: .8rem; }
.badge-toast { position: fixed; left: 50%; top: calc(var(--header-h, 90px) + 14px); transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 18px; background: linear-gradient(135deg, #fff7ed, #fde68a); box-shadow: 0 24px 50px -20px rgba(120,53,15,.6); animation: aPopC .5s cubic-bezier(.3,1.6,.5,1) both; transition: opacity .5s, transform .5s; }
.badge-toast.out { opacity: 0; transform: translate(-50%, -20px); }
.badge-toast .bt-ic { font-size: 2.4rem; } .badge-toast div { display: grid; } .badge-toast small { font-weight: 800; color: #b45309; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; } .badge-toast span { color: #78350f; font-size: .9rem; }
/* Prédicas: la portada abre la transmisión */
.pred-cover { cursor: pointer; }

/* ===== v16c · Pasarela de wallpapers ===== */
.wp-gal{margin:3.2rem auto 0;max-width:1180px;outline:none}
.wp-gal-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.wp-gal-head h3{margin:0;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(1.8rem,3.4vw,2.6rem);font-style:italic;color:#083e4a}
.wp-gal-kind{display:inline-flex;background:#e7f0f1;border-radius:999px;padding:4px}
.wp-gal-kind button{border:0;background:none;padding:.5rem 1rem;border-radius:999px;font:600 .9rem/1 Outfit,sans-serif;color:#083e4a;cursor:pointer}
.wp-gal-kind button.on{background:#083e4a;color:#fff}
.wp-gal-view{position:relative;background:radial-gradient(circle at 50% 40%,#0f5a68,#04222b 70%);border-radius:28px;padding:2rem 0;overflow:hidden}
.wp-gal-track{position:relative;height:min(78vh,720px);perspective:1400px}
.wp-gal.is-pc .wp-gal-track{height:min(56vw,560px)}
.wp-slide{position:absolute;left:50%;top:50%;margin:0;height:92%;aspect-ratio:9/16;border-radius:22px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.45);
  transform:translate(calc(-50% + var(--o,0) * 62%),-50%) scale(calc(1 - min(1, max(var(--o,0), calc(var(--o,0) * -1))) * .22));opacity:calc(1 - min(1, max(var(--o,0), calc(var(--o,0) * -1))) * .55);
  transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .55s;cursor:pointer;z-index:1}
.wp-slide.on{z-index:3;cursor:default}
.wp-slide img{width:100%;height:100%;object-fit:cover;display:block;background:#0b3a45}
.wp-gal.is-pc .wp-slide{aspect-ratio:16/9;height:auto;width:min(78%,900px)}
.wp-gal.is-pc .wp-slide{transform:translate(calc(-50% + var(--o,0) * 84%),-50%) scale(calc(1 - min(1, max(var(--o,0), calc(var(--o,0) * -1))) * .25))}
.wp-gal-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:54px;height:54px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.14);backdrop-filter:blur(6px);color:#fff;font-size:2rem;line-height:1;cursor:pointer}
.wp-gal-nav:hover{background:rgba(243,217,140,.35)}
.wp-gal-nav.prev{left:16px}.wp-gal-nav.next{right:16px}
.wp-gal-bar{display:flex;justify-content:center;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:1rem}
.wp-gal-cap{margin:0 1rem 0 0;font-family:Outfit,sans-serif;color:#083e4a}.wp-gal-cap span{opacity:.6;margin-left:.4rem}
.wp-gal-dots{display:flex;justify-content:center;gap:6px;margin-top:.8rem}
.wp-gal-dots button{width:9px;height:9px;border-radius:50%;border:0;background:#b9cfd3;padding:0;cursor:pointer}
.wp-gal-dots button.on{background:#083e4a;width:26px;border-radius:6px}
.wp-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(2,16,20,.94);display:flex;align-items:center;justify-content:center;padding:2vh 2vw}
.wp-lightbox img{max-width:100%;max-height:96vh;border-radius:14px;box-shadow:0 20px 60px #000}
.wp-lightbox button{position:absolute;top:14px;right:18px;border:0;background:#fff;border-radius:50%;width:42px;height:42px;font-size:1.2rem;cursor:pointer}
@media (max-width:640px){.wp-gal-track{height:72vh}.wp-slide{height:90%}.wp-gal-nav{width:42px;height:42px;font-size:1.6rem}.wp-gal.is-pc .wp-gal-track{height:62vw}.wp-gal.is-pc .wp-slide{width:86%}}

/* v16d · Devocional: Zoom en el navegador */
.devz-extra{display:flex;align-items:center;justify-content:center;gap:.8rem;flex-wrap:wrap;margin-top:1rem;text-align:center}
.devz-extra small{color:rgba(255,255,255,.85);max-width:340px}
.devz-extra .devz-web{background:#fff;color:#111}
@media (max-width: 700px) { .devz-screen:not(.has-stream) { aspect-ratio: auto; min-height: 280px; gap: 14px; padding-block: 16px; } .devz-extra .devz-web { width: 100%; justify-content: center; } }
@media (max-width: 900px) { .devz .devz-screen .btn-live { display: inline-flex; } }

/* v16f · Devocional: Zoom dentro de la página */
.devz-zin{padding:0;overflow:hidden;aspect-ratio:16/10;min-height:520px;display:block}
.devz-zin .devz-start{all:unset;box-sizing:border-box;cursor:pointer;width:100%;height:100%;min-height:inherit;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(14px,2.4vw,26px);color:#fff}
.devz-zin .devz-start:focus-visible{outline:3px solid #fff;outline-offset:-6px}
.devz-zin .devz-howto{opacity:.85;max-width:420px;font-size:.92rem}
.devz-zin iframe.devz-zframe{width:100%;height:100%;min-height:inherit;border:0;display:block;background:#1f1f1f}
.devz-zin.joined{aspect-ratio:auto;height:min(82vh,760px)}
@media (max-width:700px){.devz-zin{min-height:380px;aspect-ratio:auto}.devz-zin.joined{height:86vh}}

.live-feed{margin:22px auto 0;max-width:500px;text-align:center}
.live-feed-t{font-size:.92rem;opacity:.8;margin:0 0 10px}
.live-feed iframe{width:100%;max-width:500px;height:760px;border:0;border-radius:14px;background:#fff;box-shadow:0 16px 40px -18px rgba(0,0,0,.4)}
/* v16f · Inicio: texto del encabezado de lado a lado */
main[data-home] .hero .hero-inner { width: calc(100% - clamp(32px, 6vw, 120px)); margin-inline: auto; }
main[data-home] .hero .hero-inner > h1 { max-width: none; width: 100%; font-size: clamp(2.3rem, 6.2vw, 7.2rem); line-height: 1.02; letter-spacing: -.01em; }
main[data-home] .hero .hero-inner > p { max-width: none; width: 100%; font-size: clamp(1.05rem, 1.75vw, 1.85rem); line-height: 1.5; text-align: justify; text-align-last: left; hyphens: auto; }
main[data-home] .hero .hero-inner > .eyebrow { font-size: clamp(.8rem, 1vw, 1.05rem); }

/* =====================================================================
   v17 · Sistema de diseño unificado: tipografía proporcional, botones y chat
   ===================================================================== */
:root {
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);      /* 16 → 18 px */
  --fs-small: clamp(.875rem, .85rem + .12vw, .95rem);    /* 14 → 15 px (mínimo legible) */
  --fs-eyebrow: clamp(.8rem, .76rem + .2vw, .92rem);
  --fs-h1: clamp(2.15rem, 1.4rem + 3.2vw, 3.75rem);      /* títulos de página */
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);     /* títulos de sección */
  --fs-h3: clamp(1.18rem, 1.05rem + .55vw, 1.45rem);
  --fs-nav: clamp(.95rem, .9rem + .15vw, 1.02rem);
  --fs-btn: clamp(.95rem, .92rem + .12vw, 1.02rem);
}
body { font-size: var(--fs-body); }
main p, main li { line-height: 1.65; }
main p:not([class]), .section-head p, .card p, .card-body p, .split p { font-size: var(--fs-body); }
h3 { font-size: var(--fs-h3); }

/* Títulos de página (todas las hojas excepto Inicio) iguales */
.hero.hero-sm .hero-inner h1,
.hero.hero-sm.hero-compact .hero-inner h1,
.hero.hero-sm.has-photo .hero-inner h1,
.hero.hero-sm.bible-hero .hero-inner h1 { font-size: var(--fs-h1) !important; line-height: 1.06; }
.hero.hero-sm .hero-inner > p { font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem) !important; }

/* Títulos de sección iguales en todas las hojas */
.section-head h2, .section > .container > h2, .section > .container > .reveal > h2,
.section .split h2, .section > .container > div > h2:first-child { font-size: var(--fs-h2); line-height: 1.12; }
.section-head .btn-conf { margin-top: 14px; }

/* Etiquetas y textos pequeños: nunca menos de 14 px y con buen contraste */
.eyebrow { font-size: var(--fs-eyebrow); }
.small, small, .muted.small, .pred-ph small, .kb-book-tx small, .bp-foot span, .conf-cover em,
.vf-top span, .vf-cta, .live-badge span, .pred-tag, .v-ver, .bc-front small, .devz-badge { font-size: var(--fs-small) !important; }
.section.dark .muted, .section.dark small, .dark .muted { color: rgba(255,255,255,.74); }
.muted { color: #5b616b; }

/* Menú */
.site-nav a, header nav a { font-size: var(--fs-nav); }

/* ---------- Botones modernos y elegantes ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-btn); letter-spacing: .01em;
  padding: .92em 1.7em; border-radius: 999px; border: 1px solid transparent; line-height: 1.15;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 22px -10px rgba(10,20,40,.45);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s, color .25s, filter .25s;
}
.btn::after { /* brillo que cruza el botón al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 16px 32px -14px rgba(10,20,40,.55); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, #1595d9 0%, var(--accent) 45%, var(--accent-deep) 100%); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 26px -10px rgba(10,127,192,.7); }
.btn-dark { background: linear-gradient(135deg, #2a2d34 0%, #111214 60%, #000 100%); color: #fff; border-color: rgba(255,255,255,.08); }
.btn-light { background: linear-gradient(180deg, #fff 0%, #f3f5f8 100%); color: var(--ink); border-color: rgba(17,18,20,.08); }
.btn-light::after, .btn-outline::after, .btn-ghost-dark::after { background: linear-gradient(110deg, transparent 30%, rgba(10,127,192,.14) 50%, transparent 70%); }
.btn-outline { background: transparent; border: 1.5px solid currentColor; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-ghost-dark { background: rgba(8,62,74,.06); color: #083e4a; border-color: rgba(8,62,74,.22); box-shadow: none; }
.btn-ghost-dark:hover { background: rgba(8,62,74,.12); }
.btn-fb { background: linear-gradient(135deg, #2d88ff 0%, #1877f2 55%, #0b5fcc 100%); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(24,119,242,.7); }
.btn-wa { background: linear-gradient(135deg, #34e07a, #1ebe5a); color: #fff; }
.btn-live { background: linear-gradient(135deg, #ff4d6d 0%, var(--live) 55%, #b5103a 100%); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -8px rgba(225,29,72,.75); }
.btn-live-big { animation: liveGlow 2.4s ease-in-out infinite; }
@keyframes liveGlow { 0%,100% { box-shadow: 0 8px 22px -8px rgba(225,29,72,.75); } 50% { box-shadow: 0 8px 34px -4px rgba(225,29,72,.95); } }
.btn-conf { padding: .75em 1.4em; }

/* ---------- Botón del chat: logo de la iglesia que palpita ---------- */
.chat-fab { position: relative; width: 66px; height: 66px; padding: 0; background: radial-gradient(circle at 35% 30%, #fff 0%, #e8f4fb 60%, #cfe6f4 100%); border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 28px -8px rgba(10,127,192,.65), 0 0 0 1px rgba(10,127,192,.18); overflow: visible; animation: chatBeat 2.2s ease-in-out infinite; }
.chat-fab:hover { transform: scale(1.08); animation-play-state: paused; }
.chat-fab-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: block; position: relative; z-index: 2; }
.chat-fab-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(10,127,192,.55); z-index: 0; animation: chatRing 2.2s ease-out infinite; pointer-events: none; }
.chat-fab-ring.r2 { animation-delay: 1.1s; }
.chat-fab-badge { position: absolute; right: -4px; bottom: -4px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1595d9, var(--accent-deep)); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.chat-fab-badge svg { width: 14px; height: 14px; }
#chatbot.open .chat-fab { animation: none; }
#chatbot.open .chat-fab-ring { display: none; }
@keyframes chatBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.09); } 24% { transform: scale(.98); } 36% { transform: scale(1.05); } 50% { transform: scale(1); } }
@keyframes chatRing { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(1.75); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-fab-ring, .btn-live-big { animation: none !important; } }
.eyebrow, .sl-pre, .tv-chip, .lang-switch span, .bv-day, .verse-day-tag { font-size: max(.875rem, var(--fs-eyebrow)) !important; }

/* v17b · Kids: 3 botones grandes (Historias, Juegos, Tareas) e íconos grandes */
.kb-tabs.kb-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin: 8px 0 26px; }
.kb-tabs.kb-big button { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: clamp(170px, 22vw, 250px); padding: 22px 16px; border-radius: 30px; color: #fff;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 10px 0 color-mix(in srgb, var(--c2) 70%, #000), 0 22px 40px -18px var(--c2);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, min-height .3s, opacity .2s; }
.kb-tabs.kb-big button:hover { transform: translateY(-4px) rotate(-.6deg); }
.kb-tabs.kb-big button:active { transform: translateY(6px); box-shadow: 0 4px 0 color-mix(in srgb, var(--c2) 70%, #000); }
.kb-tabs.kb-big .kbt-ic { width: clamp(76px, 9vw, 112px); height: clamp(76px, 9vw, 112px); border-radius: 28px; display: grid; place-items: center; background: rgba(255,255,255,.22); box-shadow: inset 0 2px 0 rgba(255,255,255,.35); }
.kb-tabs.kb-big .kbt-ic svg { width: 62%; height: 62%; }
.kb-tabs.kb-big .kbt-tx { display: grid; gap: 4px; }
.kb-tabs.kb-big .kbt-tx b { font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1 "Baloo 2", var(--font-head); }
.kb-tabs.kb-big .kbt-tx small { font: 600 clamp(.9rem, 1.1vw, 1.05rem)/1.25 "Baloo 2", var(--font-body); opacity: .92; }
/* Ya elegido: los botones se compactan y el elegido resalta */
.kb-tabs.kb-big.picked button { min-height: 0; flex-direction: row; padding: 14px 18px; gap: 12px; border-radius: 24px; }
.kb-tabs.kb-big.picked .kbt-ic { width: 54px; height: 54px; border-radius: 18px; }
.kb-tabs.kb-big.picked .kbt-tx { text-align: left; }
.kb-tabs.kb-big.picked .kbt-tx small { display: none; }
.kb-tabs.kb-big.picked button:not(.on) { opacity: .62; filter: saturate(.75); }
.kb-tabs.kb-big.picked button.on { outline: 4px solid #fff; outline-offset: -8px; }
@media (max-width: 640px) {
  .kb-tabs.kb-big { grid-template-columns: 1fr; }
  .kb-tabs.kb-big button { flex-direction: row; justify-content: flex-start; min-height: 112px; text-align: left; padding: 16px 20px; }
  .kb-tabs.kb-big .kbt-tx { text-align: left; }
  .kb-tabs.kb-big.picked { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kb-tabs.kb-big.picked button { flex-direction: column; padding: 10px 6px; gap: 6px; justify-content: center; }
  .kb-tabs.kb-big.picked .kbt-ic { width: 44px; height: 44px; border-radius: 14px; }
  .kb-tabs.kb-big.picked .kbt-tx { text-align: center; } .kb-tabs.kb-big.picked .kbt-tx b { font-size: 1.05rem; }
}
/* Íconos de historias y juegos más grandes */
.kb-shelf { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.kb-book { justify-items: center; text-align: center; padding: 20px 14px 18px; }
.kb-book-ic { width: 116px; height: 116px; border-radius: 34px; }
.kb-book-ic svg { width: 68px; height: 68px; }
.kb-book b { font-size: 1.2rem; }
.kb-book small { font-size: .95rem !important; }
.kg-ic { width: 104px !important; height: 104px !important; border-radius: 30px !important; }
.kg-ic svg { width: 62px !important; height: 62px !important; }
@media (max-width: 520px) { .kb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .kb-book-ic { width: 92px; height: 92px; border-radius: 28px; } .kb-book-ic svg { width: 54px; height: 54px; } .kg-ic { width: 84px !important; height: 84px !important; } }
/* Chat: pelota azul con el texto PDEGDL */
.chat-fab { width: 74px; height: 74px; }
.chat-fab-logo { width: 64px; height: 64px; }
.chat-fab-txt { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 .78rem/1 "Outfit", sans-serif; letter-spacing: .03em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,30,60,.9), 0 0 8px rgba(0,40,80,.6); pointer-events: none; white-space: nowrap; }
/* Menú más grande */
body.nav-two .nav-links a, body.nav-one .nav-links a { font-size: 1.12rem !important; letter-spacing: 0; }
@media (min-width: 1181px) and (max-width: 1440px) { body.nav-two .nav-links a { font-size: 1.04rem !important; padding: .5em .42em !important; } }
@media (min-width: 1700px) { body.nav-one .nav-links a { font-size: 1.15rem !important; padding: .5em .55em; } }
body.nav-collapse .nav-links a { font-size: 1.5rem; }
.kb-tabs.kb-big { width: 100%; max-width: none; justify-self: stretch; }

/* v17b · Calendario de devocionales y reproductor «televisión» */
.dcal { background: #fff; border-radius: 26px; padding: clamp(14px, 2.4vw, 28px); box-shadow: 0 24px 60px -30px rgba(10,30,60,.35); border: 1px solid #eef0f3; }
.dcal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dcal-title { text-align: center; display: grid; gap: 2px; }
.dcal-title b { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--font-head); }
.dcal-title small { color: var(--muted); font-size: var(--fs-small); }
.dcal-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #dfe3e8; background: linear-gradient(180deg, #fff, #f2f5f8); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); box-shadow: 0 6px 14px -8px rgba(0,0,0,.3); }
.dcal-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dcal-months { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.dcal-months button { border: 1px solid #dfe3e8; background: #f6f8fa; border-radius: 999px; padding: .35em .9em; font: 600 .9rem var(--font-head); cursor: pointer; color: var(--ink-2); }
.dcal-months button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.dcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, .8vw, 10px); }
.dcal-wd { text-align: center; font: 700 .9rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; }
.dcal-cell { position: relative; min-height: clamp(70px, 9vw, 128px); border-radius: 14px; background: #f7f8fa; border: 1px solid #edf0f3; padding: 6px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; overflow: hidden; }
.dcal-cell.empty { background: transparent; border-color: transparent; }
.dcal-cell.dev { background: #f1f7fc; }
.dcal-cell.future { opacity: .75; }
.dcal-cell.today { outline: 3px solid var(--accent); outline-offset: -3px; }
.dcal-d { font: 800 1rem/1 var(--font-head); color: var(--ink-2); }
.dcal-note { margin-top: auto; font-size: .82rem; color: var(--muted); font-weight: 600; }
.dcal-cell.has-video { cursor: pointer; background: #0f172a; border-color: #0f172a; color: #fff; padding: 0; transition: transform .2s, box-shadow .2s; }
.dcal-cell.has-video:hover, .dcal-cell.has-video:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(10,30,60,.6); outline: none; }
.dcal-cell.has-video .dcal-d { position: absolute; top: 6px; left: 6px; z-index: 2; color: #fff; background: rgba(0,0,0,.55); border-radius: 8px; padding: 3px 6px; }
.dcal-media { position: absolute; inset: 0; display: block; }
.dcal-media img, .dcal-media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dcal-ph { display: grid; place-items: center; height: 100%; font-size: 2rem; background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.dcal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(28px, 3.4vw, 44px); height: clamp(28px, 3.4vw, 44px); border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.dcal-play svg { width: 52%; height: 52%; fill: var(--accent); margin-left: 8%; }
.dcal-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 6px 5px; font: 700 .78rem/1.15 var(--font-head); background: linear-gradient(transparent, rgba(0,0,0,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcal-t em { font-style: normal; color: #fcd34d; }
.dcal-help { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: var(--fs-small); }
@media (max-width: 640px) {
  .dcal-wd { font-size: .72rem; letter-spacing: 0; }
  .dcal-cell { min-height: 56px; border-radius: 10px; padding: 4px; }
  .dcal-d { font-size: .85rem; } .dcal-note { display: none; } .dcal-t { display: none; }
  .dcal-cell.has-video .dcal-d { top: 3px; left: 3px; padding: 2px 4px; font-size: .75rem; }
}
/* Televisión */
body.dtv-open { overflow: hidden; }
.dtv-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); background: radial-gradient(ellipse at center, rgba(10,25,50,.88), rgba(0,0,0,.95)); opacity: 0; transition: opacity .25s; }
.dtv-modal.on { opacity: 1; }
.dtv-wrap { width: min(1100px, 100%, calc((100vh - 190px) * 16 / 9 + 60px)); transform: scale(.94); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.dtv-modal.on .dtv-wrap { transform: none; }
.dtv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #fff; }
.dtv-info { display: grid; gap: 2px; min-width: 0; }
.dtv-info b { font: 700 clamp(1rem, 2vw, 1.25rem)/1.2 var(--font-head); }
.dtv-info small { opacity: .8; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtv-close { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: .7em 1.2em; border-radius: 999px; font: 700 1rem var(--font-head); color: #fff; background: linear-gradient(135deg, #ff4d6d, #e11d48); box-shadow: 0 10px 24px -8px rgba(225,29,72,.8); }
.dtv-close:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dtv-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dtv-set { background: linear-gradient(160deg, #2b2f36, #0e1013 60%, #1b1e23); border-radius: 26px; padding: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 0; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12); }
.dtv-bezel { border-radius: 14px; padding: 4px; background: #000; box-shadow: inset 0 0 0 2px #23262c; }
.dtv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; }
.dtv-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.07), transparent 40%); }
.dtv-screen video, .dtv-screen iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.dtv-chin { display: flex; align-items: center; justify-content: center; gap: 10px; height: clamp(30px, 4vw, 44px); position: relative; }
.dtv-brand { font: 800 .8rem var(--font-head); letter-spacing: .32em; color: #9aa3ad; }
.dtv-led { position: absolute; right: 22px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.dtv-stand { display: flex; justify-content: center; gap: 34%; height: 26px; }
.dtv-stand i { width: 10px; background: linear-gradient(#2b2f36, #111); border-radius: 0 0 6px 6px; transform: skewX(-18deg); }
.dtv-stand i:last-child { transform: skewX(18deg); }
@media (max-width: 640px) { .dtv-close span { display: none; } .dtv-close { width: 46px; height: 46px; justify-content: center; padding: 0; font-size: 1.2rem; } .dtv-stand { display: none; } }

/* v17c · Botón «En vivo»: titila solo cuando hay transmisión */
.nav-live:not(.is-off) .dot { animation: pulse 1.2s infinite; }
.nav-live:not(.is-off) { animation: liveGlow 2.4s ease-in-out infinite; }
.nav-live.is-off { background: linear-gradient(135deg, #f1f3f6, #e3e7ec); color: #4b5563; box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(0,0,0,.35); }
.nav-live.is-off .dot { animation: none !important; background: #9ca3af; }
.nav-live.is-off::after { display: none; }

/* Inicio: «Bienvenido a casa» más grande y el título un poco más chico */
main[data-home] .hero .hero-inner > .eyebrow { font-size: clamp(1.05rem, .8rem + 1.1vw, 1.9rem) !important; letter-spacing: .16em; margin-bottom: .45em; }
main[data-home] .hero .hero-inner > h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 5rem); }

/* Galería: encabezado más bajo para que se vea la pantalla con las fotos */
.hero.hero-sm.hero-gal .hero-inner { padding: calc(var(--header-h, 120px) + 8px) 0 18px !important; }
.hero.hero-sm.hero-gal .hero-inner h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem) !important; margin-bottom: .2em; }
.hero.hero-sm.hero-gal .hero-inner > p { margin: 0; }
.hero.hero-sm.hero-gal { min-height: 0 !important; }
.hero.hero-sm.hero-gal + .section { padding-top: 22px; }

/* v17d · «Gana insignias»: medalla 3D más grande */
.badge-chip { padding: 6px 18px 6px 6px; gap: 10px; border-radius: 999px; background: linear-gradient(180deg, #fff, #f4f7fb); box-shadow: 0 14px 30px -12px rgba(15,23,42,.55), 0 0 0 1px rgba(15,23,42,.08); }
.badge-chip .bc-medal { display: grid; place-items: center; width: 54px; height: 54px; animation: medalFloat 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.badge-chip .bc-tx { display: grid; text-align: left; line-height: 1.1; }
.badge-chip .bc-tx b { font: 800 1rem var(--font-head); color: #0f172a; }
.badge-chip .bc-tx small { font: 600 .82rem var(--font-body); color: #0a7fc0; }
.badge-chip:hover .bc-medal { animation-duration: 1.2s; }
@keyframes medalFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(5deg); } }
@media (max-width: 560px) { .badge-chip { padding: 6px; } .badge-chip .bc-tx { display: none; } .badge-chip b { display: inline; } }
@media (prefers-reduced-motion: reduce) { .badge-chip .bc-medal { animation: none; } }

/* Chat: menú desplegable para inscribirse */
.chat-sub { margin: 10px 12px 0; border-radius: 16px; background: linear-gradient(135deg, #eef7ff, #fff8e6); border: 1px solid #dbe8f5; overflow: hidden; }
.chat-sub summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.chat-sub summary::-webkit-details-marker { display: none; }
.chat-sub .cs-medal { flex: none; width: 34px; height: 34px; }
.chat-sub .cs-t { display: grid; flex: 1; line-height: 1.15; }
.chat-sub .cs-t b { font: 800 .98rem var(--font-head); color: #0f172a; }
.chat-sub .cs-t small { font-size: .82rem; color: #0a7fc0; font-weight: 600; }
.chat-sub .cs-arrow { transition: transform .25s; color: #0a7fc0; font-size: 1.1rem; }
.chat-sub[open] .cs-arrow { transform: rotate(180deg); }
.chat-sub .cs-body { padding: 0 14px 14px; font-size: .92rem; color: #334155; animation: csDown .3s ease; }
.chat-sub .cs-body p { margin: 0 0 8px; line-height: 1.5; }
.chat-sub ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; }
.chat-sub .cs-go { width: 100%; justify-content: center; }
.chat-sub .cs-note { display: block; text-align: center; margin-top: 6px; color: #64748b; font-size: .8rem !important; }
@keyframes csDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contacto: tarjeta grande de inscripción con la medalla 3D */
.sub-cta { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 52px); border-radius: 30px;
  background: radial-gradient(circle at 15% 30%, #fff7d6 0%, transparent 45%), linear-gradient(135deg, #0b3a5c, #0a7fc0); color: #fff; box-shadow: 0 30px 70px -35px rgba(10,60,100,.8); }
.sub-cta .sub-medal { width: clamp(130px, 18vw, 190px); animation: medalFloat 3.6s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)); }
.sub-cta .sub-medal svg { width: 100%; height: auto; }
.sub-cta .eyebrow { color: #fcd34d; }
.sub-cta h2 { color: #fff; font-size: var(--fs-h2); margin: .2em 0 .35em; }
.sub-cta p { color: rgba(255,255,255,.9); font-size: var(--fs-body); max-width: 640px; }
.sub-cta ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; color: #fff; }
.sub-cta .btn-primary { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; }
@media (max-width: 700px) { .sub-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } .sub-cta ul { justify-items: center; } }
.medal3d { width: 100%; height: 100%; display: block; overflow: visible; }
.badge-chip span.bc-medal, .badge-chip span.bc-tx { letter-spacing: normal; font-size: inherit; }
.badge-chip .bc-medal { width: 58px; height: 58px; }
.chat-sub .cs-medal { width: 40px; height: 40px; display: block; }
.chat-sub .cs-body { font-size: .86rem; max-height: 260px; overflow: auto; }
.chat-sub ul { font-size: .84rem; }
.chat-sub .cs-note { margin-bottom: 10px; }

/* =====================================================================
   v17e · Íconos e insignias en 3D, elegantes (sin aspecto de caricatura)
   ===================================================================== */
/* Recuadros de íconos: vidrio con relieve, brillo superior y grosor */
.ico.ico-svg, .m-icon.ico-svg {
  position: relative; isolation: isolate; width: 58px; height: 58px; border-radius: 18px; font-size: 28px; color: #fff;
  background: radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--tb) 85%, #fff) 0%, var(--ta) 55%, color-mix(in srgb, var(--ta) 70%, #000) 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -6px 12px rgba(0,0,0,.28), 0 6px 0 color-mix(in srgb, var(--ta) 55%, #000), 0 18px 30px -12px color-mix(in srgb, var(--ta) 80%, #000);
  transform: translateY(-3px);
}
.ico.ico-svg::before, .m-icon.ico-svg::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6%; height: 42%; border-radius: 14px 14px 40% 40%; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); z-index: -1; }
.ico.ico-svg .mi, .m-icon.ico-svg .mi { stroke-width: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.m-icon.ico-svg { width: 76px; height: 76px; border-radius: 22px; font-size: 36px; }
.feature-media.ico-svg { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -30px 60px rgba(0,0,0,.25); }
.feature-media .mi-big { stroke-width: 1.5; filter: drop-shadow(0 4px 2px rgba(0,0,0,.25)) drop-shadow(0 18px 24px rgba(0,0,0,.25)); }

/* Íconos de línea dentro de textos y botones */
.btn .mi, .dcal-ph .mi, .wp-comments h3 .mi, .sub-cta li .mi, .chat-sub li .mi { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }
.sub-cta li, .chat-sub li { display: flex; gap: 10px; align-items: flex-start; }
.sub-cta li .mi { color: #fcd34d; margin-top: .2em; } .chat-sub li .mi { color: #0a7fc0; margin-top: .15em; }
.dcal-ph { color: #93c5fd; font-size: 2rem; }

/* Insignias: medallones metálicos */
.badge3d { display: block; filter: drop-shadow(0 8px 10px rgba(15,23,42,.28)); }
.badge3d.off { filter: drop-shadow(0 6px 8px rgba(15,23,42,.15)); }
.bd-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bd { opacity: 1; filter: none; background: linear-gradient(180deg, #f8fafc, #eef2f6); border: 1px solid #e2e8f0; padding: 18px 12px; gap: 6px; }
.bd:not(.on) b, .bd:not(.on) small { opacity: .6; }
.bd.on { background: linear-gradient(180deg, #ffffff, #f5f7fb); border-color: #e9d9a8; box-shadow: 0 16px 30px -18px rgba(120,80,10,.55); }
.bd .bd-ic { font-size: inherit; display: block; transition: transform .3s; } .bd .bd-ic svg { width: 76px; height: 76px; } .bd.on:hover .bd-ic { transform: translateY(-3px) rotate(-4deg); }
.bd b { font: 700 .98rem var(--font-head); color: #0f172a; }
.badge-toast { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border: 1px solid rgba(253,224,138,.35); }
.badge-toast .bt-ic { font-size: inherit; } .badge-toast .bt-ic svg { width: 56px; height: 56px; } .badge-toast small { color: #fcd34d; } .badge-toast span { color: #cbd5e1; } .badge-toast b { color: #fff; }
.badge-chip .bc-tx small svg { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-left: 2px; }

/* v17f · Biblia: título en una fila, ajustes de lectura, temas y wallpaper */
.hero.bible-hero .hero-inner { display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 34px); text-align: left !important; flex-wrap: nowrap; }
.hero.bible-hero .hero-inner h1 { margin: 0 !important; white-space: nowrap; flex: none; }
.hero.bible-hero .hero-inner > p { margin: 0 !important; max-width: 640px !important; padding-left: clamp(14px, 2.4vw, 34px); border-left: 2px solid rgba(255,255,255,.35); }
@media (max-width: 700px) { .hero.bible-hero .hero-inner { gap: 12px; } .hero.bible-hero .hero-inner h1 { font-size: 1.9rem !important; } .hero.bible-hero .hero-inner > p { font-size: .92rem !important; padding-left: 12px; } }

.rd-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin: 0 auto 16px; padding: 12px 18px; border-radius: 18px; background: #fff; border: 1px solid #e5eaf0; box-shadow: 0 12px 30px -22px rgba(10,30,60,.5); max-width: 1100px; }
.rd-g { display: flex; align-items: center; gap: 8px; }
.rd-g > span { font: 700 .82rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 2px; }
.rd-g button { border: 1px solid #dfe5ec; background: linear-gradient(180deg, #fff, #f3f6f9); border-radius: 10px; min-width: 42px; height: 40px; padding: 0 10px; font: 700 1rem var(--font-head); cursor: pointer; color: var(--ink); }
.rd-g button:hover { border-color: var(--accent); }
.rd-g button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.rd-g b { min-width: 52px; text-align: center; font: 700 .95rem var(--font-head); color: var(--ink-2); }
.rd-sw { width: 40px; padding: 0 !important; border-radius: 50% !important; }
.rd-sw.on { outline: 3px solid var(--accent); outline-offset: 2px; background: inherit !important; }
.sw-papel { background: #fff !important; } .sw-sepia { background: #f3e5c8 !important; } .sw-noche { background: #111827 !important; } .sw-azul { background: #0b2f4a !important; }
.ff-clasica { font-family: "Cormorant Garamond", Georgia, serif !important; font-size: 1.05rem !important; } .ff-moderna { font-family: Inter, sans-serif !important; } .ff-elegante { font-family: "Playfair Display", Georgia, serif !important; font-style: italic; }
.rd-hint { flex-basis: 100%; text-align: center; margin: 0; color: var(--muted); font-size: var(--fs-small); display: flex; justify-content: center; gap: 8px; align-items: center; }
.rd-hint .mi { color: var(--accent); }
/* Tamaño de letra del lector */
.bbook .reader-text .rv { font-size: calc(1.28rem * var(--rfs, 1)); }
.bbook[data-rff="moderna"] .reader-text .rv { font-family: Inter, system-ui, sans-serif; font-size: calc(1.08rem * var(--rfs, 1)); line-height: 1.7; }
.bbook[data-rff="elegante"] .reader-text .rv { font-family: "Playfair Display", Georgia, serif; font-size: calc(1.14rem * var(--rfs, 1)); line-height: 1.7; }
/* Fondos del lector */
.bbook[data-rt="sepia"] .bpage, .bbook[data-rt="sepia"] .bpage-right { background: #f6ead0 !important; }
.bbook[data-rt="sepia"] .reader-text .rv { color: #3d2f1e !important; }
.bbook[data-rt="noche"] .bpage, .bbook[data-rt="noche"] .bpage-right { background: #0f1420 !important; }
.bbook[data-rt="noche"] .reader-text .rv, .bbook[data-rt="noche"] .bpage { color: #e5e7eb !important; }
.bbook[data-rt="noche"] .reader-text .rv sup { color: #fcd34d !important; }
.bbook[data-rt="noche"] .bp-head select, .bbook[data-rt="noche"] .pg-btn { background: #1f2937; color: #f9fafb; border-color: #374151; }
.bbook[data-rt="noche"] .bp-head { border-bottom-color: #2a3242 !important; }
.bbook[data-rt="azul"] .bpage, .bbook[data-rt="azul"] .bpage-right { background: linear-gradient(160deg, #0b2f4a, #071d30) !important; }
.bbook[data-rt="azul"] .reader-text .rv, .bbook[data-rt="azul"] .bpage { color: #e6f1fb !important; }
.bbook[data-rt="azul"] .reader-text .rv sup { color: #5cc8f2 !important; }
.bbook[data-rt="azul"] .bp-head select, .bbook[data-rt="azul"] .pg-btn { background: #0f3a5c; color: #fff; border-color: #1d5682; }
.bbook[data-rt="azul"] .bp-head { border-bottom-color: #1d4a6e !important; }
.bbook[data-rt="noche"] .bpage-right::before, .bbook[data-rt="azul"] .bpage-right::before { opacity: .15; }
/* Selección: barra con íconos */
.bsel-bar button .mi { width: 1.05em; height: 1.05em; vertical-align: -.15em; }
/* Temas y estados de ánimo: íconos grandes con relieve */
.mood-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mood-grid .mood { padding: 14px 16px; gap: 14px; border-radius: 20px; font-size: 1rem; }
.mood-grid .mood .mood-ic { position: relative; width: 58px; height: 58px; border-radius: 18px; font-size: 28px;
  background: radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--tb, #5cc8f2) 85%, #fff) 0%, var(--ta, #0a7fc0) 55%, color-mix(in srgb, var(--ta, #0a7fc0) 70%, #000) 100%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.55), inset 0 -6px 12px rgba(0,0,0,.25), 0 5px 0 color-mix(in srgb, var(--ta, #0a7fc0) 55%, #000), 0 14px 24px -12px var(--ta, #0a7fc0); }
.mood-grid .mood .mood-ic .mi, .mood-grid .mood .mood-ic svg { width: 30px; height: 30px; stroke-width: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.bible-panel.bp-search .bible-form { margin-bottom: 0; }
@media (max-width: 520px) { .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mood-grid .mood { flex-direction: column; text-align: center; padding: 14px 8px; } }
/* Creador de wallpaper */
.wpm-box { max-width: 900px; width: 100%; }
.wpm-body { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 18px; align-items: start; }
.wpm-prev { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b1220; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.wpm-prev[data-k="pc"] { width: 460px; aspect-ratio: 16 / 9; border-radius: 14px; }
.wpm-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpm-load { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-weight: 600; text-align: center; padding: 20px; }
.wpm-prev img[src] + .wpm-load, .wpm-prev:not(.busy) img[src] ~ .wpm-load { display: none; }
.wpm-prev.busy img { opacity: .4; }
.wpm-side { display: grid; gap: 12px; align-content: start; }
.wpm-side p { margin: 0; color: var(--muted); }
.wpm-kind { display: flex; gap: 8px; }
.wpm-kind button { flex: 1; border: 1px solid #dfe5ec; background: #f6f8fa; border-radius: 12px; padding: .7em; font: 700 .95rem var(--font-head); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.wpm-kind button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.wpm-side .btn { justify-content: center; }
@media (max-width: 760px) { .wpm-body { grid-template-columns: 1fr; justify-items: center; } .wpm-prev { width: min(260px, 70vw); } .wpm-prev[data-k="pc"] { width: 100%; } .wpm-side { width: 100%; } }
/* «Inscríbete y gana insignias»: botón más grande */
.badge-chip { padding: 8px 22px 8px 8px; gap: 12px; bottom: 22px; }
.badge-chip .bc-medal { width: 72px !important; height: 72px !important; }
.badge-chip .bc-tx b { font-size: 1.08rem; max-width: 190px; line-height: 1.15; }
.badge-chip .bc-tx small { font-size: .86rem; }
@media (max-width: 560px) { .badge-chip { padding: 6px; } .badge-chip .bc-medal { width: 58px !important; height: 58px !important; } }
/* Inicio: contador de visitas con banderas */
.vc { display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(16px, 2.4vh, 28px); padding: 10px 20px 10px 14px; border-radius: 999px; color: #fff;
  background: rgba(8,20,40,.45); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 34px -18px rgba(0,0,0,.6); flex-wrap: wrap; }
.vc-n { display: flex; align-items: center; gap: 10px; } .vc-n .mi { width: 26px; height: 26px; color: #5cc8f2; }
.vc-n span, .vc-txt { display: grid; line-height: 1.05; }
.vc-n b { font: 800 clamp(1.3rem, 1.9vw, 1.7rem) var(--font-head); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.vc small { font-size: .8rem !important; opacity: .82; font-weight: 600; letter-spacing: .02em; }
.vc-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); }
.vc-flag { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.vc-flag.in { animation: vcIn .5s ease both; }
.vc-cur img { display: block; width: 40px; height: 30px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.3); }
.vc-txt b { font: 700 1.05rem var(--font-head); }
.vc-stack { display: flex; align-items: center; }
.vc-stack img { width: 24px; height: 18px; object-fit: cover; border-radius: 4px; margin-left: -5px; box-shadow: 0 0 0 2px rgba(8,20,40,.8); }
.vc-stack img:first-child { margin-left: 0; }
.vc-stack i { font-style: normal; font: 700 .8rem var(--font-head); margin-left: 6px; opacity: .85; }
@keyframes vcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .vc { gap: 10px; padding: 8px 14px 8px 10px; border-radius: 18px; } .vc-stack { display: none; } .vc-flag { min-width: 0; } }
main[data-home] .hero .hero-inner > .vc { display: flex; width: fit-content; margin-inline: auto; }
@media (max-width: 640px) { main[data-home] .hero .hero-inner > .vc { margin-inline: 0; } }
@media (max-width: 640px) { .vc-sep { display: none; } .vc { row-gap: 6px; } }
.hero-slides .hs { transform-origin: var(--hx, 50%) var(--hy, 35%); }

/* v17g · Chat: menú desplegable vertical, legible */
.chat-menu { border-top: 1px solid var(--line); background: #fff; }
.chat-menu > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; cursor: pointer; font: 700 .95rem var(--font-head); color: #0f172a; }
.chat-menu > summary::-webkit-details-marker { display: none; }
.chat-menu > summary span { display: inline-flex; align-items: center; gap: 8px; } .chat-menu > summary .mi { color: var(--accent); width: 1.1em; height: 1.1em; }
.chat-menu > summary i { font-style: normal; color: var(--accent); transition: transform .25s; } .chat-menu[open] > summary i { transform: rotate(180deg); }
.chat-menu .chat-quick { display: grid !important; grid-template-columns: 1fr; gap: 6px; padding: 0 12px 12px; border-top: 0; overflow: visible; max-height: 260px; overflow-y: auto; }
.chat-menu .chat-quick button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; font: 600 .95rem var(--font-body) !important; white-space: normal; background: #f6f8fb; border: 1px solid #e3e8ef; color: #0f172a; }
.chat-menu .chat-quick button .mi { width: 1.2em; height: 1.2em; color: var(--accent); flex: none; }
.chat-menu .chat-quick button[data-q="bible"] { background: linear-gradient(135deg, #1595d9, var(--accent-deep)); color: #fff; border-color: transparent; }
.chat-menu .chat-quick button[data-q="bible"] .mi { color: #fff; }
.chat-menu .chat-quick button:hover { border-color: var(--accent); }
/* Devocional: lectura de la semana */
.dv-head { text-align: center; margin-bottom: 18px; } .dv-head h2 { font-size: var(--fs-h2); margin-bottom: .2em; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dv .card-body { display: grid; gap: 8px; }
.dv h3 { font-size: 1.4rem; margin: 0; }
.dv-lider { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-small); } .dv-lider .mi { color: var(--accent); }
.dv-sum { margin: 0; line-height: 1.6; }
.dv-key { margin: 4px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: #f3f8fc; border-radius: 0 12px 12px 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15rem; line-height: 1.45; color: #1e293b; display: grid; gap: 4px; }
.dv-ref { font: 700 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dv.featured { grid-column: 1 / -1; }
.dv.featured .dv-key { background: rgba(255,255,255,.08); color: #e2e8f0; border-left-color: #5cc8f2; }
.dv.featured .dv-lider { color: rgba(255,255,255,.75); }
.dv .link-arrow { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; } .dv .link-arrow .mi { width: 1.1em; height: 1.1em; }
.dv-next { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #e5eaf0; }
.dv-next h3 { margin: 0 0 10px; font-size: 1.15rem; }
.dv-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dv-next li { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed #e5eaf0; }
.dv-next li:last-child { border-bottom: 0; } .dv-next li small { color: var(--muted); }
@media (max-width: 560px) { .dv-next li { grid-template-columns: 1fr; gap: 2px; } }
/* Grabación del devocional */
.devz-rec.on { animation: liveGlow 1.6s ease-in-out infinite; }
.rec-pill { position: fixed; top: calc(var(--header-h, 90px) + 12px); left: 50%; transform: translateX(-50%); z-index: 9500; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: #111827; color: #fff; font: 600 .95rem var(--font-body); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.rec-pill i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: pulse 1.2s infinite; }
.rec-pill b { color: #fca5a5; }
.rec-box { max-width: 760px; width: 100%; }
.rec-body { display: grid; gap: 14px; padding: 16px; }
.rec-body video { width: 100%; border-radius: 14px; background: #000; max-height: 50vh; }
.rec-acts { display: grid; gap: 12px; }
.rec-up { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #f6f8fa; border: 1px solid #e5eaf0; }
.rec-up p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.rec-up input { padding: .7em .9em; border-radius: 10px; border: 1px solid #d5dce4; font: inherit; }
/* Perfil del inscrito */
.pf { display: grid; gap: 10px; margin-bottom: 16px; }
.pf-tabs { display: inline-flex; background: #eef2f7; border-radius: 999px; padding: 4px; justify-self: center; }
.pf-tabs button { border: 0; background: none; padding: .55em 1.2em; border-radius: 999px; font: 700 .95rem var(--font-head); cursor: pointer; color: #334155; }
.pf-tabs button.on { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pf-why { margin: 0; text-align: center; color: var(--muted); }
.pf-google { display: grid; justify-items: center; gap: 8px; } .pf-or { font-size: var(--fs-small); color: var(--muted); }
.pf-form { display: grid; gap: 10px; }
.pf-form input:not(.hp) { padding: .8em 1em; border-radius: 12px; border: 1px solid #d6dde6; font: inherit; }
.pf-form input[hidden] { display: none; }
.pf-note { margin: 0; font-size: .85rem !important; color: var(--muted); text-align: center; }
.pf-sync { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 14px; color: #047857; font-weight: 600; } .pf-sync .mi { width: 1.2em; height: 1.2em; }
.pf-out { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.hi-toast .bt-ic svg { width: 48px; height: 48px; }
/* Biblia: marcatextos y Mis pasajes */
.reader-text .rv[data-hl="amarillo"] { background: linear-gradient(transparent 12%, rgba(250,204,21,.55) 12%, rgba(250,204,21,.55) 92%, transparent 92%); }
.reader-text .rv[data-hl="verde"] { background: linear-gradient(transparent 12%, rgba(74,222,128,.45) 12%, rgba(74,222,128,.45) 92%, transparent 92%); }
.reader-text .rv[data-hl="azul"] { background: linear-gradient(transparent 12%, rgba(96,165,250,.45) 12%, rgba(96,165,250,.45) 92%, transparent 92%); }
.reader-text .rv[data-hl="rosa"] { background: linear-gradient(transparent 12%, rgba(244,114,182,.42) 12%, rgba(244,114,182,.42) 92%, transparent 92%); }
.reader-text .rv[data-hl] { border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-pick { display: inline-flex; gap: 6px; align-items: center; padding: 0 6px; }
.hl-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hl-amarillo { background: #facc15; } .hl-verde { background: #4ade80; } .hl-azul { background: #60a5fa; } .hl-rosa { background: #f472b6; }
.hl-none { background: #334155; color: #fff; font-size: .7rem; line-height: 1; }
.rd-mine { display: inline-flex; align-items: center; gap: 8px; } .rd-mine b { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .55em; font-size: .85rem; } .rd-mine .mi { width: 1.1em; height: 1.1em; color: #b45309; }
.bsel-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 9600; background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); font-weight: 600; animation: vcIn .3s ease; }
.mine-box { max-width: 720px; width: 100%; }
.mine-list { display: grid; gap: 10px; padding: 16px; max-height: 70vh; overflow: auto; }
.mine-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e5eaf0; }
.mine-item b { font-family: var(--font-head); color: var(--accent); } .mine-item p { margin: 4px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.1rem; line-height: 1.4; }
.mine-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .mine-acts .btn { padding: .55em .8em; }
@media (max-width: 560px) { .mine-item { grid-template-columns: 1fr; } .mine-acts { justify-content: flex-start; } .hl-dot { width: 22px; height: 22px; } }
.rd-g a.rd-mine { border: 1px solid #dfe5ec; background: linear-gradient(180deg, #fff, #f3f6f9); border-radius: 10px; height: 40px; padding: 0 12px; font: 700 1rem var(--font-head); color: var(--ink); text-decoration: none; }
.rd-g a.rd-mine:hover { border-color: var(--accent); }
/* Biblia audible */
.rd-audio { gap: 6px; }
.rd-audio .rd-play { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; color: #fff; font: 700 .95rem var(--font-head); background: linear-gradient(135deg, #1590d8, #0b4f86); box-shadow: 0 6px 16px rgba(11,79,134,.28); cursor: pointer; }
.rd-audio .rd-play.on { background: linear-gradient(135deg, #e3345b, #a3123a); }
.rd-audio .rd-play svg { width: 18px; height: 18px; }
.rd-audio .rd-stop { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dfe5ec; background: #fff; font-size: .9rem; cursor: pointer; }
.rd-audio select { height: 40px; border-radius: 10px; border: 1px solid #dfe5ec; padding: 0 8px; font: 600 .9rem var(--font-body, inherit); background: #fff; }
.reader-text .rv.speaking { background: linear-gradient(90deg, rgba(21,144,216,.18), rgba(21,144,216,.06)); box-shadow: inset 3px 0 0 #1590d8; border-radius: 6px; transition: background .3s; }
/* Devocional: lectura de la semana ampliada */
.dv .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.dv .eyebrow svg { width: 15px; height: 15px; }
.dv-lbl { margin: 10px 0 0; font: 700 .72rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #7b8794; }
.dv.featured .dv-lbl { color: #9fc7e6; }
.dv h3 { margin-top: 4px; }
.dv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dv-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #d7e1ea; background: #fff; color: #0b2f4d; font: 700 .9rem var(--font-head); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dv-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,47,77,.12); }
.dv-btn svg { width: 17px; height: 17px; }
.dv-btn.pri { border: 0; color: #fff; background: linear-gradient(135deg, #1590d8, #0b4f86); }
.dv.featured .dv-btn:not(.pri) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.dv-text { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #f5f8fb; border: 1px solid #e3eaf1; max-height: 380px; overflow: auto; font: 1.02rem/1.75 Georgia, "Times New Roman", serif; color: #1d2733; }
.dv.featured .dv-text { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #eef3f8; }
.dv-text h4 { margin: 4px 0 6px; font: 700 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #1590d8; }
.dv-text sup { font: 700 .7em var(--font-head); color: #1590d8; margin-right: 3px; }
.dvv { border-radius: 4px; transition: background .2s; }
.dvv[data-hl="amarillo"] { background: rgba(255, 214, 10, .45); } .dvv[data-hl="verde"] { background: rgba(52, 199, 89, .35); }
.dvv[data-hl="azul"] { background: rgba(10, 132, 255, .28); } .dvv[data-hl="rosa"] { background: rgba(255, 55, 135, .28); }
.dv.featured .dvv[data-hl] { color: #0b1620; }
dialog.dvs { width: min(1180px, 96vw); max-width: none; height: min(92vh, 980px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog.dvs:not([open]) { display: none; }
dialog.dvs::backdrop { background: rgba(5,16,28,.7); backdrop-filter: blur(4px); }
.dvs-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; color: #fff; background: radial-gradient(600px 200px at 90% 0, rgba(21,144,216,.45), transparent), linear-gradient(135deg, #0b1620, #0b2f4d); }
.dvs-top .eyebrow { color: #7cc4f2; }
.dvs-top h2 { margin: 6px 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.dvs-top h2 small { display: block; font: 700 .7rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #9fc7e6; margin-bottom: 4px; }
.dvs-top .dv-lider { color: #d6e4ef; margin: 0; }
.dvs-tools { display: flex; gap: 6px; flex-shrink: 0; }
.dvs-tools button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: 700 .95rem var(--font-head); cursor: pointer; }
.dvs-tools .dvs-x { background: #fff; color: #0b1620; }
.dvs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.6fr 1fr; }
.dvs-read { padding: 18px 24px; overflow: auto; }
.dvs-hint { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; color: #5b6b7b; font-size: .92rem; }
.dvs-hint svg { width: 18px; height: 18px; color: #1590d8; flex-shrink: 0; }
.dvs-hl { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 .85rem var(--font-head); color: #33475b; }
.dvs-hl .hl-dot.on { outline: 3px solid #0b4f86; outline-offset: 2px; }
.dvs-text { max-height: none; background: #fbfcfd; font-size: 1.12rem; }
.dvs-text .dvv { cursor: pointer; }
.dvs-text .dvv:hover { background: rgba(21,144,216,.1); }
.dvs-notes { padding: 18px 22px; background: #f3f7fb; border-left: 1px solid #e3eaf1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.dvs-notes h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; }
.dvs-notes h3 svg { width: 20px; height: 20px; color: #1590d8; }
.dvs-notes textarea { width: 100%; border-radius: 14px; border: 1px solid #d3dee8; padding: 12px 14px; font: 1rem/1.6 inherit; resize: vertical; min-height: 170px; background: #fff repeating-linear-gradient(transparent, transparent 31px, #eef3f8 32px); }
.dvs-mail { display: flex; flex-direction: column; gap: 6px; font: 700 .85rem var(--font-head); color: #33475b; }
.dvs-mail input { height: 44px; border-radius: 12px; border: 1px solid #d3dee8; padding: 0 12px; font: 1rem inherit; }
.dvs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dvs-btns .btn, .dvs-cm { min-height: 42px; padding: 0 14px; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.dvs-btns svg, .dvs-cm svg { width: 17px; height: 17px; }
.dvs-cm { margin-top: auto; justify-content: center; border: 1px dashed #1590d8 !important; color: #0b4f86 !important; background: #fff !important; }
@media (max-width: 820px) { .dvs-body { grid-template-columns: 1fr; overflow: auto; } .dvs-read, .dvs-notes { overflow: visible; } dialog.dvs { height: 96vh; } .dvs-top { padding: 16px; } }
.dvc-form { margin: 28px 0 8px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #ffffff, #f4f8fc); border: 1px solid #e1e9f1; box-shadow: 0 14px 40px rgba(11,47,77,.08); }
.dvc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dvc-head h3 { margin: 0; } .dvc-head p { margin: 2px 0 0; }
.dvc-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1590d8, #0b4f86); box-shadow: 0 8px 18px rgba(11,79,134,.3); }
.dvc-ic svg { width: 24px; height: 24px; }
.dvc-tipo { display: flex; gap: 10px; margin: 6px 0 12px; }
.dvc-tipo label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid #d3dee8; background: #fff; font: 700 .9rem var(--font-head); cursor: pointer; }
.dvc-tipo label:has(input:checked) { border-color: #1590d8; background: #e8f4fc; color: #0b4f86; }
.dvc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dvc-grid label { display: flex; flex-direction: column; gap: 6px; font: 700 .85rem var(--font-head); color: #33475b; }
.dvc-grid .full { grid-column: 1 / -1; }
.dvc-grid input, .dvc-grid textarea { border-radius: 12px; border: 1px solid #d3dee8; padding: 11px 12px; font: 1rem inherit; background: #fff; }
.dvc-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.dvc-foot .btn { display: inline-flex; gap: 8px; align-items: center; } .dvc-foot svg { width: 18px; height: 18px; }
.dvc-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .dvc-grid { grid-template-columns: 1fr; } }
.dvs-notes textarea, .dvs-mail input, .dvc-grid input, .dvc-grid textarea { font-family: var(--font-body, system-ui, sans-serif); font-size: 1rem; line-height: 1.6; }
/* ===== Calendario de eventos ===== */
.ev-wrap { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .ev-wrap { grid-template-columns: 1fr; } }
.evc { background: #fff; border-radius: 24px; padding: 18px; border: 1px solid #e3eaf1; box-shadow: 0 18px 50px rgba(11,47,77,.08); }
.evc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.evc-top h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.evc-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d7e1ea; background: #fff; font-size: 1.4rem; cursor: pointer; color: #0b2f4d; }
.evc-nav:hover { background: #0b4f86; color: #fff; }
.evc-week, .evc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.evc-week span { text-align: center; font: 700 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #7b8794; padding: 6px 0; }
.evc-cell { position: relative; min-height: 96px; border-radius: 14px; background: #f5f8fb; border: 1px solid #edf1f5; padding: 6px; text-align: left; overflow: hidden; font: inherit; color: inherit; }
.evc-cell.empty { background: transparent; border: 0; }
.evc-cell.past:not(.has-ev) { opacity: .55; }
.evc-cell.today { border: 2px solid #1590d8; }
.evc-d { position: relative; z-index: 2; font: 800 .9rem var(--font-head); color: #33475b; }
.evc-cell.has-ev { cursor: pointer; padding: 0; border: 0; display: flex; flex-direction: column; background: #0b1620; color: #fff; transition: transform .18s, box-shadow .18s; }
.evc-cell.has-ev:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 26px rgba(11,47,77,.3); z-index: 3; }
.evc-cell.has-ev .evc-d { position: absolute; top: 6px; left: 8px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.evc-banner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 7px; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,16,28,.88) 100%), var(--evimg, linear-gradient(135deg, #1590d8 0%, #6d28d9 55%, #e3345b 100%)); background-size: cover; background-position: center; }
.evc-bt { font: 700 .74rem/1.2 var(--font-head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.evc-h { font: 600 .66rem var(--font-head); opacity: .85; margin-top: 2px; }
.evc-more { position: absolute; top: 6px; right: 6px; z-index: 2; font: 700 .65rem var(--font-head); font-style: normal; background: #fff; color: #0b2f4d; border-radius: 999px; padding: 2px 6px; }
@media (max-width: 560px) { .evc { padding: 10px; border-radius: 18px; } .evc-cell { min-height: 64px; border-radius: 10px; } .evc-week, .evc-grid { gap: 4px; } .evc-bt { -webkit-line-clamp: 2; font-size: .62rem; } .evc-h { display: none; } }
.evc-up { background: linear-gradient(180deg, #0b1620, #0b2f4d); color: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 18px 50px rgba(11,47,77,.22); }
.evc-up h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #fff; }
.evc-up h3 svg { width: 22px; height: 22px; color: #7cc4f2; }
.evc-list { display: flex; flex-direction: column; gap: 10px; }
.evc-item { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font: inherit; transition: background .2s; }
.evc-item:hover { background: rgba(255,255,255,.12); }
.evc-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; display: grid; place-content: center; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)), var(--evimg, linear-gradient(135deg, #1590d8, #6d28d9)); background-size: cover; background-position: center; }
.evc-thumb b { font: 800 1.4rem/1 var(--font-head); } .evc-thumb small { font: 700 .7rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.evc-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evc-info b { font: 700 .98rem/1.25 var(--font-head); }
.evc-info small { display: flex; align-items: center; gap: 5px; color: #b9cbdb; font-size: .82rem; }
.evc-info small svg { width: 14px; height: 14px; }
.evc-info em { align-self: flex-start; font: 700 .68rem var(--font-head); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #0b1620; background: #7cc4f2; border-radius: 999px; padding: 2px 8px; }
.ev-wait { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 18px; border-radius: 20px; background: radial-gradient(400px 200px at 50% 0, rgba(124,196,242,.35), transparent), linear-gradient(135deg, #102a43, #2a1050); border: 1px solid rgba(255,255,255,.14); }
.ev-wait-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(124,196,242,.25), transparent 30%, rgba(227,52,91,.22), transparent 60%); animation: evSpin 9s linear infinite; }
.ev-wait > *:not(.ev-wait-glow) { position: relative; }
.ev-wait-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #1590d8, #6d28d9); box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 14px 30px rgba(21,144,216,.45); animation: evPulse 2.4s ease-in-out infinite; }
.ev-wait-ic svg { width: 30px; height: 30px; color: #fff; }
.ev-wait b { font: 800 1.25rem var(--font-head); letter-spacing: .01em; }
.ev-wait small { color: #c9d8e6; max-width: 26ch; }
@keyframes evSpin { to { transform: rotate(360deg); } }
@keyframes evPulse { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .ev-wait-glow, .ev-wait-ic { animation: none; } }
/* modal del evento */
dialog.evm { width: min(760px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 24px; overflow: auto; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
dialog.evm::backdrop { background: rgba(5,16,28,.72); backdrop-filter: blur(4px); }
.evm-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1rem; cursor: pointer; }
.evm-banner { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(5,16,28,.92) 100%), var(--evimg, linear-gradient(135deg, #1590d8 0%, #6d28d9 55%, #e3345b 100%)); background-size: cover; background-position: center; overflow: hidden; }
.evm-glow { position: absolute; inset: 0; background: radial-gradient(500px 200px at 80% 0, rgba(255,255,255,.18), transparent); pointer-events: none; }
.evm-banner em { position: relative; align-self: flex-start; font: 700 .72rem var(--font-head); font-style: normal; letter-spacing: .1em; text-transform: uppercase; background: #7cc4f2; color: #0b1620; border-radius: 999px; padding: 4px 10px; }
.evm-banner h2 { position: relative; margin: 8px 0 6px; color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.evm-banner p { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; color: #dfe9f2; }
.evm-banner svg, .evm-row svg { width: 18px; height: 18px; flex-shrink: 0; }
.evm-body { padding: 20px 22px 24px; }
.evm-row { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; color: #33475b; font-weight: 600; }
.evm-row svg { color: #1590d8; }
.evm-desc { white-space: pre-line; color: #33475b; line-height: 1.7; }
.evm-body .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.evm-body .btn { display: inline-flex; align-items: center; gap: 6px; } .evm-body .btn svg { width: 17px; height: 17px; }
.evm-ph { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; } .evm-ph svg { width: 20px; height: 20px; color: #1590d8; }
.evm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.evm-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.evm-zoom { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; }
.evm-zoom img { max-width: 94vw; max-height: 92vh; border-radius: 10px; }
/* fotos de eventos */
.evp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.evp-album { text-align: left; border: 0; background: #fff; border-radius: 20px; padding: 12px; cursor: pointer; box-shadow: 0 12px 30px rgba(11,47,77,.1); font: inherit; transition: transform .2s; }
.evp-album:hover { transform: translateY(-3px); }
.evp-stack { position: relative; display: block; height: 170px; }
.evp-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.18); transform: rotate(calc((var(--i) - 1) * 3deg)) translateY(calc(var(--i) * -2px)); }
.evp-stack img:first-child { z-index: 3; transform: none; }
.evp-cap { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; } .evp-cap b { font: 700 1rem var(--font-head); } .evp-cap small { color: #6b7b8c; }
.evp-empty { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 26px; border-radius: 18px; border: 2px dashed #cfdbe6; color: #6b7b8c; font-weight: 600; }
.evp-empty svg { width: 24px; height: 24px; }
.evc { position: relative; }
.evc-empty { position: absolute; inset: 64px 18px 18px; display: grid; place-items: center; background: rgba(255,255,255,.55); backdrop-filter: blur(3px); border-radius: 16px; }
.evc-empty .ev-wait { width: min(420px, 92%); color: #fff; box-shadow: 0 24px 60px rgba(16,42,67,.35); }
.ev-wrap > .evc:only-child { grid-column: 1 / -1; }
.rec-keep { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: #5b6b7b; margin: 4px 0; } .rec-keep input { margin-top: 3px; }
.wp-promo { display: block; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,22,40,.28); transition: transform .25s, box-shadow .25s; }
.wp-promo:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(11,22,40,.35); }
.wp-promo img { display: block; width: 100%; height: auto; }
.prelive .pl-home { justify-content: center; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.pl-home .btn svg { width: 18px; height: 18px; }
/* Insignias por niveles */
.lv-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin: 4px 0 14px; border-radius: 18px; color: #fff; background: radial-gradient(400px 140px at 90% 0, rgba(124,196,242,.35), transparent), linear-gradient(135deg, #0b2f4d, #2a1050); }
.lv-head > div { flex: 1; min-width: 0; }
.lv-head small { font: 700 .72rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #9fc7e6; }
.lv-head b { display: block; font: 800 1.35rem var(--font-head); margin: 2px 0 8px; }
.lv-head span { font-size: .82rem; color: #d6e4ef; }
.lv-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin-bottom: 6px; }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fde68a, #f59e0b); box-shadow: 0 0 12px rgba(245,158,11,.7); transition: width .6s; }
.lv-trail { display: flex; justify-content: space-between; gap: 6px; margin: 16px 0 6px; padding: 10px; border-radius: 16px; background: #f3f7fb; }
.lvt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; opacity: .55; }
.lvt.done, .lvt.now { opacity: 1; }
.lvt em { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 .9rem var(--font-head); font-style: normal; color: #94a3b8; border: 2px dashed #cbd5e1; }
.lvt small { font: 700 .66rem var(--font-head); color: #33475b; line-height: 1.15; }
.lvt.now small { color: #0b4f86; }
.lv-next { text-align: center; font-size: .88rem; color: #5b6b7b; margin: 6px 0 0; }
.badge3d { overflow: visible; filter: drop-shadow(0 6px 10px rgba(11,22,40,.25)); }
.badge3d.off { filter: grayscale(.3) drop-shadow(0 3px 6px rgba(11,22,40,.15)); opacity: .75; }
.bd.on .badge3d { animation: bdShine 3.6s ease-in-out infinite; }
@keyframes bdShine { 50% { transform: translateY(-3px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .bd.on .badge3d { animation: none; } }
.badge-toast.lvl { background: linear-gradient(135deg, #2a1050, #0b2f4d); color: #fff; }
.badge-toast.lvl small { color: #fde68a; }
.wk-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.wk-eyebrow svg { width: 16px; height: 16px; }
.wk-next { margin: 14px 0 0; text-align: center; color: inherit; opacity: .9; }
.wk-next a { font-weight: 700; }
.wk-fb { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border-radius: 22px; text-decoration: none; color: #fff; background: radial-gradient(500px 200px at 50% 0, rgba(24,119,242,.45), transparent), linear-gradient(135deg, #0b1620, #0b2f4d); }
.wk-fb b { font: 800 1.3rem var(--font-head); } .wk-fb span:last-child { color: #c9d8e6; }
.wk-fb .dot { width: 10px; height: 10px; border-radius: 50%; background: #1877f2; box-shadow: 0 0 0 6px rgba(24,119,242,.25); }
/* ===== Biblia en celular: primero el texto, sin el marco de cuero, herramientas compactas ===== */
@media (max-width: 700px) {
  .bible-book-sec { padding-top: 8px; }
  .bible-book-sec .container { padding-left: 10px; padding-right: 10px; }
  .rd-tools { padding: 10px 12px; gap: 8px 10px; border-radius: 16px; }
  .rd-tools .rd-g { gap: 6px; }
  .rd-tools .rd-g > b, .rd-tools .rd-g > span:first-child { font-size: .66rem; letter-spacing: .1em; }
  .rd-tools button, .rd-tools select, .rd-tools a.rd-mine { height: 36px !important; font-size: .85rem !important; }
  .rd-tools .rd-sw { width: 34px !important; }
  .rd-hint { display: none; }
  .bbook { padding: 0; background: none; box-shadow: none; border-radius: 0; perspective: none; }
  .bbook-pages { display: flex; flex-direction: column; gap: 12px; box-shadow: none; transform-style: flat; }
  .bpage { border-radius: 18px !important; box-shadow: 0 10px 30px -18px rgba(40,25,10,.45), 0 0 0 1px #eadfca; }
  .bpage-right { order: -1; height: calc(100svh - 120px); min-height: 520px; padding: 0 14px 10px !important; border-top: 0 !important; }
  .bp-head { position: sticky; top: 0; z-index: 3; margin: 0 -14px; padding: 10px 14px; background: var(--paper); border-radius: 18px 18px 0 0; gap: 6px; }
  .bp-head .bp-ic { width: 36px; height: 36px; }
  .bp-head select { padding: .5em .55em; font-size: .92rem; }
  .bp-head select[name=book] { flex: 1 1 120px; }
  .bpage .reader-text { padding: 6px 2px 8px 0; font-size: 1.08em; line-height: 1.75; }
  .bpage .reader-text h3 { font-size: 1.6rem; margin: .3em 0 .4em; }
  .bpage-left { order: 2; height: auto !important; padding: 12px 16px 16px !important; }
  .bpage-left .bscene { display: none; }
  .bquote { padding: 4px 2px 0; justify-content: flex-start; }
  .bquote blockquote { font-size: 1.25rem; }
  .bbook-cover { display: none; }
}
@media (max-width: 700px) {
  .mood-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .mood-grid .mood { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 12px 8px !important; font-size: .88rem !important; min-height: 0 !important; }
  .mood-grid .mood .mood-ic, .mood-grid .mood [class*="mood-i"] { width: 46px !important; height: 46px !important; }
  .mood-grid .mood svg { width: 24px; height: 24px; }
}
/* Lectura de esta semana: lista elegante con «Ver más» */
.dvx-list { display: flex; flex-direction: column; gap: 10px; max-width: 920px; margin: 0 auto; }
.dvx { border-radius: 20px; background: #fff; border: 1px solid #e3eaf1; box-shadow: 0 8px 26px -18px rgba(11,47,77,.35); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.dvx.open { border-color: #b9d8ef; box-shadow: 0 18px 40px -22px rgba(11,79,134,.45); }
.dvx.past:not(.open) { opacity: .78; }
.dvx-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dvx-date { width: 62px; height: 62px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #eef5fb, #dfeaf5); color: #0b2f4d; }
.dvx-date b { font: 800 1.6rem/1 var(--font-head); }
.dvx-date small { font: 700 .7rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #5b6b7b; margin-top: 2px; }
.dvx-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dvx-main small { font: 700 .74rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #7b8794; }
.dvx-main small em { font-style: normal; color: #e3345b; }
.dvx-main strong { font: 800 1.12rem/1.25 var(--font-head); color: #0d1b2e; }
.dvx-lbl { font: 600 .86rem var(--font-body, inherit); color: #7b8794; }
.dvx-lider { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: #4b5b6c; }
.dvx-lider svg { width: 15px; height: 15px; color: #1590d8; }
.dvx-more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #eef5fb; color: #0b4f86; font: 700 .85rem var(--font-head); white-space: nowrap; }
.dvx-more i { font-style: normal; transition: transform .25s; display: inline-block; }
.dvx.open .dvx-more i { transform: rotate(180deg); }
.dvx-body { padding: 0 20px 18px 96px; }
.dvx-body .dv-sum { margin-top: 0; }
.dvx.today { border: 0; background: linear-gradient(135deg, #0b1620, #0b2f4d); color: #fff; box-shadow: 0 20px 44px -22px rgba(11,22,40,.7); }
.dvx.today .dvx-date { background: linear-gradient(160deg, #fde68a, #f59e0b); color: #2a1a00; }
.dvx.today .dvx-date small { color: #5a3a00; }
.dvx.today .dvx-main strong { color: #fff; }
.dvx.today .dvx-main small, .dvx.today .dvx-lbl { color: #9fc7e6; }
.dvx.today .dvx-lider { color: #d6e4ef; }
.dvx.today .dvx-more { background: rgba(255,255,255,.12); color: #fff; }
.dvx.today .dv-sum { color: #d6e4ef; }
.dvx.today .dv-key { background: rgba(255,255,255,.06); color: #eef3f8; }
.dvx.today .dv-btn:not(.pri) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.dvx.today .dv-text { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #eef3f8; }
@media (max-width: 600px) {
  .dvx-row { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; }
  .dvx-more { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .dvx-date { width: 54px; height: 54px; }
  .dvx-body { padding: 0 14px 16px; }
}
.wk-fbbox { display: flex; justify-content: center; margin: 0 auto 14px; max-width: 520px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 44px -24px rgba(0,0,0,.6); }
.wk-fbbox iframe { display: block; }
.wk-fbbox + .wk-fb { padding: 16px 20px; flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.wk-fbbox + .wk-fb b { font-size: 1rem; }
/* Wallpapers por tema + contador */
.wp-total{margin:0;font:600 .95rem Outfit,sans-serif;color:#4b5b6c}.wp-total b{color:#083e4a;font-size:1.15rem}
.wp-temas{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;margin-bottom:.4rem;scrollbar-width:none}
.wp-temas::-webkit-scrollbar{display:none}
.wp-temas button{flex:0 0 auto;border:1px solid #d6e3e6;background:#fff;color:#083e4a;border-radius:999px;padding:.55rem 1rem;font:600 .92rem/1 Outfit,sans-serif;cursor:pointer;display:inline-flex;gap:6px;align-items:center;transition:all .2s}
.wp-temas button small{background:#e7f0f1;border-radius:999px;padding:2px 7px;font-size:.75rem;color:#4b5b6c}
.wp-temas button:hover{border-color:#083e4a}
.wp-temas button.on{background:linear-gradient(135deg,#083e4a,#0b5d6e);color:#fff;border-color:transparent;box-shadow:0 8px 20px -10px rgba(8,62,74,.7)}
.wp-temas button.on small{background:rgba(255,255,255,.2);color:#fff}
.wp-gal-cap .wp-n{font-style:normal;margin-left:.6rem;padding:3px 10px;border-radius:999px;background:#fff6dc;color:#7a5500;font-size:.85rem}
.rec-pill.armed { background: #1f2937; }
.rec-pill.armed i { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.rec-pill.armed b { color: #fcd34d; }
/* Prédica del domingo: tarjeta con el template */
.wk-card{display:block;max-width:960px;margin:0 auto;border-radius:24px;overflow:hidden;background:#111827;color:#fff;text-decoration:none;box-shadow:0 30px 60px -30px rgba(0,0,0,.8);transition:transform .25s,box-shadow .25s}
.wk-card:hover{transform:translateY(-3px);box-shadow:0 36px 70px -30px rgba(0,0,0,.9)}
.wk-cover{position:relative;display:block;aspect-ratio:16/9;background:#f59e0b}
.wk-cover img{width:100%;height:100%;object-fit:cover;display:block}
.wk-play{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;background:rgba(10,20,40,.72);backdrop-filter:blur(6px);display:grid;place-items:center;box-shadow:0 0 0 10px rgba(255,255,255,.18);transition:transform .25s}
.wk-card:hover .wk-play{transform:scale(1.08)}
.wk-play svg{width:40px;height:40px;fill:#fff;margin-left:6px}
.wk-dur{position:absolute;right:16px;bottom:14px;background:rgba(0,0,0,.72);padding:5px 11px;border-radius:8px;font:700 .9rem Outfit,sans-serif}
.wk-meta{display:flex;align-items:center;gap:16px;padding:18px 22px;flex-wrap:wrap}
.wk-thumb{width:96px;height:54px;object-fit:cover;border-radius:10px;flex:0 0 auto}
.wk-tx{display:flex;flex-direction:column;gap:3px;flex:1;min-width:180px}
.wk-tx small{color:#9fc7e6;font:700 .8rem Outfit,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.wk-tx b{font:800 clamp(1.25rem,2.6vw,1.7rem)/1.2 Outfit,sans-serif}
.wk-go{white-space:nowrap}.wk-go svg{width:18px;height:18px;fill:currentColor;vertical-align:-3px}
@media(max-width:600px){.wk-play{width:68px;height:68px;margin:-34px 0 0 -34px}.wk-play svg{width:30px;height:30px}.wk-go{width:100%;justify-content:center}.wk-meta{padding:14px 16px}}
/* Wallpaper de la semana: contador grande */
.wp-count{display:inline-flex;align-items:center;gap:14px;margin-top:1.1rem;padding:12px 20px 12px 12px;border-radius:20px;background:linear-gradient(135deg,#fff8e1,#fde7b0);box-shadow:0 12px 26px -18px rgba(120,80,0,.7)}
.wp-count-ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;font-size:1.5rem;font-weight:800}
.wp-count>span:last-child{display:flex;flex-direction:column;line-height:1.05}
.wp-count b{font:900 clamp(2.2rem,5vw,3.2rem)/1 Outfit,sans-serif;color:#5a3a00}
.wp-count small{font:600 .85rem Outfit,sans-serif;color:#7a5500;margin-top:4px}
.wp-count b.pop{animation:wpPop .6s ease}
@keyframes wpPop{0%{transform:scale(1)}40%{transform:scale(1.25);color:#d97706}100%{transform:scale(1)}}
/* Bendición al descargar */
.wp-bless{position:fixed;inset:0;z-index:9800;background:rgba(5,12,24,.55);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .25s}
.wp-bless.on{opacity:1}
.wp-bless-box{position:relative;max-width:420px;width:100%;background:linear-gradient(160deg,#0b2f4d,#0b1620);color:#fff;border-radius:26px;padding:34px 26px 24px;text-align:center;box-shadow:0 40px 80px -30px rgba(0,0,0,.8);transform:translateY(16px) scale(.96);transition:transform .3s}
.wp-bless.on .wp-bless-box{transform:none}
.wp-bless-ic{font-size:3rem;line-height:1;margin-bottom:6px}
.wp-bless-box h3{margin:.2rem 0 .5rem;font:italic 700 2.3rem/1.1 "Cormorant Garamond",Georgia,serif;color:#f3d98c}
.wp-bless-box p{margin:0 0 1.2rem;color:#d6e4ef;font-size:1.02rem;line-height:1.5}
.wp-bless-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.wp-bless-acts .btn-ghost-dark{color:#fff;border-color:rgba(255,255,255,.35)}
.wp-bless-x{position:absolute;top:12px;right:14px;border:0;background:none;color:#9fb3c8;font-size:1.1rem;cursor:pointer}
.wk-play{left:20px;top:auto;bottom:18px;margin:0;width:72px;height:72px}
.wk-play svg{width:32px;height:32px}
@media(max-width:600px){.wk-play{width:54px;height:54px;left:12px;bottom:12px;margin:0;box-shadow:0 0 0 6px rgba(255,255,255,.18)}.wk-play svg{width:24px;height:24px;margin-left:4px}}
/* Devocional por Zoom: marco oscuro como el template (noche, morado, estrellas) */
.devz, .devz.is-live {
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 62% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 30% 82%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 58%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(600px 260px at 100% 0%, rgba(139,92,246,.35), transparent 65%),
    linear-gradient(135deg, #070b24 0%, #141a4a 50%, #2e1b6b 100%);
  box-shadow: 0 30px 60px -30px rgba(20,16,70,.9); border: 1px solid rgba(167,139,250,.22);
}
.devz.is-live { box-shadow: 0 30px 60px -28px rgba(46,27,107,.95), 0 0 0 1px rgba(167,139,250,.3); }
.devz .devz-ic { background: rgba(167,139,250,.18); }
.devz-tx h2::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 2px; background: #f3c969; margin-top: 8px; }
.devz .devz-badge.soft { background: rgba(255,255,255,.12); }
.devz .devz-screen.has-stream { background: #05061a; }
.devz.is-live .btn-live { background: #f3c969; color: #1b1240; }
.devz .devz-rec { background: #dc2626; color: #fff; }
/* Contraseña de Drive (una sola vez) */
.rec-key-ask { position: fixed; z-index: 9700; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); background: #0b1030; color: #fff; border: 1px solid rgba(167,139,250,.35); border-radius: 18px; padding: 16px 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); display: grid; gap: 6px; }
.rec-key-ask small { color: #c7d2fe; }
.rec-key-ask div { display: flex; gap: 8px; margin-top: 6px; }
.rec-key-ask input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: .7em .9em; font: inherit; }
.rec-key-ask .btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.3); }
/* Grabando: el recuadro de Zoom ocupa toda la ventana; abajo queda una barra con el control de la grabación */
body.pde-rec { overflow: hidden; }
body.pde-rec .devz-screen.rec-stage { position: fixed !important; inset: 0 0 64px 0; z-index: 9400; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; margin: 0; background: #05061a; border: 0; }
body.pde-rec .devz-screen.rec-stage iframe { width: 100%; height: 100%; }
body.pde-rec::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 9390; background: linear-gradient(90deg, #070b24, #2e1b6b); }
body.pde-rec .rec-pill { top: auto; bottom: 10px; z-index: 9600; }
body.pde-rec .badge-chip, body.pde-rec .chat-fab, body.pde-rec .chat-fab-txt, body.pde-rec .rec-key-ask ~ .badge-chip { display: none !important; }
body.pde-rec .rec-key-ask { bottom: 76px; }
body.pde-rec .devz-screen.rec-stage { max-width: none !important; max-height: none !important; width: auto !important; height: auto !important; aspect-ratio: auto !important; inset: 0 0 64px 0 !important; }
/* ---------- Red Virtual ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.red-hero .red-logo { width: min(300px, 62vw); }
.red-hero .hero-inner p { max-width: 640px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.redw { position: relative; overflow: hidden; }
.redw iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.redw-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 16px; background: rgba(7,11,36,.72); backdrop-filter: blur(8px); color: #fff; pointer-events: auto; }
.redw-cap b { font: 700 1rem Outfit, sans-serif; }
.redw-cap b span { color: #f3c969; font-variant-numeric: tabular-nums; }
.redw-cap .btn { margin-left: auto; }
.dvx.nextup { border-color: #c4b5fd; box-shadow: 0 16px 36px -22px rgba(76,29,149,.55); }
.red-past-h { margin: 14px 4px 2px; font: 700 .8rem Outfit, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7b8794; }
.red-how { max-width: 920px; margin: 22px auto 0; padding: 18px 22px; border-radius: 20px; background: linear-gradient(135deg, #070b24, #2e1b6b); color: #e9e7ff; }
.red-how h3 { margin: 0 0 8px; color: #fff; font: 800 1.1rem Outfit, sans-serif; }
.red-how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.red-how .red-id { display: inline-block; margin-left: 4px; color: #f3c969; }
.dv-actions a.dv-btn { text-decoration: none; }
/* Red Virtual fuera de horario */
.devz-screen.red-wait { cursor: default; text-decoration: none; }
.red-wait .red-wifi { background: linear-gradient(160deg, #ffe7a3, #d9962b) !important; }
.red-wait .red-wifi svg { width: 58%; height: 58%; fill: #2a1b5e; }
.red-wait-tema { display: block; max-width: 560px; color: #e9e7ff; font-size: 1.02rem; text-align: center; }
.red-wait-tema strong { color: #fff; }
.red-wait-rem { display: inline-block; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: rgba(243,201,105,.16); color: #f3c969; font: 600 .98rem Outfit, sans-serif; }
.red-wait-rem strong { color: #fff; }
/* ---------- Marco del devocional / Red (fondo animado + recuadro del video + tema) ---------- */
.pstage { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: 18px; background: #160d36; }
.pstage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pstage-ov { position: absolute; left: 61.46%; top: 1.85%; width: 38.54%; pointer-events: none; }
.pstage-box { position: absolute; left: 3.333%; top: 21.48%; width: 66.667%; height: 66.667%; border-radius: 1.35cqw; overflow: hidden; background: #0b0a24; box-shadow: 0 0 0 .12cqw rgba(167,139,250,.5), 0 1.5cqw 4cqw rgba(0,0,0,.45); }
.pstage-box iframe, .pstage-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pstage-tema { position: absolute; right: 5.83%; top: 36%; width: 24%; text-align: right; color: #fff; text-shadow: 0 .3cqw 1cqw rgba(0,0,0,.45); display: flex; flex-direction: column; gap: .5cqw; }
.pstage-red .pstage-tema { top: 41%; }
.pstage-tema small { font: 700 1.25cqw Outfit, sans-serif; letter-spacing: .32cqw; color: #f3c969; }
.pstage-tema b { font: 800 3.4cqw/1.08 Outfit, sans-serif; }
.pstage-tema span { font: 500 1.6cqw Outfit, sans-serif; color: rgba(255,255,255,.88); }
.pstage-tema em { font: 500 1.2cqw Outfit, sans-serif; font-style: normal; color: rgba(214,228,255,.75); }
.pstage-tema em::after { content: ""; display: block; width: 3.6cqw; height: .22cqw; background: #f3c969; margin: .9cqw 0 0 auto; }
.pstage-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1cqw; text-align: center; color: #fff; padding: 4cqw; }
.pstage-wait b { font: 800 3cqw Outfit, sans-serif; }
.pstage-wait small { font: 500 1.5cqw/1.4 Outfit, sans-serif; color: #c7d2fe; max-width: 70%; }
.pstage-wait .dot { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #f3c969; box-shadow: 0 0 0 0 rgba(243,201,105,.6); animation: pstPulse 1.6s infinite; }
@keyframes pstPulse { 70% { box-shadow: 0 0 0 1.6cqw rgba(243,201,105,0); } 100% { box-shadow: 0 0 0 0 rgba(243,201,105,0); } }
.devz-screen.devz-stage { padding: 0; background: none; border: 0; aspect-ratio: auto; display: block; }
.pstage:fullscreen { border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }
.pstage:fullscreen .pstage-bg { object-fit: cover; }
.dtv-screen.framed { background: #160d36; }
.dtv-screen.framed .pstage { border-radius: 0; height: 100%; }
@media (max-width: 600px) { .pstage { border-radius: 12px; } }
.pstage, .pstage * { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.pstage-tema { top: 37%; max-height: 32%; }
.pstage-red .pstage-tema { top: 40.5%; }
.pstage-tema b { font-size: 2.6cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pstage-tema small { font-size: 1.25cqw !important; }
.pstage-wait small { font-size: 1.5cqw !important; }
