/* ── Variables ── */
:root {
  color-scheme: light;
  --bg: #000000;
  --bg2: #0e2231;
  --bg3: #152230;
  --surface: #000000;
  --surface2: #152230;
  --primary: #1aaee8;
  --primary-light: #6acde8;
  --accent: #f5d800;
  --red-logo: #e05555;
  --text: #e8f4fc;
  --text2: #bbccdd;
  --text3: #888888;
  --border: #1a4a6a;
  --card: #152230;
  --card2: #0d2a3a;
  --toolbar-h: 56px;
  --nav-h: 62px;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --radio-live: #e55;
  --radio-subtitle: #a0a0c0;
}
body.light {
  --bg: #ffffff;
  --bg2: #1aaee8;
  --bg3: #ffffff;
  --surface: #ffffff;
  --surface2: #eaf6fd;
  --text: #1a1a2e;
  --text2: #4a4a6a;
  --text3: #888888;
  --border: #d0e8f5;
  --card: #ffffff;
  --card2: #eaf6fd;
  --shadow: 0 2px 12px rgba(26,174,232,0.14);
  --radio-subtitle: #4a4a6a;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; forced-color-adjust: none; }
html, body { height: 100%; width: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: 'Lora', Georgia, serif; }

/* ── Screens ── */
.screen { position: fixed; inset: 0; }
.screen.hidden { display: none; }
.screen.active { display: flex; flex-direction: column; }

/* ── Splash ── */
#splash { background: var(--bg); align-items: center; justify-content: center; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.splash-logo { width: min(260px, 70vw); animation: fadeInUp .7s ease both; }
.splash-loader { width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .9s linear infinite; }

/* ── Toolbar ── */
#toolbar {
  height: var(--toolbar-h);
  background: var(--bg2);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
  position: relative; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#toolbarBrand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; isolation: isolate; }
#toolbarLogo { order: 2; width: 42px; height: 42px; object-fit: contain; object-position: left center; display: block; filter: none !important; -webkit-filter: none !important; mix-blend-mode: normal; opacity: 1; image-rendering: auto; transform: translateZ(0); }
#toolbarTitle { color: #fff; font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 1px; }
body.root-screen #toolbarTitle { order: 1; flex: 0 0 auto; color: #fff; }
body:not(.root-screen) #toolbarLogo { display: none; }
.toolbar-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.toolbar-btn svg { width: 24px; height: 24px; fill: #fff; }
.toolbar-btn img { filter: brightness(10); }
.toolbar-icon-img { width: 25px; height: 25px; object-fit: contain; }
.toolbar-radio-mask {
  width: 28px;
  height: 28px;
  display: block;
  background: #fff;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.toolbar-radio-mask.radio-off {
  -webkit-mask-image: url("../assets/img/ic_radio.png");
  mask-image: url("../assets/img/ic_radio.png");
}
.toolbar-radio-mask.radio-on {
  -webkit-mask-image: url("../assets/img/ic_radioon.png");
  mask-image: url("../assets/img/ic_radioon.png");
}
#toolbarRight { display: flex; align-items: center; gap: 4px; }
.btn-version { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-family: 'Lora', serif; }
.toolbar-menu {
  position: absolute;
  top: calc(var(--toolbar-h) - 2px);
  right: 8px;
  width: min(230px, calc(100vw - 24px));
  background: rgba(21, 47, 65, .98);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
  z-index: 40;
}
.toolbar-menu button {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: #fff;
  text-align: left;
  font: 600 17px 'Lora', Georgia, serif;
  cursor: pointer;
}
.toolbar-menu button:active { background: rgba(255,255,255,.08); }

/* ── App body ── */
#app { background: var(--bg); flex-direction: column; }
#mainContent { flex: 1; overflow: hidden; position: relative; padding-bottom: var(--nav-h); }
.page { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
.page.hidden { display: none; }
.page.active { display: block; }

/* ── Bottom Nav ── */
#bottomNav {
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  flex-shrink: 0; z-index: 10;
  position: relative;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; border: none; cursor: pointer; padding: 6px 2px;
  color: #fff; font-size: 10px; font-family: 'Lora', serif; transition: color .2s;
}
.nav-item img { width: 24px; height: 24px; opacity: 1; transition: opacity .2s; filter: brightness(0) invert(1); }
.nav-item.active { color: #fff; }
.nav-item.active img { opacity: 1; filter: brightness(0) invert(1); }
.nav-item.active::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 34px;
  margin-top: -18px;
  border-radius: 999px;
  background: var(--accent);
  z-index: 0;
}
.nav-item { position: relative; z-index: 1; }
.nav-item img, .nav-item span { position: relative; z-index: 1; }

/* ── FAB ── */
.fab {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 16px; z-index: 20;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.fab:active { transform: scale(0.92); }

/* ── Loading ── */
.loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 200px; gap: 16px; color: var(--text2); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-message { padding: 24px; color: var(--text2); text-align: center; line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   BIBLIA
══════════════════════════════════════════════════════ */
.ccr-intro {
  padding: 16px 16px 4px;
}
.ccr-intro h1 {
  font-family: var(--font-serif, 'Lora', serif);
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--text);
}
.ccr-intro p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
}
.bible-search-wrap {
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 8px 8px 4px;
  background: var(--bg);
}
.bible-search-box {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(26,174,232,.26);
  background: var(--surface2);
}
.bible-search-box span { color: var(--primary); font-size: 23px; line-height: 1; }
.bible-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 700 14px 'Lora', Georgia, serif;
}
.bible-search-box button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text2);
  font-size: 22px;
}
.suggestion-panel {
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid rgba(26,174,232,.22);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.suggestion-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: var(--primary);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.suggestion-head button {
  border: 0;
  background: transparent;
  color: var(--text2);
  font: 700 12px 'Lora', Georgia, serif;
}
.suggestions-container { display: flex; flex-direction: column; }
.suggestion-card {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.suggestion-card:active { background: var(--surface2); }
.suggestion-ref { color: var(--primary-light); font-weight: 800; font-size: 13px; }
.suggestion-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tabs-biblia {
  display: flex;
  gap: 12px;
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 58px;
  z-index: 5;
  padding: 8px 6px 4px;
}
.tab-btn {
  flex: 1;
  padding: 8px 6px;
  margin: 0;
  background: var(--bg2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Lora', Georgia, serif;
  transition: all .2s;
  box-shadow: 0 14px 0 -12px rgba(26,174,232,.2);
  white-space: nowrap;
  line-height: 1.15;
  opacity: .48;
}
.tab-btn.active { color: #fff; border-bottom-color: transparent; opacity: 1; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.libros-list { padding: 6px 10px 88px; background: var(--bg); }

.libro-item {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px;
  margin: 6px 0;
  padding: 9px 28px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #001013;
  transition: background .15s, transform .15s;
  font-size: 17px;
  color: #e8f4fc;
  box-shadow: 0 0 0 1px rgba(26,174,232,.025), 0 2px 8px rgba(0,0,0,.38);
}
.libro-item:active { background: #051b21; transform: scale(.985); }
.libro-item .libro-capitulos { font-size: 12px; color: var(--text3); }
.libro-chevron { width: 16px; height: 16px; fill: var(--text3); flex-shrink: 0; }
body.light .tabs-biblia { background: #ffffff; }
body.light .tab-btn { background: #1aaee8; }
body.light .libros-list { background: #ffffff; }
body.light .libro-item {
  background: #e6f7ff;
  color: #1a1a1a;
  box-shadow: 0 2px 7px rgba(0,0,0,.18), 0 0 0 1px rgba(26,174,232,.08);
}
body.light .libro-item:active { background: #d7f1fb; }

.capitulos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 16px; }
.cap-item {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--card); border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); color: var(--text); transition: all .15s;
}
.cap-item:active { background: var(--primary); color: #fff; transform: scale(0.95); }

.versiculos-list { padding: 8px 0 80px; }
.versiculo-chapter-title {
  padding: 14px 20px 10px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.verse-selection-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.verse-actions-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.verse-actions-row button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: 800 12px 'Lora', Georgia, serif;
  cursor: pointer;
}
.verse-actions-row button:last-child {
  background: transparent;
  color: var(--primary);
}
.verse-colors-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.verse-color-chip {
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.versiculo-item { padding: 10px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; cursor: pointer; transition: background .15s; }
.versiculo-item:active { background: var(--surface2); }
.ver-num { color: var(--primary-light); font-weight: 700; font-size: 13px; min-width: 24px; margin-top: 2px; }
.ver-texto { color: var(--text); font-size: 16px; line-height: 1.6; }
.versiculo-item.highlighted { background: var(--highlight-color, rgba(26,174,232,0.16)); }
.versiculo-item.selected { background: rgba(26,174,232,0.22); }
.versiculo-item.selected .ver-texto { color: var(--primary-light); }
.versiculo-item.search-highlight {
  outline: 2px solid var(--primary);
  background: rgba(26,174,232,.24);
}
.chapter-video-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 25;
  margin: 0;
  min-height: 48px;
  max-width: calc(100% - 32px);
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  font: 700 13px 'Lora', Georgia, serif;
  cursor: pointer;
}
.chapter-video-fab img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.chapter-video-fab span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .24s ease, opacity .18s ease; }
.chapter-video-fab.extended span { max-width: 230px; opacity: 1; }
.chapter-video-fab b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red-logo);
  color: #fff;
  font-size: 11px;
}

/* ══════════════════════════════════════════════════════
   DEVOCIONAL
══════════════════════════════════════════════════════ */
.devocional-wrap { min-height: 100%; position: relative; overflow: hidden; }
.devocional-pergamino-wrap { position: relative; min-height: calc(100vh - var(--toolbar-h) - var(--nav-h)); overflow: hidden; }
.pergamino-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pergamino-texto {
  position: relative; min-height: calc(100vh - var(--toolbar-h) - var(--nav-h)); padding: 18px 28px 92px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: visible;
}
.pergamino-texto, body.light .pergamino-texto, body.dark .pergamino-texto { color: #e8f4fc; }
.dev-fecha { font-size: 12px; letter-spacing: 5px; color: currentColor; opacity: .7; font-weight: 600; text-transform: uppercase; text-align: center; margin-bottom: 9px; }
.dev-titulo { font-size: 27px; font-weight: 700; color: currentColor; line-height: 1.25; text-align: center; margin-bottom: 3px; }
.dev-versiculo-texto { font-style: italic; font-size: 17px; color: currentColor; line-height: 1.35; text-align: center; margin-bottom: 4px; }
.dev-versiculo-ref { font-size: 13px; color: currentColor; opacity: .65; font-weight: 600; letter-spacing: 2px; text-align: right; margin-bottom: 12px; }
.dev-cuerpo { font-size: 17px; color: currentColor; opacity: .88; line-height: 1.65; white-space: pre-line; }
.dev-cuerpo::before { content: ""; display: block; height: 1px; background: currentColor; opacity: .2; margin-bottom: 11px; }

/* ══════════════════════════════════════════════════════
   GRUPOS / VIDEOS
══════════════════════════════════════════════════════ */
.grupos-grid { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px 96px; }
.grupo-card {
  position: relative; min-height: 112px; overflow: hidden;
  background: var(--bg2); border-radius: 18px; border: 1px solid rgba(255,255,255,.2);
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  padding: 20px; gap: 16px; cursor: pointer; transition: all .2s; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.grupo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.16), transparent); pointer-events: none; }
.grupo-card::after { content: ""; position: absolute; right: -22px; top: -28px; width: 128px; height: 128px; border: 3px solid rgba(245,216,0,.28); border-radius: 50%; box-shadow: 18px 18px 0 -15px rgba(245,216,0,.24), 36px 36px 0 -31px rgba(245,216,0,.2); pointer-events: none; }
.grupo-card:active { transform: scale(0.96); background: var(--card2); }
.grupo-card > img { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: rgba(255,255,255,.15); object-fit: contain; filter: brightness(0) invert(1); position: relative; z-index: 1; }
.grupo-card > span:not(.grupo-action) { flex: 1; position: relative; z-index: 1; font-size: 17px; font-weight: 700; text-align: left; color: #fff; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.5px; }
.grupo-card .grupo-action { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; position: relative; z-index: 1; }
.grupo-card .grupo-action img { width: 18px; height: 18px; padding: 0; background: transparent; border-radius: 0; filter: brightness(0) invert(1); }

.videos-list { padding: 8px 12px 80px; display: flex; flex-direction: column; gap: 12px; }
.videos-tools { padding: 10px 12px 4px; background: var(--surface); position: sticky; top: 0; z-index: 6; border-bottom: 1px solid var(--border); }
.video-search {
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.video-search span { color: var(--primary); font-size: 22px; line-height: 1; }
.video-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 14px 'Lora', Georgia, serif; }
.video-search button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text2); font-size: 22px; cursor: pointer; }
.video-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.video-chips::-webkit-scrollbar { display: none; }
.video-chip-filter { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; background: var(--surface2); color: var(--text2); padding: 8px 12px; font: 700 12px 'Lora', Georgia, serif; cursor: pointer; }
.video-chip-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.video-status { color: var(--primary); font-size: 12px; font-weight: 700; padding: 5px 3px 2px; }
.video-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; display: flex; gap: 12px; align-items: center;
  padding: 10px; transition: background .15s; box-shadow: var(--shadow);
}
.video-card:active { background: var(--card2); }
.video-thumb-wrap { position: relative; width: 100px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg3); }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg3); }
.video-date-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  max-width: calc(100% - 10px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(192,39,45,.92);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 7px rgba(0,0,0,.28);
}
.video-info { flex: 1; min-width: 0; }
.video-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-desc { font-size: 12px; color: var(--primary-light); margin-top: 4px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-chip { display: inline-flex; width: fit-content; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(224,85,85,.18); color: var(--red-logo); font-size: 12px; font-weight: 700; }

/* Player */
.player-wrap { padding: 0 0 80px; }
#ytPlayer { width: 100%; aspect-ratio: 16/9; background: #000; }
.player-info { padding: 16px 20px 18px; border-top: 3px solid var(--primary); background: var(--surface); }
.player-info h3 { font-size: 18px; color: var(--primary); line-height: 1.35; margin-bottom: 16px; }
.player-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; }
.player-meta.compact { border-top: none; padding-top: 0; }
.player-meta-item { min-width: 0; }
.player-meta-item.full { grid-column: 1 / -1; }
.player-meta-label { display: block; color: var(--primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.player-meta-value { display: block; color: var(--text); font-size: 14px; line-height: 1.35; }
.player-meta-value.cita { color: var(--red-logo); font-weight: 700; }
.player-cita { justify-self: start; border: 0; background: transparent; color: var(--red-logo); font-size: 20px; font-family: 'Lora', Georgia, serif; font-style: italic; cursor: pointer; padding: 0; }
.player-cita span { color: var(--red-logo); font-style: normal; padding-left: 6px; }
.player-predicador { justify-self: end; color: var(--text); font-size: 16px; }
.player-fecha { grid-column: 1 / -1; color: var(--text2); font-size: 13px; }
.player-bible-panel { margin-top: 14px; border-top: 3px solid var(--primary); background: var(--bg); }
.player-bible-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--primary); font-size: 15px; }
.player-bible-head span { color: var(--text2); font-size: 12px; }
.player-bible-verses { max-height: 280px; overflow-y: auto; padding-bottom: 8px; }
.player-bible-verses p { color: var(--text); font-size: 15px; line-height: 1.55; padding: 7px 0; border-bottom: 1px solid var(--border); }
.player-bible-verses b { color: var(--red-logo); margin-right: 6px; }

