/* Biblia de estudio — estilos del módulo (usa las variables de styles.css) */
.biblia-wrap { max-width: 860px; }
.biblia-hero { text-align: center; padding: 2.4rem 0 1.2rem; }
.biblia-hero h1 { font-family: var(--display); font-size: 2.1rem; margin: .3rem 0 .6rem; }
.biblia-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 640px; margin: 0 auto; }
.biblia-nota { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.biblia-fuentes { color: var(--muted); font-size: .8rem; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.2rem; }
.vista-titulo { font-family: var(--display); font-size: 1.7rem; margin: 1rem 0 .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tarjetas y bloques */
.biblia-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 1.4rem 0; }
.biblia-card-kicker { color: var(--gold); font-weight: 700; letter-spacing: .06em; font-size: .82rem; text-transform: uppercase; margin: 0 0 .6rem; }
.versiculo-dia { cursor: pointer; text-align: center; }
.versiculo-dia:hover { border-color: var(--gold); }
.vdia-texto { font-family: var(--serif); font-size: 1.55rem; line-height: 1.6; margin: 0 0 .5rem; }
.vdia-ref { color: var(--gold); font-weight: 600; margin: 0; }
.biblia-bloque { margin: 2.2rem 0; }
.biblia-bloque h2 { font-family: var(--display); font-size: 1.35rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; margin-bottom: 1rem; }
.testamento { font-family: var(--display); color: var(--gold); font-size: 1.02rem; margin: 1.2rem 0 .6rem; }

/* Buscador */
.biblia-search { display: flex; gap: .6rem; margin: 1.2rem 0 .4rem; }
.biblia-search input { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: .8rem 1rem; font-size: 1rem; font-family: var(--sans); min-width: 0; }
.biblia-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.search-item { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; margin: .55rem 0; cursor: pointer; color: var(--text); font-family: var(--sans); }
.search-item:hover { border-color: var(--gold); }
.search-item .sref { color: var(--gold); font-weight: 700; display: block; margin-bottom: .25rem; }
.search-item .stext { font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.search-item mark { background: rgba(201,162,39,.4); color: inherit; padding: 0 1px; border-radius: 2px; }

/* Libros y capítulos */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .5rem; }
.book-btn { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .72rem .5rem; font-family: var(--sans); font-size: .95rem; cursor: pointer; }
.book-btn:hover { border-color: var(--gold); color: var(--gold); }
.chapters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .45rem; margin-top: .8rem; }
.chapter-btn { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: .6rem 0; font-size: .98rem; cursor: pointer; font-family: var(--sans); }
.chapter-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Chips (marcadores, recientes) */
.chips-lista { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; color: var(--text); font-size: .92rem; cursor: pointer; font-family: var(--sans); }
.chip:hover { border-color: var(--gold); }
.chip .chip-x { color: var(--muted); font-weight: 700; padding: 0 .1rem; }
.chip .chip-x:hover { color: #e26d5a; }
.seguir-cta { margin-bottom: .8rem; }

/* Planes */
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; cursor: pointer; text-align: left; color: var(--text); font-family: var(--sans); width: 100%; }
.plan-card:hover { border-color: var(--gold); }
.plan-card h3 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .4rem; color: var(--gold); }
.plan-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 .6rem; }
.plan-card .plan-avance { font-size: .85rem; color: var(--text); font-weight: 600; }
.plan-progreso { background: var(--card); border: 1px solid var(--line); border-radius: 999px; height: 12px; overflow: hidden; margin: 1rem 0 .4rem; }
.plan-barra { background: var(--gold); height: 100%; width: 0; transition: width .3s; }
.plan-acciones { display: flex; gap: .6rem; margin: .8rem 0 1.2rem; flex-wrap: wrap; }
.plan-sub { font-family: var(--display); font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.plan-dias { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: .45rem; }
.plan-dia { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: .55rem 0; cursor: pointer; font-family: var(--sans); font-size: .9rem; }
.plan-dia.hecho { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.plan-dia.hoy { outline: 2px solid var(--gold); outline-offset: 1px; }
.plan-dia-detalle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1rem; }
.plan-dia-detalle h3 { margin: 0 0 .6rem; font-family: var(--display); font-size: 1.05rem; }
.lectura-ref { display: inline-block; margin: .2rem .35rem .2rem 0; }

/* Artículos relacionados */
.profundizar-grid { display: grid; gap: .7rem; }
.articulo-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--text); text-decoration: none; }
.articulo-link:hover { border-color: var(--gold); }
.articulo-link strong { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: .3rem; color: var(--gold); }
.articulo-link span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.reader-articulos { margin: 2rem 0 0; }
.reader-articulos h2 { font-family: var(--display); font-size: 1.15rem; margin-bottom: .7rem; }
.reader-articulos .articulo-link { margin-bottom: .6rem; }

