/* ==========================================================================
   De cierto te digo — sistema de diseño
   Paleta tomada del rediseño: tinta #0E1118, crema #F2ECE0, oro #B7882E.
   La cabecera y el pie son siempre oscuros; el cuerpo cambia con el tema.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
    color-scheme: light;

    /* Constantes de marca (no cambian con el tema) */
    --ink: #0E1118;
    --ink-2: #161A23;
    --ink-3: #1C2230;
    --ink-line: #212733;
    --cream: #F2ECE0;
    --cream-2: #FAF7F0;
    --paper: #FEFEFE;
    --gold: #B7882E;
    --gold-2: #D7B35D;

    /* Cabecera y pie: oscuros en ambos temas */
    --nav-bg: #0E1118;
    --nav-surface: #161A23;
    --nav-line: #212733;
    --nav-text: #B9BDC6;
    --nav-text-strong: #F2ECE0;
    --nav-accent: #D7B35D;

    /* Tema claro */
    --bg: #F2ECE0;
    --bg-alt: #EDE6D8;
    --surface: #FAF7F0;
    --surface-2: #FEFEFE;
    --surface-sunken: rgba(14, 17, 24, .035);
    --text: #0E1118;
    --text-soft: #474C57;
    --text-mute: #6C717C;
    --line: rgba(14, 17, 24, .13);
    --line-soft: rgba(14, 17, 24, .07);
    --accent: #B7882E;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(183, 136, 46, .12);
    --shadow-sm: 0 1px 2px rgba(14, 17, 24, .05);
    --shadow: 0 1px 2px rgba(14, 17, 24, .04), 0 14px 34px -14px rgba(14, 17, 24, .16);
    --shadow-lg: 0 2px 4px rgba(14, 17, 24, .04), 0 28px 60px -22px rgba(14, 17, 24, .26);

    /* Tipografía */
    --font-serif: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-hebrew: "Frank Ruhl Libre", "Noto Serif Hebrew", "Times New Roman", serif;

    /* Métricas */
    --container: 1180px;
    --container-narrow: 760px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0E1118;
        --bg-alt: #0A0D13;
        --surface: #161A23;
        --surface-2: #1C2230;
        --surface-sunken: rgba(255, 255, 255, .03);
        --text: #ECE6DA;
        --text-soft: #A8ADB7;
        --text-mute: #828893;
        --line: #212733;
        --line-soft: rgba(255, 255, 255, .06);
        --accent: #D7B35D;
        --accent-ink: #0E1118;
        --accent-soft: rgba(215, 179, 93, .13);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .65);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 32px 70px -24px rgba(0, 0, 0, .8);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0E1118;
    --bg-alt: #0A0D13;
    --surface: #161A23;
    --surface-2: #1C2230;
    --surface-sunken: rgba(255, 255, 255, .03);
    --text: #ECE6DA;
    --text-soft: #A8ADB7;
    --text-mute: #828893;
    --line: #212733;
    --line-soft: rgba(255, 255, 255, .06);
    --accent: #D7B35D;
    --accent-ink: #0E1118;
    --accent-soft: rgba(215, 179, 93, .13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .65);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 32px 70px -24px rgba(0, 0, 0, .8);
}

/* ----------------------------------------------------------------- Base -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.dctd {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dctd main { flex: 1 0 auto; }

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: inherit; }

:where(.dctd) :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ------------------------------------------------------------ Utilidades -- */
.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.wrap-narrow { max-width: var(--container-narrow); }

.eyebrow {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 .75rem;
}
.eyebrow-accent { color: var(--accent); }

.h-display {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
}

/* El hebreo va en rtl aislado y como inline-block, para que dentro de un
   bloque en español no se pegue al margen derecho. */
.heb {
    font-family: var(--font-hebrew);
    direction: rtl;
    unicode-bidi: isolate;
    display: inline-block;
    font-weight: 500;
}

.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }

/* Separador con rombos ◆ ◆ ◆ */
.rule-diamonds {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--accent);
}
.rule-diamonds::before,
.rule-diamonds::after {
    content: "";
    height: 1px;
    width: 72px;
    background: currentColor;
    opacity: .55;
}
.rule-diamonds i {
    display: block;
    width: 5px;
    height: 5px;
    background: currentColor;
    transform: rotate(45deg);
}
.rule-diamonds span { display: flex; gap: .55rem; align-items: center; }
.rule-diamonds.is-center { justify-content: center; }