/* ══════════════════════════════════════════════════════
   JUEGO
══════════════════════════════════════════════════════ */
.juego-panel { position: relative; min-height: calc(100vh - var(--toolbar-h) - var(--nav-h)); display: flex; align-items: flex-start; justify-content: center; padding: 28px 20px 92px; overflow: hidden; }
#panelVerificando { align-items: center; }
.fondo-juegos { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; pointer-events: none; }
.juego-card {
  position: relative; z-index: 1; background: transparent;
  border-radius: 0; padding: 12px 0; margin: 0;
  border: 0; box-shadow: none;
  width: 100%; max-width: 430px; display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.juego-card h2 { font-family: 'Lora', Georgia, serif; font-size: 30px; color: var(--primary); text-align: center; font-weight: 800; }
.juego-card p { font-size: 15px; color: var(--text2); text-align: center; }
.juego-input { width: 100%; padding: 15px 16px; border-radius: 4px; border: 1.5px solid rgba(26,174,232,.55); background: rgba(255,255,255,.86); color: #142333; font-size: 16px; font-family: 'Lora', serif; outline: none; }
.juego-input:focus { border-color: var(--primary); background: #fff; }
.juego-btn { width: 100%; min-height: 54px; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: 'Lora', Georgia, serif; letter-spacing: .5px; transition: background .2s; text-transform: uppercase; }
.juego-btn:active { background: var(--primary-light); }
.juego-btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.dificultad-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.btn-dif { width: 100%; height: 50px; object-fit: fill; cursor: pointer; transition: transform .15s; }
.btn-dif:active { transform: scale(0.96); }

.juego-card-play { gap: 12px; }
.juego-header-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.preg-num { font-size: 17px; color: var(--primary); font-weight: 800; }
.timer-wrap { position: relative; width: 86px; height: 86px; }
.timer-wrap svg { display: none; }
.timer-wrap span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 40px 'Lora', Georgia, serif; color: var(--primary); }
.pregunta-texto { min-height: 84px; font-size: 21px; color: #243142; line-height: 1.35; text-align: center; font-weight: 800; }
.opciones-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.opcion-btn { min-height: 54px; padding: 13px 16px; border-radius: 6px; border: 1.5px solid var(--primary); background: rgba(255,255,255,.9); color: var(--primary); font-size: 15px; cursor: pointer; text-align: center; font-family: 'Lora', Georgia, serif; font-weight: 700; transition: all .15s; }
.opcion-btn:active { background: var(--primary); color: #fff; border-color: var(--primary); }
.opcion-btn.correcta { background: #1a6b3a; border-color: #2ecc71; color: #fff; }
.opcion-btn.incorrecta { background: #6b1a1a; border-color: #e74c3c; color: #fff; }
.opcion-btn:disabled { cursor: default; }

.ranking-box { background: transparent; border-radius: 0; padding: 0; width: 100%; font-size: 12px; color: var(--text2); }
.ranking-box h4 { color: #243142; font-size: 12px; margin: 12px 0 5px; font-family: 'Lora', Georgia, serif; font-weight: 800; }
.ranking-medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ranking-medal { min-height: 54px; border-radius: 6px; padding: 7px 5px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 5px; color: #51372a; overflow: hidden; }
.ranking-medal.rank-1 { background: linear-gradient(135deg, #ffe998, #f2b13d); }
.ranking-medal.rank-2 { background: linear-gradient(135deg, #f0f2f5, #afb8c2); color: #333; }
.ranking-medal.rank-3 { background: linear-gradient(135deg, #f5c18c, #b87342); }
.ranking-medal .ranking-pos { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.55); display: grid; place-items: center; font-weight: 800; }
.ranking-medal .ranking-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ranking-medal .ranking-pts { font-size: 11px; font-weight: 800; opacity: .8; }
.resultado-texto { font-size: 26px; font-weight: 800; color: var(--red-logo); font-family: 'Lora', Georgia, serif; text-align: center; }
.ranking-loading { min-height: calc(100vh - var(--toolbar-h)); display: grid; place-items: center; }
.ranking-completo { padding: 16px 16px 92px; background: #f7fbff; min-height: 100%; }
body.dark .ranking-completo { background: var(--bg); }
.ranking-section { margin-bottom: 20px; }
.ranking-section h3 { font-size: 13px; font-weight: 800; margin: 0 0 6px 4px; letter-spacing: .5px; }
.ranking-section.facil h3 { color: var(--primary); }
.ranking-section.medio h3 { color: var(--red-logo); }
.ranking-section.dificil h3 { color: #333; }
body.dark .ranking-section.dificil h3 { color: var(--text); }
.ranking-full-row { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #273445; }
body.dark .ranking-full-row { color: var(--text); }
.ranking-full-row:nth-child(even) { background: rgba(0,0,0,.04); }
.ranking-full-pos { width: 34px; text-align: center; font-weight: 800; }
.ranking-full-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ranking-full-row strong { color: var(--primary); font-size: 14px; }

/* ══════════════════════════════════════════════════════
   RADIO
══════════════════════════════════════════════════════ */
.radio-wrap { padding: 0 0 80px; }
.radio-anuncio {
  background: var(--card); margin: 16px; border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.radio-main-img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.radio-info { flex: 1; min-width: 0; }
.radio-info h3 { font-size: 15px; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.radio-info p { font-size: 12px; color: var(--radio-subtitle); }
.radio-estado { font-size: 12px; margin-top: 4px; color: var(--text3); }
.radio-estado.live { color: var(--radio-live); font-weight: 700; }
.btn-play-pause {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow); transition: background .2s;
}
.btn-play-pause svg { width: 24px; height: 24px; fill: #fff; }
.btn-play-pause:active { background: var(--primary-light); }

.radio-lista { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.radio-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--card); border-radius: 12px; border: 1px solid var(--border);
  cursor: pointer; transition: all .15s;
}
.radio-card:active { background: var(--card2); }
.radio-card.active-card { border-color: var(--primary); background: rgba(123,94,167,0.1); }
.radio-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.radio-card-info { flex: 1; min-width: 0; }
.radio-card-info h4 { font-size: 14px; color: var(--text); font-weight: 600; }
.radio-card-info span { font-size: 12px; color: var(--text2); }

/* ══════════════════════════════════════════════════════
   PETICIONES
══════════════════════════════════════════════════════ */
.peticiones-wrap { padding: 24px 16px 80px; }
.pet-header { text-align: center; margin-bottom: 24px; }
.pet-emoji { width: 80px; height: 80px; object-fit: contain; }
.pet-header h2 { font-family: 'Cinzel', serif; font-size: 20px; color: var(--text); margin: 12px 0 8px; }
.pet-header p { font-size: 14px; color: var(--text2); }
.pet-textarea {
  width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 16px; font-family: 'Lora', serif;
  resize: vertical; outline: none; line-height: 1.6;
}
.pet-textarea:focus { border-color: var(--primary); }
.pet-btn { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 12px; font-family: 'Cinzel', serif; transition: background .2s; }
.pet-btn:active { background: var(--primary-light); }
.pet-btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary-light); }
.pet-confirmacion { text-align: center; padding: 20px 0; }
.pet-ok-icon { font-size: 60px; margin-bottom: 16px; }
.pet-confirmacion h3 { font-family: 'Cinzel', serif; font-size: 22px; color: var(--text); margin-bottom: 8px; }
.pet-confirmacion p { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.peticiones-list {
  min-height: 100%;
  padding: 18px 14px 92px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pet-bubble {
  width: min(92%, 520px);
  align-self: flex-start;
  padding: 13px 15px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pet-bubble:nth-child(even) { align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.pet-bubble p { color: var(--text); font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.pet-bubble span { display: block; color: var(--primary-light); font-size: 11px; font-weight: 800; text-align: right; }
.pet-empty {
  margin: 26px 16px;
  padding: 22px;
  border-radius: 8px;
  color: var(--text2);
  text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border);
}

/* Acerca */
.acerca-wrap { position: relative; min-height: 100%; overflow: hidden; }
.acerca-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acerca-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--toolbar-h));
  padding: 36px 28px 92px;
  color: #fff;
}
.acerca-logo { display: block; width: 88px; height: 88px; object-fit: contain; margin: 0 auto 16px; filter: none; }
.acerca-content h2 { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }
.acerca-sub { text-align: center; font-size: 16px; font-style: italic; color: #cce8ff; margin-bottom: 22px; }
.acerca-line { height: 2px; background: rgba(255,255,255,.25); margin: 0 0 24px; }
.acerca-short-line { width: 60px; height: 2px; background: rgba(255,255,255,.38); margin: 10px auto 24px; }
.acerca-content h3 { text-align: center; font-size: 16px; color: #99ccff; letter-spacing: 2px; margin-bottom: 19px; }
.acerca-content p {
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 14px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.acerca-pastores { text-align: center; font-size: 18px !important; font-weight: 800; font-style: italic; color: #cce8ff; }
.acerca-content blockquote { text-align: center; color: #cce8ff; font-size: 18px; font-style: italic; line-height: 1.5; margin: 0 0 6px; }
.acerca-sub,
.acerca-pastores,
.acerca-ref,
.acerca-version {
  text-align: center !important;
  text-align-last: center !important;
}
.acerca-ref { color: #99ccff; font-size: 14px !important; font-weight: 800; margin-bottom: 24px !important; }
.acerca-version { color: rgba(255,255,255,.5); font-size: 13px !important; letter-spacing: 1px; }

.privacidad-wrap { position: relative; min-height: 100%; overflow: hidden; }
.privacidad-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--toolbar-h));
  padding: 36px 28px 92px;
  color: #fff;
}
.privacidad-content h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}
.privacidad-content h3 {
  font-size: 16px;
  color: #99ccff;
  letter-spacing: 1px;
  margin: 22px 0 8px;
}
.privacidad-content p {
  font-size: 16px;
  line-height: 1.62;
  margin-bottom: 12px;
  text-align: justify;
  text-align-last: left;
}

/* ══════════════════════════════════════════════════════
   MODAL VERSION
══════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.hidden { display: none; }
.modal-box { background: var(--surface); border-radius: 18px; padding: 24px; width: 100%; max-width: 340px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.modal-box h3 { font-family: 'Cinzel', serif; color: var(--text); margin-bottom: 16px; text-align: center; }
.version-list { display: flex; flex-direction: column; gap: 8px; }
.version-item { display: flex; justify-content: flex-start; align-items: center; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; background: var(--bg3); color: var(--text); transition: all .15s; }
.version-item:active { background: var(--primary); color: #fff; border-color: var(--primary); }
.version-item.active-version { border-color: var(--primary); color: var(--primary-light); font-weight: 700; }
.version-badge { font-size: 11px; color: var(--text3); }
.version-badge.download { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.page.slide-in-right { animation: slideInRight .25s ease both; }
.page.slide-in-left  { animation: slideInLeft  .25s ease both; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft  { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.hidden { display: none !important; }

@media (max-width: 380px) {
  .tabs-biblia { gap: 8px; padding: 8px 6px 4px; }
  .tab-btn { font-size: 12px; padding-inline: 4px; }
  .libro-item { padding-inline: 20px; }
}

@media (min-width: 700px) {
  .tab-btn { font-size: 14px; }
}
