
/* ============================================
   TEHILIM.CSS — versión limpia
   ============================================ */

/* === VARIABLES === */
:root {
  --accent: #d4af37;
  --accent-soft: rgba(212,175,55,0.15);
  --border: rgba(128,128,128,0.1);
  --maxw: 780px;
}

/* === GRID DE SALMOS === */
.tehilim-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 0.5em;
}
.tehilim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  min-height: 80px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.tehilim-item:hover {
  background: var(--accent-soft);
  border-color: rgba(212,175,55,0.3);
}
.tehilim-num {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--ui-font);
}
.tehilim-name {
  font-size: 0.62em;
  line-height: 1.3;
  text-align: left;
  margin-top: 4px;
  font-family: var(--ui-font);
  hyphens: auto;
  word-break: break-word;
  color: var(--muted);
}

/* === SALMO INDIVIDUAL === */
.tehilim-header {
  text-align: left;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tehilim-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 700;
  font-family: var(--ui-font);
  margin-bottom: 0.5em;
}
h1.title {
  font-family: var(--he-font);
  font-size: 2em;
  font-weight: 400;
  direction: rtl;
  text-align: left;
  margin: 0.2em 0 0;
}

/* === VERSOS — VISTA NORMAL === */
.tehilim-verses {
  direction: rtl;
}
.verse {
  margin-bottom: 1.6em;
}
.verse-he {
  font-family: var(--he-font);
  font-size: var(--font, 22px);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  color: var(--fg);
}
.verse-translit {
  font-family: var(--ui-font);
  font-size: 0.78em;
  direction: ltr;
  text-align: left;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3em;
  line-height: 1.5;
}
.verse-es {
  font-family: var(--ui-font);
  font-size: 0.82em;
  direction: ltr;
  text-align: left;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3em;
  line-height: 1.6;
}

/* Número de verso superíndice */
sup.verse-num {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 700;
  vertical-align: super;
  margin-inline-end: 3px;
  font-family: var(--ui-font);
  line-height: 1;
}
sup.verse-num-es {
  font-size: 0.55em;
  color: rgba(212,175,55,0.5);
  vertical-align: super;
  margin-inline-end: 3px;
  font-family: var(--ui-font);
}

/* === VERSOS — VISTA DOS COLUMNAS === */





@media (max-width: 600px) {
  
}

/* === TOPBAR === */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, calc((100vw - var(--maxw)) / 2));
  height: 56px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  direction: ltr;
  gap: 12px;
}
:root.dark-mode header.topbar {
  background: rgba(10,10,10,0.97);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-title {
  font-family: var(--ui-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}
.brand-byline {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-weight: 400;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.text-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  background: rgba(128,128,128,0.06);
  border-radius: 12px;
  margin-inline-end: 6px;
}
.ui-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tbar-sep {
  width: 1px;
  height: 16px;
  background: rgba(128,128,128,0.2);
  margin: 0 5px;
}
.tbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s, opacity 0.12s;
  opacity: 0.5;
}
.tbar-btn:hover {
  background: rgba(128,128,128,0.1);
  opacity: 0.9;
}
/* Activo: dorado destacado */
.tbar-toggle.active {
  background: var(--accent-soft);
  color: var(--accent);
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px rgba(212,175,55,0.35);
}
/* Desactivado bloqueado */
.he-hidden #btnCantil {
  opacity: 0.15 !important;
  pointer-events: none;
}
.tbar-lang {
  font-family: var(--he-font);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Font popover */
.font-popover-wrap { position: relative; }
.font-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  z-index: 500;
}
.font-popover.open { display: flex; }
.font-popover button {
  background: none;
  border: none;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--ui-font);
  font-size: 13px;
  border-radius: 6px;
  text-align: left;
}
.font-popover button:hover { background: var(--accent-soft); }

/* === BÚSQUEDA === */
#searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 300;
  backdrop-filter: blur(2px);
}
#searchPanel {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 301;
  overflow: hidden;
  direction: ltr;
}
.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-header input {
  flex: 1;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--fg);
  font-family: var(--ui-font);
  outline: none;
}
.search-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0 4px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-family: var(--ui-font);
  text-decoration: none;
  color: var(--fg);
}
.search-result-item:hover { background: var(--accent-soft); }
.search-result-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-width: 28px;
}
.search-result-title { font-size: 15px; }