/* ---------------------------------------------------------------- Botón -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .62rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background: none;
    color: inherit;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.btn-gold:hover { background: #a3781f; border-color: #a3781f; }

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
    background: var(--surface-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-on-dark {
    border-color: rgba(242, 236, 224, .28);
    color: var(--nav-text-strong);
}
.btn-on-dark:hover { border-color: var(--gold-2); color: var(--gold-2); }

.btn-lg { padding: .78rem 1.45rem; font-size: .9rem; }
.btn-sm { padding: .42rem .85rem; font-size: .78rem; }

.link-underline {
    font-size: .85rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: color .18s ease;
}
.link-underline:hover { color: var(--accent); }

/* ---------------------------------------------------------------- Chips -- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .5rem;
    border-radius: 4px;
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.chip-gold { background: var(--gold); color: #fff; }
.chip-outline { border: 1px solid var(--line); color: var(--text-mute); }
.chip-dark { background: rgba(242, 236, 224, .1); color: #CFD3DA; }
.chip-accent { background: var(--accent); color: #fff; }

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: .78rem;
    color: var(--text-mute);
}
.meta-row span { display: inline-flex; align-items: center; gap: .4rem; }
.meta-row svg { width: 14px; height: 14px; opacity: .8; }

/* ======================================================== Cabecera ======= */
.site-head {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-line);
}
.site-head__bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    flex: none;
}
.brand__mark {
    width: 36px;
    height: 36px;
    flex: none;
    display: block;
    border-radius: 50%;
}
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: .98rem;
    color: var(--nav-text-strong);
}
.brand__heb {
    font-family: var(--font-hebrew);
    font-size: .58rem;
    color: var(--gold-2);
    opacity: .85;
    direction: rtl;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; margin-inline-start: auto; }
.site-nav a {
    position: relative;
    font-size: .84rem;
    color: var(--nav-text);
    text-decoration: none;
    padding: .35rem 0;
    transition: color .18s ease;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--nav-text-strong); }
.site-nav a.is-active { color: var(--nav-text-strong); }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1.5px;
    background: var(--gold-2);
}

.site-tools { display: flex; align-items: center; gap: .35rem; flex: none; }
.icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--nav-text);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: rgba(242, 236, 224, .08); color: var(--nav-text-strong); }
.icon-btn svg { width: 17px; height: 17px; }

.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .46rem .85rem;
    border-radius: 6px;
    background: var(--gold);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    margin-inline-start: .35rem;
    transition: background-color .18s ease;
}
.yt-btn:hover { background: #a3781f; }
.yt-btn svg { width: 16px; height: 16px; }

.nav-toggle { display: none; }

/* Barra de progreso de lectura */
.read-progress {
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--gold-2);
    transition: width .1s linear;
}

/* Menú móvil */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--nav-line);
    background: var(--nav-bg);
    padding: .5rem 0 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block;
    padding: .7rem 0;
    font-size: .95rem;
    color: var(--nav-text);
    text-decoration: none;
    border-bottom: 1px solid var(--nav-line);
}
.mobile-nav a.is-active { color: var(--gold-2); }
.mobile-nav .yt-btn { margin: 1rem 0 0; }

/* Buscador desplegable */
.search-panel {
    display: none;
    border-top: 1px solid var(--nav-line);
    background: var(--nav-surface);
    padding: 1rem 0;
}
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: .6rem; }
.search-panel input {
    flex: 1;
    padding: .7rem .9rem;
    border-radius: 6px;
    border: 1px solid var(--nav-line);
    background: var(--nav-bg);
    color: var(--nav-text-strong);
    font-family: var(--font-sans);
    font-size: .9rem;
}
.search-panel input::placeholder { color: #6C717C; }
.search-panel input:focus { outline: none; border-color: var(--gold-2); }

@media (max-width: 1040px) {
    .site-nav { display: none; }
    .nav-toggle { display: grid; }
}

/* En móvil el botón de YouTube solo vive dentro del menú desplegable:
   en la barra no cabe junto al logo y los tres iconos. */
@media (max-width: 760px) {
    .site-head__bar > .site-tools > .yt-btn { display: none; }
    .site-head__bar { gap: .5rem; }
    .brand__name { font-size: .9rem; }
    .brand__heb { font-size: .54rem; }
    .wrap { padding-inline: 18px; }
}

/* =========================================================== Hero ======== */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 5.5rem 0 7.5rem;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(242, 236, 224, .028) 0,
        rgba(242, 236, 224, .028) 1px,
        transparent 1px,
        transparent 21px
    );
    pointer-events: none;
}
.hero > * { position: relative; }

