/* ============ 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: 210px 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; } .guada-foto { max-width: 240px; 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; } }

/* Comparte el QR */
.qr-hero { text-align: center; }
.qr-hero img { width: min(100%, 340px); height: auto; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); background: #111; -webkit-touch-callout: default; }
.qr-botones { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 16px auto 8px; }
.qr-botones .btn, .qr-botones .btn-sec { width: 100%; }
.btn.wa { background: #25D366; color: #06240f; }

.guada-foto { margin: 0; }
@media (max-width: 700px) { .guada-foto { margin: 0 auto; width: 100%; max-width: 250px; } }
.guada-foto img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(244,194,98,.35), 0 0 40px rgba(244,135,156,.18); }

/* Imágenes de los santos */
.santo-foto { margin: 2px auto 10px; max-width: 300px; }
.santo-foto img { display: block; margin: 0 auto; max-width: 100%; width: auto; max-height: 380px; border-radius: 16px; background: #0b0d24;
  box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(245,197,66,.35), 0 0 40px rgba(245,197,66,.18); }
.santo-foto figcaption { margin-top: 6px; font-size: 11px; color: var(--tenue); }
.santo-foto figcaption a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.fila-santo { flex-wrap: wrap; }
.fila-santo[data-k] { cursor: pointer; }
.fila-santo > div:not(.santo-grande) { flex: 1; min-width: 0; }
.fila-santo .av { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #0b0d24;
  box-shadow: 0 0 0 1px rgba(245,197,66,.4), 0 4px 12px rgba(0,0,0,.4); }
.fila-santo .av.vacio { display: grid; place-items: center; font-size: 18px; color: var(--oro); background: rgba(245,197,66,.08); }
.fila-santo .santo-grande { flex-basis: 100%; padding-top: 10px; text-align: center; }
.fila-santo .santo-grande .santo-foto img { max-height: 320px; }
.v-ic.con-foto { overflow: hidden; padding: 0; }
.v-ic.con-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; display: block; }