/* === BOTTOMBAR === */
nav.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  direction: ltr;
}
:root.dark-mode nav.bottombar {
  background: rgba(10,10,10,0.97);
}
nav.bottombar .bbtn {
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  opacity: 0.6;
}
nav.bottombar .bbtn:hover { opacity: 1; }
nav.bottombar .bbtn.active {
  color: var(--fg);
  font-weight: 600;
  opacity: 1;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}

/* === NAV SALMO === */
.tehilim-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  direction: ltr;
  font-family: var(--ui-font);
  font-size: 0.85em;
}
.tehilim-nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.tehilim-nav a:hover { background: var(--accent-soft); }

/* === SIGNOS ESPAÑOLES LTR === */
.tehilim-name,
.verse-es,
.verse-translit,
.tehilim-nav a,
.bbtn {
  unicode-bidi: plaintext;
}

/* === LANDING: ocultar controles de texto === */
body.is-landing .text-controls {
  visibility: hidden;
  pointer-events: none;
}

/* === LANDING: centrado perfecto === */
.landing-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 2em 1em 5em;
  direction: ltr;
  gap: 0;
}
.landing-title {
  font-size: clamp(2.4em, 7vw, 3.8em);
  font-weight: 700;
  font-family: var(--ui-font);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25em;
}
.landing-subtitle {
  font-size: 0.95em;
  color: var(--muted);
  font-family: var(--ui-font);
  letter-spacing: 0.06em;
  margin-bottom: 2em;
}
.landing-enter {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--ui-font);
  font-size: 1.15em;
  font-weight: 700;
  padding: 0.8em 2.2em;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  margin-bottom: 1.8em;
  letter-spacing: 0.01em;
}
.landing-enter:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.landing-nav {
  display: flex;
  gap: 2.5em;
}
.landing-nav a {
  font-family: var(--ui-font);
  font-size: 0.95em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.landing-nav a:hover { color: var(--accent); }

/* === 3 OPCIONES ACTIVAS: transliteración bien integrada === */



/* === LANDING SALMO DEL DÍA === */
.landing-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 1em 5em;
  gap: 0;
}

/* Título hebreo grande arriba */
.landing-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5em;
  gap: 0.4em;
}
.landing-book {
  font-family: var(--he-font);
  font-size: clamp(1.6em, 4vw, 2.4em);
  font-weight: 300;
  color: var(--fg);
  opacity: 0.25;
  letter-spacing: 0.05em;
  line-height: 1;
}
.landing-day-label {
  font-family: var(--ui-font);
  font-size: 0.72em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

/* Tarjeta del salmo */
.landing-psalm {
  width: 100%;
  max-width: 560px;
}
.landing-psalm-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--fg);
  padding: 2.5em 2em;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 0.6em;
  text-align: left;
}
.landing-psalm-link:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 4px 24px rgba(212,175,55,0.08);
}
.landing-psalm-num {
  font-family: var(--ui-font);
  font-size: 0.75em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.2em;
}
.landing-psalm-title-he {
  font-family: var(--he-font);
  font-size: 1.4em;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
}
.landing-psalm-title-es {
  font-family: var(--ui-font);
  font-size: 0.78em;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.8em;
}
.landing-verse-he {
  font-family: var(--he-font);
  font-size: clamp(1em, 2.5vw, 1.3em);
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.85;
  margin-bottom: 0.4em;
  padding: 0 0.5em;
}
.landing-verse-es {
  font-family: var(--ui-font);
  font-size: 0.82em;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 1em;
}
.landing-read {
  font-family: var(--ui-font);
  font-size: 0.82em;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-top: 0.5em;
  opacity: 0.8;
}
.landing-psalm-link:hover .landing-read {
  opacity: 1;
}

/* Nav inferior */
.landing-nav {
  display: flex;
  gap: 2.5em;
  margin-top: 2em;
}
.landing-nav a {
  font-family: var(--ui-font);
  font-size: 0.88em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.landing-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ============================================
   LANDING V3 — dos bloques, flujo natural
   ============================================ */
.landing-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3em 1.5em 5em;
  max-width: 620px;
  margin: 0 auto;
  gap: 0;
}