.hero__eyebrow {
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(242, 236, 224, .62);
    margin: 0 0 2.25rem;
}
.hero__heb {
    font-family: var(--font-hebrew);
    direction: rtl;
    color: var(--gold-2);
    font-size: clamp(2.9rem, 9vw, 5.6rem);
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}
.hero .rule-diamonds { justify-content: center; margin: 1.5rem 0 .9rem; color: var(--gold-2); }
.hero__translit {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: .95rem;
    color: rgba(242, 236, 224, .7);
    margin: 0 0 1.75rem;
}
.hero__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.15;
    color: var(--cream-2);
    margin: 0 0 1rem;
}
.hero__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(242, 236, 224, .72);
    max-width: 30ch;
    margin: 0 auto 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Tarjeta de último video, solapada sobre el hero */
.latest-video {
    margin-top: -4.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    position: relative;
    z-index: 2;
}
.latest-video__thumb {
    position: relative;
    display: block;
    margin: 18px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 16 / 9;
    text-decoration: none;
}
.latest-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-video__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 17, 24, .55), transparent 55%);
}
.play-badge {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    z-index: 2;
    transition: transform .2s ease;
}
.play-badge svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }
.latest-video__thumb:hover .play-badge { transform: scale(1.08); }
.latest-video__ph {
    position: absolute;
    left: 14px; bottom: 12px;
    z-index: 2;
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(242, 236, 224, .5);
}
.latest-video__body { padding: 2rem 2rem 2rem .5rem; align-self: center; }
.latest-video__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 .75rem;
    color: var(--text);
}
.latest-video__title a { text-decoration: none; }
.latest-video__title a:hover { color: var(--accent); }
.latest-video__desc { font-size: .88rem; color: var(--text-soft); margin: 0 0 1.4rem; }
.latest-video__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 820px) {
    .latest-video { grid-template-columns: 1fr; }
    .latest-video__body { padding: 0 1.5rem 1.75rem; }
}

/* ======================================================== Secciones ====== */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }

/* --------------------------------------------------- Tarjeta de estudio -- */
.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
/* En la portada las tarjetas van siempre a dos columnas, como el rediseño. */
@media (min-width: 900px) {
    .study-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.study-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.study-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.study-card__plate {
    position: relative;
    background: var(--ink);
    padding: 2.6rem 1.5rem 1.9rem;
    text-align: center;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.study-card__plate.has-image {
    padding: 0;
    min-height: 190px;
    overflow: hidden;
}
.study-card__plate.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.study-card__badges {
    position: absolute;
    top: .85rem;
    left: .85rem;
    display: flex;
    gap: .4rem;
    z-index: 1;
}
.study-card__heb {
    font-family: var(--font-hebrew);
    direction: rtl;
    font-size: 2.6rem;
    line-height: 1.25;
    color: var(--gold-2);
    margin: 0;
}
.study-card__gloss {
    font-family: var(--font-serif);
    font-size: .8rem;
    color: rgba(242, 236, 224, .72);
    margin: .5rem 0 0;
}
.study-card__gloss em { font-style: italic; }

.study-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .85rem;
}
.study-card__title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
}
.study-card__title a { text-decoration: none; }
.study-card__title a:hover { color: var(--accent); }
.study-card__excerpt {
    margin: 0;
    font-size: .86rem;
    line-height: 1.6;
    color: var(--text-soft);
}
.study-card__sections {
    margin: 0;
    padding-top: .85rem;
    border-top: 1px solid var(--line-soft);
    font-size: .78rem;
    line-height: 1.6;
    color: var(--text-mute);
}
.study-card__body .btn { align-self: flex-start; margin-top: auto; }