/* ===== Lector ===== */
.reader-toolbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .5rem; background: var(--bg); padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rt-titulo { font-family: var(--display); font-weight: 700; flex: 1; text-align: center; min-width: 110px; }
.rt-acciones { display: inline-flex; gap: .35rem; }
.rt-btn { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .42rem .7rem; font-size: .88rem; cursor: pointer; font-family: var(--sans); }
.rt-btn:hover { border-color: var(--gold); color: var(--gold); }
.reader-head { text-align: center; padding: 1.6rem 0 .4rem; }
.reader-head h1 { font-family: var(--display); font-size: 2rem; margin: 0 0 .3rem; }
.reader-version { color: var(--gold); font-size: .92rem; letter-spacing: .04em; margin: 0; }
.reader-nav { display: flex; justify-content: space-between; gap: .8rem; margin: 1.8rem 0 .5rem; }
.reader-nav-top { margin: .8rem 0 0; }
.btn.chico { padding: .5rem .9rem; font-size: .9rem; }
.reader-body { border-radius: var(--radius); padding: 1.6rem 1.3rem; margin-top: 1rem; transition: background .25s, color .25s; }
.reader-loading { color: var(--muted); text-align: center; font-family: var(--serif); font-size: 1.1rem; }
.chapter-intro { font-family: var(--serif); font-style: italic; opacity: .85; line-height: 1.7; margin: 0 0 1rem; }
.chapter-text { font-family: var(--serif); font-size: calc(1.45rem * var(--fs, 1)); line-height: 1.95; }
.chapter-text .verse { cursor: pointer; border-radius: 4px; }
.chapter-text .verse:hover { background: rgba(201,162,39,.14); }
.chapter-text .verse.hl { background: rgba(201,162,39,.32); }
.chapter-text .vn { color: var(--gold); font-size: .62em; font-weight: 700; margin: 0 .18em 0 .35em; vertical-align: super; font-family: var(--sans); }

/* Temas de lectura */
.reader-body[data-read-theme="oscuro"] { background: transparent; color: #ece9e0; }
.reader-body[data-read-theme="claro"] { background: #faf6ec; color: #28231a; }
.reader-body[data-read-theme="sepia"] { background: #f0e2c4; color: #47351f; }
.reader-body[data-read-theme="claro"] .vn, .reader-body[data-read-theme="sepia"] .vn { color: #9a7b12; }
.reader-body[data-read-theme="claro"] .reader-loading, .reader-body[data-read-theme="sepia"] .reader-loading { color: #6b5d43; }

/* Panel del versículo */
.verse-panel { background: var(--card); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.4rem; }
.verse-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.verse-panel-head strong { font-family: var(--display); font-size: 1.05rem; color: var(--gold); }
.vp-texto { font-family: var(--serif); font-size: 1.24rem; line-height: 1.65; margin: .7rem 0 1rem; }
.vp-sub { font-family: var(--display); font-size: .95rem; margin: 0 0 .6rem; color: var(--muted); letter-spacing: .04em; }
.vp-ref { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .9rem; margin: .4rem 0; cursor: pointer; color: var(--text); font-family: var(--sans); }
.vp-ref:hover { border-color: var(--gold); }
.vp-ref .rref { color: var(--gold); font-weight: 700; }
.vp-ref .rtext { display: block; font-family: var(--serif); font-size: .98rem; line-height: 1.5; color: var(--muted); margin-top: .15rem; }

/* Vista sin distracciones */
body.modo-tranquilo .site-header, body.modo-tranquilo .site-footer, body.modo-tranquilo .reader-head, body.modo-tranquilo .reader-nav-top { display: none; }
body.modo-tranquilo .reader-toolbar { opacity: .35; }
body.modo-tranquilo .reader-toolbar:hover { opacity: 1; }

@media (max-width: 560px) {
  .biblia-hero h1 { font-size: 1.65rem; }
  .reader-head h1 { font-size: 1.55rem; }
  .reader-body { padding: 1.2rem .95rem; }
  .biblia-search { flex-direction: column; }
  .biblia-search .btn { width: 100%; }
  .reader-nav { flex-direction: column; }
  .reader-nav .btn { width: 100%; }
}

/* ===== Devocional del día: reflexión ===== */
.versiculo-dia { cursor: auto; }
.vdia-reflexion { text-align: left; margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .95rem; }
.vdia-sub { font-family: var(--display); color: var(--gold); font-size: 1rem; letter-spacing: .04em; margin: 0 0 .5rem; }
.vdia-reflexion-texto { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; margin: 0; }
.vdia-leer { margin-top: 1.05rem; }

/* ===== Selector rápido de libro y capítulo ===== */
.picker-fila { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.picker-campo { display: flex; flex-direction: column; gap: .32rem; flex: 1; min-width: 128px; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; font-family: var(--sans); }
.picker-fila select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: .72rem .8rem; font-size: 1rem; font-family: var(--sans); width: 100%; }
.picker-fila select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ir-pasaje .picker-fila { margin-bottom: .7rem; }
.reader-picker { margin: .75rem 0 0; }
.reader-picker select { background: var(--card); flex: 1; min-width: 110px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: .55rem .7rem; font-size: .95rem; font-family: var(--sans); }

/* ===== Versículos en lista (una fila por versículo) ===== */
.chapter-text .verse-row { display: flex; gap: .7rem; margin: 0; padding: .45rem .55rem; border-bottom: 1px dashed rgba(160,140,85,.28); line-height: 1.7; }
.chapter-text .verse-row:last-child { border-bottom: none; }
.chapter-text .verse-row .vnum { flex: none; min-width: 1.9rem; text-align: right; color: var(--gold); font-family: var(--sans); font-weight: 700; font-size: .8em; padding-top: .32em; }
.chapter-text .verse-row.hl { background: rgba(201,162,39,.32); border-radius: 6px; }

/* ===== Subtítulos de sección (perícopas) ===== */
.chapter-text .seccion-titulo { font-family: var(--display); color: var(--gold); font-size: .92em; text-align: center; margin: 1.1em 0 .35em; letter-spacing: .02em; }
.chapter-text .seccion-titulo:first-child { margin-top: 0; }

/* ===== Palabras de Jesús en rojo ===== */
.reader-body[data-read-theme="oscuro"] .verse-row.jesus .vtext { color: #ff8a80; }
.reader-body[data-read-theme="claro"] .verse-row.jesus .vtext,
.reader-body[data-read-theme="sepia"] .verse-row.jesus .vtext { color: #b02a30; }
.vp-texto.jesus-text { color: #ff8a80; }