/* --- BLOQUE IDENTIDAD --- */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding-bottom: 2.5em;
  gap: 0.7em;
  width: 100%;
}
.landing-he-title {
  font-family: var(--he-font);
  font-size: clamp(2em, 5vw, 3em);
  font-weight: 300;
  color: var(--fg);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 0.1em;
}
.landing-main-title {
  font-family: var(--ui-font);
  font-size: clamp(1.7em, 4vw, 2.4em);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.landing-desc {
  font-family: var(--ui-font);
  font-size: 0.92em;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 420px;
}
.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin-top: 0.8em;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-cta-primary {
  font-family: var(--ui-font);
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.65em 1.6em;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
}
.landing-cta-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.landing-cta-secondary {
  font-family: var(--ui-font);
  font-size: 0.88em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.landing-cta-secondary:hover { opacity: 1; }

/* --- DIVISOR --- */
.landing-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0.5em 0 2em;
}
.landing-divider::before,
.landing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.landing-divider span {
  font-family: var(--ui-font);
  font-size: 0.7em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  white-space: nowrap;
}

/* --- SALMO DEL DÍA --- */
.landing-daily {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  text-decoration: none;
  color: var(--fg);
  width: 100%;
  gap: 0.8em;
  padding: 1.5em;
  border-radius: 14px;
  transition: background 0.15s;
}
.landing-daily:hover {
  background: rgba(212,175,55,0.04);
}
.landing-daily-meta {
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.landing-daily-num {
  font-family: var(--ui-font);
  font-size: 0.75em;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.landing-daily-title-es {
  font-family: var(--ui-font);
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
}
.landing-daily-he {
  font-family: var(--he-font);
  font-size: clamp(1.1em, 3vw, 1.5em);
  font-weight: 400;
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.9;
  max-width: 500px;
}
.landing-daily-es {
  font-family: var(--ui-font);
  font-size: 0.85em;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  max-width: 420px;
}
.landing-daily-link {
  font-family: var(--ui-font);
  font-size: 0.8em;
  color: var(--accent);
  opacity: 0.7;
  margin-top: 0.4em;
  transition: opacity 0.15s;
}
.landing-daily:hover .landing-daily-link { opacity: 1; }

/* ============================================
   LANDING V4 — panel funcional
   ============================================ */
.landing-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 2em 1.2em 5em;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

/* Cabecera compact */
.landing-head {
  text-align: left;
  padding-top: 0.5em;
}
.landing-main-title {
  font-family: var(--ui-font);
  font-size: 1.4em;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.2em;
  letter-spacing: -0.01em;
}
.landing-desc {
  font-family: var(--ui-font);
  font-size: 0.82em;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  opacity: 0.7;
}

/* Búsqueda */
.landing-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85em 1.1em;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: rgba(128,128,128,0.03);
}
.landing-search:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 2px 12px rgba(212,175,55,0.08);
}
.landing-search span {
  font-family: var(--ui-font);
  font-size: 0.9em;
  color: var(--muted);
  opacity: 0.5;
}

/* Tiles 2x2 */
.landing-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.landing-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 1.1em 1em;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  min-height: 90px;
}
.landing-tile:hover {
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.04);
  transform: translateY(-1px);
}
.landing-tile-day {
  border-color: rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.04);
}
.tile-icon {
  font-family: var(--he-font);
  font-size: 1.1em;
  opacity: 0.5;
  line-height: 1;
}
.tile-icon-es {
  font-family: var(--ui-font);
  font-size: 1em;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.tile-label {
  font-family: var(--ui-font);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.tile-sub {
  font-family: var(--ui-font);
  font-size: 0.72em;
  color: var(--muted);
  opacity: 0.6;
  line-height: 1.3;
}

/* Preview verso del día */
.landing-verse-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  text-decoration: none;
  color: var(--fg);
  gap: 0.7em;
  padding: 1.2em 0.5em;
}
.landing-verse-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
}
.landing-verse-divider::before,
.landing-verse-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.landing-verse-divider span {
  font-family: var(--ui-font);
  font-size: 0.68em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.45;
  white-space: nowrap;
}
.lvp-he {
  font-family: var(--he-font);
  font-size: clamp(1em, 2.8vw, 1.35em);
  line-height: 1.8;
  opacity: 0.85;
}
.lvp-es {
  font-family: var(--ui-font);
  font-size: 0.83em;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  max-width: 400px;
}
.lvp-link {
  font-family: var(--ui-font);
  font-size: 0.78em;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.15s;
  margin-top: 0.2em;
}
.landing-verse-preview:hover .lvp-link { opacity: 1; }