/* ---------------------------------------------------------- Bloque Biblia */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}
.split__copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 1rem; }
.split__copy p { color: var(--text-soft); font-size: .95rem; margin: 0 0 1.6rem; max-width: 42ch; }
.split__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.book-panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.book-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
}
.book-panel__head .eyebrow { margin: 0; }
.book-panel__head .heb { color: var(--accent); font-size: 1.1rem; }

.book-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    transition: background-color .16s ease;
}
.book-row:last-child { border-bottom: 0; }
.book-row:hover { background: var(--surface-sunken); }
.book-row__name { font-family: var(--font-serif); font-weight: 600; font-size: .95rem; }
.book-row__name em { font-weight: 400; font-style: italic; color: var(--text-mute); font-size: .88em; margin-left: .35rem; }
.book-row__heb { font-family: var(--font-hebrew); direction: rtl; color: var(--accent); font-size: 1rem; }
.book-row__count { font-size: .72rem; color: var(--text-mute); min-width: 52px; text-align: right; }

@media (max-width: 880px) {
    .split { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ------------------------------------------------------ Bloque de música -- */
.music-strip {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    color: var(--cream);
}
.music-strip .eyebrow { color: rgba(242, 236, 224, .55); }
.music-strip h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1.25;
    color: var(--cream-2);
    margin: 0 0 1.75rem;
    max-width: 16ch;
}
.music-strip__now { display: flex; align-items: center; gap: .9rem; }
.music-strip__now .play-badge { position: static; margin: 0; width: 44px; height: 44px; border: 0; cursor: pointer; }
.music-strip__now .play-badge svg { width: 16px; height: 16px; }
.music-strip__track { font-weight: 500; font-size: .95rem; color: var(--cream-2); }
.music-strip__track .heb { display: block; width: fit-content; color: var(--gold-2); font-size: .9rem; margin-top: .1rem; }

.track-list { display: grid; }
.track-list a, .track-list button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .8rem 0;
    border: 0;
    border-bottom: 1px solid rgba(242, 236, 224, .12);
    background: none;
    color: rgba(242, 236, 224, .85);
    font-family: var(--font-sans);
    font-size: .88rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease;
}
.track-list a:hover, .track-list button:hover { color: var(--gold-2); }
.track-list .num { font-size: .78rem; color: rgba(242, 236, 224, .45); font-variant-numeric: tabular-nums; }
.track-list .more {
    grid-template-columns: 1fr;
    padding-top: 1rem;
    border-bottom: 0;
    color: var(--cream-2);
}

@media (max-width: 880px) {
    .music-strip { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
}

/* --------------------------------------------------------- Cita Nosotros -- */
.quote-block { text-align: center; max-width: 720px; margin-inline: auto; }
.quote-block blockquote {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.35rem, 3.4vw, 2rem);
    line-height: 1.35;
    margin: 0 0 1.5rem;
    color: var(--text);
}
.quote-block .rule-diamonds { justify-content: center; margin: 0 auto 1.5rem; }
.quote-block p { color: var(--text-soft); font-size: .95rem; margin: 0 0 1.75rem; }

/* ============================================================== Pie ====== */
.site-foot {
    background: var(--ink);
    color: var(--nav-text);
    border-top: 1px solid var(--nav-line);
    margin-top: auto;
}
.site-foot__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    padding: 3.5rem 0 2.5rem;
}
.site-foot .brand__name { font-size: 1.05rem; }
.site-foot__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(242, 236, 224, .6);
    margin: 1.25rem 0 0;
    max-width: 34ch;
}
.site-foot h3 {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242, 236, 224, .55);
    margin: 0 0 1.1rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-foot a { color: var(--nav-text); text-decoration: none; font-size: .88rem; transition: color .16s ease; }
.site-foot a:hover { color: var(--gold-2); }
.foot-contact { display: grid; gap: .75rem; }
.foot-contact div { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; }
.foot-contact svg { width: 15px; height: 15px; color: var(--gold-2); flex: none; margin-top: 4px; }

