/* ═══════════════════════════════════════════════════════════════
   Centro Cristiano El Recreo — app pública
   Colores tomados de la app Android (res/values/colors.xml y colors_night.xml)
   Todo vive dentro de #recreo para no chocar con el panel admin ni la privacidad.
   ═══════════════════════════════════════════════════════════════ */
#recreo {
  --sup: #EEF3FF; --tarjeta: #FFFFFF; --prim: #4AA8FF; --prim-osc: #26315C; --prim-claro: #9AD4FF;
  --acento: #34D6B8; --rojo: #FF6B7A; --linea: #CFE2FB; --txt: #1F2A44; --txt2: #8896AD;
  --nav: #E4EEFC; --nav-ind: #C7EDE1; --nav-off: #93A4C4; --chip: #DCEEFF; --titulo: #26315C;
  --sombra: 0 6px 18px rgba(38, 49, 92, .12); --sombra-s: 0 2px 8px rgba(38, 49, 92, .10);
  --verso: #14203a; --comentario: #3b4a6b; --ok: #1d9a63; --mal: #d64557;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column;
  background: var(--sup); color: var(--txt); font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 14.2px; line-height: 1.45; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
html[data-rc-tema="oscuro"] #recreo {
  --sup: #0B0F1E; --tarjeta: #141B33; --prim: #5FC1FF; --prim-osc: #0B1226; --prim-claro: #8FD9FF;
  --acento: #3DE6C6; --rojo: #FF8894; --linea: #22335A; --txt: #EAF1FC; --txt2: #8696B8;
  --nav: #141B33; --nav-ind: #1F3A5A; --nav-off: #7688AE; --chip: #182444; --titulo: #FFFFFF;
  --sombra: 0 6px 18px rgba(0, 0, 0, .45); --sombra-s: 0 2px 8px rgba(0, 0, 0, .35);
  --verso: #EAF1FC; --comentario: #B8CBE0; --ok: #3DE6A0; --mal: #FF8894;
  color-scheme: dark;
}
#recreo[hidden] { display: none !important; }
/* Reseteos con :where() = especificidad 0, para que las clases de cada componente siempre ganen */
:where(#recreo) *, :where(#recreo) *::before, :where(#recreo) *::after { box-sizing: border-box; }
:where(#recreo) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
:where(#recreo) a { color: inherit; }
:where(#recreo) svg { display: block; }
:where(#recreo) input, :where(#recreo) textarea { font: inherit; }
:where(#recreo) h1, :where(#recreo) h2, :where(#recreo) h3, :where(#recreo) p, :where(#recreo) ul { margin: 0; }
.rc-oculto { display: none !important; }

/* ── Línea de sincronización (BarraSync) ── */
.rc-sync { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 56px); height: 3px; z-index: 40; pointer-events: none; transform-origin: left; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, var(--prim), var(--acento)); }
.rc-sync.on { opacity: 1; animation: rc-sync 3.2s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes rc-sync { 0% { transform: scaleX(0); opacity: 1; } 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ── Barra superior ── */
.rc-top { flex: none; display: flex; align-items: center; gap: 4px; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) 8px 0 8px; background: var(--sup); z-index: 30; }
.rc-btn-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--titulo); position: relative; transition: background .15s, transform .15s; }
.rc-btn-ico:hover { background: rgba(120, 150, 200, .16); }
.rc-btn-ico:active { transform: scale(.92); }
.rc-btn-ico img { width: 30px; height: 30px; display: block; }
.rc-btn-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-btn-ico.col-prim { color: var(--prim); }
.rc-btn-ico.col-rojo { color: var(--rojo); }
.rc-marca { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding-left: 6px; }
.rc-marca img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: var(--sombra-s); }
.rc-marca strong { font-size: 14.2px; font-weight: 700; color: var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-titulo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; color: var(--titulo); padding-left: 4px; }
.rc-titulo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-titulo.clic { cursor: pointer; border-radius: 10px; padding: 6px 8px; }
.rc-titulo.clic:hover { background: rgba(120, 150, 200, .16); }
.rc-titulo .chev { font-size: 12.3px; color: var(--prim); flex: none; }
.rc-spin-mini { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linea); border-top-color: var(--prim); animation: rc-gira .9s linear infinite; flex: none; }
@keyframes rc-gira { to { transform: rotate(360deg); } }
.rc-badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FF3B4E; color: #fff; font-size: 10.4px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--sup); }
.rc-badge.pop { animation: rc-pop .26s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rc-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.rc-btn-txt { height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13.2px; font-weight: 600; color: var(--titulo); display: flex; align-items: center; gap: 4px; }
.rc-btn-txt:hover { background: rgba(120, 150, 200, .16); }

/* ── Zona principal y páginas ── */
.rc-main { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.rc-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--sup); }
.rc-page.con-nav { padding-bottom: calc(96px + var(--safe-b)); }
.rc-page.sin-nav { padding-bottom: calc(24px + var(--safe-b)); }
.rc-in-der { animation: rc-in-der .25s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.rc-in-izq { animation: rc-in-izq .25s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.rc-in-fade { animation: rc-in-fade .2s ease both; z-index: 2; }
.rc-out { animation: rc-out .2s ease both; z-index: 1; pointer-events: none; }
@keyframes rc-in-der { from { transform: translateX(38%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rc-in-izq { from { transform: translateX(-38%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rc-in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rc-out { to { opacity: 0; } }
.rc-ent { animation: rc-sube .24s cubic-bezier(0, 0, .2, 1) both; animation-delay: calc(260ms + var(--i, 0) * 40ms); }
@keyframes rc-sube { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.rc-cont { max-width: 760px; margin: 0 auto; padding: 8px 14px 0; }

/* ── Barra inferior (la "isla"): relieve suave + íconos clay + óvalo indicador, como la app ── */
.rc-nav { position: absolute; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); z-index: 30; width: min(calc(100% - 68px), 400px); height: 62px; margin: 0 auto; display: flex; align-items: stretch; border-radius: 31px; padding: 0 6px;
  background: linear-gradient(135deg, #FFFFFF, var(--nav)); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 2px 4px 0 rgba(169, 200, 218, .4), 0 10px 24px rgba(38, 49, 92, .16); transition: transform .25s ease, opacity .25s ease; }
html[data-rc-tema="oscuro"] .rc-nav { background: linear-gradient(135deg, #243458, var(--nav)); border-color: rgba(255, 255, 255, .13); box-shadow: 2px 4px 0 rgba(0, 0, 0, .46), 0 10px 24px rgba(0, 0, 0, .5); }
.rc-nav.fuera { transform: translateY(150%); opacity: 0; pointer-events: none; }
.rc-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px 2px; color: var(--nav-off); font-size: 10.9px; font-weight: 600; transition: color .2s; }
.rc-nav .ind { position: absolute; top: 4px; left: 50%; width: 54px; height: 30px; margin-left: -27px; border-radius: 15px; background: var(--nav-ind); opacity: 0; transform: scale(.55); transition: opacity .22s, transform .28s cubic-bezier(.3, 1.5, .5, 1); }
.rc-nav .ico { position: relative; width: 28px; height: 28px; margin-bottom: 1px; }
.rc-nav .ico img { position: absolute; inset: 0; width: 28px; height: 28px; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.rc-nav .ico .on { opacity: 0; transform: scale(.7); }
.rc-nav button.act { color: var(--prim-osc); }
html[data-rc-tema="oscuro"] .rc-nav button.act { color: #fff; }
.rc-nav button.act .ind { opacity: 1; transform: scale(1); }
.rc-nav button.act .ico .on { opacity: 1; transform: translateY(-1px) scale(1.05); }
.rc-nav button.act .ico .off { opacity: 0; }
.rc-nav button:active .ico { transform: scale(.9); }
.rc-nav .txt { position: relative; line-height: 1.1; }

/* ── Tarjetas / listas genéricas ── */
.rc-card { background: var(--tarjeta); border-radius: 18px; box-shadow: var(--sombra-s); padding: 16px; }
.rc-vacio { text-align: center; color: var(--txt2); padding: 48px 24px; white-space: pre-line; }
.rc-vacio .em { font-size: 37.8px; display: block; margin-bottom: 8px; }
.rc-cargando { display: grid; place-items: center; padding: 56px 0; }
.rc-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--prim); animation: rc-gira .8s linear infinite; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 23px; background: var(--prim); color: #fff; font-weight: 700; font-size: 13.2px; letter-spacing: .03em; box-shadow: 0 4px 12px rgba(74, 168, 255, .35); transition: transform .15s, filter .15s; }
html[data-rc-tema="oscuro"] .rc-btn { color: #0B1226; }
.rc-btn:hover { filter: brightness(1.06); }
.rc-btn:active { transform: scale(.97); }
.rc-btn:disabled { opacity: .55; cursor: default; }
.rc-btn.sec { background: transparent; color: var(--prim); box-shadow: none; border: 2px solid var(--prim); }
.rc-btn.ancho { width: 100%; }
.rc-etiqueta { display: block; font-size: 11.3px; font-weight: 700; letter-spacing: .08em; color: var(--txt2); margin: 0 0 6px; }
#recreo .rc-input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--linea); background: var(--tarjeta); color: var(--txt); font-size: 15.1px; outline: 0; transition: border-color .15s; }
#recreo .rc-input:focus { border-color: var(--prim); box-shadow: none; }
#recreo textarea.rc-input { padding: 14px 16px; min-height: 150px; resize: vertical; line-height: 1.5; }

/* ── Biblia: búsqueda, libros ── */
.rc-buscar { position: relative; z-index: 12; display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; background: var(--sup); }
.rc-buscar .caja { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--tarjeta); border-radius: 24px; padding: 0 14px; box-shadow: var(--sombra-s); border: 2px solid transparent; }
.rc-buscar .caja:focus-within { border-color: var(--prim); }
.rc-buscar .caja svg { width: 20px; height: 20px; stroke: var(--rojo); fill: none; stroke-width: 2; flex: none; }
.rc-buscar input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--txt); font-size: 15.1px; }
.rc-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tarjeta); box-shadow: var(--sombra-s); color: var(--txt2); transition: background .2s, color .2s; }
.rc-mic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-mic.on { background: var(--rojo); color: #fff; animation: rc-latido 1.4s ease-in-out infinite; }
@keyframes rc-latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 122, .5); } 50% { box-shadow: 0 0 0 10px rgba(255, 107, 122, 0); } }
.rc-sugs { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column; background: rgba(12, 18, 40, .55); backdrop-filter: blur(3px); }
.rc-sugs .lista { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 100%; }
.rc-sug { background: var(--tarjeta); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sombra); cursor: pointer; animation: rc-sube .22s both; text-align: left; width: 100%; }
.rc-sug b { display: block; color: var(--rojo); font-size: 13.4px; }
.rc-sug span { display: block; color: var(--txt2); font-size: 11.6px; margin-top: 2px; }
.rc-sugs .cerrar-todo { align-self: center; margin: 4px 0 10px; padding: 8px 18px; border-radius: 18px; background: var(--tarjeta); color: var(--txt); font-weight: 600; font-size: 12.3px; box-shadow: var(--sombra-s); }
.rc-sugs .sin { color: #fff; text-align: center; padding: 20px; font-size: 13.2px; }
.rc-sugs .fondo-cerrar { flex: 1; min-height: 40px; }
.rc-test { margin: 16px 0 8px; padding: 8px 16px; border-radius: 14px; background: var(--chip); color: var(--titulo); font-size: 12.3px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
html[data-rc-tema="oscuro"] .rc-test { color: #DCEEFF; }
.rc-libros { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 14px; }
.rc-libro { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--linea); text-align: left; width: 100%; border-radius: 10px; transition: background .15s; }
.rc-libro:hover { background: rgba(120, 150, 200, .12); }
.rc-libro .ab { width: 44px; flex: none; font-weight: 800; font-size: 14.2px; color: var(--prim); text-align: center; }
.rc-libro .nom { flex: 1; font-size: 15.1px; font-weight: 600; color: var(--titulo); opacity: .9; }
.rc-libro .cap { font-size: 11.3px; color: var(--txt2); }
.rc-continuar { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 6px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--prim), var(--acento)); color: #fff; box-shadow: var(--sombra); }
html[data-rc-tema="oscuro"] .rc-continuar { color: #0B1226; }
.rc-continuar small { display: block; font-size: 9.8px; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.rc-continuar b { font-size: 15.2px; }
.rc-continuar svg { width: 22px; height: 22px; margin-left: auto; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ── Capítulos ── */
.rc-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; padding: 12px 0; }
.rc-capbtn { aspect-ratio: 1; border-radius: 16px; background: var(--tarjeta); box-shadow: var(--sombra-s); font-size: 17px; font-weight: 700; color: var(--prim); transition: transform .15s, background .15s; }
.rc-capbtn:hover { background: var(--chip); }
.rc-capbtn:active { transform: scale(.93); }

/* ── Versículos ── */
.rc-lect { display: flex; flex-direction: column; height: 100%; }
.rc-lect.estudio { flex-direction: column; }
.rc-lect .panel-v, .rc-lect .panel-e { position: relative; overflow-y: auto; overscroll-behavior: contain; }
.rc-lect .panel-v { flex: 1; min-height: 0; }
.rc-lect.estudio .panel-v { flex: 1 1 50%; }
.rc-lect .panel-e { display: none; flex: 1 1 50%; min-height: 0; border-top: 3px solid var(--prim); background: var(--tarjeta); }
.rc-lect.estudio .panel-e { display: block; }
@media (min-width: 900px) { .rc-lect.estudio { flex-direction: row; } .rc-lect.estudio .panel-e { border-top: 0; border-left: 3px solid var(--prim); } }
.rc-vers-wrap { max-width: 720px; margin: 0 auto; padding: 4px 18px calc(110px + var(--safe-b)); touch-action: pan-y; }
.rc-cap-tit { font-size: 20.8px; font-weight: 800; color: var(--titulo); margin: 6px 0 14px; }
.rc-v { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 10px; transition: background .2s; position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.rc-v .n { font-size: calc(.74em); font-weight: 800; color: var(--rojo); vertical-align: super; margin-right: 5px; }
.rc-v .t { font-family: Georgia, "Times New Roman", serif; color: var(--verso); }
.rc-v.sel { outline: 2px solid var(--prim); outline-offset: -2px; background: rgba(74, 168, 255, .14); }
.rc-v.flash { animation: rc-flash 2.2s ease; }
@keyframes rc-flash { 0%, 55% { background: rgba(255, 214, 90, .55); } 100% { background: transparent; } }
.rc-v.hablando { background: rgba(52, 214, 184, .22); }
.rc-pie-cap { display: flex; gap: 10px; justify-content: space-between; margin-top: 26px; }
.rc-pie-cap button { flex: 1; min-height: 46px; border-radius: 23px; background: var(--tarjeta); box-shadow: var(--sombra-s); color: var(--prim); font-weight: 700; font-size: 13.2px; }
.rc-pie-cap button:disabled { opacity: .35; cursor: default; }
.rc-slide-izq { animation: rc-in-der .22s ease both; }
.rc-slide-der { animation: rc-in-izq .22s ease both; }
.rc-estudio-cab { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--tarjeta); border-bottom: 1px solid var(--linea); font-size: 12.3px; font-weight: 700; color: var(--prim); }
.rc-estudio-cab span { flex: 1; min-width: 0; }
.rc-com { padding: 14px 16px; border-bottom: 1px solid var(--linea); transition: background .3s; }
.rc-com.act { background: rgba(74, 168, 255, .12); }
.rc-com h3 { font-size: 12.3px; font-weight: 800; color: var(--rojo); margin-bottom: 6px; cursor: pointer; }
.rc-com p { color: var(--comentario); line-height: 1.6; font-size: 14.2px; white-space: pre-line; }
.rc-colores { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); z-index: 36; display: flex; justify-content: center; pointer-events: none; }
.rc-colores .in { pointer-events: auto; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--tarjeta); border-radius: 30px; box-shadow: var(--sombra); animation: rc-sube .2s both; }
.rc-colores .c { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .12); transition: transform .12s; }
.rc-colores .c:active { transform: scale(.88); }
.rc-colores .c.x { display: grid; place-items: center; background: var(--tarjeta); color: var(--txt2); font-size: 17px; font-weight: 700; }
.rc-pins { position: absolute; inset: 0; z-index: 35; pointer-events: none; }
.rc-pin { position: absolute; right: 14px; bottom: calc(92px + var(--safe-b)); width: min(300px, calc(100vw - 28px)); background: #FAFAFA; color: #555; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); padding: 10px 12px 12px; pointer-events: auto; touch-action: none; cursor: grab; animation: rc-pop .25s; }
.rc-pin:active { cursor: grabbing; }
.rc-pin .f { display: flex; align-items: center; gap: 6px; }
.rc-pin b { flex: 1; color: #2f8fe0; font-size: 14.2px; }
.rc-pin .x { width: 28px; height: 28px; border-radius: 50%; color: #888; font-size: 17px; line-height: 1; }
.rc-pin p { margin-top: 4px; font: 12.3px/1.4 Georgia, serif; color: #555; }

/* ── Menú lateral / modales ── */
.rc-velo { position: absolute; inset: 0; z-index: 60; background: rgba(8, 12, 30, .55); animation: rc-in-fade .2s both; display: flex; }
.rc-velo.der { justify-content: flex-end; }
.rc-velo.centro { align-items: center; justify-content: center; padding: 20px; }
.rc-velo.abajo { align-items: flex-end; justify-content: center; }
.rc-drawer { width: min(86vw, 340px); height: 100%; background: var(--sup); padding: calc(18px + var(--safe-t)) 18px calc(18px + var(--safe-b)); overflow-y: auto; box-shadow: -10px 0 30px rgba(0, 0, 0, .3); animation: rc-in-der .26s cubic-bezier(.2, .8, .2, 1) both; }
.rc-drawer h2 { font-size: 18.9px; font-weight: 800; color: var(--titulo); margin-bottom: 14px; }
.rc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rc-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 20px; background: var(--tarjeta); box-shadow: var(--sombra-s); font-size: 12.3px; font-weight: 700; color: var(--titulo); transition: transform .15s; }
.rc-tile:active { transform: scale(.95); }
/* Íconos planos, todos del mismo color (como el menú de la app): azul oscuro en claro, blanco en oscuro */
.rc-tile .ic { position: relative; width: 54px; height: 54px; display: grid; place-items: center; color: var(--titulo); }
.rc-tile .ic svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-tile.on .ic::after { content: ''; position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #E8455E; box-shadow: 0 0 0 3px var(--tarjeta); }
.rc-fila-menu { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 14px 6px; border-bottom: 1px solid var(--linea); font-size: 14.2px; font-weight: 600; color: var(--titulo); }
.rc-fila-menu small { display: block; font-size: 11.3px; font-weight: 500; color: var(--txt2); }
.rc-sw { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--linea); position: relative; transition: background .2s; }
.rc-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.rc-sw.on { background: var(--prim); }
.rc-sw.on::after { transform: translateX(18px); }
.rc-modal { width: min(420px, 100%); max-height: 86%; overflow-y: auto; background: var(--tarjeta); border-radius: 22px; padding: 20px; box-shadow: var(--sombra); animation: rc-sube .22s both; }
.rc-modal h2 { font-size: 17px; font-weight: 800; color: var(--titulo); margin-bottom: 12px; }
.rc-modal .botones { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.rc-hoja { width: min(560px, 100%); max-height: 80%; overflow-y: auto; background: var(--tarjeta); border-radius: 24px 24px 0 0; padding: 12px 16px calc(20px + var(--safe-b)); animation: rc-sube .24s both; }
.rc-hoja .asa { width: 42px; height: 5px; border-radius: 3px; background: var(--linea); margin: 0 auto 12px; }
.rc-popup { position: absolute; z-index: 61; min-width: 190px; background: var(--prim); color: #fff; border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; animation: rc-pop .15s; }
html[data-rc-tema="oscuro"] .rc-popup { color: #0B1226; }
.rc-popup button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; text-align: left; font-size: 14.2px; font-weight: 600; }
.rc-popup button:hover { background: rgba(255, 255, 255, .18); }
.rc-popup button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-popup button.act { background: rgba(255, 255, 255, .22); }
.rc-fuente { display: flex; align-items: center; gap: 14px; }
.rc-fuente input[type=range] { flex: 1; accent-color: var(--prim); }
.rc-fuente button { width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--prim); font-weight: 800; }
.rc-minilibros { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.rc-minilibros button { padding: 10px 6px; border-radius: 12px; background: var(--sup); color: var(--titulo); font-size: 12.3px; font-weight: 600; }
.rc-minilibros button.act { background: var(--prim); color: #fff; }
.rc-minilibros h3 { grid-column: 1 / -1; font-size: 11.3px; letter-spacing: .08em; color: var(--txt2); margin: 8px 0 0; text-transform: uppercase; }

/* ── Toasts ── */
.rc-avisos { position: absolute; left: 0; right: 0; bottom: calc(104px + var(--safe-b)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.rc-aviso { max-width: 420px; background: #1c2540; color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 13.2px; font-weight: 500; box-shadow: var(--sombra); animation: rc-sube .22s both; text-align: center; }
.rc-aviso.mal { background: #b8344a; }
.rc-aviso.ok { background: #168a5a; }

/* ── Splash ── */
.rc-splash { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: #040C3F; transition: opacity .35s ease; }
.rc-splash img { width: 132px; height: 132px; border-radius: 50%; animation: rc-pop .5s cubic-bezier(.3, 1.5, .5, 1); }
.rc-splash.fuera { opacity: 0; pointer-events: none; }

/* ── Devocional ── */
.rc-dev { display: flex; flex-direction: column; align-items: center; padding: 6px 14px 0; }
.rc-dev-img-wrap { position: relative; width: 100%; max-width: 440px; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); background: var(--tarjeta); min-height: 240px; }
.rc-dev-img-wrap img { width: 100%; height: auto; display: block; animation: rc-in-fade .4s both; }
.rc-dev-fab { position: fixed; right: 18px; bottom: calc(108px + var(--safe-b)); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rc-dev-fab button { width: 58px; height: 58px; border-radius: 50%; background: var(--prim); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(74, 168, 255, .5); animation: rc-rebote .6s cubic-bezier(.3, 1.6, .5, 1) both; }
html[data-rc-tema="oscuro"] .rc-dev-fab button { color: #0B1226; }
.rc-dev-fab svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-dev-fab .hint { font-size: 10.4px; font-weight: 700; color: var(--txt2); animation: rc-hint 3.2s ease both; }
@keyframes rc-rebote { from { transform: translateY(120px); opacity: 0; } 70% { transform: translateY(-8px); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes rc-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ── Videos ── */
.rc-video { margin-bottom: 18px; background: var(--tarjeta); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-s); }
.rc-video .cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.rc-video .cab img { width: 34px; height: 34px; border-radius: 50%; }
.rc-video .cab b { font-size: 13.2px; color: var(--titulo); }
.rc-video .media { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.rc-video .media img, .rc-video .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.rc-video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 55%); }
.rc-video .play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: transform .15s; }
.rc-video .media:hover .play span { transform: scale(1.08); }
.rc-video .play svg { width: 28px; height: 28px; fill: #d63a4a; margin-left: 3px; }
.rc-video .tit { padding: 12px 14px 14px; font-size: 14.2px; font-weight: 600; color: var(--txt); line-height: 1.35; }
.rc-vermas { display: flex; justify-content: center; padding: 6px 0 24px; }

/* ── Eventos ── */
.rc-evento { margin-bottom: 18px; background: var(--tarjeta); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-s); }
.rc-evento .fl { display: block; width: 100%; min-height: 180px; background: var(--chip); cursor: zoom-in; }
.rc-evento .fl img { display: block; width: 100%; height: auto; }
.rc-evento .et { padding: 12px 16px 14px; font-weight: 700; color: var(--titulo); }
.rc-visor { position: absolute; inset: 0; z-index: 70; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; animation: rc-in-fade .2s both; }
.rc-visor .barra { display: flex; justify-content: space-between; padding: calc(8px + var(--safe-t)) 10px 8px; color: #fff; }
.rc-visor .barra .rc-btn-ico { color: #fff; }
.rc-visor .lienzo { flex: 1; overflow: auto; display: grid; place-items: center; padding: 8px; -webkit-overflow-scrolling: touch; }
.rc-visor img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; }
.rc-visor img.zoom { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }

/* ── Trivia ── */
.rc-trivia { max-width: 560px; margin: 0 auto; padding: 8px 18px 0; text-align: center; }
.rc-tr-logo { position: relative; width: 92px; height: 92px; margin: 8px auto 10px; }
.rc-tr-logo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 168, 255, .35), transparent 68%); animation: rc-respira 3s ease-in-out infinite; }
.rc-tr-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: var(--sombra); animation: rc-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rc-respira { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.rc-trivia h1 { font-size: 25.6px; font-weight: 800; color: var(--rojo); margin: 4px 0 6px; }
.rc-trivia h1.az { color: var(--titulo); }
.rc-trivia .form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 16px; }
.rc-trivia .rc-sub { margin: 0 0 4px; }
/* botón principal con relieve (bg_juego_start_button) */
.rc-tbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 22px; color: #fff; font-weight: 800; font-size: 14.2px; letter-spacing: .08em; background: linear-gradient(90deg, #5FC1FF, #4AA8FF 50%, #2E7BC4); box-shadow: 2px 4px 0 rgba(90, 111, 160, .35), 0 8px 16px rgba(46, 123, 196, .25); transition: transform .12s, box-shadow .12s, filter .15s; }
.rc-tbtn:hover { filter: brightness(1.06); }
.rc-tbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(90, 111, 160, .35); }
.rc-tbtn:disabled { opacity: .6; }
.rc-tbtn.sec { background: var(--tarjeta); color: var(--prim); box-shadow: 2px 4px 0 rgba(169, 200, 218, .4), 0 0 0 2px var(--prim) inset; }
html[data-rc-tema="oscuro"] .rc-tbtn.sec { box-shadow: 2px 4px 0 rgba(0, 0, 0, .4), 0 0 0 2px var(--prim) inset; }
.rc-dif { display: grid; gap: 14px; margin: 18px 0 16px; }
.rc-dif button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 0 22px; border-radius: 22px; color: #fff; text-align: left; overflow: hidden; transition: transform .12s, box-shadow .12s; animation: rc-sube .3s both; }
.rc-dif button:nth-child(2) { animation-delay: .06s; } .rc-dif button:nth-child(3) { animation-delay: .12s; }
.rc-dif button::after { content: ""; position: absolute; top: -40%; right: -10%; width: 55%; height: 180%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); pointer-events: none; }
.rc-dif button:active { transform: translateY(3px); }
.rc-dif .f { background: linear-gradient(90deg, #5FE0A0, #34D6B8 50%, #159957); box-shadow: 2px 4px 0 rgba(156, 216, 176, .55), 0 8px 16px rgba(21, 153, 87, .25); }
.rc-dif .m { background: linear-gradient(90deg, #FFC56B, #FFA23F 50%, #E08A15); box-shadow: 2px 4px 0 rgba(224, 138, 21, .3), 0 8px 16px rgba(224, 138, 21, .25); }
.rc-dif .d { background: linear-gradient(90deg, #FF97A2, #FF6B7A 50%, #D8475A); box-shadow: 2px 4px 0 rgba(216, 71, 90, .3), 0 8px 16px rgba(216, 71, 90, .25); }
.rc-dif b { display: block; font-size: 19.9px; font-weight: 800; letter-spacing: .02em; }
.rc-dif small { display: block; font-size: 11.3px; font-weight: 600; opacity: .92; margin-top: 2px; }
.rc-dif .est { font-size: 18.9px; letter-spacing: 3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); z-index: 1; }
.rc-dif .esp { display: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: rc-gira .8s linear infinite; z-index: 1; }
.rc-dif button.cargando .est { display: none; } .rc-dif button.cargando .esp { display: block; }
.rc-mini-rank { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.rc-mini-rank .col { background: var(--tarjeta); border-radius: 18px; padding: 10px 8px 12px; box-shadow: var(--sombra-s); font-size: 11.8px; text-align: center; }
.rc-mini-rank h3 { font-size: 10.9px; letter-spacing: .1em; font-weight: 800; margin-bottom: 8px; }
.rc-mini-rank .it { padding: 5px 6px; margin-bottom: 5px; border-radius: 10px; color: #3a2f12; overflow-wrap: anywhere; font-weight: 700; line-height: 1.2; }
.rc-mini-rank .it:nth-child(2) { background: linear-gradient(180deg, #FFF4C6, #FFE27A 55%, #F8C94E); }
.rc-mini-rank .it:nth-child(3) { background: linear-gradient(180deg, #F7FAFC, #DDE7EF 55%, #BCCAD6); color: #2c3a48; }
.rc-mini-rank .it:nth-child(4) { background: linear-gradient(180deg, #FFE6D4, #D99A68 55%, #A7653F); color: #3b1d0a; }
.rc-mini-rank .it small { display: block; font-size: 9.9px; font-weight: 600; opacity: .8; }
.rc-mini-rank .it.vacio { background: var(--sup); color: var(--txt2); font-weight: 500; }

/* ── partida ── */
.rc-partida { padding-top: 4px; }
.rc-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.rc-hud .lado { display: flex; flex-direction: column; gap: 2px; font-size: 10.4px; font-weight: 800; letter-spacing: .08em; color: var(--txt2); }
.rc-hud .lado b { font-size: 20.8px; letter-spacing: 0; color: var(--titulo); font-variant-numeric: tabular-nums; }
.rc-hud .lado:first-child { align-items: flex-start; } .rc-hud .lado:last-child { align-items: flex-end; }
.rc-anillo { position: relative; width: 92px; height: 92px; }
.rc-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rc-anillo circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.rc-anillo .fondo { stroke: var(--linea); }
.rc-anillo .prog { stroke: var(--prim); transition: stroke .3s; }
.rc-anillo .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24.6px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--titulo); }
.rc-anillo.urge { animation: rc-urge .5s ease-in-out infinite; }
.rc-anillo.urge .num { color: var(--rojo); }
@keyframes rc-urge { 50% { transform: scale(1.07); } }
.rc-puntitos { display: flex; justify-content: center; gap: 7px; margin: 14px 0 14px; }
.rc-puntitos i { width: 22px; height: 7px; border-radius: 4px; background: var(--linea); transition: background .25s, transform .25s, width .25s; }
.rc-puntitos i.act { background: var(--prim); width: 34px; }
.rc-puntitos i.ok { background: #2FBF87; } .rc-puntitos i.no { background: #FF6B7A; }
.rc-tarjeta-p { position: relative; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: 22px; padding: 26px 20px 22px; box-shadow: 1px 2px 0 rgba(169, 200, 218, .3), var(--sombra-s); overflow: hidden; animation: rc-entra-p .32s cubic-bezier(.2, .8, .2, 1) both; }
.rc-tarjeta-p .marca { position: absolute; right: 10px; top: -14px; font-size: 85px; font-weight: 800; color: var(--prim); opacity: .08; line-height: 1; pointer-events: none; }
.rc-tarjeta-p .q { position: relative; font-size: 18.9px; font-weight: 700; color: var(--titulo); line-height: 1.38; min-height: 56px; display: flex; align-items: center; justify-content: center; }
@keyframes rc-entra-p { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
.rc-opciones { display: grid; gap: 11px; margin-top: 16px; }
.rc-op { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 16px 8px 10px; border-radius: 18px; text-align: left; font-weight: 700; font-size: 15.1px; color: #1C6FA8; background: linear-gradient(135deg, #FFFFFF, #EAF3FE); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 2px 3px 0 rgba(169, 200, 218, .45), 0 4px 10px rgba(38, 49, 92, .07); transition: transform .12s, box-shadow .12s, background .2s, color .2s; animation: rc-sube .28s both; }
.rc-op:nth-child(2) { animation-delay: .05s; } .rc-op:nth-child(3) { animation-delay: .1s; } .rc-op:nth-child(4) { animation-delay: .15s; }
html[data-rc-tema="oscuro"] .rc-op { color: #E8F8FF; background: linear-gradient(135deg, #16213F, #0F1930); border-color: #1C2C4E; box-shadow: 2px 3px 0 rgba(0, 0, 0, .4); }
.rc-op .let { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14.2px; background: var(--chip); color: var(--prim); transition: background .2s, color .2s; }
.rc-op .tx { flex: 1; min-width: 0; line-height: 1.25; }
.rc-op:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.rc-op.bien { background: linear-gradient(135deg, #5FE0A0, #2FBF87 55%, #159957); color: #fff !important; border-color: transparent; box-shadow: 2px 3px 0 rgba(21, 153, 87, .35); animation: rc-acierto .45s ease; }
.rc-op.mal { background: linear-gradient(135deg, #FF97A2, #FF6B7A 55%, #D8475A); color: #fff !important; border-color: transparent; box-shadow: 2px 3px 0 rgba(216, 71, 90, .35); animation: rc-error .45s ease; }
.rc-op.bien .let, .rc-op.mal .let { background: rgba(255, 255, 255, .28); color: #fff; }
.rc-op.revela { background: linear-gradient(135deg, #5FE0A0, #2FBF87 55%, #159957); color: #fff !important; border-color: transparent; opacity: .85; }
.rc-op.revela .let { background: rgba(255, 255, 255, .28); color: #fff; }
.rc-op:disabled:not(.bien):not(.mal):not(.revela) { opacity: .55; }
@keyframes rc-acierto { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rc-error { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.rc-flota { position: absolute; left: 50%; top: 40%; z-index: 5; transform: translateX(-50%); font-size: 24.6px; font-weight: 800; color: #2FBF87; text-shadow: 0 2px 8px rgba(47, 191, 135, .45); pointer-events: none; animation: rc-flota .9s ease-out both; }
@keyframes rc-flota { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -70px) scale(1.25); } }

/* ── resultado ── */
.rc-res { position: relative; padding-top: 6px; }
.rc-copa { font-size: 60.5px; line-height: 1; margin: 6px 0 2px; animation: rc-pop .6s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 8px 12px rgba(224, 138, 21, .35)); }
.rc-estrellas { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
.rc-estrellas span { font-size: 35.9px; line-height: 1; color: var(--linea); filter: grayscale(1); opacity: .6; }
.rc-estrellas span.on { filter: none; opacity: 1; color: #FFB400; animation: rc-estrella .5s cubic-bezier(.3, 1.8, .5, 1) both; text-shadow: 0 3px 10px rgba(255, 180, 0, .5); }
.rc-estrellas span.on:nth-child(2) { animation-delay: .25s; } .rc-estrellas span.on:nth-child(3) { animation-delay: .5s; }
@keyframes rc-estrella { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-puntos { font-size: 83.2px; font-weight: 800; color: var(--prim); line-height: 1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.rc-mensaje { font-size: 20.8px; font-weight: 800; color: var(--titulo); margin-top: 4px; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.rc-stats div { background: var(--tarjeta); border-radius: 16px; padding: 12px 6px; box-shadow: var(--sombra-s); animation: rc-sube .35s both; }
.rc-stats div:nth-child(2) { animation-delay: .08s; } .rc-stats div:nth-child(3) { animation-delay: .16s; }
.rc-stats b { display: block; font-size: 18.9px; color: var(--titulo); }
.rc-stats small { font-size: 10.4px; font-weight: 700; letter-spacing: .06em; color: var(--txt2); }
.rc-lugar { margin: 10px auto 0; padding: 9px 16px; width: fit-content; max-width: 100%; border-radius: 18px; background: linear-gradient(90deg, #FFF4C6, #FFE27A); color: #5a4300; font-weight: 800; font-size: 13.2px; animation: rc-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.rc-confeti { position: absolute; left: 0; right: 0; top: -10px; height: 0; pointer-events: none; z-index: 4; }
.rc-confeti i { position: absolute; top: 0; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: rc-cae 2.4s ease-in forwards; }
@keyframes rc-cae { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 520px) rotate(var(--rot)); } }
.rc-acciones-col { display: grid; gap: 12px; margin-top: 22px; }

/* ── ranking completo ── */
.rc-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 20px; background: var(--chip); margin: 6px 0 4px; }
.rc-tabs button { flex: 1; min-height: 40px; border-radius: 15px; font-weight: 800; font-size: 12.3px; letter-spacing: .05em; color: var(--txt2); transition: background .2s, color .2s, box-shadow .2s; }
.rc-tabs button.act { background: var(--tarjeta); box-shadow: var(--sombra-s); }
.rc-tabs button.act[data-d="facil"] { color: #1d9a63; } .rc-tabs button.act[data-d="medio"] { color: #e08a1e; } .rc-tabs button.act[data-d="dificil"] { color: #d64557; }
.rc-podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0 14px; }
.rc-podio .pl { text-align: center; animation: rc-sube .4s both; }
.rc-podio .pl:nth-child(1) { animation-delay: .1s; } .rc-podio .pl:nth-child(3) { animation-delay: .2s; }
.rc-podio .med { font-size: 28.4px; line-height: 1; }
.rc-podio .nm { font-size: 12.3px; font-weight: 700; color: var(--titulo); margin: 4px 2px 2px; overflow-wrap: anywhere; line-height: 1.2; }
.rc-podio .pt { font-size: 11.3px; font-weight: 800; color: var(--prim); margin-bottom: 6px; }
.rc-podio .base { border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 24.6px; font-weight: 800; color: rgba(0, 0, 0, .35); }
.rc-podio .pl.p1 .base { height: 92px; background: linear-gradient(180deg, #FFF4C6, #FFE27A 55%, #F8C94E); }
.rc-podio .pl.p2 .base { height: 68px; background: linear-gradient(180deg, #F7FAFC, #DDE7EF 55%, #BCCAD6); }
.rc-podio .pl.p3 .base { height: 52px; background: linear-gradient(180deg, #FFE6D4, #D99A68 55%, #A7653F); }
.rc-podio .pl.vacio { opacity: .35; }
.rc-fila-rank { display: flex; align-items: center; padding: 11px 14px; }
.rc-fila-rank:nth-child(odd) { background: rgba(120, 150, 200, .08); }
.rc-fila-rank.yo { background: rgba(74, 168, 255, .16); }
.rc-fila-rank .pos { width: 40px; text-align: center; font-weight: 800; color: var(--txt2); }
.rc-fila-rank .nom { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.rc-fila-rank .pts { font-weight: 800; color: var(--prim); }
.rc-tabla { background: var(--tarjeta); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-s); }

/* ── Radio ── */
.rc-radio { max-width: 560px; margin: 0 auto; padding: 6px 16px 0; }
.rc-radio .banner { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 2 / 1; background: var(--chip); }
.rc-radio .banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-radio .envivo { position: absolute; top: 12px; left: 12px; background: #FF4D5E; color: #fff; font-size: 10.4px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 12px; display: none; }
.rc-radio.suena .envivo { display: block; animation: rc-latido 1.6s infinite; }
.rc-radio .info { text-align: center; margin: 16px 0 8px; }
.rc-radio .info small { display: block; font-size: 10.4px; font-weight: 800; letter-spacing: .12em; color: var(--txt2); }
.rc-radio .info h2 { font-size: 20.8px; font-weight: 800; color: var(--titulo); margin: 4px 0; }
.rc-radio .info p { color: var(--txt2); font-size: 13.2px; min-height: 21px; }
.rc-ctl { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 6px 0 20px; }
.rc-ctl .rc-btn-ico { width: 52px; height: 52px; }
.rc-ctl .rc-btn-ico svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rc-play { width: 76px !important; height: 76px !important; background: var(--prim); color: #fff !important; box-shadow: 0 10px 24px rgba(74, 168, 255, .5); }
html[data-rc-tema="oscuro"] .rc-play { color: #0B1226 !important; }
.rc-play svg { width: 36px !important; height: 36px !important; }
.rc-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.rc-eq i { width: 3px; background: var(--rojo); border-radius: 2px; height: 4px; }
.suena .rc-eq i, .rc-est.act.suena .rc-eq i { animation: rc-eq .9s ease-in-out infinite; }
.rc-eq i:nth-child(2) { animation-delay: .15s !important; } .rc-eq i:nth-child(3) { animation-delay: .3s !important; } .rc-eq i:nth-child(4) { animation-delay: .45s !important; } .rc-eq i:nth-child(5) { animation-delay: .6s !important; }
@keyframes rc-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.rc-radio h3.sec { font-size: 11.3px; letter-spacing: .1em; font-weight: 800; color: var(--txt2); margin: 8px 0 10px; }
.rc-est { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; margin-bottom: 8px; border-radius: 18px; background: var(--tarjeta); box-shadow: var(--sombra-s); border: 2px solid transparent; }
.rc-est.act { border-color: var(--prim); }
.rc-est img { width: 64px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.rc-est .n { flex: 1; min-width: 0; font-weight: 700; color: var(--titulo); }
.rc-est .n small { display: block; font-weight: 500; color: var(--txt2); font-size: 11.3px; }
.rc-est .rc-eq { display: none; }
.rc-est.act .rc-eq { display: inline-flex; }

/* ── Peticiones / Donaciones / Acerca / Escuela ── */
.rc-hero-ico { width: 84px; height: 84px; margin: 8px auto 12px; display: grid; place-items: center; color: var(--titulo); animation: rc-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.rc-hero-ico svg { width: 64px; height: 64px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-form-card { max-width: 560px; margin: 0 auto; padding: 8px 18px 0; text-align: center; }
.rc-form-card .em { font-size: 51px; margin: 6px 0; }
.rc-form-card h1 { font-size: 24.6px; font-weight: 800; color: var(--titulo); margin-bottom: 6px; }
.rc-form-card .sub { color: var(--txt2); margin-bottom: 18px; white-space: pre-line; }
.rc-form-card .campo { text-align: left; }
.rc-check { width: 76px; height: 76px; border-radius: 50%; background: var(--acento); color: #fff; font-size: 37.8px; display: grid; place-items: center; margin: 24px auto 14px; animation: rc-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.rc-don { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rc-don img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.rc-don .d { flex: 1; min-width: 0; }
.rc-don .d small { display: block; color: var(--txt2); font-size: 11.3px; }
.rc-don .d b { display: block; font-size: 17.9px; letter-spacing: .04em; color: var(--titulo); overflow-wrap: anywhere; }
.rc-don .d span { font-size: 12.3px; color: var(--txt2); }
.rc-don button.cp { padding: 0 16px; min-height: 40px; border-radius: 20px; background: var(--chip); color: var(--prim); font-weight: 700; font-size: 12.3px; }
.rc-acerca { max-width: 640px; margin: 0 auto; padding: 8px 20px 0; text-align: center; }
.rc-acerca .logo { width: 110px; height: 110px; border-radius: 50%; box-shadow: var(--sombra); margin: 6px auto 10px; }
.rc-acerca h1 { font-size: 22.7px; font-weight: 800; color: var(--titulo); }
.rc-acerca h2 { font-size: 12.3px; letter-spacing: .14em; color: var(--prim); margin: 30px 0 10px; font-weight: 800; }
/* Línea muy fina con sombrita entre secciones */
.rc-acerca h2::before, .rc-acerca .cita::before { content: ''; display: block; height: 1px; margin: 0 0 22px; border-radius: 1px; background: var(--linea); box-shadow: 0 1px 3px rgba(38, 49, 92, .22), 0 2px 6px rgba(38, 49, 92, .08); }
html[data-rc-tema="oscuro"] .rc-acerca h2::before, html[data-rc-tema="oscuro"] .rc-acerca .cita::before { box-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .35); }
.rc-acerca p { color: var(--txt); opacity: .88; margin-bottom: 10px; line-height: 1.65; }
.rc-acerca .past { font-weight: 800; font-size: inherit; color: var(--titulo); opacity: 1; }
html[data-rc-tema="oscuro"] .rc-acerca .past { color: #FFFFFF; }
.rc-acerca .cita { font-style: italic; margin-top: 30px; }
.rc-acerca .ver { font-size: 11.3px; color: var(--txt2); margin-top: 18px; }
.rc-acerca .enl { display: inline-block; margin: 4px 6px; color: var(--prim); font-weight: 700; font-size: 13.2px; }
.rc-libros-esc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; padding: 12px 4px; }
.rc-libro-esc { text-align: center; }
.rc-libro-esc .num, .libro3d .num { position: absolute; top: -4px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rojo); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13.2px; z-index: 2; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
/* ── Libro 3D (paralelepípedo con CSS 3D) ── */
.libro3d { --d: 18px; position: relative; perspective: 900px; width: 100%; aspect-ratio: 1 / 1.42; }
.l3-cuerpo { position: relative; width: 84%; height: 100%; margin: 0 auto; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(-10deg); }
/* Todos los libros con el mismo giro, siempre: sin cambios al pasar el cursor, tocar o aparecer */
.rc-libro-esc, .rc-libro-esc .libro3d, .rc-libro-esc .l3-cuerpo { animation: none !important; transition: none !important; }
.l3-cara { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.l3-frente { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--chip); }
.l3-frente img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l3-frente::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .14) 55%, rgba(0, 0, 0, 0)); }
.l3-brillo { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .12)); pointer-events: none; }
.l3-atras { inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); background: #2b2f45; border-radius: 5px 2px 2px 5px; }
.l3-lomo { top: 0; bottom: 0; width: var(--d); left: calc(var(--d) / -2); transform: rotateY(-90deg); background: linear-gradient(90deg, #1b2347, #343f76 50%, #1b2347); border-radius: 2px 0 0 2px; }
.l3-paginas { top: 2px; bottom: 2px; width: var(--d); left: calc(100% - var(--d) / 2); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf7ec 0 1.5px, #d9d1bb 1.5px 3px); }
.l3-arriba { left: 2px; right: 0; height: var(--d); top: calc(var(--d) / -2); transform: rotateX(90deg); background: repeating-linear-gradient(180deg, #fffdf6 0 1.5px, #e0d8c3 1.5px 3px); }
.l3-abajo { left: 2px; right: 0; height: var(--d); top: calc(100% - var(--d) / 2); transform: rotateX(-90deg); background: repeating-linear-gradient(180deg, #e9e1cc 0 1.5px, #c9c0a8 1.5px 3px); }
.l3-sombra { position: absolute; left: 12%; width: 80%; bottom: -6px; height: 16px; background: rgba(0, 0, 0, .42); filter: blur(9px); border-radius: 50%; transform: rotate(-3deg); }
html[data-rc-tema="oscuro"] .l3-sombra { background: rgba(0, 0, 0, .7); }
.libro3d.mini { --d: 12px; width: 124px; flex: none; }
.rc-libro-esc b { display: block; margin-top: 10px; color: var(--titulo); font-size: 14.2px; }
.rc-libro-esc small { color: var(--txt2); }
.rc-guia-cab { display: flex; gap: 16px; align-items: center; padding: 10px 0 18px; }
.rc-guia-cab h1 { font-size: 20.8px; font-weight: 800; color: var(--titulo); }
.rc-guia-cab p { color: var(--txt2); }
.rc-guia { background: var(--tarjeta); border-radius: 18px; box-shadow: var(--sombra-s); padding: 14px 16px; margin-bottom: 12px; }
.rc-guia .t { display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--titulo); font-size: 15.1px; }
.rc-guia .t i { font-style: normal; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--prim); color: #fff; display: grid; place-items: center; font-size: 13.2px; }
html[data-rc-tema="oscuro"] .rc-guia .t i { color: #0B1226; }
.rc-guia ul { list-style: none; margin: 10px 0 0 44px; padding: 0; }
.rc-guia li { display: flex; gap: 10px; padding: 3px 0; font-size: 13.2px; color: var(--txt); opacity: .9; }
.rc-guia li em { font-style: normal; color: var(--rojo); font-weight: 700; font-size: 11.3px; flex: none; min-width: 28px; }
.rc-sub { color: var(--txt2); font-size: 12.3px; margin: -4px 0 10px; text-align: center; }
.rc-h-sec { font-size: 12.3px; font-weight: 800; letter-spacing: .12em; color: var(--txt2); margin: 14px 0 6px; text-align: center; }

/* ── Botón instalar / mini radio ── */
.rc-mini-radio { position: absolute; left: 12px; right: 12px; bottom: calc(86px + var(--safe-b)); z-index: 29; max-width: 496px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--tarjeta); border-radius: 20px; box-shadow: var(--sombra); animation: rc-sube .25s both; }
.rc-mini-radio.sin-nav { bottom: calc(16px + var(--safe-b)); }
.rc-mini-radio img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.rc-mini-radio .n { flex: 1; min-width: 0; font-weight: 700; font-size: 13.2px; color: var(--titulo); cursor: pointer; }
.rc-mini-radio .n small { display: block; font-size: 10.4px; font-weight: 600; color: var(--rojo); }
.rc-mini-radio .rc-btn-ico svg { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  #recreo *, #recreo *::before, #recreo *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* Video sin miniatura disponible: fondo de marca en vez de un recuadro vacío */
.rc-video .media.sin-mini { background: linear-gradient(135deg, #26315C, #4AA8FF); }

/* ── Ruta de nuestro crecimiento (Sobre nuestra iglesia) ── */
.rc-ruta { display: flex; flex-direction: column; align-items: center; margin: 6px 0 4px; }
.rc-ruta .paso { display: flex; flex-direction: column; align-items: center; }
.rc-ruta .cnx { width: 3px; height: 30px; margin: 8px 0; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--prim) 0 6px, transparent 6px 11px); opacity: .6; }
.rc-ruta .ico { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--tarjeta); box-shadow: var(--sombra-s), inset 0 0 0 2px var(--prim); color: var(--prim); }
.rc-ruta .ico svg { width: 38px; height: 38px; fill: currentColor; }
.rc-ruta .ico em { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--rojo); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.rc-ruta b { margin-top: 8px; color: var(--titulo); font-size: 15.1px; }

/* ── Devocional: accesos Hombres / Damas y su ventana ── */
.rc-dev-grupos { position: fixed; right: 18px; bottom: calc(184px + var(--safe-b)); z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rc-dev-grupos .principal { align-self: center; width: 50px; height: 50px; border-radius: 50%; background: #26315C; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(20, 40, 90, .35); animation: rc-rebote .6s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
html[data-rc-tema="oscuro"] .rc-dev-grupos .principal { background: #8FD9FF; color: #0B1226; }
.rc-dev-grupos.abierto .principal { transform: rotate(8deg); }
.rc-dev-grupos .principal svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.rc-dev-grupos .hint { align-self: center; font-size: 10.4px; font-weight: 700; color: var(--txt2); animation: rc-hint 3.2s ease both; }
.rc-dev-grupos.abierto .hint { display: none; }
.rc-dev-grupos .menu { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; margin-bottom: 6px; }
.rc-dev-grupos .menu[hidden] { display: none; }
.rc-dev-grupos .menu button { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 26px; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(20, 40, 90, .3); animation: rc-menu-in .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.rc-dev-grupos .menu button.hombres { background: #2a6cc4; animation-delay: .06s; }
.rc-dev-grupos .menu button.damas { background: #d6457a; }
.rc-dev-grupos .menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rc-menu-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.rc-grupo-cab { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px 4px; text-align: center; }
.rc-grupo-cab h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; color: var(--titulo); }
.rc-grupo-cab .ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.rc-grupo-cab.hombres .ico { background: #2a6cc4; }
.rc-grupo-cab.damas .ico { background: #d6457a; }
.rc-grupo-cab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-gcard { margin-bottom: 18px; background: var(--tarjeta); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra-s); padding: 16px; }
.rc-gcard h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--titulo); line-height: 1.3; }
.rc-gcard .tx { margin: 0; white-space: pre-wrap; line-height: 1.6; color: var(--txt); overflow-wrap: anywhere; }
.rc-gcard .fl { display: block; margin: 0 -16px 12px; min-height: 180px; background: var(--chip); cursor: zoom-in; }
.rc-gcard .fl img { display: block; width: 100%; height: auto; }
.rc-gcard audio { display: block; width: 100%; margin: 4px 0 10px; }
.rc-gcard .fe { margin-top: 10px; font-size: 12px; color: var(--txt2); }

.gr-player { margin: 4px 0 10px; }
.gr-play { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 24px; background: var(--prim, #4AA8FF); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 0; }
.gr-play:disabled { opacity: .7; }
.gr-player .gr-audio[hidden] { display: none; }
.gr-err { margin-top: 6px; font-size: 12.5px; color: #d6453a; }