/* Virgen de Zapopan */
.zapopan-hero { background: linear-gradient(155deg, rgba(63,182,240,.14), rgba(245,197,66,.10)); border: 1px solid rgba(63,182,240,.3); }
.zapopan-hero img { aspect-ratio: 3 / 4; object-fit: cover; }
.zapopan-hero .fecha { color: #7DD3FC; }
.zapopan-hero .chip { --ac: #3FB6F0; margin: 2px 0; }
.zap-cuenta { color: var(--oro); font-weight: 800; margin: 6px 0; }
ol.apariciones.zapopan .ap-num { background: linear-gradient(135deg, #3FB6F0, #F5C542); }
.zap-llevada { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.zap-llevada figure { margin: 0; }
.zap-llevada img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 0 0 1px rgba(63,182,240,.35), 0 10px 30px rgba(0,0,0,.5); }
.zap-llevada figcaption { font-size: 12px; color: var(--tenue); text-align: center; margin-top: 6px; line-height: 1.35; }
.zap-llevada figcaption small { font-size: 10.5px; opacity: .8; }
.zap-link span { background: radial-gradient(circle, rgba(63,182,240,.35), transparent 70%); }
@media (max-width: 700px) { .zap-llevada { grid-template-columns: 1fr; } .zap-llevada figure { max-width: 240px; margin: 0 auto; } }

/* Botón para escuchar toda la ventana */
.panel-voz { flex: none; height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--ac, var(--oro)) 55%, transparent); background: rgba(255,255,255,.06); color: var(--texto); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.panel-voz.activo { background: var(--oro); color: #1a1405; border-color: var(--oro); }
@media (max-width: 420px) { .panel-voz span { display: none; } .panel-voz { width: 42px; padding: 0; justify-content: center; } .panel-voz.activo { width: auto; padding: 0 12px; } }
.defensa-hero { background: linear-gradient(155deg, rgba(91,141,239,.16), rgba(245,197,66,.10)); border-color: rgba(91,141,239,.35); }
.defensa-hero .fecha { color: #A5C0FF; }
.defensa-hero .chip { --ac: #5B8DEF; }
ol.apariciones.defensa .ap-num { background: linear-gradient(135deg, #5B8DEF, #F5C542); }
.corazon-hero { background: linear-gradient(155deg, rgba(232,87,63,.16), rgba(245,197,66,.12)); border-color: rgba(232,87,63,.38); }
.corazon-hero .fecha { color: #FFB199; }
.corazon-hero .chip { --ac: #E8573F; }
ol.apariciones.corazon .ap-num { background: linear-gradient(135deg, #E8573F, #F5C542); }
.cor-simbolos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 10px 0; }
.cor-simbolos > div { background: rgba(232,87,63,.07); border: 1px solid rgba(232,87,63,.28); border-radius: 14px; padding: 12px 14px; }
.cor-simbolos b { display: block; font-family: var(--f-tit); font-size: 15.5px; margin-bottom: 4px; }
.cor-simbolos p { margin: 0; color: var(--tenue); font-size: 14px; line-height: 1.5; }
ol.cor-promesas { counter-reset: pr; list-style: none; padding: 0; margin: 10px 0; }
ol.cor-promesas li { counter-increment: pr; position: relative; padding: 10px 12px 10px 48px; margin: 6px 0; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--linea); line-height: 1.5; }
ol.cor-promesas li::before { content: counter(pr); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1d1405; background: linear-gradient(135deg, #F5C542, #E8573F); }
ol.cor-promesas li:last-child { border-color: rgba(245,197,66,.5); background: rgba(245,197,66,.08); }

/* ---------- Misa del Día (vista inmersiva) ---------- */
.misa-hero { text-align: center; padding: 22px 16px 18px; border-radius: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(245,197,66,.22), transparent 70%), linear-gradient(180deg, rgba(40,26,12,.6), rgba(12,10,24,.4)); border: 1px solid rgba(245,197,66,.35); margin-bottom: 12px; }
.misa-hero .mh-ic { font-size: 52px; filter: drop-shadow(0 0 18px rgba(245,197,66,.6)); }
.misa-hero h3 { font-family: var(--f-tit); font-size: 24px; margin: 6px 0; }
.pasos-lista { padding-left: 20px; line-height: 1.6; } .pasos-lista li { margin: 6px 0; }
.hud-btn.misa-hud { border-color: rgba(245,197,66,.55); }
body.con-misa .hud-bottom, body.con-misa .hud-top { visibility: hidden; }

#misaVista { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-rows: auto 3px clamp(150px, 30vh, 290px) 1fr auto auto; touch-action: auto; color: #F6EFDF;
  background: radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255,196,110,.20), transparent 70%), radial-gradient(ellipse at 50% 120%, rgba(90,40,20,.45), transparent 60%), linear-gradient(180deg, #120b08 0%, #0a0710 55%, #05040a 100%);
  opacity: 0; transition: opacity .35s ease; }
#misaVista.entra { opacity: 1; }
#misaVista::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 18% 60% at 12% 30%, rgba(255,210,150,.07), transparent 70%), radial-gradient(ellipse 18% 60% at 88% 30%, rgba(255,210,150,.07), transparent 70%); }
.misa-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--seg-top)) 12px 8px; }
.misa-tit { flex: 1; text-align: center; line-height: 1.2; } .misa-tit small { display: block; color: rgba(246,239,223,.7); font-size: 12.5px; } .misa-tit b { font-family: var(--f-tit); font-size: 18px; letter-spacing: .04em; }
.misa-x, .misa-ind { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); font-size: 17px; flex: none; }
.misa-prog { background: rgba(255,255,255,.08); } .misa-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--oro2), var(--oro)); transition: width .5s ease; }

.misa-escena { position: relative; overflow: hidden; }
.me-luz { position: absolute; left: 50%; bottom: 18%; width: 520px; height: 520px; transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,214,140,.30), rgba(255,180,80,.08) 40%, transparent 68%); transition: all 1.2s ease; }
.misa-escena.abierto .me-luz { background: radial-gradient(circle, rgba(255,236,180,.55), rgba(255,200,100,.16) 42%, transparent 70%); }
.misa-escena.eleva .me-luz { width: 760px; height: 760px; background: radial-gradient(circle, rgba(255,245,210,.75), rgba(255,210,120,.22) 40%, transparent 70%); }
.me-cruz { position: absolute; left: 50%; top: 6%; width: 46px; height: 34%; transform: translateX(-50%); opacity: .9; }
.me-cruz i { position: absolute; background: linear-gradient(90deg, #5b3a1c, #8a5a2b 50%, #5b3a1c); border-radius: 2px; box-shadow: 0 0 14px rgba(255,200,120,.25); }
.me-cruz i:first-child { left: 50%; top: 0; bottom: 0; width: 7px; transform: translateX(-50%); }
.me-cruz i:last-child { left: 0; right: 0; top: 24%; height: 7px; }
.me-altar { position: absolute; left: 50%; bottom: 0; width: min(78%, 560px); height: 20%; transform: translateX(-50%); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #efe6d2, #cdbf9f); box-shadow: 0 -2px 30px rgba(255,210,140,.25); }
.me-mantel { position: absolute; left: 22%; right: 22%; top: 0; bottom: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--lit, #3FAF6A) 85%, #fff 15%), var(--lit, #3FAF6A)); opacity: .9; }
.me-mantel::after { content: '✠'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(255,236,180,.9); font-size: 20px; }
.me-sagrario { position: absolute; left: 50%; bottom: 20%; width: 92px; height: 100px; transform: translateX(-50%); perspective: 420px;
  border-radius: 46px 46px 6px 6px; background: radial-gradient(circle at 50% 45%, #fff4cf, #e9b95a 55%, #7a4f14); box-shadow: inset 0 0 0 4px #b9862c, 0 0 26px rgba(255,200,100,.35); }
.me-custodia { position: absolute; left: 50%; bottom: 6px; width: 84px; transform: translateX(-50%) scale(.72); transform-origin: 50% 90%; opacity: 0; transition: transform 1.6s cubic-bezier(.2,.8,.2,1), opacity 1.2s ease, filter 1.2s ease; z-index: 1; }
.custodia-svg { width: 100%; display: block; overflow: visible; }
.c-rayos { transform-origin: 0 0; }
.misa-escena.abierto .me-custodia { opacity: 1; transform: translateX(-50%) scale(1); filter: drop-shadow(0 0 10px rgba(255,236,170,.9)); }
.misa-escena.eleva .me-custodia { transform: translateX(-50%) translateY(-22%) scale(1.55); filter: drop-shadow(0 0 22px rgba(255,248,215,1)) drop-shadow(0 0 50px rgba(255,210,120,.8)); }
.misa-escena.eleva .c-rayos { animation: rayos 14s linear infinite; }
@keyframes rayos { to { transform: rotate(360deg); } }
.me-puertas { position: absolute; inset: 8px 10px 8px; z-index: 2; transform-style: preserve-3d; }
.me-p { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(135deg, #ffe7a3, #d9a441 45%, #9b6a1c); box-shadow: inset 0 0 0 2px #8a5c16, inset 0 0 12px rgba(80,40,0,.5); transition: transform 1.6s cubic-bezier(.2,.8,.2,1); backface-visibility: visible; }
.me-pi { left: 0; border-radius: 38px 0 0 2px; transform-origin: left center; } .me-pd { right: 0; border-radius: 0 38px 2px 0; transform-origin: right center; }
.me-pi::after, .me-pd::after { content: '✚'; position: absolute; top: 44%; font-size: 15px; color: #7a4f14; text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.me-pi::after { right: 4px; } .me-pd::after { left: 4px; }
.misa-escena.abierto .me-pi { transform: rotateY(-112deg); } .misa-escena.abierto .me-pd { transform: rotateY(112deg); }
.me-vela { position: absolute; bottom: 20%; width: 13px; height: 23%; }
.me-vela-i { left: calc(50% - min(30%, 210px)); } .me-vela-d { right: calc(50% - min(30%, 210px)); }
.me-vela b { position: absolute; left: 0; right: 0; bottom: 0; top: 18px; border-radius: 3px; background: linear-gradient(90deg, #d9cdb4, #fffaf0 45%, #cfc2a6); }
.me-vela i { position: absolute; left: 50%; top: 0; width: 12px; height: 20px; margin-left: -6px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 70%, #fff 0 20%, #ffd76a 35%, #ff9a2a 70%, transparent 72%); box-shadow: 0 0 22px 8px rgba(255,170,60,.35); animation: flama 1.8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.me-vela-d i { animation-delay: -.7s; }
@keyframes flama { 0% { transform: scale(1, 1) rotate(-2deg); } 40% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.05, .95) rotate(-1deg); } }
.me-libro { position: absolute; left: 7%; bottom: 20%; width: 58px; height: 22px; display: flex; transform: perspective(200px) rotateX(35deg); opacity: .55; transition: opacity .8s, filter .8s; }
.me-libro i { flex: 1; background: linear-gradient(180deg, #fffaf0, #e4d7b8); border: 1px solid #b89a5e; }
.me-libro i:first-child { border-radius: 4px 0 0 4px; transform: skewY(4deg); } .me-libro i:last-child { border-radius: 0 4px 4px 0; transform: skewY(-4deg); }
.misa-escena.palabra .me-libro { opacity: 1; filter: drop-shadow(0 0 12px rgba(255,230,160,.9)); }

.misa-card { position: relative; z-index: 2; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px max(16px, calc(50% - 360px)) 20px; background: linear-gradient(180deg, rgba(10,7,14,.0), rgba(10,7,14,.72) 40px); overscroll-behavior: contain; }
.misa-cargando { text-align: center; padding: 40px 10px; color: rgba(246,239,223,.8); font-size: 17px; }
.misa-sec { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 800; color: var(--oro); }
.misa-paso { font-family: var(--f-tit); font-size: 23px; margin: 4px 0 12px; line-height: 1.2; }
.ml { margin: 0 0 12px; } .ml p { margin: 0; font-family: var(--f-txt); font-size: calc(var(--fs) + 2px); line-height: 1.5; }
.ml-rol { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,239,223,.5); margin-bottom: 2px; }
.ml-t p { font-weight: 700; color: #fff; } .ml-t .ml-rol { color: #F5C542; }
.ml-s p { color: #efe6d4; }
.ml-g p { font-family: var(--f-ui); font-size: 16px; font-style: italic; color: #f3d99a; line-height: 1.55; }
.ml-l p { color: #f1ead9; }
.ml-j { border-left: 3px solid #e8573f; padding-left: 12px; } .ml-j p { font-style: italic; color: #ffcbb8; font-size: calc(var(--fs) + 4px); } .ml-j .ml-rol { color: #ff9a85; }
.ml-r p { font-weight: 800; color: var(--oro); }
.ml-tag p { font-family: var(--f-txt); font-size: 18px; color: rgba(246,239,223,.65); }
.ml-chica p { font-size: 13.5px; font-style: normal; color: rgba(246,239,223,.62); }
.ml-h { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,197,66,.85); }
.misa-dia { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(245,197,66,.3); background: rgba(245,197,66,.06); } .misa-dia b { font-family: var(--f-tit); font-size: 15px; } .misa-dia p { margin: 6px 0 0; font-size: 14px; color: rgba(246,239,223,.7); }
.misa-espera { margin: 14px 0; padding: 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.misa-espera .btn-link { display: inline; margin: 0 0 0 6px; padding: 0; }
.misa-fin { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.misa-ctl { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 12px 4px; background: rgba(6,4,10,.85); }
.misa-b { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); font-size: 18px; }
.misa-b:disabled { opacity: .3; }
.misa-b.principal { width: auto; min-width: 190px; padding: 0 24px; border-radius: 99px; border: 0; font-weight: 800; font-size: 16.5px; color: #1b1204; background: linear-gradient(135deg, #ffe08a, var(--oro) 45%, var(--oro2)); box-shadow: 0 0 26px rgba(245,197,66,.45); }
.misa-b.principal.activo { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(245,197,66,.6); }
.misa-auto { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: rgba(246,239,223,.7); padding: 4px 12px calc(10px + var(--seg-bot)); background: rgba(6,4,10,.85); }
.misa-auto input { width: 18px; height: 18px; accent-color: var(--oro); }
.misa-lista { position: absolute; z-index: 6; top: calc(58px + var(--seg-top)); right: 10px; width: min(330px, calc(100% - 20px)); max-height: 70vh; overflow-y: auto; padding: 8px; border-radius: 16px; background: rgba(14,10,20,.97); border: 1px solid rgba(245,197,66,.3); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.misa-lista h5 { margin: 10px 8px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); }
.misa-lista button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font-size: 14.5px; }
.misa-lista button.actual { background: rgba(245,197,66,.16); color: #fff; font-weight: 800; }
@media (max-width: 520px) { .misa-paso { font-size: 20px; } .ml p { font-size: calc(var(--fs) + 1px); } .misa-b.principal { min-width: 160px; font-size: 15.5px; } .me-sagrario { width: 78px; height: 86px; } }
@media (prefers-reduced-motion: reduce) { .me-vela i, .misa-escena.eleva .c-rayos { animation: none; } }
.misa-escena.eleva .me-cruz { opacity: .35; transition: opacity 1s; }
.misa-escena.eleva .me-custodia { transform: translateX(-50%) translateY(-10%) scale(1.5); }
@media (max-width: 520px) { .ml-g p { font-size: 15.5px; } .ml-chica p { font-size: 13px; } .ml-tag p { font-size: 17px; } .me-libro { left: 2%; width: 44px; } }
@media (max-width: 440px) { .hud-botones { gap: 6px; flex-wrap: nowrap; } .hud-btn { padding: 10px 11px; font-size: 12.5px; gap: 5px; white-space: nowrap; } .xtodo { display: none; } }
/* Escena de la Misa con la foto del Santísimo */
.me-foto-fondo { position: absolute; inset: -30px; background: url(/img/santisimo.jpg) center 35% / cover no-repeat; filter: blur(22px) brightness(.32) saturate(1.1); transform: scale(1.1); }
.me-foto { position: absolute; left: 50%; top: -3%; height: 150%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 30%;
  -webkit-mask-image: radial-gradient(ellipse 50% 48% at 50% 36%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 48% at 50% 36%, #000 62%, transparent 100%);
  filter: brightness(.6) saturate(.9); transition: filter 1.6s ease, transform 1.8s cubic-bezier(.2,.8,.2,1); }
.misa-escena.abierto .me-foto { filter: brightness(1) saturate(1.05) drop-shadow(0 0 18px rgba(255,220,140,.35)); }
.misa-escena.eleva .me-foto { filter: brightness(1.14) saturate(1.1) drop-shadow(0 0 28px rgba(255,236,170,.6)); transform: translateX(-50%) scale(1.07); }
.misa-escena .me-luz { bottom: auto; top: 30%; transform: translate(-50%, -50%); width: 360px; height: 360px; opacity: .55; }
.misa-escena.abierto .me-luz { opacity: .8; } .misa-escena.eleva .me-luz { opacity: 1; width: 620px; height: 620px; }
.me-rayos { position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity 1.4s ease;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,180,.22) 0deg 3deg, transparent 3deg 12deg); -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 62%); mask-image: radial-gradient(circle, #000 8%, transparent 62%); }
.misa-escena.abierto .me-rayos { opacity: .35; } .misa-escena.eleva .me-rayos { opacity: .85; animation: rayos 40s linear infinite; }
.me-lit { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lit, #3FAF6A); opacity: .85; box-shadow: 0 0 12px var(--lit, #3FAF6A); }
.misa-hero .mh-foto { display: block; width: min(240px, 70%); height: auto; margin: 0 auto 8px; border-radius: 18px; box-shadow: 0 0 40px rgba(245,197,66,.35); }

/* ---------- Capilla de adoración ---------- */
#capilla { position: fixed; inset: 0; z-index: 56; overflow: hidden; background: #07050a; color: #F6EFDF; opacity: 0; transition: opacity .5s ease; touch-action: auto; }
#capilla.entra { opacity: 1; }
.cap-fondo { position: absolute; inset: -40px; background: url(/img/santisimo.jpg) center 30% / cover no-repeat; filter: blur(26px) brightness(.38) saturate(1.15); transform: scale(1.12); }
.cap-foto { position: absolute; left: 50%; top: calc(56px + var(--seg-top)); height: calc(100% - 56px - var(--seg-top)); width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 35%;
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 40%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 58% 60% at 50% 40%, #000 60%, transparent 100%);
  filter: brightness(1.02) saturate(1.05) drop-shadow(0 0 30px rgba(255,220,140,.35)); animation: respira 9s ease-in-out infinite; }
@keyframes respira { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.025); } }
.cap-luz { position: absolute; left: 50%; top: 32%; width: 720px; height: 720px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,240,200,.45), rgba(255,200,110,.12) 42%, transparent 70%); animation: late 6s ease-in-out infinite; }
@keyframes late { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
.cap-rayos { position: absolute; left: 50%; top: 32%; width: 1300px; height: 1300px; margin: -650px 0 0 -650px; border-radius: 50%; opacity: .5; mix-blend-mode: screen; animation: rayos 90s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,190,.16) 0deg 2.5deg, transparent 2.5deg 10deg); -webkit-mask-image: radial-gradient(circle, #000 5%, transparent 60%); mask-image: radial-gradient(circle, #000 5%, transparent 60%); }
.cap-chispas i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px 2px rgba(255,220,140,.8); opacity: 0; animation: chispa 14s linear infinite; }
.cap-chispas i:nth-child(odd) { width: 3px; height: 3px; }
.cap-chispas i:nth-child(1){left:8%;animation-delay:0s}.cap-chispas i:nth-child(2){left:17%;animation-delay:-3s}.cap-chispas i:nth-child(3){left:26%;animation-delay:-7s}.cap-chispas i:nth-child(4){left:35%;animation-delay:-1.5s}.cap-chispas i:nth-child(5){left:44%;animation-delay:-9s}.cap-chispas i:nth-child(6){left:53%;animation-delay:-5s}.cap-chispas i:nth-child(7){left:62%;animation-delay:-11s}.cap-chispas i:nth-child(8){left:71%;animation-delay:-2.5s}.cap-chispas i:nth-child(9){left:80%;animation-delay:-8s}.cap-chispas i:nth-child(10){left:89%;animation-delay:-4s}.cap-chispas i:nth-child(11){left:12%;animation-delay:-12s}.cap-chispas i:nth-child(12){left:48%;animation-delay:-6.5s}.cap-chispas i:nth-child(13){left:67%;animation-delay:-10s}.cap-chispas i:nth-child(14){left:93%;animation-delay:-13s}
@keyframes chispa { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-105vh) translateX(30px); opacity: 0; } }
.cap-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--seg-top)) 12px 8px; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.cap-reloj { min-width: 42px; text-align: right; font-weight: 800; font-size: 15px; color: var(--oro); font-variant-numeric: tabular-nums; }
.cap-panel { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); width: min(720px, 100%); max-height: 52%; display: flex; flex-direction: column; padding: 0 10px calc(10px + var(--seg-bot)); }
.cap-card { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 12px; border-radius: 22px; background: rgba(12,8,16,.78); border: 1px solid rgba(245,197,66,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -10px 40px rgba(0,0,0,.45); text-align: center; }
.cap-card h3 { font-family: var(--f-tit); font-size: 19px; margin: 6px 0 12px; }
.cap-card .misa-paso { font-size: 20px; }
.cap-lema { font-family: var(--f-txt); font-style: italic; font-size: 18px; color: #f3d99a; margin: 0; }
.cap-opc { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; } .cap-opc .btn-sec { min-width: 74px; }
.cap-card .btn.grande small { font-weight: 600; opacity: .8; margin-left: 4px; }
.cap-nota { font-size: 13px; color: rgba(246,239,223,.65); margin: 8px 0; }
.cap-texto { text-align: left; } .cap-texto .ml p { font-size: calc(var(--fs) + 1px); }
.cap-ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.cap-card .btn-link { margin-top: 4px; }
.santisimo-hero { background: linear-gradient(155deg, rgba(245,197,66,.16), rgba(255,255,255,.04)); border-color: rgba(245,197,66,.4); }
.santisimo-hero img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.santisimo-hero .fecha { color: #F5D98A; }
ol.apariciones.santisimo .ap-num { background: linear-gradient(135deg, #F5C542, #fff3c4); color: #3a2a05; }
@media (prefers-reduced-motion: reduce) { .cap-foto, .cap-rayos, .cap-chispas i, .cap-luz { animation: none; } }
.cap-ctl { position: sticky; bottom: -12px; padding: 8px 0 10px; background: linear-gradient(180deg, rgba(12,8,16,0), rgba(12,8,16,.95) 30%); }
.cuenta-nino { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 99px; background: rgba(245,197,66,.14); color: #F5D98A; font-weight: 800; font-size: 14px; }

/* ---------- Para Niños: historias en diálogo ---------- */
.ni-hola { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(244,135,156,.16), rgba(63,182,240,.14)); border: 1px solid rgba(255,255,255,.1); }
.ni-par { display: flex; flex-shrink: 0; }
.ni-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; border: 2px solid; }
.ni-m { background: rgba(244,135,156,.2); border-color: #F4879C; }
.ni-a { background: rgba(63,182,240,.2); border-color: #3FB6F0; margin-left: -12px; }
.ni-saludo { margin: 0 0 2px; font-weight: 800; font-size: 16px; }
.ni-hola .nota { margin: 0; }
.c-m { color: #F7A3B5; } .c-a { color: #7FCDF5; }
.ni-tot { margin-left: auto; text-align: center; padding: 8px 12px; border-radius: 14px; background: rgba(245,197,66,.14); color: #F5D98A; font-size: 15px; line-height: 1.1; flex-shrink: 0; }
.ni-tot b { font-size: 20px; } .ni-tot small { display: block; font-size: 11px; opacity: .8; }
.ni-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.ni-filtros .chip { border: 1px solid transparent; font-size: 13px; padding: 7px 12px; cursor: pointer; }
.ni-filtros .chip.on { border-color: var(--ac, var(--oro)); background: color-mix(in srgb, var(--ac, var(--oro)) 32%, transparent); color: #fff; }
.ni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ni-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 10px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 18%, transparent), rgba(255,255,255,.02)); color: var(--texto); transition: transform .15s; }
.ni-card:active { transform: scale(.97); }
.ni-card .emo { font-size: 36px; }
.ni-card b { font-size: 14px; text-align: center; line-height: 1.2; }
.ni-card small { font-size: 11.5px; color: var(--tenue); text-align: center; }
.ni-est { color: #F5C542; letter-spacing: 1px; font-size: 14px; }
.ni-est i { font-style: normal; color: rgba(255,255,255,.18); }
.ni-est em { font-style: normal; letter-spacing: 0; }
.ni-est.grande { font-size: 38px; letter-spacing: 4px; }
.ni-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 16px 0 4px; }
.ni-juego { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid rgba(155,107,242,.45); background: linear-gradient(135deg, rgba(155,107,242,.2), rgba(62,214,197,.08)); color: var(--texto); }
.ni-juego span { grid-row: span 2; font-size: 32px; }
.ni-juego b { font-size: 15.5px; } .ni-juego small { color: var(--tenue); font-size: 12.5px; }
.ni-volver { margin: 0 0 6px; text-align: left; padding-left: 0; }
.ni-hero { text-align: center; padding: 18px 14px; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 22%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); }
.ni-hero h3 { font-family: var(--f-tit); font-size: 22px; margin: 2px 0; }
.ni-hero .nota { margin: 8px 0 0; }
.ni-cat { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--ac); text-transform: uppercase; letter-spacing: .06em; }
.ni-ref { margin: 0 0 10px; color: var(--tenue); font-size: 13.5px; }
.ni-chat { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.nb { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; border: 0; background: none; padding: 0; color: var(--texto); text-align: left; font: inherit; }
.nb-a { align-self: flex-end; flex-direction: row-reverse; text-align: left; }
.nb-av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.nb-m .nb-av { background: rgba(244,135,156,.22); } .nb-a .nb-av { background: rgba(63,182,240,.22); }
.nb-in { display: block; padding: 10px 14px; border-radius: 18px; font-size: 16.5px; line-height: 1.5; transition: box-shadow .25s, transform .25s, background .25s; }
.nb-in small { display: block; font-size: 11.5px; font-weight: 800; margin-bottom: 2px; }
.nb-m .nb-in { background: rgba(244,135,156,.13); border: 1px solid rgba(244,135,156,.3); border-bottom-left-radius: 5px; }
.nb-a .nb-in { background: rgba(63,182,240,.13); border: 1px solid rgba(63,182,240,.3); border-bottom-right-radius: 5px; }
.nb-m .nb-in small { color: #F7A3B5; } .nb-a .nb-in small { color: #7FCDF5; }
.nb.habla .nb-in { transform: scale(1.02); }
.nb-m.habla .nb-in { background: rgba(244,135,156,.3); box-shadow: 0 0 22px rgba(244,135,156,.45); }
.nb-a.habla .nb-in { background: rgba(63,182,240,.3); box-shadow: 0 0 22px rgba(63,182,240,.45); }
.nb.habla .nb-av { animation: niHabla .6s ease-in-out infinite alternate; }
@keyframes niHabla { from { transform: translateY(0); } to { transform: translateY(-4px) scale(1.08); } }
.nb.nueva .nb-in { animation: niEntra .4s ease-out; }
@keyframes niEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ni-leccion { margin: 12px 0; padding: 14px 16px; border-radius: 18px; background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.3); transition: box-shadow .25s; }
.ni-leccion h4 { margin: 0 0 6px; color: var(--oro); font-size: 15.5px; }
.ni-leccion p { margin: 0; font-size: 16px; line-height: 1.5; }
.ni-reto { background: rgba(62,214,197,.08); border-color: rgba(62,214,197,.35); }
.ni-reto h4 { color: var(--turquesa); }
.ni-leccion.habla { box-shadow: 0 0 24px rgba(245,197,66,.35); }
.ni-quiz { margin: 18px 0; padding: 16px; border-radius: 20px; background: rgba(155,107,242,.1); border: 1px solid rgba(155,107,242,.35); scroll-margin-top: 10px; }
.ni-quiz h4 { margin: 0 0 4px; font-size: 17px; }
.ni-p { margin: 14px 0; }
.ni-pt { font-weight: 700; font-size: 16px; line-height: 1.4; margin-bottom: 8px; }
.ni-oir { border: 0; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px 8px; font-size: 14px; vertical-align: middle; }
.ni-oir.activo { background: var(--rosa); }
.ni-ops { display: grid; gap: 7px; }
.ni-op { text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--texto); font-size: 15px; font-weight: 600; }
.ni-op:disabled { opacity: .55; }
.ni-op.bien { opacity: 1; background: rgba(108,203,95,.25); border-color: #6CCB5F; }
.ni-op.bien::before { content: '✅ '; }
.ni-op.mal { opacity: 1; background: rgba(232,87,63,.22); border-color: #E8573F; }
.ni-op.mal::before { content: '❌ '; }
.ni-res { text-align: center; padding: 12px 0 0; }
.ni-res p { margin: 6px 0; }
.ni-nav { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.ni-nav .btn-sec { max-width: 48%; font-size: 13px; }
.ni-adiv .ni-chat { text-align: left; }
.ni-respuesta { margin-top: 12px; display: flex; flex-direction: column; align-items: center; animation: niEntra .4s ease-out; }
.ni-respuesta .nb { align-self: center; }
@media (max-width: 440px) { .nb { max-width: 94%; } .nb-in { font-size: 15.5px; } .ni-tot { padding: 6px 8px; } .ni-av { width: 38px; height: 38px; font-size: 22px; } }

/* ---------- Sagrado Corazón: santa Margarita y los nueve primeros viernes ---------- */
.sub.chica { font-size: 15px; margin-top: 16px; }
.marg-cab .fecha { margin: 0 0 4px; }
.pv-promesa { border-left: 3px solid #E8573F; padding-left: 12px; font-style: italic; color: #F3D5CE; }
.pv-cuenta h4 { margin: 0 0 4px; font-size: 16px; color: var(--oro); }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.pv-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid rgba(232, 87, 63, .35); background: rgba(255, 255, 255, .04); color: var(--texto); }
.pv-c b { font-size: 19px; }
.pv-c small { font-size: 11px; color: var(--tenue); }
.pv-c.hecho { background: rgba(232, 87, 63, .25); border-color: #E8573F; }
.pv-c.hecho b::after { content: ' ✓'; font-size: 13px; color: #FFC9BC; }
.pv-c.hecho small { color: #FFD6CC; }
.pv-total { grid-column: 1 / -1; text-align: center; margin: 6px 0 0; font-size: 14.5px; color: var(--tenue); }
.pv-total b { color: var(--oro); font-size: 17px; }
.nov-dias { margin: 8px 0 0; padding-left: 22px; }
.nov-dias li { font-size: 14.5px; margin: 3px 0; }
.cristobal-hero { --ac: #3FB6F0; }
.cristobal-hero figure img { object-position: center 18%; }
.tomas-hero { --ac: #F5C542; }
.frases-santo { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.frases-santo li { padding: 10px 14px; border-radius: 14px; background: rgba(245, 197, 66, .08); border-left: 3px solid var(--oro); font-style: italic; font-size: 15.5px; }
.juandiego-hero { --ac: #F4879C; }
.jp2-hero { --ac: #9B6BF2; }
.judas-hero { --ac: #6CCB5F; }
.charbel-hero { --ac: #C8902E; }
.nino-hero { --ac: #3FB6F0; }
.jose-hero { --ac: #C79A3E; }
.miguel-hero { --ac: #E04F3D; }
.antonio-hero { --ac: #7FA85C; }
.martin-hero { --ac: #A9743F; }
.francisco-hero { --ac: #8C7A4A; }
.felipe-hero { --ac: #3E9E5B; }
.magallanes-hero { --ac: #C9A227; }
.guizar-hero { --ac: #A8437D; }
.lupita-hero { --ac: #4FA8C9; }
.sanchezdelrio-hero { --ac: #D96A3F; }

/* ================= La ventana grande del Vaticano ================= */
.ventana.grande { width: calc(var(--vw) * 2.05); }
.ventana.grande .v-in {
  display: block; padding: 0; border-radius: 22px; overflow: hidden;
  border-width: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset, 0 18px 50px rgba(0, 0, 0, .6), 0 0 54px color-mix(in srgb, var(--ac) 42%, transparent);
}
.ventana.grande .v-in::before { display: none; }
.ventana.grande .v-foto { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.ventana.grande .v-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .5s; }
.ventana.grande:hover .v-foto img { transform: scale(1.07); }
.ventana.grande .v-foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 26, .1) 0%, rgba(6, 8, 26, .25) 45%, rgba(6, 8, 26, .93) 100%);
}
.ventana.grande .v-cuerpo { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 13px; display: grid; grid-template-columns: auto 1fr; gap: 4px 11px; align-items: center; }
.ventana.grande .v-ic { grid-row: span 2; width: 44px; height: 44px; font-size: 23px; }
.ventana.grande .v-txt b { font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.ventana.grande .v-txt small { font-size: 12px; color: #dfe4ff; }
.ventana.grande .v-abrir { grid-column: 2; justify-self: start; margin-top: 3px; }
.ventana.grande .v-insignia {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px;
  background: rgba(8, 10, 30, .74); border: 1px solid color-mix(in srgb, var(--ac) 70%, transparent);
  color: #fff; backdrop-filter: blur(4px); text-transform: uppercase;
}
@media (max-width: 700px) { .ventana.grande { width: calc(var(--vw) * 1.85); } .ventana.grande .v-txt b { font-size: 15.5px; } }

/* ================= Los submundos: El Vaticano, Guadalupe… ================= */
.mundo { position: fixed; inset: 0; z-index: 70; background: #050409; opacity: 0; transition: opacity .3s; overscroll-behavior: contain; }
.mundo.entra { opacity: 1; }
.vt-cielo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.vt-universo { position: absolute; inset: 0; perspective: 1100px; transform-style: preserve-3d; pointer-events: none; }
.vt-universo .ventana { pointer-events: auto; }
.vt-universo .constelacion { pointer-events: none; }

.vt-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; z-index: 6; }
.vt-x, .vt-cir { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(10, 8, 30, .6); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 17px; backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.vt-x:hover, .vt-cir:hover { background: rgba(30, 24, 70, .85); border-color: #F5C542; }
.vt-tit { flex: 1; min-width: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.vt-tit small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #F5C542; }
.vt-tit b { display: block; font-family: var(--f-tit); font-size: 19px; line-height: 1.15; color: #fff; letter-spacing: .04em; }
.vt-pista { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 5; margin: 0; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; background: rgba(10, 8, 30, .6); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 13px; backdrop-filter: blur(6px); pointer-events: none; animation: vtlat 2.8s ease-in-out infinite; }
@keyframes vtlat { 0%, 100% { opacity: .95 } 50% { opacity: .5 } }

/* La hoja de cada ventana */
.vt-hoja { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 8; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(175deg, rgba(16, 18, 52, .985), rgba(6, 8, 24, .99)); border-left: 1px solid color-mix(in srgb, var(--ac, #F5C542) 35%, transparent);
  box-shadow: -22px 0 64px rgba(0, 0, 0, .6); animation: vtEntra .3s ease; }
@keyframes vtEntra { from { transform: translateX(28px); opacity: 0 } }
.vt-hoja-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(12, 14, 44, .98), rgba(12, 14, 44, .86)); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.vt-hoja-x { width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; order: 3; margin-left: auto;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.vt-hoja-x:hover { border-color: var(--ac, #F5C542); }
.vt-hoja-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 19px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ac, #F5C542) 70%, white 10%), color-mix(in srgb, var(--ac, #F5C542) 22%, #0a0c24) 70%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--ac, #F5C542) 55%, transparent); }
.vt-hoja-tt { min-width: 0; }
.vt-hoja-tt small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ac, #F5C542); }
.vt-hoja-tt b { display: block; font-family: var(--f-tit); font-size: 17px; line-height: 1.15; color: #fff; }
.vt-hoja-in { padding: 16px 20px 44px; color: #dfe4ff; }
.vt-hero { margin: 0 0 14px; }
.vt-hero img { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid rgba(255, 255, 255, .1); }
.vt-hero figcaption, .vt-galeria figcaption { margin-top: 7px; font-size: 11.5px; line-height: 1.45; color: #8f98c8; }
.vt-sub { margin: 0 0 14px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #98a1cf; }
.vt-h3 { font-family: var(--f-tit); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ac, #F5C542); margin: 26px 0 11px; }
.vt-acc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.vt-cred { font-size: 11px; line-height: 1.5; color: #767fac; margin: 16px 0 0; }
.vt-caps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 11px; }
.vt-caps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 13px 14px; border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.vt-num { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--ac, #F5C542) 20%, transparent); color: var(--ac, #F5C542); }
.vt-caps b { display: block; font-family: var(--f-tit); font-size: 14.5px; color: #fff; margin-bottom: 4px; }
.vt-caps p { margin: 0; font-size: 13.8px; line-height: 1.6; }
.vt-galeria { display: grid; gap: 14px; }
.vt-galeria figure { margin: 0; }
.vt-galeria img { width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid rgba(255, 255, 255, .08); }
.vt-rejilla { display: grid; gap: 8px; }
.vt-sec { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 13px; border-radius: 13px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); color: inherit; transition: background .2s, border-color .2s; }
.vt-sec:hover { background: color-mix(in srgb, var(--ac, #F5C542) 12%, transparent); border-color: color-mix(in srgb, var(--ac, #F5C542) 55%, transparent); }
.vt-sec > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-sec b { font-family: var(--f-tit); font-size: 14px; color: #fff; }
.vt-sec small { font-size: 11.5px; color: #97a0cc; }
.vt-sec-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ac, #F5C542) 45%, transparent), color-mix(in srgb, var(--ac, #F5C542) 10%, transparent) 70%); }

/* El índice de todas las ventanas */
.vt-lista { position: absolute; inset: 0; z-index: 9; overflow-y: auto; background: rgba(5, 4, 12, .93); backdrop-filter: blur(10px); animation: vtEntra .25s ease; }
.vt-lista-in { max-width: 780px; margin: 0 auto; padding: 18px 20px 60px; color: #dfe4ff; }
.vt-lista-in > header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vt-lista-in h2 { flex: 1; font-family: var(--f-tit); font-size: 22px; margin: 0; color: #fff; }
.vt-lista-in section { margin-bottom: 22px; }
.vt-lista-in h3 { font-family: var(--f-tit); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); margin: 0 0 10px; }
@media (min-width: 620px) { .vt-lista-in .vt-rejilla { grid-template-columns: 1fr 1fr; } }

body.con-mundo #universo, body.con-mundo #cielo, body.con-mundo .hud-top, body.con-mundo .hud-bottom { visibility: hidden; }
@media (max-width: 700px) {
  .vt-hoja { top: auto; height: 84%; width: 100%; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--ac, #F5C542) 35%, transparent); border-radius: 20px 20px 0 0; animation: vtSube .3s ease; }
  @keyframes vtSube { from { transform: translateY(32px); opacity: 0 } }
  .vt-tit b { font-size: 16px; }
  .vt-hoja-in { padding: 14px 16px 44px; }
  .vt-pista { font-size: 12px; bottom: 26px; }
}

/* Las ventanas copiadas del universo principal, dentro de un submundo:
   la hoja es más angosta que el panel, así que sus héroes se apilan. */
.vt-hoja-in .panel-contenido { display: block; }
.vt-hoja-in .guada-hero, .vt-hoja-in .toribio-hero, .vt-hoja-in .zapopan-hero { grid-template-columns: 1fr; text-align: center; }
.vt-hoja-in .guada-hero .acciones, .vt-hoja-in .toribio-hero .acciones { justify-content: center; }
.vt-hoja-in .guada-foto, .vt-hoja-in .guada-svg { max-width: 240px; margin: 0 auto; }
.vt-hoja-in .toribio-hero figure { max-width: 260px; margin: 0 auto; }
.vt-hoja-in .grid-simbolos { grid-template-columns: 1fr 1fr; }
.vt-hoja-in .vt-otras { margin-top: 28px; }
.vt-hoja-in .vt-otras h3 { grid-column: 1 / -1; }