.site-foot__social { padding-bottom: 2.5rem; }
.site-foot__social .social-links { display: grid; gap: .85rem; }
.site-foot__social a { display: inline-flex; align-items: center; gap: .6rem; }
.site-foot__social svg { width: 16px; height: 16px; flex: none; }

.site-foot__bottom {
    border-top: 1px solid var(--nav-line);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .76rem;
    color: rgba(242, 236, 224, .45);
}
.site-foot__bottom .heb { color: var(--gold-2); font-size: .95rem; opacity: .9; }

@media (max-width: 880px) {
    .site-foot__main { grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 1.5rem; }
    .site-foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ====================================================== Página estudio === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    font-size: .78rem;
    color: var(--text-mute);
}
.breadcrumb a { color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; opacity: .6; }
.breadcrumb li { display: inline-flex; align-items: center; }

.page-head { padding: 2.5rem 0 0; }
.page-head h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 .9rem;
}
.page-head__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 62ch;
    margin: 0 0 1.5rem;
}
.page-head__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.page-head__bar .actions { display: flex; gap: .5rem; }

.study-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-top: 1.75rem;
}

.study-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 3.5rem;
    padding: 2.5rem 0 4.5rem;
    align-items: start;
}

.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc h2 {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 1rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 180px); overflow-y: auto; }
.toc a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: .6rem;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--text-mute);
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.toc a:hover { color: var(--text); background: var(--surface-sunken); }
.toc a .n { font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .75; }
.toc a.is-active {
    background: var(--surface-sunken);
    border-left-color: var(--accent);
    color: var(--text);
    font-weight: 500;
}
.toc a.is-active .n { color: var(--accent); opacity: 1; }

/* --------------------------------------------- Contenido de los estudios -- */
.study-content {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 68ch;
}
.study-content > p { margin: 0 0 1.25rem; }
.study-content a { color: var(--accent); }

/* Los rótulos del contenido siguen en la tipografía de interfaz. */
.study-content .sec-num,
.study-content .scripture__ref,
.study-content .lexicon,
.study-content table { font-family: var(--font-sans); }

.study-content .sec-num {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin: 3.25rem 0 .5rem;
}
.study-content > h2:first-of-type,
.study-content .sec-num:first-child { margin-top: 0; }

.study-content h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.65rem;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}
.study-content h2 strong { font-weight: inherit; }
.study-content h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2.25rem 0 .85rem;
}
.study-content ul, .study-content ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.study-content li { margin-bottom: .45rem; }
.study-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.study-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Cita bíblica detectada en el contenido */
.study-content .scripture {
    margin: 1.75rem 0;
    padding: .25rem 0 .25rem 1.4rem;
    border-left: 3px solid var(--accent);
}
.study-content .scripture__ref {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 .6rem;
}
.study-content .scripture p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 .6rem;
}
.study-content .scripture p:last-child { margin-bottom: 0; }
.study-content .scripture i, .study-content .scripture em {
    font-style: normal;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
}

/* Tarjeta léxica */
.lexicon {
    display: grid;
    grid-template-columns: minmax(130px, .9fr) minmax(0, 2fr);
    gap: 1.75rem;
    align-items: center;
    background: var(--ink);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    color: rgba(242, 236, 224, .82);
}
.lexicon__word { text-align: center; }
.lexicon__word .heb { font-size: 2.3rem; color: var(--gold-2); line-height: 1.3; display: block; }
.lexicon__word em { font-family: var(--font-serif); font-size: .85rem; color: rgba(242, 236, 224, .6); }
.lexicon__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.lexicon__def { font-size: .88rem; line-height: 1.65; margin: 0; }
.lexicon__def strong { color: var(--cream-2); }

/* Tarjeta de video relacionada */
.video-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 2rem 0;
    text-decoration: none;
}
.video-card:hover { border-color: var(--accent); }
.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__thumb .play-badge { width: 38px; height: 38px; }
.video-card__thumb .play-badge svg { width: 14px; height: 14px; }
.video-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; margin: .3rem 0; }
.video-card__meta { font-size: .78rem; color: var(--text-mute); }

/* Tablas dentro de los estudios (HTML sin clases que viene de la BD) */
.study-content table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: .88rem;
}
.study-content table th,
.study-content table td {
    padding: .7rem .95rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}