/* === LANDING: título más pequeño, tiles primero en móvil === */
.landing-wrap {
  padding-top: 1.2em !important;
  gap: 1em !important;
}
.landing-head {
  padding-top: 0 !important;
}
.landing-main-title {
  font-size: 1em !important;
  font-weight: 600 !important;
  opacity: 0.5;
}
.landing-desc {
  font-size: 0.75em !important;
  opacity: 0.4 !important;
}
@media (max-width: 640px) {
  .landing-wrap {
    padding-top: 0.8em !important;
    gap: 0.9em !important;
  }
  .landing-head {
    order: 3;
    margin-top: 0.5em;
  }
  .landing-search {
    order: 1;
  }
  .landing-tiles {
    order: 2;
  }
  .landing-verse-preview {
    order: 4;
  }
}

/* === FIX: estado inicial cantilaciones === */

/* === LANDING: más contraste, búsqueda más fina === */
.landing-main-title {
  color: var(--fg) !important;
  opacity: 0.8 !important;
}
.landing-desc {
  opacity: 0.5 !important;
}

/* Búsqueda más fina */
.landing-search {
  padding: 0.65em 1em !important;
  border-radius: 10px !important;
}

/* Tiles con más presencia */
.landing-tile {
  border: 1.5px solid rgba(128,128,128,0.15) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.landing-tile-day {
  border-color: rgba(212,175,55,0.45) !important;
  background: rgba(212,175,55,0.07) !important;
}
.tile-label {
  font-size: 0.9em !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  opacity: 1 !important;
}
.tile-sub {
  opacity: 0.55 !important;
}
.tile-icon {
  color: var(--accent) !important;
  opacity: 0.7 !important;
}
.landing-cta-primary,
.tile-icon-es {
  color: var(--accent) !important;
  font-weight: 800 !important;
}

/* Tiles 1 y 3 con acento dorado suave */
.landing-tile:nth-child(odd) {
  border-color: rgba(212,175,55,0.2) !important;
}

/* === LANDING: más contraste, búsqueda más fina === */
.landing-main-title {
  color: var(--fg) !important;
  opacity: 0.8 !important;
}
.landing-desc {
  opacity: 0.5 !important;
}

/* Búsqueda más fina */
.landing-search {
  padding: 0.65em 1em !important;
  border-radius: 10px !important;
}

/* Tiles con más presencia */
.landing-tile {
  border: 1.5px solid rgba(128,128,128,0.15) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.landing-tile-day {
  border-color: rgba(212,175,55,0.45) !important;
  background: rgba(212,175,55,0.07) !important;
}
.tile-label {
  font-size: 0.9em !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  opacity: 1 !important;
}
.tile-sub {
  opacity: 0.55 !important;
}
.tile-icon {
  color: var(--accent) !important;
  opacity: 0.7 !important;
}
.landing-cta-primary,
.tile-icon-es {
  color: var(--accent) !important;
  font-weight: 800 !important;
}

/* Tiles 1 y 3 con acento dorado suave */
.landing-tile:nth-child(odd) {
  border-color: rgba(212,175,55,0.2) !important;
}

/* === Brand title en dorado === */
.brand-title {
  color: var(--accent) !important;
}


.cantil-off { display: none !important; }

.verse-he { text-align: right; }
.verse-translit, .verse-es { text-align: left !important; }

/* === Título salmo === */
.psalm-header {
  text-align: center;
  margin: 0.5em 0 1.5em;
  padding: 0 1em;
}
.psalm-number {
  font-family: var(--ui-font);
  font-size: 0.85em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.3em;
}
.psalm-title-he {
  font-family: var(--he-font);
  font-size: 1.1em;
  direction: rtl;
  margin-bottom: 0.2em;
}
.psalm-title-es {
  font-family: var(--ui-font);
  font-size: 0.95em;
  color: var(--muted);
  font-style: italic;
}

/* Titulo: mostrar segun idioma activo */
.psalm-title-he { display: block; }
.psalm-title-es { display: none; }

/* Cuando hebreo inactivo y ES activo */
body.show-es-only .psalm-title-he { display: none; }
body.show-es-only .psalm-title-es { display: block; }

/* Centrar brand en topbar */
.tbar-brand { 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.psalm-header { text-align: center; margin: 0.5em 0 1.5em; }
.psalm-number-big { font-size: 2.5em; font-weight: 700; color: var(--accent); line-height: 1; }
.psalm-subtitle { font-size: 0.85em; color: var(--muted); margin-top: 0.3em; font-style: italic; }
