/* Código Profético — codigoprofetico.org */

/* Frank Ruhl Libre — auto-hospedada (privacidad: sin pedir nada a Google Fonts).
   Réplica del CSS de Google: 3 subconjuntos × 2 pesos. Gracias a unicode-range
   solo se descarga el subconjunto cuyos glifos aparecen (font-display:swap).
   Se usa en el texto hebreo (.verse-heb) y en los botones de comentario. Los
   .woff2 viven en assets/fonts/ y el build los copia a _home/fonts/. */
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/frankruhllibre-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/frankruhllibre-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/frankruhllibre-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/frankruhllibre-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/frankruhllibre-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/frankruhllibre-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display — títulos del diseño v2 (auto-hospedada, solo 700
   latin/latin-ext). El hebreo sigue en Frank Ruhl Libre. */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/playfairdisplay-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/playfairdisplay-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:       #fcf5e4;
  --bg-side:  #ede4cc;
  --border:   #d8cfb4;
  --text:     #262626;
  --muted:    #666;
  --accent:   #f5c45c;
  --link:     #cc6400;
  --link-h:   #a05000;
  --sw:       208px;
}
/* Dark mode */
html.dark {
  --bg:       #1a1710;
  --bg-side:  #111009;
  --border:   #2e2b24;
  --text:     #e0d4b8;
  --muted:    #8a7f6a;
  --accent:   #c8953a;
  --link:     #d4845a;
  --link-h:   #e09870;
}
html.dark .sidebar { background-image: none; }
html.dark .home-entry--dark { background: #111009; }
html.dark .bvv-btn { background: #d4845a; color: #1a1710; }
html.dark .bvv-input { background: #1a1a1a; }
html.dark .bvv-back { background: #d4845a; color: #1a1710; }
html.dark .bvv-passage .section-title { color: #d4c89a; }
html.dark .comm-btn { background: #2e2b24; border-color: #3e3b34; }
html.dark .comm-panel { background: #222018; }
html.dark .site-logo img { opacity: .85; }
html.dark mark { background: #6b5a1a; color: var(--text); }
/* Toggle button */
.dark-toggle {
  display: block; width: 100%; margin: 8px 0 16px;
  padding: 6px 16px;
  background: transparent; border: none;
  color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; text-align: left;
  cursor: pointer; transition: color .2s;
}
.dark-toggle:hover { color: var(--text); }
html.dark .dark-toggle { color: var(--accent); }
/* Etiqueta dinámica del toggle: en claro muestra «MODO OSCURO» (la acción), en
   oscuro «MODO CLARO». Lo decide el CSS según html.dark (que el script anti-flash
   pone antes del render), así no hay parpadeo y no hace falta JS. */
.dt-to-light { display: none; }
html.dark .dt-to-dark  { display: none; }
html.dark .dt-to-light { display: inline; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

/* Layout */
.layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sw);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-side) url('images/global/fondo1.jpg') center center / cover no-repeat;
  border-right: 1px solid var(--border);
}
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.site-logo img { width: 90%; max-width: 90%; height: auto; object-fit: contain; border-radius: 8px; margin-bottom: 12px; }
.site-tagline  { font-size: 17px; font-weight: 700; color: var(--muted); }

/* Navigation */
.nav { padding: 8px 0 16px; }
.nav-root { list-style: none; }

.nav-root > li > a {
  display: block;
  padding: 5px 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.nav-root > li > a:hover    { color: var(--text); }
.nav-root > li.active > a   {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--accent);
  background: rgba(245,196,92,.12);
}

.nav-section > details > summary {
  padding: 14px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.nav-section > details > summary::-webkit-details-marker { display: none; }
.nav-section > details > summary::before { content: "▸ "; font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--muted); }
.nav-section > details[open] > summary::before { content: "▾ "; }
.nav-children { list-style: none; border-left: 1px solid var(--border); margin-left: 22px; }

.nav-book > details > summary {
  display: block;
  padding: 3px 16px 3px 8px;
  font-size: 14px;
  font-weight: normal;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.nav-book > details > summary::-webkit-details-marker { display: none; }
.nav-book > details > summary::before { content: "▸ "; color: var(--muted); }
.nav-book > details[open] > summary::before { content: "▾ "; }
.nav-book ul { list-style: none; border-left: 1px solid var(--border); margin-left: 8px; }
.nav-book ul li > a {
  display: block;
  padding: 2px 16px 2px 10px;
  font-size: 14px;
  font-weight: normal;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.nav-book ul li > a:hover  { color: var(--text); }
.nav-book ul li.active > a {
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--accent);
  background: rgba(245,196,92,.12);
}
.nav-day {
  display: inline-block; min-width: 1.4em; text-align: right;
  margin-right: .4em; opacity: .6; font-variant-numeric: tabular-nums;
}

.nav-children > li > a {
  display: block;
  padding: 2px 16px 2px 8px;
  font-size: 14px;
  font-weight: normal;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.nav-children > li > a:hover  { color: var(--text); }
.nav-children > li.active > a {
  color: var(--text);
  font-weight: 700;
  border-left-color: var(--accent);
  background: rgba(245,196,92,.12);
}

/* Content */
.content { flex: 1; padding: 40px 48px; }
article  { max-width: 760px; }

/* Typography */
article h1,h2,h3,h4,h5 { margin: .32em 0 .32em; line-height: 1.3; }
article h1 { font-size: 1.75em; text-transform: uppercase; }
article h2 { font-size: 1.25em; border-bottom: 1px solid var(--border); padding-bottom: .3em; margin-top: 1.8em; }
article h3 { font-size: 1.05em; margin-top: 1.25em; }
article p  { margin: .8em 0; }
article ul,article ol { margin: .8em 0; padding-left: 1.6em; }
article li { margin: .25em 0; }
article blockquote {
  margin: 1em 0;
  padding: .5em 1em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: rgba(245,196,92,.07);
  font-style: italic;
}
article a { color: var(--link); text-decoration: none; }
article a:hover { color: var(--link-h); text-decoration: underline; }
article hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
article table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .9em; }
article th, article td { border: 1px solid var(--border); padding: 6px 10px; }
article th { background: var(--bg-side); font-weight: 600; }
article img { max-width: 100%; height: auto; }
article code { background: var(--bg-side); padding: 1px 4px; border-radius: 3px; font-size: .88em; font-family: monospace; }
article pre  { background: var(--bg-side); padding: 1em; border-radius: 6px; overflow-x: auto; margin: 1em 0; }
article small { font-size: .85em; color: var(--muted); }
.post-meta { font-size: .82em; color: var(--muted); margin: -.48em 0 3.08em; text-align: left; line-height: 1.3; }
.article-nav { display: flex; justify-content: space-between; gap: 1em; margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--border); }
.page-nav { overflow: hidden; margin: 2em 0 .5em; }
.page-nav-btn { color: var(--link); text-decoration: none; font-size: .9em; }
.page-nav-btn:hover { color: var(--link-h); text-decoration: underline; }
.page-nav-prev { float: left; }
.page-nav-next { float: right; }
.page-indicator { text-align: left; font-size: .78em; color: var(--muted); margin: -.2em 0 1.4em; }
.article-nav__prev, .article-nav__next { color: var(--link); text-decoration: none; font-size: .88em; max-width: 48%; line-height: 1.4; }
.article-nav__prev:hover, .article-nav__next:hover { color: var(--link-h); text-decoration: underline; }
.article-nav__next { text-align: right; margin-left: auto; }
.broken { color: var(--muted); text-decoration: line-through; font-style: italic; }
.bible-quote { font-style: normal; }
.bible-quote sup { color: var(--muted); font-size: .65em; vertical-align: super; line-height: 0; margin-right: 1px; }
.bible-missing { color: #c0392b; font-size: .85em; }

/* BVV banner — pegado al tope y bordes del área de contenido */
.bvv-banner {
  margin: -40px -48px 2.5em -48px;
  padding: 22px 48px;
  background: #000;
}
.bvv-label {
  color: #ff7d00;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
  width: 180px;
  text-align: center;
  flex-shrink: 0;
}
.bvv-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bvv-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1em;
  font-family: inherit;
  background: #2a2a2a;
  border: 1px solid #ff7d00;
  border-radius: 6px;
  color: #f0e8d0;
  outline: none;
}
.bvv-input::placeholder { color: #666; }
.bvv-input:focus { border-color: #ff7d00; box-shadow: 0 0 0 2px rgba(255,125,0,.25); }
/* Indicador de foco visible global para navegación por teclado (a11y) */
a:focus-visible, button:focus-visible, summary:focus-visible,
[tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px;
}
/* Skip link: oculto hasta recibir foco con Tab (a11y) */
.skip-link {
  position: absolute; left: 8px; top: 8px; z-index: 1000;
  background: var(--link); color: #fff;
  border-radius: 0 0 6px 6px; text-decoration: none;
  /* Oculto accesible (enfocable por teclado) sin pintar caja alguna: colapsa a
     1px y se recorta. Reemplaza el truco top:-48px, que iOS Safari revelaba en
     la zona de overscroll y pintaba como una barra naranja arriba (en todas
     las páginas, dentro del flujo, se iba con el scroll). */
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto; padding: 8px 14px;
  clip: auto; clip-path: none;
}
.bvv-btn {
  flex-shrink: 0;
  background: #ff7d00;
  color: #2e2a1e;
  font-weight: 700;
  font-size: .95em;
  font-family: inherit;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.bvv-btn:hover { opacity: .85; }
.bvv-results { padding-top: 1.5em; }
.bvv-back {
  display: inline-block; margin-bottom: 1.5em;
  background: #ff7d00; border: none; border-radius: 5px;
  padding: 5px 28px; color: #2e2a1e;
  font-weight: 700; font-size: .75em; font-family: inherit;
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.bvv-back:hover { opacity: .85; }
.bvv-block { margin-bottom: 2.2em; }
.bvv-ref {
  color: var(--text); font-weight: 700; font-size: 1.15em;
  margin: 0 0 .7em; border-bottom: 1px solid var(--border); padding-bottom: .3em;
}
.bvv-passage { padding-top: .5em; }
.bvv-passage p {
  font-size: 1.05em; line-height: 1.52; margin-bottom: .9em; text-align: left;
}
.bvv-passage sup {
  color: var(--muted); font-size: .68em; vertical-align: super;
  line-height: 0; margin-right: 1px;
}
.bvv-search-header { font-size: .85em; color: var(--muted); margin-bottom: 1em; }
.bvv-search-list { font-size: 1em; line-height: 1.75; }
.bvv-search-row { margin-bottom: .3em; }
.bvv-ref--link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--link); font-weight: 700; white-space: nowrap; }
.bvv-ref--link:hover { color: var(--link-h); text-decoration: underline; }
mark { background: #ffe066; border-radius: 2px; padding: 0 2px; }
.bvv-nav {
  display: flex; justify-content: space-between;
  margin: .5em 0 1.5em; padding: .5em 0;
}
.bvv-nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 5px 18px; cursor: pointer; color: var(--link);
  font-size: 1.1em; font-family: inherit; transition: background .15s;
}
.bvv-nav-btn:hover { background: var(--bg-side); }
.bvv-nav-btn:disabled { visibility: hidden; }
.bvv-parashah-label {
  font-size: 1.3em; font-weight: 700; color: #555;
  letter-spacing: .04em; margin-bottom: .6em;
}
.bvv-parashah-index { margin-bottom: 1.8em; font-size: 1.05em; }
.bvv-idx-hdr { font-weight: 700; color: var(--link); font-size: .92em; letter-spacing: .08em; margin: .7em 0 .3em; }
.bvv-idx-list { list-style: none; padding: 0 0 0 1.2em; margin: 0 0 .5em; }
.bvv-idx-list li { padding: 0; margin-bottom: .45em; line-height: 1.3; }
.bvv-idx-link { color: var(--link); text-decoration: none; }
.bvv-idx-link:hover { color: var(--link-h); text-decoration: underline; }
.bvv-idx-ref { margin: .3em 0; padding-left: 1.2em; }
.bvv-loading { color: var(--muted); font-style: italic; font-size: .95em; margin: 1em 0; }
.bvv-error { color: #c0392b; font-size: .95em; margin: 1em 0; }
.bvv-muted { color: var(--muted); font-size: .95em; margin: 1em 0; }
/* Hebreo */
.verse-heb {
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  font-size: 1.15em; direction: rtl; text-align: right;
  line-height: 1.9; color: var(--text); margin: .25em 0;
}
.verse-heb sup { font-size: .65em; color: var(--muted); margin-left: .4em; }
/* Interlineal */
.verse-es { margin: .2em 0; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
/* Comentarios */
.comm-btns { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 3px; }
.comm-btn {
  display: inline-block; padding: 0 4px; font-size: .68em; line-height: 1.6;
  background: #e8f0e8; color: var(--link); border: 1px solid #b8d0b8;
  border-radius: 3px; cursor: pointer;
  font-family: 'Frank Ruhl Libre', 'Times New Roman', serif;
  vertical-align: middle; transition: background .15s;
}
.comm-btn:hover { background: #c8e0c8; }
.comm-btn.active { background: var(--link); color: #fff; border-color: var(--link-h); }
.comm-panel {
  display: none; margin: 2px 0 14px; padding: 10px 16px;
  background: #f2f7f2; border-left: 3px solid var(--link);
  border-radius: 0 4px 4px 0; font-size: .93em; line-height: 1.75;
}
.comm-source {
  font-weight: 700; color: var(--link); font-size: .78em;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px;
}
.bvv-books-list { list-style: none; padding: 0; column-count: 2; column-gap: 2em; margin: .4em 0 1em; }
.bvv-book-link { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: var(--link); }
.bvv-book-link:hover { color: var(--link-h); text-decoration: underline; }
.bvv-passage .section-title {
  font-size: 1.3em; font-weight: 700; color: var(--link);
  margin: 1.5em 0 .5em;
}
@media (max-width: 768px) {
  .bvv-banner { margin: -68px -20px 2em; padding: 18px 20px; }
  .date-bar { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .bvv-banner { margin: -68px -16px 2em; padding: 16px 16px; }
  .date-bar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  /* Móvil: el rótulo en su línea; input + botón Buscar comparten la siguiente.
     El margen inferior del rótulo baja la línea del input para que NO quede
     debajo del botón de menú (≡) fijo de 52px. Fuente del input/botón a 20px
     (no .95em de 25px ≈ 24px) para que entren cómodos sin encimarse. */
  .bvv-row { flex-wrap: wrap; }
  .bvv-label { width: 100%; margin-bottom: 22px; }
  .bvv-input { min-width: 0; font-size: 20px; }
  .bvv-btn { font-size: 20px; padding: 10px 16px; flex-shrink: 0; }
}

/* Homepage entries */
.home-entry { overflow: hidden; margin-bottom: 0; }
.home-entry--dark {
  background: #2e2a1e;
  color: #f0e8d0;
  padding: 22px 48px;
  margin-left: -48px;
  margin-right: -48px;
}
@media (max-width: 768px) {
  .home-entry--dark { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .home-entry--dark { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
.home-entry--dark a { color: var(--accent); }
.home-entry--dark a:hover { color: #fff; }
.home-entry blockquote { border-left: 3px solid var(--accent); margin: .8em 0 .8em 1em; padding-left: .8em; font-style: italic; opacity: .85; }
.home-entry blockquote p { margin: 0; }
.home-entry--featured { margin: 0 -48px; overflow: visible; position: relative; }
#bvv-home-cards.first-is-featured { margin-top: -2.5em; }
.home-entry--featured > a { margin: 0; line-height: 0; display: block; }
.home-entry--featured .entry-img { float: none; width: 100%; max-width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
.home-entry--featured > p { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 2em 48px; background: linear-gradient(to top, rgba(0,0,0,0.98), rgba(0,0,0,0.85), rgba(0,0,0,0.5)); }
/* La superposición es siempre oscura → texto claro en ambos temas (en claro heredaría --text oscuro y se perdería). El móvil lo revierte (allí el texto va sobre el fondo de la página, no sobre el degradado). */
.home-entry--featured > p,
.home-entry--featured > p strong { color: #f7f1e3; }
.home-entry--featured > p a { color: var(--accent); }
.home-entry--featured > p a:hover { color: #fff; }
.card-divider { border: none; border-top: 1px solid var(--border); margin: 1.8em -48px; }
.home-banner { margin: 0 -48px 1.5em; line-height: 0; }
.home-banner a { display: block; }
#bvv-home-cards > .home-banner:first-child { margin-top: calc(-0.7em - 1px); }
article.has-banner-last + footer { margin-top: 1em; }
#bvv-home-cards > .home-banner:last-child { margin-bottom: 0; }
.banner-img { width: 100%; height: auto; display: block; object-fit: cover; }
/* El <picture> (fuente WebP) no debe alterar el layout/float de la <img> interna */
picture { display: contents; }
.podcast-player { display: block; width: 100%; margin: 1.2em 0 1.5em; }
.breadcrumb { font-size: .8em; color: var(--muted); margin: 0 0 .32em; }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--muted); }
.card-divider + .home-entry--dark { margin-top: -1.8em; }
.home-entry > a { display: block; }
.entry-img  { float: right; width: 150px; margin: 18px 0 10px 18px; border-radius: 5px; object-fit: cover; }
.article-img { display: block; width: 100%; border-radius: 5px; margin: 1em 0; object-fit: cover; }
.entry-img--yt { width: 240px; aspect-ratio: 16/9; object-fit: cover; }
.entry-date { font-size: .82em; color: var(--muted); margin-bottom: .2em; }
.build-ts { font-size: .72em; color: var(--muted); margin-top: .5em; }
.site-footer { margin: 3em -48px 0; padding: 1em 48px 0; border-top: 1px solid var(--border); font-size: .78em; color: var(--muted); line-height: 1.53; text-align: center; }
.site-footer a { color: var(--link); }
.site-footer a:hover { color: var(--link-h); }
.date-bar { font-size: .72em; line-height: 1.2; color: var(--muted); padding: .4em 48px .6em; text-align: center; margin-top: -2.3em; margin-left: -48px; margin-right: -48px; border-bottom: 1px solid var(--border); margin-bottom: 1.5em; }
.entry-title { font-size: 1em; font-weight: 700; margin: 0 0 .4em; }
.entry-pres p { margin: 0; }
.entry-sep  { margin: 2em 0; }
@media (max-width: 600px) {
  .entry-img { float: none; display: block; width: 100%; max-width: 340px; margin: 0 auto .8em; }
  .entry-img--yt { max-width: 100%; aspect-ratio: 16/9; }
}

/* Hamburger (mobile) */
.menu-btn {
  display: none;
  position: fixed;
  top: 10px; left: 10px;
  z-index: 1000;
  background: var(--bg-side);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px; height: 36px;
  font-size: 17px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* Backdrop */
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.35);
}
body.nav-open .backdrop { display: block; }

@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .layout { display: block; }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0; height: 100vh;
    z-index: 999;
    transition: left .25s ease;
    width: 260px;
  }
  body.nav-open .sidebar { left: 0; }

  .content { display: block; padding: 68px 20px 40px; width: 100%; box-sizing: border-box; }
  .home-entry--featured { margin: 0; overflow: hidden; }
  .home-entry--featured > a { width: 100%; margin: 0; }
  .home-entry--featured .entry-img { float: none; width: 100%; max-width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
  .home-entry--featured > p { position: static; padding: 0 16px; margin-top: 1em; background: none; color: var(--text); }
  .home-entry--featured > p strong { color: var(--text); }
  .home-entry--featured > p a { color: var(--link); }
  .home-entry--featured > p a:hover { color: var(--link-h); }
  #bvv-home-cards.first-is-featured { margin-top: -2em; }

  /* Imágenes flotantes: apiladas en móvil */
  article img[style*="float"] {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto 1em !important;
    border-radius: 6px;
  }

  /* Tablas con scroll horizontal */
  article table { display: block; overflow-x: auto; }

  /* Tipografía ajustada */
  body { font-size: 25px; }
  article h1 { font-size: 1.4em; }
  article h2 { font-size: 1.15em; }
  article p, article li { line-height: 1.85; }
  .content { max-width: 100%; }

  /* Tamaños táctiles en móvil (Apple HIG 44px / Material 48px): botones de
     chrome y enlaces del menú cómodos para el dedo. Solo afecta ≤768px; el
     escritorio (con ratón) conserva sus tamaños compactos. */
  .menu-btn    { width: 52px; height: 52px; font-size: 32px; }
  .dark-toggle { font-size: 16px; }
  .nav-section > details > summary { font-size: 16px; }
  .nav-root > li > a,
  .nav-book > details > summary,
  .nav-book ul li > a,
  .nav-children > li > a { padding-top: 10px; padding-bottom: 10px; font-size: 23px; }
}

@media (max-width: 480px) {
  .content { padding: 68px 16px 40px; }
  body { font-size: 25px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTADA v2 (index2) — barra superior horizontal + hero de la parasháh
   Aislado del resto del sitio: solo aplica bajo body.has-topnav / .hero2 / .topbar.
   ═══════════════════════════════════════════════════════════════════════════ */
/* --navy: color de las píldoras/badges (se mantiene navy en ambos modos).
   --btn / --btn-text: botones primarios y enlaces de acción. En claro son navy
   sobre blanco; en oscuro invierten a azul claro sobre texto oscuro (para que
   resalten sobre el fondo negro, como en el mockup). */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --navy: #1e3a5f; --navy-h: #16304e;
  --btn: #1e3a5f; --btn-h: #16304e; --btn-text: #fff;
}
html.dark {
  --navy: #24425f; --navy-h: #2d5075;
  --btn: #7fb0e0; --btn-h: #9cc3ec; --btn-text: #12233a;
}

/* Aviso de versión en pruebas */
.v2-flag {
  background: var(--accent); color: #000; text-align: center;
  padding: .4em; font-size: .8em; font-weight: 700; letter-spacing: .02em;
}

/* En v2 no hay layout flex con sidebar: el contenido es de ancho completo. */
body.has-topnav .content {
  margin: 0 auto; padding: 0 0 60px; max-width: 1180px; width: 100%;
}
body.has-topnav article { max-width: none; }
/* El pie hereda del diseño clásico un sangrado de -48px (compensaba el padding
   lateral de .content, que en v2 no existe): sin esto desborda el viewport en
   móvil y genera scroll horizontal. */
body.has-topnav .site-footer { margin-left: 0; margin-right: 0; padding-left: 1rem; padding-right: 1rem; }

/* ── Barra superior ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.topbar-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.topbar-logo img { width: 38px; height: 38px; border-radius: 9px; }
.topbar-brand {
  display: flex; flex-direction: column; line-height: 1.1;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.topbar-tagline { font-weight: 400; font-size: .72rem; color: var(--muted); }
.topbar-nav { flex: 1; display: flex; }

/* Menú horizontal */
.topnav {
  display: flex; align-items: center; gap: .3rem;
  list-style: none; margin: 0; padding: 0;
}
.topnav-link {
  display: inline-block; padding: .5rem .85rem; border-radius: 9px;
  font-weight: 600; font-size: .95rem; color: var(--text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  list-style: none;
}
.topnav-link::-webkit-details-marker { display: none; }
.topnav-link::marker { content: ""; }
.topnav-link--active { background: #dbe6f2; color: var(--navy); }
.topnav-link:hover { background: var(--bg-side); }

/* Dropdowns */
.topnav-item { position: relative; }
.topnav-drop > summary { list-style: none; }
.topnav-panel {
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 60;
  min-width: 220px; max-width: 90vw;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: .6rem; max-height: 70vh; overflow: auto;
}
.topnav-panel ul { list-style: none; margin: 0; padding: 0; }
.topnav-panel li a {
  display: block; padding: .35rem .6rem; border-radius: 7px;
  font-size: .9rem; color: var(--text); text-decoration: none;
}
.topnav-panel li a:hover { background: var(--bg-side); color: var(--link); }
.topnav-panel--cols { display: flex; gap: 1.2rem; min-width: min(680px, 88vw); }
.topnav-col { min-width: 150px; }
.topnav-col-h {
  display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); margin: .2rem 0 .3rem;
}

/* Toggle de tema en la barra: botón compacto, no se estira */
body.has-topnav .dark-toggle {
  position: static; margin: 0; padding: .5rem 1rem; flex: 0 0 auto;
  width: auto; align-self: center;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
  font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer;
  white-space: nowrap; text-transform: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
.hero2-kicker {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.hero2-title { font-family: var(--font-display); margin: .5rem 0 .3rem; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; text-transform: none; }
.hero2-title a { color: var(--text); text-decoration: none; }
.hero2-sub { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; }
.hero2-he { font-family: 'Frank Ruhl Libre', serif; font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.hero2-meta { color: var(--muted); font-size: .95rem; }
.hero2-lead { font-size: 1.1rem; line-height: 1.6; color: var(--text); margin: 0 0 1.6rem; max-width: 34em; }
.hero2-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero2-btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 12px;
  background: var(--btn); color: var(--btn-text); font-weight: 700; text-decoration: none;
}
.hero2-btn:hover { background: var(--btn-h); }
.hero2-btn-dur { opacity: .8; font-weight: 500; }
.hero2-link { color: var(--btn); font-weight: 600; text-decoration: none; }
.hero2-link:hover { text-decoration: underline; }

/* Card con la portada real. En DOM va primero (para quedar arriba en móvil);
   en desktop lo mandamos a la 2ª columna con order. */
.hero2-card {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: 0 20px 50px rgba(0,0,0,.18);
  order: 2;
}
.hero2-text { order: 1; }
.hero2-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .4rem 1rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700;
}

/* ── Buscador v2 (barra ancha bajo el hero) ─────────────────────────────── */
.bvv-banner--v2 {
  margin: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: .5rem .5rem .5rem 1.2rem;
}
.bvv-banner--v2 .bvv-row { display: flex; align-items: center; gap: .8rem; }
.bvv-banner--v2 .bvv-input {
  flex: 1; border: none; background: transparent; font-size: 1.05rem;
  color: var(--text); padding: .7rem .2rem;
}
/* Foco: el input hereda de producción un anillo naranja (border + box-shadow)
   que se duplicaba con el borde del contenedor. Se anula en el input y el
   estado de foco se muestra en el contenedor entero (un solo borde). */
.bvv-banner--v2 .bvv-input:focus {
  outline: none; border: none; box-shadow: none; border-color: transparent;
}
.bvv-banner--v2:focus-within {
  border-color: var(--btn); box-shadow: 0 0 0 2px rgba(30,58,95,.12);
}
html.dark .bvv-banner--v2:focus-within { box-shadow: 0 0 0 2px rgba(127,176,224,.18); }
.bvv-banner--v2 .bvv-btn,
html.dark .bvv-banner--v2 .bvv-btn {   /* gana a la regla heredada html.dark .bvv-btn */
  padding: .7rem 1.4rem; border: none; border-radius: 11px;
  background: var(--btn); color: var(--btn-text); font-weight: 700; cursor: pointer;
}
.bvv-banner--v2 .bvv-btn:hover,
html.dark .bvv-banner--v2 .bvv-btn:hover { background: var(--btn-h); }

/* ── Feed bajo el hero (v2) ──────────────────────────────────────────────────
   En v2 el destacado ya es el hero; la primera tarjeta del feed NO debe ir a
   ancho completo (featured). La reseteamos a tarjeta normal y disponemos el
   feed en rejilla. Este bloque va ANTES del @media responsive para que el
   override móvil (misma especificidad, más abajo) gane. */
body.has-topnav #bvv-home-cards {
  margin: 2rem clamp(1rem, 4vw, 2.5rem) 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
body.has-topnav #bvv-home-cards.first-is-featured { margin-top: 2rem; }
body.has-topnav .card-divider { display: none; }   /* la rejilla ya separa */
body.has-topnav .home-entry {
  margin: 0; padding: 1.2rem; border: 1px solid var(--border);
  border-radius: 16px; background: var(--bg);
}
/* La imagen de cada tarjeta va como thumbnail flotante. El float debe ir en el
   <a> que envuelve al <picture>/<img>, no solo en el img (si no, el ancla queda
   en flujo normal y reserva altura, dejando un hueco arriba del texto). */
body.has-topnav .home-entry > a:first-child {
  float: right; width: 150px; margin: 0 0 .5rem 1rem;
}
body.has-topnav .home-entry--featured .entry-img,
body.has-topnav .home-entry .entry-img {
  width: 150px; max-width: 150px; aspect-ratio: auto; height: auto;
  margin: 0; float: none;
}
body.has-topnav .home-entry img { border-radius: 10px; }
body.has-topnav .home-entry::after { content: ""; display: block; clear: both; }

/* Acciones a la derecha de la barra (pasaje + tema) */
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.topbar-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--navy); background: var(--bg);
}
.topbar-search:hover { background: var(--bg-side); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 861px) {
  .topbar .menu-btn { display: none; }  /* en desktop no hace falta el botón ≡ */
  .topbar-search { display: none; }     /* en desktop el buscador está bajo el hero */
}

@media (max-width: 860px) {
  /* Los componentes v2 dimensionan el texto en rem: escalar la raíz agranda
     todo proporcionalmente en el celular (convención del sitio: letra grande,
     cómoda de leer). 16px → 20px ≈ +25%. */
  html { font-size: 20px; }

  /* Barra: ≡ izquierda · logo centrado · 📖 derecha */
  .topbar {
    display: grid; grid-template-columns: 42px 1fr 42px; align-items: center;
    gap: .5rem; padding: .6rem 1rem;
  }
  .topbar .menu-btn {
    position: static; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin: 0; font-size: 1.5rem;
    background: none; border: none; color: var(--text);
  }
  .topbar-logo { justify-self: center; gap: .5rem; }
  .topbar-logo img { width: 34px; height: 34px; }
  .topbar-brand { font-size: 1.15rem; }
  .topbar-tagline { display: none; }        /* sin tagline en móvil */
  .topbar-nav { display: none; }            /* menú colapsa: se abre con ≡ */
  .topbar-actions { justify-self: end; }
  .topbar-actions .dark-toggle { display: none; }  /* el tema va dentro del menú ≡ */

  /* Hero apilado: card arriba con el kicker superpuesto, texto debajo */
  .hero2 {
    grid-template-columns: 1fr; gap: 1.2rem;
    padding: 1.2rem 1rem;
  }
  .hero2-card { order: 1; aspect-ratio: 16 / 12; }
  .hero2-text { order: 2; }
  /* La píldora "Parasháh de la semana" va sobre el título (como en desktop)
     y el N° se queda en la foto. */
  .hero2-title { font-size: clamp(2.6rem, 12vw, 3.4rem); margin: 0 0 .2rem; }
  .hero2-sub { flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: .8rem; }
  .hero2-he { font-size: 1.6rem; }
  .hero2-book, .hero2-book + .hero2-sep { display: none; }   /* solo fecha · min en móvil */
  .hero2-reading-suffix { display: none; }                    /* "10 min", no "de lectura" */
  .hero2-lead { font-size: 1.05rem; max-width: none; }
  .hero2-cta { flex-direction: column; align-items: stretch; gap: .8rem; }
  .hero2-btn { text-align: center; padding: .9rem 1.2rem; }
  .hero2-link { text-align: center; }

  /* Feed a una columna en móvil */
  body.has-topnav #bvv-home-cards,
  body.has-topnav #bvv-home-cards.first-is-featured {
    grid-template-columns: 1fr; margin: 1.5rem 1rem 0; gap: 1.2rem;
  }
  .bvv-banner--v2 { margin: 0 1rem 1.5rem; }
  /* Las tarjetas del feed no heredan el cuerpo de 25px del sitio en móvil */
  body.has-topnav .home-entry p { font-size: 1.05rem; line-height: 1.55; }
  body.has-topnav .home-entry > a:first-child { width: 110px; margin: 0 0 .4rem .8rem; }
  body.has-topnav .home-entry .entry-img { width: 110px; max-width: 110px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PÁGINA DE PARASHÁH v2 (formato en pruebas) — cabecera centrada, imagen hero,
   TOC lateral, encabezados de sección, navegación anterior/siguiente.
   Solo bajo article.para2; usa las mismas variables (--navy, --btn, etc.).
   ═══════════════════════════════════════════════════════════════════════════ */
article.para2 { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
article.para2 .breadcrumb { margin: 1.2rem 0 1.5rem; color: var(--muted); font-size: .9rem; }

/* Cabecera centrada */
.para2-head { text-align: center; margin: 0 auto 2rem; max-width: 720px; }
.para2-kicker {
  color: var(--navy); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .6rem;
}
html.dark .para2-kicker { color: var(--btn); }
.para2-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0;
  text-transform: none; border: none;
}
.para2-he {
  font-family: 'Frank Ruhl Libre', serif; font-size: 2rem; font-weight: 700;
  color: var(--accent); margin: .3rem 0 .8rem;
}
.para2-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.para2-meta .para2-sep { opacity: .5; }

/* Imagen hero: cuadrada y compacta, centrada */
.para2-hero-img {
  display: block; width: 100%; max-width: 420px; margin: 0 auto 2.5rem;
  border-radius: 18px; aspect-ratio: 1 / 1; object-fit: cover;
  box-shadow: 0 16px 44px rgba(0,0,0,.16);
}

/* Layout de dos columnas: TOC lateral + cuerpo */
.para2-cols {
  display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.para2-side { position: sticky; top: 90px; }
.para2-toc-h {
  display: block; color: var(--muted); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem;
}
.para2-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.para2-toc li { margin: 0; }
.para2-toc a {
  display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--text);
  font-size: .92rem; text-decoration: none; line-height: 1.3;
}
.para2-toc a:hover { color: var(--link); }
.para2-toc a.active { border-left-color: var(--navy); color: var(--navy); font-weight: 600; }

/* Cuerpo del artículo: encabezados de sección en azul */
.para2-body h2, .para2-body h3 {
  font-family: var(--font-display);
  color: var(--navy); border: none; padding: 0; margin: 1.8em 0 .5em;
}
html.dark .para2-body h2, html.dark .para2-body h3 { color: var(--btn); }
.para2-body { max-width: 720px; margin: 0 auto; }
.para2-body h2 { font-size: 1.6rem; }
.para2-body h3 { font-size: 1.4rem; }
.para2-body h2:first-child, .para2-body h3:first-child { margin-top: 0; }
.para2-body p { font-size: 1.08rem; line-height: 1.75; }

/* Navegación anterior/siguiente */
.para2-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin: 3.5rem 0 2rem;
}
.para2-navcard {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.2rem 1.6rem; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem;
}
.para2-navcard:hover { border-color: var(--navy); }
.para2-navcard--next { justify-content: flex-end; text-align: right; }
.para2-navcard--empty { background: none; border: none; }
.para2-navcard-he {
  font-family: 'Frank Ruhl Libre', serif; color: var(--accent); font-weight: 700;
}

@media (max-width: 860px) {
  .para2-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .para2-side { position: static; }
  .para2-toc { margin-bottom: 1rem; }
  .para2-hero-img { aspect-ratio: 16 / 10; }
  .para2-nav { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTADA v2 — secciones bajo el buscador: Podcast + Calendario
   ═══════════════════════════════════════════════════════════════════════════ */
.home2-lower {
  display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1180px; margin: 1rem auto 0; padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Encabezado de sección reutilizable */
.sec2-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0 0 1.2rem; border-bottom: 2px solid var(--border); padding-bottom: .6rem;
}
.sec2-title {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--text); margin: 0; border: none; padding: 0; text-transform: none;
}
.sec2-link { color: var(--btn); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.sec2-link:hover { text-decoration: underline; }

/* ── Podcast ─────────────────────────────────────────────────────────────── */
.pod2-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }

.pod2-featured {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem;
  padding: 1.2rem; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.pod2-featured:hover { border-color: var(--btn); transform: translateY(-2px); }
.pod2-featured-img { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; }
.pod2-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.pod2-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,58,95,.85); color: #fff; border-radius: 50%;
  font-size: 1.1rem; padding-left: 4px;
}
.pod2-featured-body { display: flex; flex-direction: column; }
.pod2-num { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pod2-title { font-family: var(--font-display); font-size: 1.35rem; margin: .2rem 0 .5rem; color: var(--text); }
.pod2-lead { color: var(--muted); font-size: .98rem; line-height: 1.55; margin: 0 0 auto;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pod2-cta {
  align-self: flex-start; margin-top: .9rem; padding: .5rem 1.2rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-text); font-weight: 700; font-size: .9rem;
}
.pod2-dur { opacity: .8; font-weight: 500; }

.pod2-playlist { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pod2-playlist-h {
  display: block; padding: .7rem 1rem; background: var(--bg-side);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.pod2-row {
  display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem;
  border-top: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.pod2-row:hover { background: var(--bg-side); }
.pod2-row-num {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-side); color: var(--muted); font-size: .82rem; font-weight: 700;
}
.pod2-row-title { flex: 1; font-weight: 600; font-size: .95rem; }
.pod2-row-dur { color: var(--muted); font-size: .85rem; }

/* ── Calendario ──────────────────────────────────────────────────────────── */
.cal2-list { list-style: none; margin: 0; padding: 0; }
.cal2-item {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}
.cal2-item:last-child { border-bottom: none; }
.cal2-date {
  flex: none; width: 56px; border-radius: 12px; padding: .38rem 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-side); line-height: 1.15;
}
.cal2-dow { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.cal2-day { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.cal2-mon { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.cal2-info { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cal2-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted);
}
.cal2-name { font-weight: 600; font-size: .98rem; color: var(--text); }
.cal2-time { flex: none; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.cal2-zoom { color: var(--btn); font-weight: 600; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.cal2-zoom:hover { text-decoration: underline; }

/* Acento de color por tipo (borde izquierdo del daybox) */
.cal2-item--study .cal2-date { box-shadow: inset 3px 0 0 var(--navy); }
.cal2-item--moon  .cal2-date { box-shadow: inset 3px 0 0 #6b8cae; }
.cal2-item--feast .cal2-date { box-shadow: inset 3px 0 0 var(--accent); }
.cal2-item--bday  .cal2-date { box-shadow: inset 3px 0 0 #c77d9e; }
.cal2-item--feast .cal2-label { color: var(--link); }

@media (max-width: 860px) {
  .home2-lower { grid-template-columns: 1fr; margin-top: .5rem; }
  .pod2-featured { grid-template-columns: 96px 1fr; gap: 1rem; padding: 1rem; }
  .pod2-title { font-size: 1.15rem; }
  .pod2-lead { -webkit-line-clamp: 2; font-size: .92rem; }
}

/* ── Página Biblia (v2): buscador BVV dedicado ──────────────────────────── */
article.bib2-page { max-width: 900px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.bib2-head { text-align: center; margin: 2.5rem auto 2rem; max-width: 640px; }
.bib2-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 .4rem;
  text-transform: none; border: none;
}
.bib2-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.bib2 .bvv-banner--v2 { margin: 0 0 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   CORRECCIONES DE HOVER / CONTRASTE (auditoría v2)
   Problemas: (1) la píldora activa del menú quedaba navy-sobre-negro en oscuro
   al hacer hover; (2) article a:hover recoloreaba y subrayaba el botón CTA y
   las tarjetas-enlace enteras (podcast, hero); (3) inconsistencias en oscuro.
   Este bloque va al FINAL para ganar por orden de cascada.
   ═══════════════════════════════════════════════════════════════════════════ */
/* 1. Píldora activa del menú: conserva fondo claro (navy legible) al hover. */
.topnav-link--active:hover { background: #cddcee; color: var(--navy); }

/* 2. Botón CTA del hero: el texto no cambia de color ni se subraya al hover. */
.hero2-btn:hover { background: var(--btn-h); color: var(--btn-text); text-decoration: none; }

/* 3. Tarjetas-enlace: sin subrayado masivo ni recoloreo de article a:hover. */
.hero2-title a:hover, .hero2-card:hover,
.pod2-featured:hover, .pod2-row:hover,
.para2-navcard:hover { text-decoration: none; color: var(--text); }
.pod2-featured:hover .pod2-title,
.pod2-row:hover .pod2-row-title { color: var(--text); }
/* Enlaces de acción: conservan su color de marca en hover (solo subrayan). */
.sec2-link:hover, .cal2-zoom:hover, .hero2-link:hover { color: var(--btn); }

/* 4. TOC de parasháh: ítem activo legible en oscuro. */
html.dark .para2-toc a.active { color: var(--btn); border-left-color: var(--btn); }

/* 5. Icono de pasaje de la barra (móvil): visible en oscuro. */
html.dark .topbar-search { color: var(--btn); }

/* 6. Botones de comentario (resultados BVV): hover/activo con efecto en oscuro. */
html.dark .comm-btn:hover  { background: #3e3b34; }
html.dark .comm-btn.active { background: var(--link); color: #1a1710; border-color: var(--link-h); }

/* ── Cabecera de episodio de podcast (v2): carátula izq. + info der. ────── */
.pod2p-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center; max-width: 860px; margin: 1.5rem auto 2.5rem;
}
.pod2p-cover {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 18px; box-shadow: 0 16px 44px rgba(0,0,0,.18);
}
.pod2p-info { min-width: 0; }
.pod2p-info .para2-kicker { margin: 0 0 .4rem; }
.pod2p-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1;
  margin: 0 0 .5rem; text-transform: none; border: none;
}
.pod2p-info .para2-meta { margin: 0 0 1.1rem; }
.pod2p-info .podcast-player { width: 100%; margin: 0; }

@media (max-width: 860px) {
  .pod2p-hero { grid-template-columns: 1fr; text-align: center; margin: 1rem auto 2rem; }
  .pod2p-cover { max-width: 260px; margin: 0 auto; }
}

/* ── Índice del podcast (v2/podcast/index.html) ─────────────────────────── */
.podidx-list { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