.study-content table tr:last-child > th,
.study-content table tr:last-child > td { border-bottom: 0; }
.study-content table thead th,
.study-content table thead td,
.study-content table:not(:has(thead)) > tbody > tr:first-child > td {
    background: var(--ink);
    color: var(--cream);
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .04em;
}
.study-content table > tbody > tr:nth-of-type(even) { background: var(--surface-sunken); }

@media (max-width: 767.98px) {
    .study-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .study-content table th, .study-content table td { min-width: 7rem; padding: .6rem .75rem; }
}

/* Navegación entre secciones */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--text-mute);
}

@media (max-width: 980px) {
    .study-layout { grid-template-columns: 1fr; gap: 2rem; }
    .toc { position: static; }
    .toc ol { max-height: none; }
    .toc-box {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.25rem;
    }
}

/* ===================================================== Índice de libros == */
.book-group { margin-bottom: 3rem; }
.book-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.book-group__head h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; margin: 0; }
.book-group__head .heb { color: var(--accent); font-size: 1.15rem; }

.book-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: .75rem;
}
.book-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}
.book-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.book-tile.is-hidden, .book-group.is-hidden { display: none; }
.book-tile__name { font-family: var(--font-serif); font-weight: 600; font-size: .92rem; min-width: 0; }
.book-tile__name em { display: block; font-weight: 400; font-style: italic; font-size: .78rem; color: var(--text-mute); }
.book-tile__heb {
    font-family: var(--font-hebrew);
    direction: rtl;
    unicode-bidi: isolate;
    color: var(--accent);
    font-size: 1.05rem;
    white-space: nowrap;   /* «דִּבְרֵי הַיָּמִים א» no debe partirse en dos líneas */
    flex: none;
}

/* ==================================================== Lectura de capítulo = */
.chapter-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.chapter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .7rem 0;
}
.chapter-bar select {
    appearance: none;
    padding: .45rem 2rem .45rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .84rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236C717C' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 14px;
}
.chapter-bar select:focus { outline: none; border-color: var(--accent); }
.chapter-bar .spacer { margin-inline-start: auto; }
.font-size-ctl { display: flex; gap: .25rem; }
.font-size-ctl button {
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-serif);
    cursor: pointer;
    line-height: 1;
}
.font-size-ctl button:hover { border-color: var(--accent); color: var(--accent); }
.font-size-ctl button svg { width: 15px; height: 15px; }

.chapter-reader { padding: 3.5rem 0 4rem; }
.chapter-reader__head { text-align: center; margin-bottom: 2.75rem; }
.chapter-reader__eyebrow {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 1rem;
}
.chapter-reader__eyebrow em { font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.1em; }
.chapter-reader h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 1.1rem;
}
.chapter-reader .rule-diamonds { justify-content: center; }

.chapter-text {
    max-width: 38rem;
    margin-inline: auto;
    font-family: var(--font-serif);
    font-size: calc(1.02rem * var(--reader-scale, 1));
    line-height: 1.85;
    color: var(--text);
}
.chapter-text p { margin: 0 0 1.5rem; }
.chapter-text strong {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: .62em;
    color: var(--accent);
    vertical-align: .45em;
    margin-right: .15em;
    font-variant-numeric: tabular-nums;
}
.chapter-text i, .chapter-text em { color: var(--text-mute); }

/* Notas de estudio ancladas a un versículo (Strong, término, RV, doctrina) */
.chapter-text button.note-mark {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-bottom: 1.5px dotted var(--accent);
    transition: background-color .14s ease;
}
.chapter-text button.note-mark:hover,
.chapter-text button.note-mark:focus-visible { background: var(--accent-soft); }

.chapter-text button.note-mark.note-mark--dot {
    display: inline-block;
    width: .4em;
    height: .4em;
    border-radius: 50%;
    background: var(--accent);
    border-bottom: 0;
    vertical-align: super;
    margin-right: .25em;
}

body.has-note-popup { overflow: hidden; }

