/* ============ Universo Católico ============ */
:root {
  --oro: #F5C542; --oro2: #C8902E; --rosa: #E45DB8; --cian: #3FB6F0; --violeta: #9B6BF2; --turquesa: #3ED6C5;
  --noche: #060818; --noche2: #0C1030; --texto: #EEF0FF; --tenue: rgba(232, 236, 255, .70); --linea: rgba(255, 255, 255, .12);
  --f-tit: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-txt: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --f-ui: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --vw: 230px; --pw: 420px; --ph: 620px; --fs: 19px;
  --seg-top: env(safe-area-inset-top, 0px); --seg-bot: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--noche); color: var(--texto); font-family: var(--f-ui); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--oro); }
[hidden] { display: none !important; }
img { max-width: 100%; }

#cielo { position: fixed; inset: 0; z-index: 0; display: block; }
#universo { position: fixed; inset: 0; z-index: 1; perspective: 1100px; overflow: hidden; user-select: none; -webkit-user-select: none; }

/* ---------- Ventanas flotantes ---------- */
.ventana {
  position: absolute; left: 0; top: 0; width: var(--vw); padding: 0; border: 0; background: none; text-align: left;
  will-change: transform, opacity; transform-origin: center; touch-action: none;
}
.v-in {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 11px; align-items: center;
  padding: 13px 14px 11px; border-radius: 18px;
  background: linear-gradient(155deg, rgba(26, 30, 72, .94), rgba(9, 11, 32, .92));
  border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .45), 0 0 26px color-mix(in srgb, var(--ac) 30%, transparent);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.v-in::before { content: ''; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ac), transparent); opacity: .9; }
.ventana:hover .v-in, .ventana:focus-visible .v-in { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac) inset, 0 12px 34px rgba(0, 0, 0, .5), 0 0 42px color-mix(in srgb, var(--ac) 55%, transparent); }
.ventana:focus-visible { outline: none; }
.ventana.pulsada .v-in { transform: scale(1.08); box-shadow: 0 0 60px var(--ac); }
.ventana.lejos .v-in { filter: saturate(.7) brightness(.8); }
.v-ic { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ac) 70%, white 10%), color-mix(in srgb, var(--ac) 25%, #0a0c24) 70%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--ac) 60%, transparent); grid-row: span 2; }
.v-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v-txt b { font-family: var(--f-tit); font-weight: 700; font-size: 14.5px; line-height: 1.15; letter-spacing: .02em; color: #fff; }
.v-txt small { font-size: 11.5px; line-height: 1.3; color: var(--tenue); }
.v-extra { grid-column: 1 / -1; min-height: 0; }
.v-extra em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, transparent); padding: 3px 9px; border-radius: 99px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-extra em i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.v-abrir { grid-column: 1 / -1; justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); opacity: .85; }
.constelacion { position: absolute; left: 0; top: 0; font-family: var(--f-tit); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--ac); white-space: nowrap;
  text-shadow: 0 0 14px var(--ac), 0 0 2px #000; pointer-events: none; font-weight: 600; }
.constelacion::before, .constelacion::after { content: '✦'; margin: 0 .6em; font-size: 10px; opacity: .8; }

/* ---------- HUD ---------- */
.hud-top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; padding: calc(10px + var(--seg-top)) 14px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.marca { display: flex; align-items: center; gap: 10px; background: rgba(6, 8, 24, .55); border: 1px solid var(--linea); border-radius: 14px; padding: 7px 12px 7px 9px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; }
.marca-cruz { width: 22px; height: 28px; position: relative; filter: drop-shadow(0 0 6px var(--oro)); }
.marca-cruz::before, .marca-cruz::after { content: ''; position: absolute; background: linear-gradient(var(--oro), var(--oro2)); border-radius: 2px; }
.marca-cruz::before { left: 9px; top: 0; width: 4px; height: 28px; }
.marca-cruz::after { left: 2px; top: 7px; width: 18px; height: 4px; }
.marca-txt b { display: block; font-family: var(--f-tit); font-size: 13px; letter-spacing: .14em; }
.marca-txt small { display: block; font-size: 11.5px; color: var(--tenue); margin-top: 1px; }
.hud-lit { display: flex; align-items: center; gap: 8px; background: rgba(6, 8, 24, .55); border: 1px solid var(--linea); border-radius: 99px; padding: 7px 13px; font-size: 12px; color: var(--tenue); max-width: 46vw; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-lit i { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.hud-lit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-bottom { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 0 12px calc(12px + var(--seg-bot)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.hud-botones { display: flex; gap: 8px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }
.hud-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 99px; border: 1px solid var(--linea); background: rgba(8, 10, 30, .7); font-weight: 700; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud-btn.principal { background: linear-gradient(135deg, var(--oro), var(--oro2)); color: #1a1204; border-color: transparent; box-shadow: 0 0 22px rgba(245, 197, 66, .45); }
.pista { margin: 0; font-size: 12.5px; color: var(--tenue); background: rgba(6, 8, 24, .6); padding: 6px 12px; border-radius: 99px; opacity: 0; transition: opacity .6s; }
.pista.ver { opacity: 1; }
.aviso-hora { position: fixed; z-index: 21; top: calc(66px + var(--seg-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; background: linear-gradient(135deg, rgba(245, 197, 66, .95), rgba(228, 93, 184, .95)); color: #1a0c18; border-radius: 99px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); max-width: calc(100% - 24px); animation: bajar .5s ease-out; }
.aviso-txt { border: 0; background: none; padding: 10px 6px 10px 16px; font-weight: 800; font-size: 13.5px; text-align: left; }
.aviso-x { border: 0; background: none; padding: 10px 14px; font-weight: 800; }
@keyframes bajar { from { transform: translate(-50%, -20px); opacity: 0; } }
body.con-panel .hud-bottom, body.leyendo .hud-bottom, body.leyendo .hud-top, body.con-panel .aviso-hora { opacity: 0; pointer-events: none; }
body.con-panel .hud-bottom * { pointer-events: none; }

/* ---------- Intro ---------- */
#intro { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at center, rgba(12, 16, 50, .75), rgba(3, 4, 12, .96) 70%); transition: opacity .9s, transform .9s; }
#intro.fuera { opacity: 0; transform: scale(1.15); pointer-events: none; }
.intro-luz { width: 120px; height: 150px; position: relative; margin-bottom: 18px; animation: luz 3s ease-in-out infinite; }
.intro-luz::before, .intro-luz::after { content: ''; position: absolute; background: linear-gradient(#FFF3C4, var(--oro), var(--oro2)); border-radius: 4px; box-shadow: 0 0 30px var(--oro), 0 0 80px rgba(228, 93, 184, .6); }
.intro-luz::before { left: 52px; top: 0; width: 16px; height: 150px; }
.intro-luz::after { left: 14px; top: 34px; width: 92px; height: 16px; }
@keyframes luz { 50% { filter: brightness(1.25) drop-shadow(0 0 30px rgba(63, 182, 240, .6)); } }
#intro h1 { font-family: var(--f-tit); font-size: clamp(38px, 9vw, 72px); line-height: 1.02; margin: 0 0 12px; letter-spacing: .08em;
  background: linear-gradient(180deg, #FFF6D8, var(--oro) 55%, var(--oro2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 20px rgba(245, 197, 66, .35)); }
#intro p { color: var(--tenue); font-size: 17px; margin: 0 0 26px; }

/* ---------- Botones y piezas comunes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 20px; border-radius: 99px; border: 0; font-weight: 800; font-size: 15px; text-decoration: none;
  background: linear-gradient(135deg, #FFE08A, var(--oro) 45%, var(--oro2)); color: #1d1405; box-shadow: 0 6px 20px rgba(245, 197, 66, .25); }
.btn:disabled { opacity: .5; }
.btn.grande { padding: 15px 24px; font-size: 16.5px; }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--ac, var(--oro)) 55%, transparent); background: rgba(255, 255, 255, .05); font-weight: 700; font-size: 14px; color: var(--texto); text-decoration: none; }
.btn-sec:disabled { opacity: .35; }
.btn-sec.activo, .btn.activo { background: var(--rosa); color: #fff; border-color: var(--rosa); }
.btn-link { border: 0; background: none; color: var(--tenue); text-decoration: underline; padding: 10px; font-size: 14px; display: block; margin: 8px auto 0; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ac, var(--oro)) 16%, transparent); color: var(--ac, var(--oro)); text-decoration: none; }
.chip.mini { font-size: 11px; padding: 2px 8px; }
.cita { border: 1px solid rgba(245, 197, 66, .4); background: rgba(245, 197, 66, .08); color: var(--oro); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 700; margin: 4px 0; }
.chip-ir { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent); background: color-mix(in srgb, var(--ac) 10%, rgba(8, 10, 30, .6)); font-weight: 700; font-size: 13.5px; }
.fila-btn { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.centro { justify-content: center; text-align: center; }
.lead { font-size: 17px; line-height: 1.6; color: #E6E9FF; }
.nota { font-size: 13.5px; color: var(--tenue); line-height: 1.5; }
.fuente { font-size: 12.5px; color: var(--tenue); margin-top: 22px; line-height: 1.5; }
.sub { font-family: var(--f-tit); font-size: 16px; letter-spacing: .08em; color: var(--ac, var(--oro)); margin: 28px 0 12px; font-weight: 700; }
.tarjeta { background: rgba(255, 255, 255, .045); border: 1px solid var(--linea); border-radius: 16px; padding: 16px 18px; margin: 12px 0; }
.tarjeta h3 { margin: 0 0 8px; font-family: var(--f-tit); font-size: 17px; }
.tarjeta.destacada { border-color: color-mix(in srgb, var(--oro) 45%, transparent); background: linear-gradient(135deg, rgba(245, 197, 66, .1), rgba(228, 93, 184, .06)); }
.tarjeta.aviso { border-color: rgba(228, 93, 184, .4); }
.tarjeta.destacada p, .tarjeta.aviso p { margin: 0 0 8px; }
.grid-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.grid-tarjetas .tarjeta { margin: 0; }
.grid-tarjetas .tarjeta b { display: block; font-size: 15.5px; }
.tarjeta .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--oro); color: #1d1405; font-weight: 800; margin-bottom: 8px; }
.tarjeta-btn { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ac) 50%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 14%, transparent), rgba(255, 255, 255, .03)); }
.tarjeta-btn b { font-family: var(--f-tit); font-size: 15px; }
.tarjeta-btn small { color: var(--tenue); font-size: 13px; line-height: 1.4; }
.tarjeta-btn .prog { font-size: 12.5px; font-weight: 800; color: var(--ac); }
.cargando { display: flex; align-items: center; gap: 12px; color: var(--tenue); padding: 24px 4px; }
.cargando span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--oro); animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 14px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1px solid var(--linea); background: rgba(255, 255, 255, .04); padding: 9px 14px; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: var(--tenue); }
.tab.activo { background: var(--oro); color: #1d1405; border-color: var(--oro); }
details.acordeon { border: 1px solid var(--linea); border-radius: 14px; margin: 8px 0; background: rgba(255, 255, 255, .03); overflow: hidden; }
details.acordeon > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 800; font-size: 15.5px; position: relative; line-height: 1.35; }
details.acordeon > summary::-webkit-details-marker { display: none; }
details.acordeon > summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ac, var(--oro)); font-weight: 400; transition: transform .2s; }
details.acordeon[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
details.acordeon > summary small { display: block; font-weight: 600; color: var(--tenue); font-size: 12.5px; }
details.acordeon > summary .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ac, var(--oro)); color: #111; font-size: 12px; margin-right: 6px; }
.acordeon-in { padding: 0 16px 16px; line-height: 1.6; }
.acordeon-in p { margin: 8px 0; }
.emo-s { margin-right: 4px; }
.oracion { font-family: var(--f-txt); font-size: 20px; line-height: 1.6; color: #FFF8E7; white-space: normal; }
.oracion.chica { font-size: 17px; color: var(--tenue); }
.oracion-card { background: linear-gradient(160deg, rgba(255, 244, 214, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(245, 197, 66, .22); border-radius: 16px; padding: 18px; margin: 12px 0; }
.oracion-card h3 { font-family: var(--f-tit); margin: 0 0 8px; font-size: 16.5px; color: var(--oro); }
.oracion-card.resalta { border-color: var(--ac); box-shadow: 0 0 24px color-mix(in srgb, var(--ac) 25%, transparent); }
.acordeon-in .oracion-card { background: none; border: 0; padding: 0; margin: 0; }
.indice { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
ul.letania { list-style: none; padding: 0; margin: 10px 0; font-family: var(--f-txt); font-size: 18px; line-height: 1.55; }
ul.letania li { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
ul.letania em { color: var(--oro); font-style: italic; }
ol.lista-num, ol.pasos, ol.misterios { padding-left: 22px; line-height: 1.6; }
ol.lista-num li, ol.pasos li { margin: 6px 0; }
ol.misterios li { margin: 10px 0; }
ol.misterios small { color: var(--tenue); }

/* ---------- Panel ---------- */
#panel, #explorar { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(10px + var(--seg-top)) 10px calc(10px + var(--seg-bot)); background: rgba(3, 4, 14, .5); touch-action: auto; }
.panel-card, .explorar-card { width: min(780px, 100%); height: 100%; max-height: 940px; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--ac, var(--oro)) 16%, #0D1136), #080A22 60%, #05061A);
  border: 1px solid color-mix(in srgb, var(--ac, var(--oro)) 45%, transparent);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px color-mix(in srgb, var(--ac, var(--oro)) 22%, transparent); }
.panel-card.entra { animation: entra .55s cubic-bezier(.2, .9, .25, 1.05); }
.panel-card.sale { animation: sale .22s ease-in forwards; }
@keyframes entra { from { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(50px) scale(.9); } }
@keyframes sale { to { opacity: 0; transform: perspective(1200px) rotateX(-8deg) translateY(30px) scale(.94); } }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--linea); background: rgba(6, 8, 24, .45); flex: none; }
.panel-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 23px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ac, var(--oro)) 75%, white 10%), color-mix(in srgb, var(--ac, var(--oro)) 20%, #0a0c24) 72%); box-shadow: 0 0 18px color-mix(in srgb, var(--ac, var(--oro)) 55%, transparent); }
.panel-tit { flex: 1; min-width: 0; }
.panel-tit small { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ac, var(--oro)); font-weight: 800; }
.panel-tit h2 { margin: 1px 0 0; font-family: var(--f-tit); font-size: clamp(18px, 4.6vw, 24px); line-height: 1.15; }
.panel-x { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linea); background: rgba(255, 255, 255, .06); font-size: 17px; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 20px 24px; overscroll-behavior: contain; }
.panel-contenido { --ac: inherit; }
.panel-pie { margin-top: 30px; padding: 20px 0 6px; border-top: 1px solid var(--linea); text-align: center; }
.panel-pie p { font-family: var(--f-tit); letter-spacing: .12em; font-size: 13px; color: var(--tenue); margin: 0; }
.panel-pie .fila-btn { justify-content: center; }
.exp-grupo { margin: 18px 0; }
.exp-const { border: 0; background: none; font-family: var(--f-tit); font-size: 17px; color: var(--ac); padding: 0; letter-spacing: .1em; font-weight: 700; }
.exp-const small { font-family: var(--f-ui); font-size: 12px; letter-spacing: 0; color: var(--tenue); font-weight: 600; margin-left: 6px; }
.exp-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.exp-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); background: rgba(255, 255, 255, .04); }
.exp-item > span { font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ac) 22%, transparent); flex: none; }
.exp-item b { display: block; font-size: 14.5px; }
.exp-item small { color: var(--tenue); font-size: 12.5px; }

/* ---------- Secciones ---------- */
.biblia-portada { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.libro3d { width: 110px; height: 150px; border-radius: 6px 12px 12px 6px; position: relative; transform: perspective(500px) rotateY(-24deg); display: grid; place-items: center;
  background: linear-gradient(90deg, #3a1d0c 0 12%, #6b2a14 12% 14%, #7a1f24 14%); box-shadow: 14px 16px 30px rgba(0, 0, 0, .6), inset -6px 0 12px rgba(0, 0, 0, .4); border: 2px solid #b98a3a; }
.libro3d::after { content: ''; position: absolute; right: -8px; top: 5px; bottom: 5px; width: 8px; background: repeating-linear-gradient(#f6ecd2 0 2px, #d8c9a4 2px 3px); border-radius: 0 3px 3px 0; }
.libro3d span { font-family: var(--f-tit); color: #F7D774; font-size: 13px; text-align: center; line-height: 1.4; letter-spacing: .12em; text-shadow: 0 0 8px rgba(245, 197, 66, .6); }
.continuar { margin: 10px 0 0; }
.buscar-cita { display: flex; gap: 8px; margin: 14px 0; align-items: center; flex-wrap: wrap; }
.buscar-cita input, .form-peticion input, .form-peticion textarea { flex: 1; min-width: 0; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--linea); background: rgba(0, 0, 0, .3); color: var(--texto); font: inherit; font-size: 16px; }
.buscar-cita input[type=date] { flex: 0 1 190px; color-scheme: dark; }
.buscar-cita .lbl { font-size: 13.5px; color: var(--tenue); }
.secciones-biblia { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.sec-bib { text-align: left; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 16%, transparent), rgba(255, 255, 255, .02)); display: flex; flex-direction: column; gap: 3px; }
.sec-bib b { font-family: var(--f-tit); font-size: 15px; color: var(--ac); }
.sec-bib small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); }
.sec-bib span { font-size: 13px; color: #d9dcf5; line-height: 1.4; margin-top: 4px; }
.nav-fecha { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-fecha b { font-family: var(--f-tit); font-size: 16px; text-align: center; flex: 1; }
.nav-fecha b small { display: block; font-family: var(--f-ui); font-size: 12px; color: var(--oro); letter-spacing: .12em; text-transform: uppercase; }
.btn-sec.redondo { width: 46px; height: 46px; padding: 0; font-size: 24px; flex: none; }
#listaMes { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.lit-titulo { display: flex; gap: 12px; align-items: center; margin: 16px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.lit-titulo i { width: 16px; height: 44px; border-radius: 8px; flex: none; box-shadow: 0 0 14px currentColor; }
.lit-titulo b { display: block; font-size: 16px; }
.lit-titulo small { color: var(--tenue); }
.lectura-card h3 { font-family: var(--f-tit); color: var(--oro); font-size: 17px; margin: 8px 0 10px; line-height: 1.3; }
.lectura { font-family: var(--f-txt); font-size: 21px; line-height: 1.62; color: #FFF8E7; }
.lectura.chica { font-size: 18.5px; }
.lectura-fin { font-style: italic; color: var(--tenue); font-family: var(--f-txt); font-size: 18px; }
.santo-hero, .vers-hero, .maria-hero, .miseri-hero, .vela-hero, .cerca-hero, .app-hero { text-align: center; padding: 10px 4px 4px; }
.aureola { font-size: 58px; width: 110px; height: 110px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 66, .35), transparent 70%); box-shadow: 0 0 50px rgba(245, 197, 66, .35); }
.santo-hero .fecha, .vers-hero .fecha { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ac, var(--oro)); font-weight: 800; }
.santo-hero h3 { font-family: var(--f-tit); font-size: clamp(22px, 5.5vw, 30px); margin: 6px 0 10px; line-height: 1.2; }
.otros { color: var(--tenue); line-height: 1.7; font-size: 14px; }
.lista-santos { display: flex; flex-direction: column; gap: 6px; }
.fila-santo { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.fila-santo.hoy { border-color: var(--oro); background: rgba(245, 197, 66, .08); }
.fila-santo .dia { flex: none; min-width: 52px; text-align: center; font-weight: 800; color: var(--ac, var(--oro)); font-size: 14px; padding-top: 1px; }
.fila-santo .dia.chica { font-size: 11.5px; min-width: 88px; line-height: 1.3; }
.fila-santo b { font-size: 15px; }
.fila-santo small { display: block; color: var(--tenue); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.meses { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.mes { flex: none; border: 1px solid var(--linea); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 8px 11px; text-transform: capitalize; font-weight: 700; font-size: 13px; }
.mes.activo { background: var(--cian); color: #04121c; border-color: var(--cian); }
.vers-hero blockquote { font-family: var(--f-txt); font-size: clamp(24px, 6vw, 34px); line-height: 1.4; margin: 16px 4px 12px; color: #FFF8E7; font-weight: 600; text-shadow: 0 0 30px rgba(245, 197, 66, .2); }
.vers-hero cite { font-family: var(--f-tit); color: var(--oro); font-style: normal; font-size: 17px; letter-spacing: .06em; }
.grid-ninos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.nino-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 18px; border: 1px solid rgba(245, 197, 66, .3); background: linear-gradient(160deg, rgba(245, 197, 66, .12), rgba(63, 182, 240, .08)); }
.nino-card .emo { font-size: 38px; }
.nino-card b { font-size: 14px; text-align: center; }
.historia-nino { text-align: center; margin: 20px 0; padding: 20px 16px; border-radius: 20px; background: linear-gradient(160deg, rgba(63, 182, 240, .12), rgba(228, 93, 184, .08)); border: 1px solid rgba(63, 182, 240, .35); scroll-margin-top: 10px; }
.emo-grande { font-size: 70px; }
.historia-nino h3 { font-family: var(--f-tit); font-size: 22px; margin: 4px 0; }
.historia-nino .lead { font-size: 19px; }
.pregunta { font-weight: 700; color: var(--oro); }

/* Rosario y rezos paso a paso */
.rezo { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 18px; align-items: start; }
.rezo-cuentas { position: sticky; top: 0; }
.rosario-svg { width: 100%; height: auto; max-height: 330px; }
.rosario-svg .hilo { fill: none; stroke: rgba(245, 197, 66, .35); stroke-width: 1.4; }
.rosario-svg .cuenta { fill: rgba(255, 255, 255, .18); stroke: rgba(255, 255, 255, .35); stroke-width: .8; transition: fill .3s, r .3s; }
.rosario-svg .cuenta.rezada { fill: rgba(245, 197, 66, .55); }
.rosario-svg .cuenta.actual { fill: #FFF3C4; stroke: var(--oro); stroke-width: 2; filter: drop-shadow(0 0 6px var(--oro)); }
.rosario-svg .medalla { fill: rgba(63, 182, 240, .35); }
.rosario-svg .cruz rect { fill: rgba(255, 255, 255, .3); }
.rosario-svg .cruz.actual rect { fill: #FFF3C4; filter: drop-shadow(0 0 6px var(--oro)); }
.rezo-prog { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--tenue); font-weight: 700; margin: 0 0 10px; }
.barra { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--oro), var(--rosa)); transition: width .3s; }
.rezo-texto h3 { font-family: var(--f-tit); font-size: 19px; margin: 0 0 6px; color: var(--oro); line-height: 1.3; }
.rezo-texto .oracion { min-height: 150px; }
.rezo-btns { display: flex; gap: 10px; margin-top: 18px; }
.rezo-btns .btn { flex: 1; }
.miseri-hero { position: relative; padding: 20px 10px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 90, 110, .12), rgba(63, 182, 240, .12)); margin-bottom: 14px; }
.miseri-hero .rayos { position: absolute; inset: -40%; background: conic-gradient(from 200deg at 50% 0%, transparent 0 35%, rgba(255, 110, 130, .28) 40%, transparent 46%, rgba(120, 200, 255, .28) 52%, transparent 58% 100%); pointer-events: none; }
.jesus-confio { position: relative; font-family: var(--f-tit); font-size: 22px; color: #fff; letter-spacing: .06em; text-shadow: 0 0 20px rgba(255, 255, 255, .5); }
.dias9 { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; margin: 14px 0; }
.dia9 { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--linea); background: rgba(255, 255, 255, .04); font-weight: 800; font-size: 14px; padding: 0; }
.dia9.hecho { background: rgba(62, 214, 197, .25); border-color: var(--turquesa); color: var(--turquesa); }
.dia9.actual { background: var(--oro); color: #1d1405; border-color: var(--oro); }
.titulo-sec { font-family: var(--f-tit); font-size: 21px; margin: 6px 0 2px; }
ol.estaciones { list-style: none; padding: 0; display: grid; gap: 6px; }
ol.estaciones button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linea); background: rgba(255, 255, 255, .03); font-size: 14.5px; }
ol.estaciones span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(228, 93, 184, .2); color: var(--rosa); font-weight: 800; font-size: 13px; }
.estacion { text-align: center; margin: 10px 0 16px; }
.num-romano { font-family: var(--f-tit); font-size: 46px; color: var(--rosa); text-shadow: 0 0 24px rgba(228, 93, 184, .5); }
.estacion h3 { font-family: var(--f-tit); margin: 0; font-size: 21px; }
.privado { background: rgba(62, 214, 197, .08); border-radius: 12px; padding: 10px 12px; }
ul.checklist { list-style: none; padding: 0; margin: 6px 0; }
ul.checklist li { padding: 6px 0; }
ul.checklist label { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
ul.checklist input { width: 20px; height: 20px; accent-color: var(--rosa); flex: none; margin-top: 1px; }
ol.pasos-grandes { counter-reset: p; list-style: none; padding: 0; }
ol.pasos-grandes li { counter-increment: p; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 12px 54px; position: relative; margin: 8px 0; background: rgba(255, 255, 255, .03); border-radius: 14px; }
ol.pasos-grandes li::before { content: counter(p); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--rosa); color: #fff; display: grid; place-items: center; font-weight: 800; }
ol.pasos-grandes span { color: var(--tenue); font-size: 14.5px; line-height: 1.5; }
.lista-patronos { display: grid; gap: 6px; }
.patrono { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.patrono span { color: var(--tenue); font-size: 14px; }
.patrono b { color: var(--cian); font-size: 14.5px; text-align: right; }
.maria-hero { padding: 18px 12px; border-radius: 20px; background: linear-gradient(180deg, rgba(62, 214, 197, .14), rgba(63, 182, 240, .06)); border: 1px solid rgba(62, 214, 197, .3); }
.manto { font-size: 48px; }
.maria-hero h3 { font-family: var(--f-tit); font-size: 22px; margin: 4px 0; }
.grid-apostoles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
details.apostol { border: 1px solid var(--linea); border-radius: 14px; background: rgba(255, 255, 255, .035); }
details.apostol summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 12px; align-items: center; }
details.apostol summary::-webkit-details-marker { display: none; }
details.apostol .simb { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: rgba(63, 182, 240, .16); }
details.apostol summary small { color: var(--tenue); font-size: 12.5px; }
.apostol-in { padding: 0 14px 14px; line-height: 1.55; font-size: 15px; }
ol.partes-misa { list-style: none; padding: 0; margin: 0; }
ol.partes-misa li { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
ol.partes-misa p { margin: 4px 0 0; color: #d6daf4; font-size: 14.5px; }
.postura { --ac: var(--cian); }
.lit-hoy { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 22%, transparent), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); }
.lit-hoy i { width: 54px; height: 54px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 30px var(--ac); flex: none; }
.lit-hoy small { display: block; color: var(--tenue); font-size: 12.5px; }
.lit-hoy b { display: block; font-family: var(--f-tit); font-size: 22px; }
.lit-hoy span { color: var(--tenue); font-size: 13.5px; }
.rueda-lit { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tiempo { padding: 12px 14px; border-radius: 14px; border-left: 5px solid var(--ac); background: rgba(255, 255, 255, .035); }
.tiempo.actual { background: color-mix(in srgb, var(--ac) 18%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--ac) 30%, transparent); }
.tiempo b { font-size: 15px; } .tiempo small { display: block; color: var(--tenue); font-size: 12px; }
.tiempo p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: #d6daf4; }
.colores { display: grid; gap: 8px; }
.color { display: flex; gap: 12px; align-items: center; }
.color i { width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid rgba(255, 255, 255, .2); }
.color small { display: block; color: var(--tenue); font-size: 13px; }
ol.credo-exp { padding-left: 22px; } ol.credo-exp li { margin: 10px 0; } ol.credo-exp b { display: block; font-family: var(--f-txt); font-size: 18.5px; color: #FFF3C4; }
ol.credo-exp span { color: var(--tenue); font-size: 14.5px; }
ol.linea-tiempo { list-style: none; padding: 0 0 0 18px; border-left: 2px solid rgba(155, 107, 242, .5); margin-left: 8px; }
ol.linea-tiempo li { position: relative; padding: 4px 0 14px 14px; }
ol.linea-tiempo li::before { content: ''; position: absolute; left: -26px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--violeta); box-shadow: 0 0 10px var(--violeta); }
ol.linea-tiempo span { font-weight: 800; color: var(--violeta); font-size: 14px; }
ol.linea-tiempo p { margin: 2px 0 0; font-size: 15px; line-height: 1.5; }
.form-peticion { display: flex; flex-direction: column; gap: 8px; }
.form-peticion textarea { resize: vertical; min-height: 80px; }
.fila-form { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.peticion { padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(62, 214, 197, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(62, 214, 197, .22); margin: 10px 0; }
.peticion p { margin: 0 0 10px; font-family: var(--f-txt); font-size: 19px; line-height: 1.5; }
.pet-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--tenue); }
.btn-rezar { border: 1px solid var(--turquesa); background: rgba(62, 214, 197, .1); color: var(--turquesa); border-radius: 99px; padding: 7px 12px; font-weight: 800; font-size: 13px; }
.btn-rezar.hecho { background: var(--turquesa); color: #03211d; }
.btn-reportar { border: 0; background: none; color: var(--tenue); padding: 7px; }
.vela-hero { padding-top: 10px; }
.vela { width: 70px; height: 170px; margin: 0 auto; position: relative; }
.vela .cera { position: absolute; bottom: 0; left: 15px; width: 40px; height: 110px; border-radius: 6px 6px 4px 4px; background: linear-gradient(90deg, #e9dcc0, #fff8e8 40%, #d7c7a3); box-shadow: 0 0 40px rgba(255, 180, 60, .35); }
.vela .llama, .vela-mini .llama { position: absolute; left: 50%; width: 22px; height: 40px; border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, #fff 0 18%, #FFE08A 30%, #F5A742 60%, rgba(245, 120, 40, 0) 72%); filter: drop-shadow(0 0 16px rgba(255, 190, 80, .9)); animation: llama 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.vela .llama { bottom: 108px; }
@keyframes llama { 0%, 100% { transform: translateX(-50%) scale(1) rotate(-2deg); } 50% { transform: translateX(-50%) scale(1.08, .94) rotate(3deg); } }
.contador { font-size: 16px; color: var(--tenue); } .contador b { color: var(--oro); font-size: 22px; }
.grid-velas { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 18px; }
.vela-mini { position: relative; text-align: center; padding: 58px 6px 10px; border-radius: 14px; background: rgba(255, 190, 80, .05); }
.vela-mini .llama { top: 8px; width: 14px; height: 26px; animation-delay: var(--d); }
.vela-mini .cera { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); width: 18px; height: 22px; border-radius: 3px; background: linear-gradient(90deg, #e9dcc0, #fff8e8 40%, #d7c7a3); }
.vela-mini b { display: block; font-size: 13px; line-height: 1.3; }
.vela-mini small { display: block; font-size: 11.5px; color: var(--tenue); margin-top: 3px; }
.enlace-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 10px 0; border-radius: 16px; text-decoration: none; color: var(--texto); background: linear-gradient(135deg, rgba(62, 214, 197, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(62, 214, 197, .3); }
.enlace-card .play { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #E43F4E; color: #fff; font-size: 18px; box-shadow: 0 0 20px rgba(228, 63, 78, .5); }
.enlace-card div { flex: 1; } .enlace-card b { display: block; font-size: 16px; } .enlace-card small { color: var(--tenue); }
.cerca-hero .pin { font-size: 56px; display: block; }
.app-hero img { border-radius: 22px; box-shadow: 0 0 40px rgba(245, 197, 66, .35); }

/* ---------- Lector de la Biblia ---------- */
#lector { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; touch-action: manipulation;
  background: radial-gradient(ellipse at 50% 30%, #2a1d12 0%, #140d08 55%, #07050a 100%); }
#lector::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(245, 197, 66, .12), transparent 40%), radial-gradient(circle at 85% 90%, rgba(228, 93, 184, .08), transparent 40%); pointer-events: none; }
.lec-top { position: relative; z-index: 8; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--seg-top)) 10px 8px; min-height: 58px; }
.lec-btn { border: 1px solid rgba(255, 230, 180, .18); background: rgba(255, 240, 210, .06); color: #F6E7C6; border-radius: 12px; padding: 8px 11px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.lec-btn.activo { background: var(--rosa); }
.lec-titulo { flex: 1; min-width: 0; border: 0; background: none; color: #F6E7C6; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
.lec-titulo b { font-family: var(--f-tit); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lec-titulo span { font-size: 12.5px; color: #cdb88f; }
.lec-tools { display: flex; gap: 5px; }
.lec-escena { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; perspective: 2200px; min-height: 0; }
.lec-escena.cargando-lec::after { content: ''; position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--oro); animation: gira 1s linear infinite; z-index: 5; }
.lec-bottom { position: relative; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 10px calc(10px + var(--seg-bot)); min-height: 62px; }
.lec-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 230, 180, .25); background: rgba(255, 240, 210, .07); color: #F6E7C6; font-size: 24px; line-height: 1; }
.lec-pag { color: #cdb88f; font-size: 13px; font-weight: 700; min-width: 140px; text-align: center; }
.lec-ayuda { position: absolute; left: 50%; bottom: calc(76px + var(--seg-bot)); transform: translateX(-50%); margin: 0; background: rgba(0, 0, 0, .75); color: #fff; padding: 9px 14px; border-radius: 99px; font-size: 13px; opacity: 0; transition: opacity .5s; pointer-events: none; width: max-content; max-width: calc(100% - 24px); text-align: center; }
.lec-ayuda.ver { opacity: 1; }

.libro { position: relative; width: var(--pw); height: var(--ph); transform-style: preserve-3d; }
.libro.doble { width: calc(var(--pw) * 2); }
.pagina { position: absolute; top: 0; width: var(--pw); height: var(--ph); overflow: hidden;
  background: linear-gradient(90deg, #efe2c2 0%, #f8efd9 6%, #fbf4e3 50%, #f5ead0 100%); color: #2b1d10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.pagina::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, .35), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.libro:not(.doble) .pagina.der { left: 0; border-radius: 4px 12px 12px 4px; }
.libro:not(.doble) .pagina.der::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(90deg, rgba(90, 60, 20, .28), transparent); z-index: 1; pointer-events: none; }
.libro.doble .pagina.izq { left: 0; border-radius: 12px 2px 2px 12px; background: linear-gradient(270deg, #e7d8b4 0%, #f4e9d0 6%, #fbf4e3 50%, #f5ead0 100%); }
.libro.doble .pagina.der { left: var(--pw); border-radius: 2px 12px 12px 2px; }
.libro.doble .pagina.izq::before, .libro.doble .pagina.der::before { content: ''; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 1; pointer-events: none; }
.libro.doble .pagina.izq::before { right: 0; background: linear-gradient(270deg, rgba(90, 60, 20, .32), transparent); }
.libro.doble .pagina.der::before { left: 0; background: linear-gradient(90deg, rgba(90, 60, 20, .32), transparent); }
.canto { position: absolute; top: 4px; bottom: 4px; right: -7px; width: 7px; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(90deg, #e9dcbc 0 1px, #cbb98f 1px 2px); box-shadow: 4px 6px 12px rgba(0, 0, 0, .4); }
.pag-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 26px 14px 30px; }
.libro.doble .izq .pag-in { padding: 22px 32px 14px 26px; }
.pag-cab { display: flex; justify-content: space-between; font-family: var(--f-tit); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a6a3a; border-bottom: 1px solid rgba(138, 106, 58, .3); padding-bottom: 6px; margin-bottom: 10px; flex: none; }
.pag-cuerpo { flex: 1; overflow: hidden; font-family: var(--f-txt); font-size: var(--fs); line-height: 1.5; text-align: justify; hyphens: auto; -webkit-hyphens: auto; font-weight: 500; }
.pag-pie { flex: none; text-align: center; font-family: var(--f-tit); font-size: 11px; color: #8a6a3a; padding-top: 6px; }
.pag-texto { margin: 0; }
.pag-libro { text-align: center; margin: 4px 0 6px; }
.pag-libro small { font-family: var(--f-ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; filter: brightness(.7) saturate(1.4); }
.pag-libro h1 { font-family: var(--f-tit); font-size: 1.7em; margin: 2px 0 0; color: #5a2a10; line-height: 1.1; }
.pag-capitulo { font-family: var(--f-tit); font-size: .92em; text-align: center; color: #8b2a1a; margin: 6px 0 8px; letter-spacing: .08em; font-weight: 700; }
.vs { border-radius: 3px; transition: background .2s; }
.vs sup { font-family: var(--f-ui); font-size: .55em; font-weight: 800; color: #a0522d; margin-right: 2px; vertical-align: .55em; }
.vs.resaltado { background: rgba(245, 197, 66, .35); box-shadow: 0 0 0 2px rgba(245, 197, 66, .35); }
.vs.sel { background: rgba(228, 93, 184, .25); }
.pag-amen { text-align: center; font-family: var(--f-tit); font-size: 2em; color: #8b2a1a; margin-top: 40%; }
.pagina.medidor { visibility: hidden; position: absolute; left: -9999px; top: 0; box-shadow: none; }

/* La hoja que se voltea */
.hoja { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transform-origin: left center; z-index: 5; }
.libro:not(.doble) .hoja { left: 0; }
.libro.doble .hoja { left: var(--pw); }
.hoja .cara { position: absolute; inset: 0; left: 0 !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hoja .dorso { transform: rotateY(180deg); }
.hoja .papel { background: linear-gradient(270deg, #e3d3ad, #f3e8cc 60%, #efe2c2); border-radius: 12px 4px 4px 12px; }
.hoja .cara.frente::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .0)); animation: sombra .75s ease-in-out; }
.hoja.voltea-sig { animation: volteaSig .75s cubic-bezier(.45, .05, .35, 1) forwards; }
.hoja.voltea-ant { animation: volteaAnt .75s cubic-bezier(.45, .05, .35, 1) forwards; }
.libro:not(.doble) .hoja.voltea-sig { animation-name: volteaSigSola; }
.libro:not(.doble) .hoja.voltea-ant { animation-name: volteaAntSola; }
@keyframes volteaSig { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes volteaAnt { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
@keyframes volteaSigSola { 0% { transform: rotateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(-170deg); opacity: 0; } }
@keyframes volteaAntSola { 0% { transform: rotateY(-170deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes sombra { 50% { background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05) 40%, rgba(255, 255, 255, .15)); } }

/* Modo pergamino */
.pergamino { position: absolute; inset: 0 max(10px, calc(50% - 360px)); overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 10px;
  background: linear-gradient(90deg, #e9dab6, #f8efd9 8%, #fbf4e3 50%, #f8efd9 92%, #e9dab6); color: #2b1d10; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.perg-in { padding: 26px clamp(18px, 5vw, 44px) 40px; font-family: var(--f-txt); font-size: calc(var(--fs) + 1px); line-height: 1.6; text-align: justify; }
.perg-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; }
.perg-nav .btn-sec { color: #5a2a10; border-color: #b98a3a; }

/* Biblioteca y capítulos */
.biblioteca, .capitulos { position: absolute; inset: 0; z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; background: radial-gradient(ellipse at top, #22160d, #0b0806 70%); }
.bib-in { max-width: 900px; margin: 0 auto; padding: calc(14px + var(--seg-top)) 16px 50px; }
.bib-head, .caps-in header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bib-head small, .caps-in header small { color: #cdb88f; font-size: 12px; letter-spacing: .08em; }
.bib-head h3, .caps-in h3 { font-family: var(--f-tit); font-size: 26px; margin: 2px 0 0; color: #F6E7C6; }
.testamento { font-family: var(--f-tit); color: var(--oro); font-size: 20px; margin: 30px 0 6px; letter-spacing: .08em; }
.testamento small { font-family: var(--f-ui); font-size: 13px; color: #cdb88f; letter-spacing: 0; margin-left: 6px; }
.estante { margin: 14px 0 22px; }
.estante header h4 { margin: 0; color: var(--ac); font-size: 16px; font-family: var(--f-tit); letter-spacing: .06em; }
.estante header p { margin: 3px 0 10px; color: #cdb88f; font-size: 13px; line-height: 1.45; }
.lomos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 10px 10px 0; border-bottom: 10px solid #5b3a1f; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); box-shadow: 0 8px 10px -6px rgba(0, 0, 0, .6); }
.lomo { width: 64px; height: var(--h); border: 0; border-radius: 4px 4px 0 0; padding: 8px 4px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; color: #fff;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30%, rgba(255, 255, 255, .15) 50%, transparent 70%, rgba(0, 0, 0, .3)), color-mix(in srgb, var(--ac) 70%, #3a1d0c);
  box-shadow: inset 0 6px 0 -3px rgba(255, 215, 130, .8), inset 0 -10px 0 -7px rgba(255, 215, 130, .8); transition: transform .15s; }
.lomo:hover, .lomo:focus-visible { transform: translateY(-6px); }
.lomo-n { font-family: var(--f-tit); font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; word-break: break-word; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lomo-c { font-size: 9.5px; opacity: .85; }
.caps-in { max-width: 700px; margin: 0 auto; padding: calc(14px + var(--seg-top)) 16px 40px; }
.caps-in .nota { color: #cdb88f; }
.grid-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 7px; margin: 12px 0 20px; }
.grid-caps button { aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(255, 230, 180, .2); background: rgba(255, 240, 210, .06); color: #F6E7C6; font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.grid-caps button small { font-size: 10px; color: #cdb88f; font-weight: 600; }
.grid-caps button.actual { background: var(--oro); color: #1d1405; }
.resultados { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.resultado { text-align: left; border: 0; background: rgba(255, 240, 210, .05); border-radius: 10px; padding: 10px 12px; color: #F6E7C6; display: flex; flex-direction: column; gap: 3px; }
.resultado b { color: var(--oro); font-size: 13px; } .resultado span { font-family: var(--f-txt); font-size: 16.5px; line-height: 1.45; }
.resultado mark { background: rgba(245, 197, 66, .4); color: inherit; border-radius: 3px; }
.hoja-accion { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; padding: 0 10px calc(10px + var(--seg-bot)); animation: sube .3s ease-out; }
.accion-in { max-width: 620px; margin: 0 auto; background: #120d1e; border: 1px solid rgba(228, 93, 184, .45); border-radius: 18px; padding: 16px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.accion-in p { margin: 0; font-family: var(--f-txt); font-size: 18px; line-height: 1.5; color: #FFF8E7; max-height: 30vh; overflow-y: auto; }
.accion-in b { font-family: var(--f-tit); color: var(--oro); font-size: 14px; }
@keyframes sube { from { transform: translateY(100%); } }

/* Toast */
#toast { position: fixed; z-index: 90; left: 50%; bottom: calc(90px + var(--seg-bot)); transform: translate(-50%, 20px); background: rgba(12, 14, 36, .95); border: 1px solid rgba(245, 197, 66, .4); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 30px); text-align: center; }
#toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Teléfono ---------- */
@media (max-width: 700px) {
  .v-in { padding: 10px 10px 9px; gap: 4px 8px; border-radius: 15px; }
  .v-ic { width: 34px; height: 34px; font-size: 18px; }
  .v-txt b { font-size: 12.5px; }
  .v-txt small { font-size: 10.5px; }
  .v-extra em { font-size: 10.5px; padding: 2px 7px; }
  .v-abrir { display: none; }
  .constelacion { font-size: 11px; letter-spacing: .24em; }
  .hud-lit { display: none !important; }
  .hud-btn { padding: 10px 13px; font-size: 13px; }
  #panel, #explorar { padding: calc(6px + var(--seg-top)) 6px calc(6px + var(--seg-bot)); }
  .panel-card, .explorar-card { border-radius: 18px; }
  .panel-body { padding: 14px 15px 22px; }
  .biblia-portada { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .biblia-portada .fila-btn { justify-content: center; }
  .rezo { grid-template-columns: 1fr; }
  .rezo-cuentas { position: static; max-width: 180px; margin: 0 auto; }
  .rosario-svg { max-height: 200px; }
  .lec-btn span { display: none; }
  .lec-btn { padding: 7px 8px; font-size: 13px; }
  .lec-tools { gap: 3px; }
  .pag-in { padding: 16px 16px 10px 22px; }
  .lectura { font-size: 19.5px; }
  .oracion { font-size: 19px; }
  .lomo { width: 56px; }
}
@media (max-width: 380px) { .lec-tools [data-act="menos"] { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Virgen de Guadalupe ---------- */
.guada-hero { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 22px;
  background: radial-gradient(ellipse at 20% 40%, rgba(245, 197, 66, .18), transparent 60%), linear-gradient(160deg, rgba(63, 184, 166, .16), rgba(244, 135, 156, .12)); border: 1px solid rgba(244, 135, 156, .4); }
.guada-svg { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(245, 197, 66, .45)); }
.guada-svg .rayos { animation: rayosG 6s ease-in-out infinite; transform-origin: 100px 140px; }
@keyframes rayosG { 50% { opacity: .55; } }
.guada-hero .fecha { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #F4879C; font-weight: 800; margin: 0; }
.guada-hero h3 { font-family: var(--f-tit); font-size: clamp(20px, 4.8vw, 26px); margin: 4px 0 8px; line-height: 1.2; }
.guada-cuenta { font-weight: 800; color: var(--oro); }
.guada-palabras { margin: 22px 0; padding: 20px 20px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(63, 184, 166, .18), rgba(10, 30, 40, .4)); border-left: 4px solid #3FB8A6;
  font-family: var(--f-txt); font-size: clamp(20px, 5vw, 24px); line-height: 1.5; color: #FFF8E7; font-style: italic; position: relative; }
.guada-palabras cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--f-ui); font-size: 13px; color: var(--tenue); }
.guada-palabras .btn-sec { position: absolute; top: 12px; right: 12px; padding: 6px 10px; }
ol.apariciones { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ol.apariciones li { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 135, 156, .2); }
.ap-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #F4879C, #F5C542); color: #2a1020; }
ol.apariciones small { display: block; color: #F4879C; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
ol.apariciones b { display: block; font-family: var(--f-tit); font-size: 16px; margin: 2px 0 4px; }
ol.apariciones p { margin: 0; line-height: 1.55; font-size: 15px; color: #E3E6FA; }
.grid-simbolos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.simbolo { padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(63, 184, 166, .12), rgba(255, 255, 255, .02)); border: 1px solid rgba(63, 184, 166, .3); }
.simbolo span { font-size: 26px; display: block; }
.simbolo b { display: block; margin: 4px 0; font-size: 15px; }
.simbolo p { margin: 0; font-size: 14px; line-height: 1.5; color: #D6DAF4; }
ol.linea-tiempo.guada { border-left-color: rgba(244, 135, 156, .5); }
ol.linea-tiempo.guada li::before { background: #F4879C; box-shadow: 0 0 10px #F4879C; }
ol.linea-tiempo.guada span { color: #F4879C; }
.guada-link { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; margin: 12px 0 4px; border-radius: 18px; border: 1px solid rgba(244, 135, 156, .5);
  background: linear-gradient(135deg, rgba(244, 135, 156, .16), rgba(63, 184, 166, .12)); }
.guada-link > span { font-size: 30px; }
.guada-link div { flex: 1; } .guada-link b { display: block; font-family: var(--f-tit); font-size: 17px; } .guada-link small { color: var(--tenue); font-size: 13px; }
.guada-link em { font-style: normal; font-size: 26px; color: #F4879C; }
@media (max-width: 700px) { .guada-hero { grid-template-columns: 1fr; text-align: center; } .guada-hero .acciones { justify-content: center; } .guada-svg { max-width: 170px; margin: 0 auto; } }
.ventana[data-id="guadalupe"] .v-in { background: linear-gradient(155deg, rgba(31, 111, 114, .95), rgba(70, 22, 52, .93)); box-shadow: 0 0 0 1px rgba(245, 197, 66, .25) inset, 0 10px 30px rgba(0, 0, 0, .45), 0 0 34px rgba(244, 135, 156, .45); }

/* ---------- Santo Toribio Romo ---------- */
.toribio-hero { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 22px;
  background: radial-gradient(ellipse at 15% 30%, rgba(245, 197, 66, .16), transparent 60%), linear-gradient(160deg, rgba(63, 182, 240, .14), rgba(8, 10, 30, .4)); border: 1px solid rgba(63, 182, 240, .35); }
.toribio-hero figure { margin: 0; }
.toribio-hero img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 0 0 1px rgba(245, 197, 66, .35), 0 12px 34px rgba(0, 0, 0, .5), 0 0 40px rgba(245, 197, 66, .25); }
.toribio-hero figcaption { font-size: 11px; color: var(--tenue); text-align: center; margin-top: 6px; }
.toribio-hero .fecha { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cian); font-weight: 800; margin: 0; }
.toribio-hero h3 { font-family: var(--f-tit); font-size: clamp(20px, 4.8vw, 26px); margin: 4px 0 8px; line-height: 1.2; }
.toribio-hero .chip { --ac: var(--cian); margin: 2px 0; }
ol.apariciones.toribio li { border-color: rgba(63, 182, 240, .22); }
ol.apariciones.toribio .ap-num { background: linear-gradient(135deg, var(--cian), var(--oro)); color: #04121c; }
@media (max-width: 700px) { .toribio-hero { grid-template-columns: 1fr; text-align: center; } .toribio-hero figure { max-width: 240px; margin: 0 auto; } .toribio-hero .acciones { justify-content: center; } }