/* Popup de nota: tarjeta centrada en escritorio, hoja inferior en móvil */
.note-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.note-popup:not([hidden]) { display: grid; }
.note-popup[hidden] { display: none; }
.note-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, .55);
}
.note-popup__card {
    position: relative;
    max-width: 30rem;
    width: 100%;
    max-height: min(80vh, 640px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.note-popup__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface-sunken);
    color: var(--text-mute);
    cursor: pointer;
}
.note-popup__close:hover { color: var(--text); }
.note-popup__close svg { width: 16px; height: 16px; }

.note-card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.note-card__verse {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.note-card__lex { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.note-card__lex .heb { font-family: var(--font-hebrew); font-size: 1.3rem; color: var(--gold-2); }
.note-card__lex em { font-family: var(--font-serif); font-size: .85rem; color: var(--text-mute); }
.note-card__gloss {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: .92rem;
    color: var(--text-soft);
    margin: 0 0 .5rem;
}
.note-card__text { font-size: .9rem; line-height: 1.65; color: var(--text); }
.note-card__text p:first-child { margin-top: 0; }
.note-card__text p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
    .note-popup { align-items: end; padding: 0; }
    .note-popup__card {
        max-width: none;
        max-height: 75vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 1.75rem 1.25rem 2rem;
    }
}

.chapter-nav {
    max-width: 38rem;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .82rem;
    color: var(--text-mute);
}

.chapter-picker {
    max-width: 44rem;
    margin: 3.5rem auto 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.chapter-picker h2 {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 1.1rem;
}
.chapter-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: .4rem;
}
.chapter-picker__grid a {
    display: grid;
    place-items: center;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-soft);
    text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}
.chapter-picker__grid a:hover { background: var(--surface-sunken); color: var(--text); }
.chapter-picker__grid a.is-current { background: var(--gold); color: #fff; font-weight: 500; }

/* ----- Modo proyección: solo el texto, grande y a todo el ancho ----- */
body.is-projector .site-head,
body.is-projector .site-foot,
body.is-projector .chapter-bar,
body.is-projector .chapter-breadcrumb,
body.is-projector .chapter-nav,
body.is-projector .chapter-picker { display: none !important; }

body.is-projector .chapter-reader {
    min-height: 100vh;
    padding: 5vh 4vw;
    display: flex;
    align-items: center;
}
body.is-projector .chapter-reader .wrap { max-width: none; width: 100%; padding-inline: 0; }
body.is-projector .chapter-reader__head { margin-bottom: 2.5vh; }
body.is-projector .chapter-reader h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

body.is-projector .chapter-text {
    max-width: none;
    width: 100%;
    font-size: calc(clamp(1.8rem, 3.6vw, 3.4rem) * var(--reader-scale, 1));
    line-height: 1.55;
}
body.is-projector .chapter-text strong { font-size: .45em; }

/* ========================================================= Música ======== */
.music-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 4.5rem;
}

.player {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.player__art {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--ink);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}
.player__art img { width: 62%; height: auto; border-radius: 50%; }
.player__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 .2rem; }
.player__heb { font-family: var(--font-hebrew); direction: rtl; color: var(--accent); font-size: 1.05rem; margin: 0 0 1.25rem; }

.player__progress {
    height: 3px;
    border-radius: 2px;
    background: var(--line);
    cursor: pointer;
    margin-bottom: .5rem;
}
.player__progress span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); }
.player__times {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--text-mute);
    font-variant-numeric: tabular-nums;
    margin-bottom: 1.1rem;
}
.player__controls { display: flex; align-items: center; gap: 1rem; }
.player__controls button {
    border: 0;
    background: none;
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.player__controls button:hover { color: var(--text); }
.player__controls svg { width: 18px; height: 18px; }
.player__controls .main {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
}
.player__controls .main:hover { background: #a3781f; color: #fff; }
.player__controls .main svg { width: 18px; height: 18px; }
.player__volume { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.player__volume input { width: 70px; accent-color: var(--accent); }

.song-panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.song-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .95rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
}
.song-panel__head .eyebrow { margin: 0; }
.song-panel__head .count { font-size: .76rem; color: var(--text-mute); }

.song-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    width: 100%;
    padding: .85rem 1.4rem;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    background: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease;
}
.song-row:last-child { border-bottom: 0; }
.song-row:hover { background: var(--surface-sunken); }
.song-row .num { font-size: .78rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.song-row .state { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.song-row.is-current { background: var(--surface-sunken); border-left-color: var(--accent); }
.song-row.is-current .num { color: var(--accent); }

@media (max-width: 880px) {
    .music-layout { grid-template-columns: 1fr; }
    .player { position: static; }
    .player__art { max-width: 280px; margin-inline: auto; }
    .player > .player__title, .player > .player__heb, .player__meta { text-align: center; }
}

/* ======================================================== Formularios ==== */
.form-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--text-soft);
    margin-bottom: .4rem;
}
.field input, .field textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .92rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }

.notice {
    display: flex;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: var(--accent-soft);
    font-size: .88rem;
    margin-bottom: 1.75rem;
}
.notice svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* ===================================================== Búsqueda/listado == */
.search-form { display: flex; gap: .6rem; margin-bottom: 2.5rem; max-width: 520px; }
.search-form input {
    flex: 1;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9rem;
}
.search-form input:focus { outline: none; border-color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding-inline: .7rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    text-decoration: none;
    color: var(--text-soft);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-mute);
}

/* =========================================================== Error 404 === */
.error-page { text-align: center; padding: 6rem 0 7rem; }
.error-page .code {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    color: var(--accent);
    margin: 0 0 1rem;
}
.error-page h1 { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 .75rem; }
.error-page p { color: var(--text-mute); margin: 0 0 2rem; }

/* ========================================================= Nosotros ====== */
.about-hero { background: var(--ink); color: var(--cream); padding: 5rem 0; text-align: center; }
.about-hero .eyebrow { color: rgba(242, 236, 224, .55); }
.about-hero blockquote {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.3;
    color: var(--cream-2);
    max-width: 22ch;
    margin: 0 auto 1.5rem;
}
.about-hero .rule-diamonds { color: var(--gold-2); justify-content: center; margin-bottom: 1.5rem; }
.about-hero p {
    color: rgba(242, 236, 224, .72);
    max-width: 58ch;
    margin: 0 auto;
    font-size: .98rem;
}

.about-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
.about-cols h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 .75rem; }
.about-cols p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* Sección "Lo que creemos": el marcado viene de antes, los estilos ahora
   usan los tokens del tema para que funcione en claro y en oscuro. */
.dctd-creencias {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px 5rem;
    line-height: 1.75;
    color: var(--text);
}
.dctd-creencias h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 0 0 .9rem;
}
.dctd-creencias .dctd-intro { font-size: 1rem; color: var(--text-soft); margin: 0 0 1rem; }

.dctd-creencias .dctd-indice {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 3rem;
}
.dctd-creencias .dctd-indice a {
    display: inline-block;
    padding: .3rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    text-decoration: none;
    color: var(--text-soft);
    transition: border-color .16s ease, color .16s ease;
}
.dctd-creencias .dctd-indice a:hover { border-color: var(--accent); color: var(--accent); }

.dctd-creencias section { margin-bottom: 2.75rem; scroll-margin-top: calc(var(--nav-h) + 24px); }
.dctd-creencias h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    padding-bottom: .5rem;
    margin: 0 0 1.1rem;
    border-bottom: 1px solid var(--line);
}
.dctd-creencias ol { padding-left: 2.2rem; margin: 0; }
.dctd-creencias li { margin-bottom: .95rem; }
.dctd-creencias li::marker { font-weight: 700; color: var(--accent); }
.dctd-creencias .dctd-ref {
    display: block;
    font-size: .85rem;
    font-style: italic;
    color: var(--accent);
    margin-top: .2rem;
}
.dctd-creencias blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    border-left: 3px solid var(--accent);
    background: var(--surface-sunken);
    padding: 1.1rem 1.35rem;
    margin: 3rem 0 0;
    color: var(--text-soft);
}
@media (max-width: 576px) {
    .dctd-creencias ol { padding-left: 1.6rem; }
}

/* ============================================================ Impresión == */
@media print {
    .site-head, .site-foot, .toc, .chapter-bar, .chapter-picker, .section-nav { display: none !important; }
    body.dctd { background: #fff; color: #000; }
}
