/* =============================================================================
   Doresol — Sistema de diseño
   Hermoso. Minimalista. Cinematográfico. Mobile first siempre.
   ----------------------------------------------------------------------------
   @author     Jorge Buffa <giorgiobuffa@gmail.com>
   @copyright  2026 Doresol. Todos los derechos reservados.
   @version    1.0.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Roboto+Mono:wght@400;500;600&display=swap');

/* ──────────────────────────────────────────────────────────
   A) VARIABLES — modo claro (default)
   ────────────────────────────────────────────────────────── */
:root {
    /* Tipografías */
    --f-sans: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Acento dorado — la firma de Doresol */
    --accent:        #C8A96E;
    --accent-hover:  #B8965A;
    --accent-subtle: rgba(200, 169, 110, 0.10);
    --accent-text:   #2A1A04;

    /* Backgrounds */
    --bg:          #F8F7F4;
    --bg-card:     #FFFFFF;
    --bg-card-rgb: 255, 255, 255;
    --bg-surface:  #F0EEE9;
    --bg-surface2: #E8E6E0;

    /* Texto */
    --t1: #141412;
    --t2: #5C5B56;
    --t3: #9C9B95;

    /* Bordes */
    --border:     rgba(0, 0, 0, 0.07);
    --border-med: rgba(0, 0, 0, 0.12);
    --border-str: rgba(0, 0, 0, 0.20);

    /* Semánticos */
    --green:     #1D9E75;
    --green-sub: rgba(29, 158, 117, 0.10);
    --blue:      #185FA5;
    --blue-sub:  rgba(24, 95, 165, 0.10);
    --red:       #C0392B;
    --red-sub:   rgba(192, 57, 43, 0.10);

    /* Radios */
    /* Brandbook v1.0 — escala oficial: 0 / 4 / 8 / 14 / 18 / 999px.
     * Antes md=12 / lg=16; ajustamos a 14/18 para alinear con el sistema
     * documentado. xl=24 se conserva para casos puntuales (modal, etc.) */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   18px;
    --radius-xl:   24px;
    --radius-pill: 999px;

    /* Transición global */
    --trans: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo oscuro */
[data-theme="dark"] {
    --bg:          #0F0F0D;
    --bg-card:     #1A1A18;
    --bg-card-rgb: 26, 26, 24;
    --bg-surface:  #222220;
    --bg-surface2: #2A2A28;

    --t1: #EEECEA;
    --t2: #888780;
    --t3: #555550;

    --border:     rgba(255, 255, 255, 0.06);
    --border-med: rgba(255, 255, 255, 0.11);
    --border-str: rgba(255, 255, 255, 0.18);
}

/* ──────────────────────────────────────────────────────────
   B) RESET Y BASE
   ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--f-sans);
    /* Brandbook v1.0: body 17px line-height 1.55 (escala editorial).
     * Antes era 15px / 1.6 — más denso. Subir a 17px tira hacia revista. */
    font-size: 17px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

img, svg, video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ──────────────────────────────────────────────────────────
   C) TIPOGRAFÍA
   ────────────────────────────────────────────────────────── */
.text-display {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 44px);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.text-title {
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 22px);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.text-body {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
}

.text-caption {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.text-label {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
}

.text-accent { color: var(--accent); }
.text-mono   { font-family: var(--f-mono); }

/* ──────────────────────────────────────────────────────────
   D) LAYOUT
   ────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 32px 24px;
}
@media (min-width: 768px) {
    .section { padding: 48px 32px; }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }

/* ──────────────────────────────────────────────────────────
   E) NAVBAR
   ────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    /* Brandbook v1.0: navbar usa color-mix con bg al 88% + blur(14px).
     * Antes: rgba(bg-card,0.85) + blur(20px) saturate(160%) — más
     * pesado y opaco. La nueva combinación es más liviana, más
     * acorde al tono editorial del brandbook. */
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 0.5px solid var(--border);
    transition: var(--trans);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.navbar__logo {
    font-family: var(--f-sans);
    /* Brandbook v1.0: wordmark `.brand` weight 500 (no 600), tracking -0.02em.
     * Tamaño 22px del homepage redesign (la regla del brandbook
     * topbar-logo a 15px aplica solo a tools internas tipo doc shell).
     */
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--t1);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}
.navbar__logo em {
    color: var(--accent);
    font-style: normal;
}

.navbar__links {
    display: flex;
    gap: 4px;
    align-items: center;
}
@media (max-width: 767px) {
    .navbar__links { display: none; }
}

.navbar__link {
    font-size: 13px;
    color: var(--t2);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--trans);
}
.navbar__link:hover {
    color: var(--t1);
    background: var(--bg-surface);
}
.navbar__link.on {
    color: var(--t1);
    font-weight: 500;
    background: var(--bg-surface);
}

.navbar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar__theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 0.5px solid var(--border-med);
    color: var(--t2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}
.navbar__theme-btn:hover {
    background: var(--bg-surface);
    color: var(--t1);
}

.navbar__hamburger {
    display: none;
}
@media (max-width: 767px) {
    .navbar__hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
    }
}
.navbar__hamburger span {
    width: 18px;
    height: 1.5px;
    background: var(--t1);
    border-radius: 2px;
    transition: var(--trans);
    display: block;
}
.navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Drawer mobile */
.mobile-drawer {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg-card);
    border-bottom: 0.5px solid var(--border);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
}
@media (min-width: 768px) {
    .mobile-drawer { display: none; }
}
.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer__link {
    font-size: 16px;
    font-weight: 500;
    color: var(--t1);
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
    transition: var(--trans);
}
.mobile-drawer__link:hover {
    color: var(--accent);
}

.mobile-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

/* ──────────────────────────────────────────────────────────
   F) HERO CON PROGRESSIVE BLUR (estilo Apple TV)
   ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    height: 100svh;
    cursor: pointer;
    background: #0A0804;
}
@media (min-width: 768px) {
    .hero { height: 560px; }
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__img.loading { opacity: 0; }
.hero__img.loaded  { opacity: 1; }
.hero:hover .hero__img { transform: scale(1.03); }

/* Capa 1: gradiente oscuro de base */
.hero__pb-1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 25%,
        rgba(0, 0, 0, 0.18) 55%,
        transparent 78%
    );
}

/* Capa 2: blur fuerte */
.hero__pb-2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 10%, transparent 22%);
            mask-image: linear-gradient(to top, black 0%, black 10%, transparent 22%);
}

/* Capa 3: blur medio */
.hero__pb-3 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 48%);
            mask-image: linear-gradient(to top, black 0%, black 30%, transparent 48%);
}

/* Capa 4: blur ligero */
.hero__pb-4 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 45%, transparent 62%);
            mask-image: linear-gradient(to top, black 0%, black 45%, transparent 62%);
}

/* Capa 5: blur sutil */
.hero__pb-5 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 58%, transparent 72%);
            mask-image: linear-gradient(to top, black 0%, black 58%, transparent 72%);
}

.hero__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.25) 0%,
        transparent 40%,
        transparent 70%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    z-index: 10;
}
@media (min-width: 768px) {
    .hero__content { padding: 48px 48px; }
}

.hero__eyebrow {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s 0.1s ease, transform 0.5s 0.1s ease;
}

.hero__title {
    font-family: var(--f-sans);
    font-size: clamp(56px, 9vw, 100px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.95;
    color: #FFFFFF;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}

.hero__desc {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s 0.3s ease, transform 0.5s 0.3s ease;
}

.hero__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s 0.4s ease, transform 0.5s 0.4s ease;
}

.hero.ready .hero__eyebrow,
.hero.ready .hero__title,
.hero.ready .hero__desc,
.hero.ready .hero__btns {
    opacity: 1;
    transform: translateY(0);
}

.hero__nav {
    position: absolute;
    bottom: 32px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 11;
}
@media (min-width: 768px) {
    .hero__nav {
        top: 20px;
        right: 20px;
        bottom: auto;
    }
}

.hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s ease;
}
.hero__dot.on {
    background: var(--accent);
    width: 22px;
    border-radius: 3px;
}

/* ──────────────────────────────────────────────────────────
   G) BOTONES
   ────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn:active   { transform: scale(0.97); }
.btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

/* Brandbook v1.0: el botón primary del sistema es dorado.
 * Antes era ink (var(--t1)) — pero el brandbook define el primary
 * como gold sobre night, con hover gold-hover. El estilo ink quedó
 * disponible como `.btn--ink` para casos puntuales (CTAs sobre
 * fondo dorado, etc) si surge necesidad. */
.btn--primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost {
    background: transparent;
    border: 0.5px solid var(--border-med);
    color: var(--t1);
}
.btn--ghost:hover {
    background: var(--bg-surface);
    border-color: var(--border-str);
}

.btn--accent { background: var(--accent); color: var(--accent-text); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--white { background: #FFFFFF; color: #141412; }
.btn--white:hover { opacity: 0.90; }

.btn--ghost-white {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.18); }

.btn--sm   { padding: 7px 14px;  font-size: 12px; }
.btn--lg   { padding: 14px 28px; font-size: 15px; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────────────────────
   H) IMG CARDS CON PROGRESSIVE BLUR
   ────────────────────────────────────────────────────────── */
.img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    display: block;
    background: var(--bg-surface);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-card:hover { transform: scale(1.02); }

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05) brightness(0.95);
    transition:
        filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-card:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.06);
}
.img-card:active img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.img-card__pb-1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        transparent 80%
    );
}

.img-card__pb-2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 35%);
            mask-image: linear-gradient(to top, black 0%, transparent 35%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.img-card:hover .img-card__pb-2 { opacity: 1; }

.img-card__pb-3 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 55%);
            mask-image: linear-gradient(to top, black 0%, transparent 55%);
}

.img-card__pb-4 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 70%);
            mask-image: linear-gradient(to top, black 0%, transparent 70%);
}

.img-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
    z-index: 5;
}

.img-card__tag {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.img-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.img-card__title--lg { font-size: 22px; }

.img-card__sub {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

.img-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 5;
    background: rgba(200, 169, 110, 0.88);
    color: var(--accent-text);
}
.img-card__badge--new {
    background: rgba(29, 158, 117, 0.88);
    color: #FFFFFF;
}

/* Variantes */
.img-card--wide      { aspect-ratio: 16 / 9; grid-column: span 2; }
.img-card--portrait  { aspect-ratio: 2 / 3; }
.img-card--landscape { aspect-ratio: 3 / 2; }
.img-card--square    { aspect-ratio: 1 / 1; }
.img-card--sm {
    width: 160px;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

@media (max-width: 480px) {
    .img-card--wide {
        grid-column: span 1;
        aspect-ratio: 3 / 2;
    }
}

/* ──────────────────────────────────────────────────────────
   I) SCROLL HORIZONTAL
   ────────────────────────────────────────────────────────── */
.h-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;

    /* Rompe el container para ir de borde a borde */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 24px;
    padding-right: 24px;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* Desktop: alinear el padding con el container (max 1100px) */
@media (min-width: 768px) {
    .h-scroll {
        padding-left: max(24px, calc((100vw - 1100px) / 2 + 24px));
        padding-right: max(24px, calc((100vw - 1100px) / 2 + 24px));
    }
}

/* ──────────────────────────────────────────────────────────
   J) SECTION HEADERS
   ────────────────────────────────────────────────────────── */
/* Brandbook v1.0: sec-header pasa de "encabezado de sección compacto"
 * (19px bold) a "patrón editorial" (display 32-52px weight 300, con
 * sec-num en mono caps arriba y enlace `more` en mono caps a la
 * derecha). Mismo HTML que ya usaban las vistas; el cambio es solo CSS.
 *
 * Estructura esperada:
 *   <div class="sec-header">
 *     <div>
 *       <span class="sec-num">01 · Sección</span>
 *       <h2 class="sec-title">Explorá los <em>instrumentos</em>.</h2>
 *     </div>
 *     <a class="sec-link" href="...">Ver todos</a>
 *   </div>
 *
 * El <span class="sec-num"> es opcional (las vistas legacy sin num
 * siguen funcionando). Cuando se agrega, ocupa una línea arriba del
 * h2 con tipografía mono caps. */
.sec-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 0.5px solid var(--border);
}

/* Si el sec-header tiene un wrapper interno (caso con sec-num),
 * dejamos que respire para alinear bottom con el sec-link. Si no lo
 * tiene (caso simple: solo title + link), el flex parent ya alinea bien. */
.sec-header > div:first-child {
    min-width: 0;
}

/* `Ver todos →` legacy: las vistas tienen la flecha embebida en el
 * texto del link. Si el link ya termina en " →", el ::after agrega
 * otra. Detectamos vistas que ya traen la flecha y suprimimos el
 * pseudo-elemento. La regla no es perfecta (no hay :has selector
 * para "ends with →" cross-browser estable hoy en día) — solución:
 * los call sites quitan el " →" del innerText cuando lo agreguen
 * a través de class actualizada. Mientras tanto, doble flecha se
 * tolera para no romper templates legacy. */

.sec-num {
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t2);
    margin-bottom: 8px;
}

.sec-title {
    margin: 0;
    font-family: var(--f-sans);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--t1);
}
.sec-title em {
    font-style: normal;
    color: var(--accent);
    font-weight: 400;
}

.sec-link {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t2);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--trans);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.sec-link:hover {
    color: var(--accent);
}
.sec-link::after {
    content: " →";
    color: var(--accent);
}

@media (max-width: 720px) {
    .sec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 24px;
    }
}

/* ──────────────────────────────────────────────────────────
   K) CHIPS / FILTROS
   ────────────────────────────────────────────────────────── */
.chip {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: transparent;
    color: var(--t2);
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--border-str);
    color: var(--t1);
}
.chip.on {
    background: var(--t1);
    color: var(--bg);
    border-color: transparent;
}
.chip--accent.on {
    background: var(--accent);
    color: var(--accent-text);
}
.chip--sm {
    font-size: 11px;
    padding: 4px 10px;
}

.chips-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chips-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.chips-scroll::-webkit-scrollbar { display: none; }

/* ──────────────────────────────────────────────────────────
   L) BADGES DE DIFICULTAD
   ────────────────────────────────────────────────────────── */
.badge {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
}
.badge--easy { background: var(--accent-subtle); color: var(--accent-text); }
.badge--mid  { background: var(--blue-sub);      color: var(--blue); }
.badge--hard { background: var(--red-sub);       color: var(--red); }
.badge--new  { background: var(--green-sub);     color: var(--green); }

/* ──────────────────────────────────────────────────────────
   M) SONG ROWS — CANCIONERO
   ────────────────────────────────────────────────────────── */
.song-list {
    display: flex;
    flex-direction: column;
}

.song-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
    border-bottom: 0.5px solid var(--border);
    cursor: pointer;
    transition: var(--trans);
}
.song-row:last-child { border-bottom: none; }
.song-row:hover .song-row__title { color: var(--accent); }

.song-row__info {
    flex: 1;
    min-width: 0;
}

.song-row__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--t1);
    transition: color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-row__meta {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    margin-top: 2px;
}

.song-row__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0.5px solid var(--border-med);
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
    flex-shrink: 0;
}
.expand-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.expand-btn.open {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    transform: rotate(45deg);
}

/* ──────────────────────────────────────────────────────────
   N) PANEL EXPANDIDO DE CANCIÓN
   ────────────────────────────────────────────────────────── */
.song-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.song-panel.open {
    max-height: 600px;
    opacity: 1;
}

.song-panel__inner {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
}

.ext-links {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ext-link {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--trans);
}
.ext-link:hover {
    border-color: var(--border-str);
    color: var(--t1);
}

/* ──────────────────────────────────────────────────────────
   O) RIFF CELLS — tablatura armónica
   ────────────────────────────────────────────────────────── */
.riff-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.riff-label {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 8px;
}

.riff-cells {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.riff-cell {
    width: 48px;
    height: 52px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--trans);
    cursor: default;
}
.riff-cell:hover { border-color: var(--accent); }

.riff-cell__num {
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--t1);
}

.riff-cell__dir { font-family: var(--f-mono); font-size: 12px; }
.riff-cell__dir--blow { color: var(--accent); }
.riff-cell__dir--draw { color: var(--blue); }

.song-tip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--t2);
    font-style: italic;
    line-height: 1.6;
    padding-left: 12px;
    border-left: 2px solid var(--accent);
}

/* ──────────────────────────────────────────────────────────
   P) INSTRUMENT TABS (sub-nav)
   ────────────────────────────────────────────────────────── */
.inst-tabs {
    display: flex;
    border-bottom: 0.5px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.inst-tabs::-webkit-scrollbar { display: none; }

.inst-tab {
    font-family: var(--f-sans);
    font-size: 13px;
    color: var(--t3);
    padding: 12px 16px;
    border-bottom: 2px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    white-space: nowrap;
    background: none;
    transition: var(--trans);
}
.inst-tab:hover { color: var(--t2); }
.inst-tab.on {
    color: var(--t1);
    font-weight: 500;
    border-bottom-color: var(--accent);
}

/* ──────────────────────────────────────────────────────────
   Q) FORMS
   ────────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t3);
}

.form-input {
    font-family: var(--f-sans);
    font-size: 14px;
    padding: 11px 14px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-sm);
    color: var(--t1);
    outline: none;
    width: 100%;
    transition: var(--trans);
}
.form-input:focus {
    border-color: var(--accent);
    background: var(--bg-card);
}
.form-input.error { border-color: var(--red); }

.form-textarea {
    font-family: var(--f-sans);
    font-size: 14px;
    padding: 11px 14px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-sm);
    color: var(--t1);
    outline: none;
    width: 100%;
    transition: var(--trans);
    min-height: 120px;
    resize: vertical;
}
.form-textarea:focus {
    border-color: var(--accent);
    background: var(--bg-card);
}

.form-hint  { font-size: 12px; color: var(--t3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ──────────────────────────────────────────────────────────
   R) STAT CARDS
   ────────────────────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.stat-card__number {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
}
.stat-card__number em {
    color: var(--accent);
    font-style: normal;
}

.stat-card__label {
    font-family: var(--f-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t3);
    margin-top: 4px;
}

/* ──────────────────────────────────────────────────────────
   S) BOTTOM NAV (solo mobile)
   ────────────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 100;
    background: rgba(var(--bg-card-rgb), 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--border);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) {
    .bottom-nav { display: none; }
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: var(--t3);
    cursor: pointer;
    text-decoration: none;
    transition: var(--trans);
}
.bottom-nav__item:hover { color: var(--t2); }
.bottom-nav__item.on    { color: var(--accent); }

/* ──────────────────────────────────────────────────────────
   T) FOOTER
   ────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 0.5px solid var(--border);
    padding: 40px 24px;
    margin-bottom: 64px; /* mobile: bottom-nav */
}
@media (min-width: 768px) {
    .footer { margin-bottom: 0; }
}

.footer__logo {
    font-family: var(--f-sans);
    font-weight: 600;
    font-size: 18px;
    color: var(--t1);
}
.footer__logo em {
    color: var(--accent);
    font-style: normal;
}

.footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--t2);
    margin-top: 16px;
}

.footer__link {
    color: var(--t2);
    transition: var(--trans);
}
.footer__link:hover { color: var(--t1); }

.footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer__copyright {
    font-size: 12px;
    color: var(--t3);
}

.footer__tagline {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.12em;
}

/* ──────────────────────────────────────────────────────────
   U) FLASH MESSAGES
   ────────────────────────────────────────────────────────── */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 24px;
    font-size: 14px;
    transition: opacity 0.4s ease;
}
.flash--success { background: var(--green-sub); color: var(--green); }
.flash--error   { background: var(--red-sub);   color: var(--red); }
.flash--info    { background: var(--blue-sub);  color: var(--blue); }

.flash__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    opacity: 0.6;
    padding: 0 4px;
}
.flash__close:hover { opacity: 1; }

/* ──────────────────────────────────────────────────────────
   V) AD SLOTS
   ────────────────────────────────────────────────────────── */
.ad-slot {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 250px; }
.ad-slot--mobile      { min-height: 50px; }

/* ──────────────────────────────────────────────────────────
   W) SECCIÓN EDITORIAL (artículos)
   ────────────────────────────────────────────────────────── */
.article-card {
    aspect-ratio: 3 / 2;
}

.article-card__read-time {
    font-family: var(--f-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.50);
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .article-hero { height: 65vh; }
}

.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--t1);
}
.article-content h2 {
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 22px;
    margin: 2em 0 0.75em;
    letter-spacing: -0.01em;
}
.article-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 1.5em 0 0.5em;
}
.article-content p { margin-bottom: 1.5em; }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--t2);
}
.article-content strong { font-weight: 500; }
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ──────────────────────────────────────────────────────────
   X) ANIMACIONES
   ────────────────────────────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.fade-in.visible { opacity: 1; }

.scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ──────────────────────────────────────────────────────────
   Y) UTILIDADES
   ────────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hidden { display: none; }
@media (min-width: 768px) { .visible-mobile  { display: none; } }
@media (max-width: 767px) { .visible-desktop { display: none; } }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full      { width: 100%; }
.rounded     { border-radius: var(--radius-md); }
.rounded-full{ border-radius: var(--radius-pill); }

/* ──────────────────────────────────────────────────────────
   Z) GRID EDITORIAL DE INSTRUMENTOS
   ────────────────────────────────────────────────────────── */
.instruments-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    grid-template-rows: 320px 260px;
    gap: 12px;
}

.instruments-grid__piano     { grid-column: 1; grid-row: 1 / 3; }
.instruments-grid__electric  { grid-column: 2; grid-row: 1; }
.instruments-grid__harmonica { grid-column: 3; grid-row: 1; }
.instruments-grid__acoustic  { grid-column: 2; grid-row: 2; }
.instruments-grid__bass      { grid-column: 3; grid-row: 2; }

/* Card próximamente — el Bajo (sin imagen, debe respetar el tema) */
.card-soon {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-surface2);
    border: 0.5px solid var(--border-med);
    cursor: default;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.card-soon__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: var(--f-mono);
    font-size: 64px;
    font-weight: 500;
    color: var(--t1);
    opacity: 0.06;
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.card-soon__label {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.card-soon__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--t2);
}

.card-soon__sub {
    font-size: 11px;
    color: var(--t3);
    margin-top: 2px;
}

/* Mobile: grid simple 2 columnas */
.instruments-grid-mobile { display: none; }

.instruments-grid-mobile-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.instruments-grid-mobile__piano {
    grid-column: 1 / 3;
    height: 220px;
}

.instruments-grid-mobile__card { height: 180px; }

.instruments-grid-mobile__bass {
    background: var(--bg-surface2);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-lg);
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

@media (max-width: 767px) {
    .instruments-grid        { display: none; }
    .instruments-grid-mobile { display: block; padding-top: 0; }
}
@media (min-width: 768px) {
    .instruments-grid-mobile { display: none; }
}

/* ──────────────────────────────────────────────────────────
   AA) MODIFIERS DE SECTION Y CONTENEDORES
   ────────────────────────────────────────────────────────── */
.section--flush-top,
.section--flush     { padding-top: 0; }
.section--cta       { padding-top: 64px; padding-bottom: 64px; }


/* Stats — 3 columnas fijas */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ──────────────────────────────────────────────────────────
   AB) SECCIÓN EDITORIAL EN HOME
   ────────────────────────────────────────────────────────── */
.editorial {
    background: var(--bg-surface);
    padding-top: 48px;
    padding-bottom: 48px;
}

.editorial__head {
    text-align: center;
    margin-bottom: 32px;
}

.editorial__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    line-height: 1.2;
    margin: 10px 0 8px;
}

.editorial__sub {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.06em;
}

.editorial__articles {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.editorial__footer { text-align: center; }

/* ──────────────────────────────────────────────────────────
   AC) CTA FINAL — registro
   ────────────────────────────────────────────────────────── */
.cta-final {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.cta-final__label    { margin-bottom: 14px; }

.cta-final__title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--t1);
    line-height: 1.1;
    margin-bottom: 16px;
}

.cta-final__lead {
    font-size: 15px;
    color: var(--t2);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-final__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-final__btn {
    min-width: 220px;
    justify-content: center;
}

.cta-final__login {
    font-size: 13px;
    color: var(--t3);
}
.cta-final__login-link { color: var(--accent); }

/* ──────────────────────────────────────────────────────────
   AD) FOOTER — layout interno
   ────────────────────────────────────────────────────────── */
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__tagline-text {
    font-size: 13px;
    color: var(--t3);
    margin-top: 8px;
    max-width: 260px;
    line-height: 1.6;
}

.footer__cols {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer__col-title { margin-bottom: 12px; }

.footer__links--col {
    flex-direction: column;
    gap: 8px;
}

/* ──────────────────────────────────────────────────────────
   AE) AD-SLOT — variantes de altura mínima
   ────────────────────────────────────────────────────────── */
/* (ad-slot.php usa una variable CSS para min-height en lugar de inline style) */
.ad-slot[style*="--ad-min-h"],
.ad-slot {
    min-height: var(--ad-min-h, 90px);
}
.adsbygoogle { display: block; }

/* ──────────────────────────────────────────────────────────
   AF) ARTICLE CARDS EDITORIALES
   ────────────────────────────────────────────────────────── */

/* Card horizontal — Opción A */
.article-card-h {
    display: flex;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    margin-bottom: 10px;
}
.article-card-h:hover {
    border-color: var(--border-med);
    transform: translateY(-1px);
}

.acardh-img {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.acardh-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05) brightness(0.95);
    transition:
        filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card-h:hover .acardh-img img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.06);
}
.article-card-h:active .acardh-img img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.acardh-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 0.5px solid var(--border);
    min-width: 0;
}

.acardh-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.acardh-instrument {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-text);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}

.acardh-author {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
}

.acardh-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
    line-height: 1.25;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.article-card-h:hover .acardh-title { color: var(--accent); }

.acardh-excerpt {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.6;
    flex: 1;
}

.acardh-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 0.5px solid var(--border);
}

.acardh-readtime {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
}

.acardh-arrow {
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.2s ease;
}
.article-card-h:hover .acardh-arrow { transform: translateX(4px); }

/* Responsive mobile */
@media (max-width: 600px) {
    .acardh-img      { width: 110px; }
    .acardh-title    { font-size: 15px; }
    .acardh-excerpt  { display: none; }
}

/* Lista editorial — Opción C */
.article-list {
    display: flex;
    flex-direction: column;
}

.article-list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 0.5px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
}
.article-list-item:last-child { border-bottom: none; }

.ali-num {
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 500;
    color: var(--border-med);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    transition: color 0.2s ease;
}
.article-list-item:hover .ali-num { color: var(--accent); }

.ali-body {
    flex: 1;
    min-width: 0;
}

.ali-instrument {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.ali-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}
.article-list-item:hover .ali-title { color: var(--accent); }

.ali-excerpt {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
}

.ali-meta {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

/* ──────────────────────────────────────────────────────────
   AG) EL HALLAZGO — sección semanal curada
   ────────────────────────────────────────────────────────── */
.hallazgo-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hallazgo-section__title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
}

.hallazgo-section__link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: var(--trans);
}
.hallazgo-section__link:hover { opacity: 0.75; }

.hallazgo {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 320px;
}
.hallazgo:hover {
    border-color: var(--border-med);
    transform: translateY(-2px);
}

/* Imagen */
.hallazgo__img {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}
.hallazgo__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.08) brightness(0.92);
    transition:
        filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hallazgo:hover .hallazgo__img img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.04);
}
.hallazgo:active .hallazgo__img img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Badges sobre imagen — colores literales permitidos
   (siempre van sobre fondo de foto oscura por el filter) */
.hallazgo__week {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hallazgo__type-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-text);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Body */
.hallazgo__body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 0.5px solid var(--border);
}

.hallazgo__header { margin-bottom: 0; }

.hallazgo__label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.hallazgo__pretitle {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    font-style: italic;
    margin-bottom: 6px;
}

.hallazgo__title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--t1);
    margin-bottom: 6px;
    transition: color 0.2s ease;
}
.hallazgo:hover .hallazgo__title { color: var(--accent); }

.hallazgo__subtitle {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--t3);
    letter-spacing: 0.02em;
}

.hallazgo__tags {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hallazgo__tag {
    font-family: var(--f-mono);
    font-size: 9px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    color: var(--t3);
}

.hallazgo__divider {
    height: 0.5px;
    background: var(--border);
    margin: 18px 0;
}

.hallazgo__quote {
    font-size: 15px;
    font-weight: 300;
    color: var(--t2);
    line-height: 1.75;
    font-style: italic;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
    flex: 1;
}

.hallazgo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0.5px solid var(--border);
}

.hallazgo__author {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
}

.hallazgo__cta {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}
.hallazgo:hover .hallazgo__cta { gap: 10px; }

/* Mobile */
@media (max-width: 600px) {
    .hallazgo {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hallazgo__img    { height: 220px; }
    .hallazgo__body {
        border-left: none;
        border-top: 0.5px solid var(--border);
        padding: 20px 18px;
    }
    .hallazgo__title  { font-size: 20px; }
    .hallazgo__quote  { font-size: 14px; }
}

/* ──────────────────────────────────────────────────────────
   AH) SELECTOR DE IDIOMA
   ────────────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-pill);
    overflow: hidden;
    flex-shrink: 0;
}

.lang-switcher__btn {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    background: transparent;
    border: none;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.lang-switcher__btn:hover {
    color: var(--t1);
    background: var(--bg-surface);
}
.lang-switcher__btn.on {
    background: var(--t1);
    color: var(--bg);
}

.lang-switcher__divider {
    width: 0.5px;
    height: 14px;
    background: var(--border-med);
    flex-shrink: 0;
}

/* Mobile: ocultar en navbar, mostrar dentro del drawer */
@media (max-width: 767px) {
    .lang-switcher { display: none; }
    .mobile-drawer .lang-switcher {
        display: flex;
        align-self: flex-start;
        margin-top: 8px;
    }
}

/* ──────────────────────────────────────────────────────────
   AI) HOY CUMPLEN AÑOS — full cover + progressive blur
   ────────────────────────────────────────────────────────── */
.bday-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bday-section-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.bday-date {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--t3);
    letter-spacing: 0.06em;
}

.bday-section-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: var(--trans);
    flex-shrink: 0;
}
.bday-section-link:hover { opacity: 0.75; }

.bday-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: stretch;
}

/* ── Card principal — imagen full cover ────────────────── */
.bday-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    background: #0A0804;
}
.bday-main:hover { transform: translateY(-2px); }

.bday-main__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.08) brightness(0.88);
    transition:
        filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.bday-main:hover .bday-main__img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.03);
}
.bday-main:active .bday-main__img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Progressive blur — 3 capas */
.bday-main__pb1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.60) 35%,
        rgba(0, 0, 0, 0.15) 60%,
        transparent 80%
    );
}

.bday-main__pb2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 15%, transparent 32%);
            mask-image: linear-gradient(to top, black 0%, black 15%, transparent 32%);
}

.bday-main__pb3 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 28%, transparent 45%);
            mask-image: linear-gradient(to top, black 0%, black 28%, transparent 45%);
    opacity: 0.6;
}

/* Top — badges */
.bday-main__top {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 14px 0;
}

.bday-main__badge {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-text);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.bday-main__age {
    font-family: var(--f-mono);
    font-size: 42px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.13);
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Body inferior — todo sobre imagen oscura */
.bday-main__body {
    position: relative;
    z-index: 5;
    margin-top: auto;
    padding: 0 18px 18px;
}

.bday-main__instrument {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
}

.bday-main__name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}
.bday-main:hover .bday-main__name { color: var(--accent); }

.bday-main__years {
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

.bday-main__bio {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 12px;
}

.bday-curiosity {
    background: rgba(200, 169, 110, 0.14);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 9px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.70);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bday-curiosity__label {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
    font-style: normal;
    display: block;
}

.bday-songs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.bday-songs__label {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.30);
    margin-bottom: 2px;
}

.bday-song {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.bday-song__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── Cards secundarias — también full cover ─────────────── */
.bday-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.bday-card-sm {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    background: #0A0804;
    min-height: 0;
}
.bday-card-sm:hover { transform: translateY(-2px); }

.bday-card-sm__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.08) brightness(0.85);
    transition:
        filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bday-card-sm:hover .bday-card-sm__img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.04);
}
.bday-card-sm:active .bday-card-sm__img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.bday-card-sm__pb1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.05) 80%
    );
}

.bday-card-sm__pb2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 20%, transparent 40%);
            mask-image: linear-gradient(to top, black 0%, black 20%, transparent 40%);
    opacity: 0.7;
}

.bday-card-sm__body {
    position: relative;
    z-index: 5;
    margin-top: auto;
    padding: 0 14px 14px;
}

.bday-card-sm__instrument {
    font-family: var(--f-mono);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
}

.bday-card-sm__name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: color 0.2s ease;
    margin-bottom: 2px;
}
.bday-card-sm:hover .bday-card-sm__name { color: var(--accent); }

.bday-card-sm__years {
    font-family: var(--f-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.40);
}

/* Mobile */
@media (max-width: 767px) {
    .bday-grid        { grid-template-columns: 1fr; }
    .bday-main        { min-height: 400px; }
    .bday-main__age   { font-size: 32px; }
    .bday-main__name  { font-size: 22px; }
    .bday-card-sm     { min-height: 160px; }
}

/* ──────────────────────────────────────────────────────────
   AJ) ARTISTAS — catálogo y perfil
   ────────────────────────────────────────────────────────── */

/* Header del catálogo */
.artists-page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.artists-page-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
}

.artists-page-count {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.04em;
}

/* Filtro A-Z */
.az-filter {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 16px;
}

.az-btn {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.az-btn:hover {
    background: var(--bg-card);
    color: var(--t1);
}
.az-btn.on {
    /* Brandbook v1.0: active state de pills/chips → fondo dorado.
     * Antes era ink (var(--t1)); el brandbook documenta que el
     * "active" de cualquier pill o chip del sistema es gold. */
    background: var(--accent);
    color: var(--accent-text);
}

.az-btn--all {
    width: auto;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
}
.az-btn--all.on {
    background: var(--accent);
    color: var(--accent-text);
}

.az-divider {
    width: 0.5px;
    background: var(--border-med);
    margin: 2px 4px;
    align-self: stretch;
}

/* Chips de género */
.genre-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Grid de artistas */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px 16px;
}

@media (max-width: 480px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px 12px;
    }
}

/* Card de artista */
.artist-card {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}
.artist-card:hover { transform: translateY(-3px); }

/* Foto circular */
.artist-card__photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: 12px;
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}
.artist-card:hover .artist-card__photo {
    border-color: var(--accent);
}

.artist-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.05) brightness(0.95);
    transition:
        filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.artist-card:hover .artist-card__img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}
.artist-card:active .artist-card__img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* Badge ✓ — artista con canciones en Doresol */
.artist-card__badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    z-index: 2;
    transition: border-color 0.3s ease;
}
.artist-card:hover .artist-card__badge {
    border-color: var(--bg-card);
}

/* Info del artista */
.artist-card__info { text-align: center; }

.artist-card__genre {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.artist-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}
.artist-card:hover .artist-card__name { color: var(--accent); }

.artist-card__meta {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    letter-spacing: 0.04em;
}

/* ── PERFIL INTERNO DEL ARTISTA ────────────────── */
.artist-bio {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 767px) {
    .artist-bio {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.artist-bio__photo {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--bg-surface);
    position: relative;
}

.artist-bio__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.05) brightness(0.92);
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.artist-bio__photo:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.artist-bio__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.artist-bio__photo-country {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.06em;
    z-index: 2;
}

.artist-bio__content { /* slot para contenido derecho */ }

.artist-bio__genre {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.artist-bio__name {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--t1);
    line-height: 1.05;
    margin-bottom: 6px;
}

.artist-bio__instrument {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--t3);
    margin-bottom: 16px;
}

.artist-bio__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.artist-bio__tag {
    font-family: var(--f-mono);
    font-size: 9px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    color: var(--t3);
}

.artist-bio__section-title {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 0.5px solid var(--border);
}

.artist-bio__text {
    font-size: 15px;
    color: var(--t2);
    line-height: 1.80;
}

/* Cada párrafo de la bio respira. Sin esto los <p> quedan
   stickeados sin margin-bottom porque el reset global lo borra. */
.artist-bio__text p {
    margin: 0 0 14px;
}
.artist-bio__text p:last-child {
    margin-bottom: 0;
}

/* Negritas e itálicas que vienen de Wikipedia (extracción HTML
   filtrada). <strong> hereda el peso del browser; le damos un
   peso intermedio (500) para que destaque sin gritar. <em> en
   cursiva color un poco más vivo que el resto del párrafo. */
.artist-bio__text strong,
.artist-bio__text b {
    font-weight: 600;
    color: var(--t1);
}
.artist-bio__text em,
.artist-bio__text i {
    font-style: italic;
    color: var(--t1);
}

.artist-bio__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.artist-bio__fact {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.artist-bio__fact-label {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.artist-bio__fact-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
}

/* Songs del artista en Doresol */
.artist-songs {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

/* Curiosidades */
.artist-curiosity {
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--t2);
    line-height: 1.7;
    margin-top: 4px;
}

/* ──────────────────────────────────────────────────────────
   AK) QUOTE SLIDER — sección full-width de letras icónicas
   ────────────────────────────────────────────────────────── */
.quote-slider {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

/* Imagen derecha */
.quote-slider__img-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    overflow: hidden;
}

.quote-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%) contrast(1.05) brightness(0.90);
    transition: opacity 0.5s ease;
    opacity: 1;
}
.quote-slider__img.fading { opacity: 0; }

/* Progressive blur derecha → izquierda.
   Los rgba() son los valores numéricos de var(--bg-card) con alpha
   (CSS no permite alpha directo sobre custom properties hex):
   light = #FFFFFF (255,255,255), dark = #1A1A18 (26,26,24). */
.quote-slider__img-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        var(--bg-card) 0%,
        var(--bg-card) 15%,
        rgba(255, 255, 255, 0.95) 25%,
        rgba(255, 255, 255, 0.70) 40%,
        rgba(255, 255, 255, 0.20) 60%,
        transparent 80%
    );
    transition: background 0.3s ease;
}

[data-theme="dark"] .quote-slider__img-fade {
    background: linear-gradient(to right,
        var(--bg-card) 0%,
        var(--bg-card) 15%,
        rgba(26, 26, 24, 0.95) 25%,
        rgba(26, 26, 24, 0.70) 40%,
        rgba(26, 26, 24, 0.20) 60%,
        transparent 80%
    );
}

.quote-slider__blur-1 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 45%);
            mask-image: linear-gradient(to right, black 0%, black 20%, transparent 45%);
}

.quote-slider__blur-2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 55%);
            mask-image: linear-gradient(to right, black 0%, black 30%, transparent 55%);
    opacity: 0.6;
}

/* Contenido izquierdo */
.quote-slider__content {
    position: relative;
    z-index: 10;
    padding: 60px 48px;
    max-width: 52%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Comillas decorativas */
.quote-slider__mark {
    font-family: var(--f-sans);
    font-size: 80px;
    font-weight: 600;
    color: var(--accent);
    line-height: 0.6;
    opacity: 0.35;
    user-select: none;
    margin-bottom: -8px;
}

/* Texto del quote */
.quote-slider__text {
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 300;
    color: var(--t1);
    line-height: 1.45;
    letter-spacing: -0.01em;
    font-style: italic;
    transition: opacity 0.25s ease;
}
.quote-slider__text.fading { opacity: 0; }

/* Separador dorado */
.quote-slider__sep {
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Metadata */
.quote-slider__song {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
    margin-bottom: 3px;
    transition: opacity 0.25s ease;
}
.quote-slider__song.fading { opacity: 0; }

.quote-slider__artist {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
    transition: opacity 0.25s ease;
}
.quote-slider__artist.fading { opacity: 0; }

.quote-slider__album {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.04em;
    transition: opacity 0.25s ease;
}
.quote-slider__album.fading { opacity: 0; }

/* Dots de navegación */
.quote-slider__nav {
    position: absolute;
    bottom: 24px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.quote-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-med);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.quote-dot:hover { background: var(--t3); }
.quote-dot.on {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
}

/* Mobile — imagen full, blur de abajo hacia arriba */
@media (max-width: 767px) {
    .quote-slider {
        min-height: 500px;
        align-items: flex-end;
    }

    .quote-slider__img-wrap {
        width: 100%;
        top: 0;
    }

    .quote-slider__img-fade {
        background: linear-gradient(to top,
            var(--bg-card) 0%,
            var(--bg-card) 30%,
            rgba(255, 255, 255, 0.85) 50%,
            transparent 75%
        );
    }

    [data-theme="dark"] .quote-slider__img-fade {
        background: linear-gradient(to top,
            var(--bg-card) 0%,
            var(--bg-card) 30%,
            rgba(26, 26, 24, 0.85) 50%,
            transparent 75%
        );
    }

    .quote-slider__blur-1 {
        -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 65%);
                mask-image: linear-gradient(to top, black 0%, black 40%, transparent 65%);
    }

    .quote-slider__blur-2 { display: none; }

    .quote-slider__content {
        max-width: 100%;
        padding: 32px 24px 56px;
    }

    .quote-slider__mark { font-size: 56px; }

    .quote-slider__nav {
        left: 24px;
        bottom: 20px;
    }
}

/* Placeholder reusable para stubs de páginas (Sprint 3+) */
.placeholder-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.placeholder-page__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    margin-bottom: 12px;
}
.placeholder-page__text {
    font-size: 15px;
    color: var(--t2);
    line-height: 1.7;
}

/* Breadcrumb (compartido — útil acá y en futuras páginas) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.breadcrumb a {
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep    { color: var(--t3); opacity: 0.5; }
.breadcrumb__current { color: var(--t1); }

/* ──────────────────────────────────────────────────────────
   AL) VISTA DE CANCIÓN INDIVIDUAL
   ────────────────────────────────────────────────────────── */

/* Hero */
.song-hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.song-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Brillo subido (0.45 → 0.52) para que la imagen respire en heros con
       fotos oscuras. El text-shadow de los textos compensa el contraste. */
    filter: blur(35px) brightness(0.52) saturate(1.3);
    transform: scale(1.12);
}

.song-hero__overlay {
    position: absolute;
    inset: 0;
    /* Gradiente más suave hacia arriba para que el color del fondo respire.
       Antes: 0.97 → 0.55 → transparent. Ahora: 0.94 → 0.40 → 0.05 */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.40) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.song-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.song-hero__top {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.song-cover {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.70);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
}
.song-cover:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 1px rgba(200, 169, 110, 0.35),
        0 12px 40px rgba(0, 0, 0, 0.75);
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder cuando la canción/álbum no tiene imagen — corchea
   sobre fondo neutro, mismo estilo que .song-list-row__img-placeholder. */
.song-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    box-shadow: 0 0 0 1px var(--border-med);
}

.song-cover__icon {
    font-size: 38px;
    line-height: 1;
    opacity: 0.55;
    filter: grayscale(0.4);
}

.song-cover--placeholder:hover .song-cover__icon {
    opacity: 0.85;
}

/* Hero sin imagen: fondo neutro en vez de gradiente sobre foto rota.
   Sigue siendo dark sin importar el tema, ya que el contenido del hero
   (texto blanco) está pensado para fondo oscuro. */
.song-hero--no-image {
    background: linear-gradient(180deg, #1a1a18 0%, #0f0f0d 100%);
}
.song-hero--no-image .song-hero__overlay { display: none; }

.song-info-wrap {
    flex: 1;
    min-width: 0;
}

.song-breadcrumb {
    font-family: var(--f-mono);
    font-size: 9px;
    /* Color base subido (0.35 → 0.65) + sombra para legibilidad sobre
       fondos blureados de cualquier tono. */
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.80);
}
.song-breadcrumb a {
    /* Color subido (0.35 → 0.65) — alineado con el resto del breadcrumb
       para que artista y álbum sean tan legibles como la canción actual. */
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.song-breadcrumb a:hover { color: var(--accent); }

.song-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    line-height: 1.0;
    margin-bottom: 8px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.60);
}

.song-meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.song-meta-item {
    font-family: var(--f-mono);
    font-size: 10px;
    /* Color base subido (0.40 → 0.75) + sombra. */
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.80);
}

.song-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    flex-shrink: 0;
}

.song-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-btn {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.hero-btn:hover { opacity: 0.85; transform: scale(0.98); }

/* Marcas de servicios — colores oficiales requeridos */
.hero-btn--spotify { background: #1DB954; color: #000000; }
.hero-btn--youtube { background: #FF0000; color: #FFFFFF; }
.hero-btn--fav {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border: 0.5px solid rgba(255, 255, 255, 0.20);
}

/* Selector de instrumento — Opción B */
.inst-selector-section {
    padding: 24px 0 0;
    background: var(--bg);
    transition: background 0.3s;
    margin-bottom: 0;
}
.inst-selector-section > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.inst-grid-b {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.inst-card-b {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--trans);
    font-family: var(--f-sans);
    text-align: left;
}
.inst-card-b:hover { border-color: var(--border-med); }
.inst-card-b.on {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.inst-card-b__icon {
    font-size: 22px;
    line-height: 1;
}

.inst-card-b__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
}

.inst-card-b__count {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.04em;
}
.inst-card-b__count--soon { opacity: 0.55; }

/* Body: contenido + sidebar */
.song-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 300px;
    background: var(--bg);
    transition: background 0.3s;
    min-height: 500px;
}

.song-main {
    padding: 24px 24px 24px 0;
    border-right: 0.5px solid var(--border);
}

/* Controles */
.song-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;

    /* Sticky: tonalidad y autoscroll siempre visibles al hacer scroll */
    position: sticky;
    top: 64px;     /* navbar 56px + 8px de margen */
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}
[data-theme="dark"] .song-controls {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.ctrl-key {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--f-mono);
}

.ctrl-key__label {
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.ctrl-key__note {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.ctrl-key__offset {
    font-size: 11px;
    color: var(--t3);
    font-weight: 500;
}
.ctrl-key__offset:empty { display: none; }

/* Compat: las canciones legacy aún pueden usar `<strong>` directo
   dentro de .ctrl-key sin el modifier. Mantengo el estilo viejo. */
.ctrl-key strong:not([class]) {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

.transpose-btns { display: flex; gap: 3px; }

.t-btn {
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 0.5px solid var(--border-med);
    background: var(--bg-card);
    color: var(--t2);
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.t-btn:hover {
    background: var(--t1);
    color: var(--bg);
}

.diff-pill {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.diff-easy { background: var(--accent-subtle); color: var(--accent); }
.diff-mid  { background: var(--blue-sub);      color: var(--blue); }
.diff-hard { background: var(--red-sub);       color: var(--red); }
.diff-soon {
    background: var(--bg-card);
    color: var(--t3);
    border: 0.5px solid var(--border-med);
}

.auto-btn {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.auto-btn:hover { color: var(--t1); }
.auto-btn.on {
    background: var(--accent);
    color: var(--accent-text);
    border-color: transparent;
}

/* ── YT Control Pill ──────────────────────────────────────
   Componente único en la barra sticky con 3 estados:
     1) Inicial         → "Sincronizar video"
     2) Reproduciendo   → "Reproduciendo..." + ícono pause
     3) Desactivado     → "Video desactivado" + ícono ↺
   Click en play/pause izquierdo: toggle del video.
   Click en label: reactiva sync si está desactivado.
   Click en toggle derecho: activa/desactiva sync.
   ────────────────────────────────────────────────────────── */
.yt-ctrl-pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: var(--bg-surface);
    overflow: hidden;
    transition: var(--trans);
    flex-shrink: 0;
}
.yt-ctrl-pill:hover { border-color: var(--accent); }

.yt-ctrl-pill.inactive {
    opacity: 0.55;
    border-color: var(--border);
}
.yt-ctrl-pill.inactive:hover {
    opacity: 1;
    border-color: var(--border-med);
}

.yt-ctrl-pill__play {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.yt-ctrl-pill__play:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}
.yt-ctrl-pill.playing .yt-ctrl-pill__play { color: var(--accent); }

.yt-ctrl-pill__sep {
    width: 0.5px;
    height: 16px;
    background: var(--border-med);
    flex-shrink: 0;
}

.yt-ctrl-pill__label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--t2);
    letter-spacing: 0.04em;
    padding: 0 12px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: default;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.yt-ctrl-pill.playing .yt-ctrl-pill__label { color: var(--accent); }
.yt-ctrl-pill.inactive .yt-ctrl-pill__label {
    color: var(--t3);
    cursor: pointer; /* clickeable solo cuando está desactivado, para reactivar */
}

.yt-ctrl-pill__toggle {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--t3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}
.yt-ctrl-pill__toggle:hover {
    color: var(--t1);
    background: var(--bg-surface);
}
.yt-ctrl-pill.inactive .yt-ctrl-pill__toggle { color: var(--accent); }

/* Hint de sync desactivado: gris atenuado + ícono rojo */
.yt-sync-hint.sync-off {
    color: var(--t3);
    opacity: 0.60;
}
.yt-sync-hint.sync-off #ytSyncHintIcon {
    color: var(--red);
}

/* Contenido por instrumento */
.inst-content { display: none; }
.inst-content.visible { display: block; }

/* ChordPro */
.chordpro { line-height: 1; }

/* Toggle "Acordes / Solo letra" — pill segmentado encima del
   contenido. Solo se inyecta cuando hay ChordPro real (con
   acordes). Para canciones que ya son lyrics-only el toggle no
   tiene sentido y la vista lo omite. */
.lyric-mode-switch {
    display: inline-flex;
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-card);
}
.lyric-mode-btn {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 7px 16px;
    background: transparent;
    border: none;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
    user-select: none;
}
.lyric-mode-btn:hover { color: var(--t1); }
.lyric-mode-btn.on {
    background: var(--t1);
    color: var(--bg);
}

/* Modo "solo letra" — panel alterno hidden por default; el toggle
   JS le saca la clase `is-hidden` y la pone al panel chords. La
   variante --lyrics-only siempre va en sans-serif normal aunque
   la canción tenga chordpro (ahí no hay grilla que defender). */
.chordpro[data-mode-panel].is-hidden { display: none; }

.chordpro--lyrics-only .cp-line,
.chordpro--lyrics-only .cp-lyr,
.chordpro--lyrics-only .cp-lyr-only {
    font-family: var(--f-sans) !important;
    font-size: 16px;
    color: var(--t1);
    line-height: 1.7;
}

/* Modo "letra mono": cuando AL MENOS un instrumento de la canción
   tiene ChordPro cargado, el SongController setea $useMonoLyrics=true
   y la vista agrega esta clase al wrapper .chordpro. La letra
   (.cp-lyr y .cp-lyr-only) pasa a Roboto Mono — más fina y técnica
   que IBM Plex Mono — para que las líneas con grilla "acorde sobre
   sílaba" se alineen perfecto sin parecer Cifra Club.

   Si la canción es solo letra plana (todo content_type='lyrics'),
   la clase NO se aplica → letra en sans-serif normal, como un poema. */
.chordpro--mono .cp-lyr,
.chordpro--mono .cp-lyr-only {
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-weight: 400;
    /* Roboto Mono tiene letras más estrechas que IBM Plex Mono;
       subimos 1px para que la altura visual quede pareja con los
       chord pills de arriba. */
    font-size: 14px;
}

/* Header de sección — separación clara entre Intro/Estrofa/Coro/etc.
   sin border-bottom (la separación viene del margin-top generoso). */
.cp-section {
    margin-top: 32px;
    margin-bottom: 14px;
}

.cp-section:first-child {
    margin-top: 0;
}

/* Separador entre estrofas en letras planas (sin acordes) — línea
   en blanco del raw text se convierte en este spacer para mantener
   la respiración entre versos. */
.cp-section-spacer {
    height: 18px;
}

/* Línea de tablatura ASCII (E|---0-2-3---|). Mono fijo + tamaño
   chico para que no rompa el flujo si la tab es ancha. NO se
   wrappea — overflow horizontal con scroll en el padre si hace
   falta. Color secundario porque es info técnica, no canto. */
.cp-tab {
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--t2);
    white-space: pre;
    letter-spacing: 0;
}

.cp-sname {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    padding-bottom: 6px;
    border-bottom: 0.5px solid var(--border);
}

.cp-line {
    display: flex;
    flex-direction: column;
    /* margin-bottom y demás propiedades del sync (cursor, hover, active)
       están definidas en el bloque AP — el sticky-controls + sync. */
}

.cp-chords {
    display: flex;
    height: 22px;
    align-items: flex-end;
    margin-bottom: 2px;
    /* Compensa el margin: 0 -6px de .cp-chord — sin esto, la primera
       pill se sale del wrapper hacia la izquierda. */
    padding: 0 6px;
    margin-left: -6px;
}

/* Acorde clickeable — padding fijo siempre, hover solo cambia colores
   (el padding fijo evita que la letra debajo se mueva al hacer hover).

   Truco de alineación: padding horizontal + margin negativo del mismo
   valor → el flujo del layout "ve" el ancho del texto mono puro, pero
   visualmente la pill tiene su aire de 6px a cada lado. Sin esto, cada
   pill desplazaría todo lo que viene después por su ancho de padding,
   rompiendo la grilla "acorde sobre letra". */
.cp-chord {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-subtle);
    white-space: pre;
    cursor: pointer;
    display: inline-block;
    padding: 3px 6px;
    margin: 0 -6px;
    border-radius: var(--radius-xs);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
/* !important necesario para ganar a `.cp-line.line-active .cp-chord`
   que tiene mayor especificidad y pinta de dorado los acordes dentro
   de la línea activa del sync. Cuando el acorde está en hover/click
   queremos blanco sobre dorado, sin importar si la línea está activa. */
.cp-chord:hover {
    background: var(--accent);
    color: #FFFFFF !important;
}
.cp-chord:active { opacity: 0.80; }
.cp-chord.chord-active {
    background: var(--accent);
    color: #FFFFFF !important;
}

.cp-sp {
    white-space: pre;
    color: transparent;
    font-family: var(--f-mono);
    font-size: 13px;
}

/* Marcador de repetición (x4, x8) — texto gris discreto al lado
   del acorde. NO es un acorde: no es clickeable, no entra al
   sidebar de diagramas, no se transpone. */
.cp-times {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--t3);
    white-space: pre;
    display: inline-block;
    padding: 0;
    margin-left: 0;
    letter-spacing: 0.04em;
    user-select: none;
}

.cp-lyr {
    font-family: var(--f-sans);
    font-size: 15px;
    color: var(--t1);
    line-height: 1.5;
    white-space: pre-wrap;
}

.cp-lyr-only {
    font-family: var(--f-sans);
    font-size: 15px;
    color: var(--t2);
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Línea de solo acordes — sin letra cantada (intros, puentes,
   solos). El div .cp-lyr existe pero está vacío: lo ocultamos
   y reducimos el espacio inferior para que la próxima línea
   quede más cerca. */
.cp-lyr--empty {
    display: none;
}
.cp-line:has(.cp-lyr--empty) {
    margin-bottom: 8px;
}

/* Línea instrumental (sin letra cantada — solo acordes) */
.cp-lyr--instrumental {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    font-style: italic;
    letter-spacing: 0.04em;
}
.cp-line--instrumental.line-active .cp-lyr--instrumental {
    color: var(--accent);
    font-weight: 500;
}

/* Tablatura de bajo */
.tab-wrap {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 20px;
}

.tab-intro {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.tab-sname {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 10px;
    display: block;
}
.tab-sname--spaced { margin-top: 16px; }

.tab-str {
    display: flex;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 13px;
    margin-bottom: 4px;
}

.tab-sn {
    color: var(--accent);
    font-weight: 600;
    width: 14px;
    flex-shrink: 0;
}

.tab-pipe {
    color: var(--border-med);
    margin: 0 3px;
}

.tab-c {
    color: var(--t1);
    white-space: pre;
}

/* Próximamente */
.soon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    gap: 10px;
}

.soon-icon {
    font-size: 40px;
    opacity: 0.20;
}

.soon-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
}

.soon-sub {
    font-size: 12px;
    color: var(--t3);
    font-family: var(--f-mono);
    letter-spacing: 0.04em;
}

/* Sidebar — sticky en desktop */
.song-sidebar {
    padding: 24px 0 24px 24px;
    position: sticky;
    top: 72px; /* navbar 56px + margen 16px */
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-med) transparent;
    align-self: start;
}
.song-sidebar::-webkit-scrollbar { width: 3px; }
.song-sidebar::-webkit-scrollbar-track { background: transparent; }
.song-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-med);
    border-radius: 2px;
}

.song-sidebar__title {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
    display: block;
}

/* Footer informativo debajo de la letra (en .song-main) */
.song-info-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 0.5px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ss-s { margin-bottom: 20px; }
.ss-s:last-child { margin-bottom: 0; }
.ss-s.is-hidden { display: none; }

.ss-lbl {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
    display: block;
}

.chord-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ch {
    background: var(--bg-surface);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: var(--trans);
}
.ch:hover {
    background: var(--accent);
    color: var(--accent-text);
}
.ch.chord-active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.chord-grid__empty {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
}

.facts {
    display: flex;
    flex-direction: column;
}

.fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
}
.fact:last-child { border-bottom: none; }

.fact-l {
    color: var(--t3);
    font-family: var(--f-mono);
    font-size: 10px;
    flex-shrink: 0;
}

.fact-v {
    color: var(--t1);
    font-weight: 500;
    text-align: right;
}

.album-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 10px;
    text-decoration: none;
    color: inherit;
    border: 0.5px solid var(--border);
    transition: var(--trans);
}
.album-mini:hover { border-color: var(--border-med); }

.album-mini-cover {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-mini-cover__icon {
    font-size: 18px;
    opacity: 0.55;
}

.album-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.album-mini:hover .album-mini-cover img { filter: grayscale(0%); }

.album-mini-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 2px;
}

.album-mini-sub {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
}

/* Mobile */
@media (max-width: 767px) {
    .song-hero__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .song-cover            { width: 80px; height: 80px; }
    .song-hero__content    { padding: 24px 16px 0; }

    .inst-selector-section { padding: 20px 0 0; }
    .inst-selector-section > * {
        padding-left: 16px;
        padding-right: 16px;
    }

    .song-body {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .song-main {
        padding: 20px 0;
        border-right: none;
    }
    .song-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 20px 0;
        border-top: 0.5px solid var(--border);
    }
}

/* ──────────────────────────────────────────────────────────
   AM) VISTA DE ÁLBUM INDIVIDUAL
   ────────────────────────────────────────────────────────── */

/* .album-breadcrumb removido — el breadcrumb antes del hero del álbum
   se eliminó de la vista. Las clases .breadcrumb / .breadcrumb__sep /
   .breadcrumb__current siguen activas (las usan otras vistas como
   account, search, songs/index, artists, albums/index). */

/* Hero */
.album-hero {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.album-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(35px) brightness(0.55) saturate(1.3);
    transform: scale(1.1);
}

.album-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

.album-hero__content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 48px 24px;
    align-items: end;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tapa del disco — borde sutil para que despegue del fondo oscuro */
.album-cover {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.70),
        0 4px 24px rgba(0, 0, 0, 0.50);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease;
    cursor: pointer;
}
.album-cover:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 0 1px rgba(200, 169, 110, 0.35),
        0 28px 72px rgba(0, 0, 0, 0.75),
        0 8px 32px rgba(200, 169, 110, 0.15);
}
.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info del álbum (sobre la imagen oscura) */
.album-info {
    min-width: 0;
}

.album-type {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.album-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    line-height: 1.0;
    margin-bottom: 12px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.60);
}

.album-artist {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}
.album-artist:hover { color: var(--accent); }

.album-meta-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.album-meta-item {
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.50);
}

.album-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.album-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.album-tag {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
}

.album-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.album-btn {
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
}
.album-btn:hover { opacity: 0.85; transform: scale(0.98); }

/* Marcas oficiales */
.album-btn--spotify { background: #1DB954; color: #000000; }
.album-btn--youtube { background: #FF0000; color: #FFFFFF; }

.album-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    border: 0.5px solid rgba(255, 255, 255, 0.20);
}

/* Body: tracklist + sidebar dentro del container */
.album-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    background: var(--bg);
    transition: background 0.3s ease;
}

/* Tracklist */
.tracklist {
    display: flex;
    flex-direction: column;
}

.tracklist-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--border);
}

.tracklist-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
}

.tracklist-total {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
}

/* Track row */
.track {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    border-bottom: 0.5px solid var(--border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: padding-left 0.2s ease, background 0.2s ease;
}
.track:last-child { border-bottom: none; }
.track:hover {
    padding-left: 10px;
    background: var(--bg-surface);
}
.track:hover .track-name { color: var(--accent); }

/* Track sin link */
.track--no-link {
    cursor: default;
    opacity: 0.65;
}
.track--no-link:hover {
    padding-left: 4px;
    background: transparent;
}
.track--no-link:hover .track-name { color: var(--t1); }

.track-num {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    width: 22px;
    flex-shrink: 0;
    text-align: right;
}

.track-main {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--t1);
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.track-sub {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.track-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.track-badge {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent);
    border: 0.5px solid var(--accent);
}

.track-duration {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    min-width: 38px;
    text-align: right;
}

/* Sidebar */
.album-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.sidebar-label {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
}

.sidebar-text {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.7;
}

.sidebar-facts {
    display: flex;
    flex-direction: column;
}

.sidebar-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
}
.sidebar-fact:last-child { border-bottom: none; }

.sidebar-fact__label {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    flex-shrink: 0;
}

.sidebar-fact__value {
    color: var(--t1);
    font-weight: 500;
    text-align: right;
}

/* Bloque de curiosidad */
.curiosity-block {
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--t2);
    line-height: 1.65;
    font-style: italic;
}

.curiosity-block__label {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 5px;
    font-style: normal;
    display: block;
}

/* Mobile */
@media (max-width: 767px) {
    .album-hero__content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 16px;
    }
    .album-cover {
        width: 160px;
        height: 160px;
    }
    .album-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }
    .track:hover { padding-left: 4px; }
}

/* ──────────────────────────────────────────────────────────
   AO) CHORD DIAGRAMS — diagramas en sidebar (Guitarra/Piano)
   ────────────────────────────────────────────────────────── */

/* Tabs Guitarra · Piano */
.chord-tabs {
    display: flex;
    gap: 0;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 16px;
}

.chord-tab-btn {
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--trans);
    margin-bottom: -0.5px;
}
.chord-tab-btn:hover { color: var(--t2); }
.chord-tab-btn.on {
    color: var(--t1);
    border-bottom-color: var(--accent);
}

/* Grid de diagramas */
.chord-diagrams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
}
.chord-diagrams-grid--hidden { display: none; }

/* Bass: una sola columna porque el fretboard es horizontal y largo */
.chord-diagrams-grid--bass {
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Card de un acorde */
.chord-diagram-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--trans);
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    border: 0.5px solid transparent;
    /* Fondo explícito para que el SVG renderizado por svguitar
       (que usa backgroundColor coincidente) no quede transparente
       sobre el bg de la página. */
    background: var(--bg-card);
}
.chord-diagram-card:hover {
    background: var(--bg-surface);
    border-color: var(--border);
}
.chord-diagram-card.highlighted {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.chord-diagram-card__name {
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    transition: color 0.2s ease;
}
.chord-diagram-card.highlighted .chord-diagram-card__name {
    color: var(--accent);
}

/* Botón ▶ Reproducir — pill grande con texto, mismo estilo
   que el tooltip flotante de la letra (.chord-tooltip__play).
   Va abajo del diagrama, siempre visible. */
.chord-diagram-card__play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-med);
    color: var(--t1);
    font-family: var(--f-sans);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--trans);
    margin-top: 4px;
}

.chord-diagram-card__play::before {
    content: '▶';
    font-size: 8px;
    line-height: 1;
}

.chord-diagram-card__play:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.chord-diagram-card__play--playing {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    animation: chord-card-play-pulse 0.6s ease-in-out;
}

@keyframes chord-card-play-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Navegación entre voicings: ‹ N de M › abajo del diagrama.
   Solo visible para guitarra/ukelele (piano y bass tienen 1 voicing). */
.chord-diagram-card__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    opacity: 0.7;
    transition: opacity 0.18s ease;
}

.chord-diagram-card:hover .chord-diagram-card__nav,
.chord-diagram-card.highlighted .chord-diagram-card__nav {
    opacity: 1;
}

.chord-diagram-card__nav-btn {
    background: transparent;
    border: none;
    color: var(--t3);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--trans);
}

.chord-diagram-card__nav-btn:hover:not(:disabled) {
    background: var(--accent-subtle);
    color: var(--accent);
}

.chord-diagram-card__nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.chord-diagram-card__nav-label {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    min-width: 36px;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Contenedor del diagrama de guitarra (svguitar SVG) */
.chord-diagram-card__svg {
    width: 100%;
    max-width: 100px;
    aspect-ratio: 1 / 1.1;
}
.chord-diagram-card__svg svg {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--radius-xs);
}

/* Bass: el fretboard es horizontal y largo (12 trastes × 4 cuerdas).
   Override: usar todo el ancho disponible, aspect ratio bajo. */
.chord-diagrams-grid--bass .chord-diagram-card__svg {
    max-width: none;
    aspect-ratio: 13 / 2;
    padding: 4px 0;
}

/* Contenedor del diagrama de piano (SVG inline) */
.chord-diagram-card__piano {
    width: 100%;
    max-width: 110px;
}
.chord-diagram-card__piano svg {
    width: 100% !important;
    height: auto !important;
}

/* Placeholder mientras carga */
.chord-diagram-card__loading {
    width: 80px;
    height: 88px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    text-align: center;
    letter-spacing: 0.04em;
}

/* ── TOOLTIP FLOTANTE — diagrama al click sobre .cp-chord ── */
.chord-tooltip {
    position: fixed;
    z-index: 500;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    pointer-events: auto;
}
[data-theme="dark"] .chord-tooltip {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.35);
}
.chord-tooltip.visible { display: flex; }

.chord-tooltip__name {
    font-family: var(--f-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
}

.chord-tooltip__diagram {
    width: 110px;
    aspect-ratio: 1 / 1.1;
}
.chord-tooltip__diagram svg {
    width: 100% !important;
    height: 100% !important;
}

.chord-tooltip__close {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border);
    background: transparent;
    transition: var(--trans);
}
.chord-tooltip__close:hover {
    color: var(--t1);
    border-color: var(--border-med);
}

/* Navegación entre voicings: < N de M > */
.chord-tooltip__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.chord-tooltip__nav-btn {
    background: transparent;
    border: 0.5px solid var(--border-med);
    color: var(--t2);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
    padding: 0;
}

.chord-tooltip__nav-btn:hover:not(:disabled) {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
}

.chord-tooltip__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chord-tooltip__nav-label {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    min-width: 50px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Botón Reproducir — pill dorado con icono play */
.chord-tooltip__play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-med);
    color: var(--t1);
    font-family: var(--f-sans);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--trans);
    margin-top: 2px;
}

.chord-tooltip__play:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.chord-tooltip__play-icon {
    font-size: 9px;
    line-height: 1;
}

.chord-tooltip__play--playing {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    animation: chord-play-pulse 0.6s ease-in-out;
}

@keyframes chord-play-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Flecha del tooltip — apunta hacia abajo (tooltip arriba del acorde) */
.chord-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--bg-card);
    border-right: 0.5px solid var(--border-med);
    border-bottom: 0.5px solid var(--border-med);
    transform: translateX(-50%) rotate(45deg);
}
.chord-tooltip.tooltip-below::after {
    bottom: auto;
    top: -5px;
    transform: translateX(-50%) rotate(-135deg);
}

/* ──────────────────────────────────────────────────────────
   AP) YOUTUBE PLAYER — sync de letra con el video
   ────────────────────────────────────────────────────────── */
.yt-player-section {
    padding: 24px 0 24px;
    background: var(--bg);
}

.yt-player-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    max-width: 560px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.25);
}

/* IFrame de YouTube (creado por la API) */
#ytPlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
#ytPlayer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cover inicial — thumbnail + botón play */
.yt-cover {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}
.yt-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

.yt-cover__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

.yt-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        transparent 50%
    );
}

.yt-cover__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
    padding: 0;
}
.yt-cover__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-cover__info {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 2;
}
.yt-cover__title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}
.yt-cover__artist {
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.60);
}

/* Controles custom — barra inferior al estilo YouTube simplificado */
.yt-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.80));
    padding: 20px 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 15;
}
.yt-controls--hidden { display: none; }

.yt-play-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    padding: 0;
}
.yt-play-btn:hover { opacity: 0.8; }

.yt-progress {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
}
.yt-progress:hover { height: 5px; }

.yt-progress__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
}

.yt-time {
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.70);
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

.yt-external-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
    opacity: 0.75;
}
.yt-external-link:hover { opacity: 1; }

/* Hint de sync debajo del player */
.yt-sync-hint {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}
.yt-sync-hint span { color: var(--accent); }
.yt-sync-hint.syncing { color: var(--accent); }

/* ── Línea activa en ChordPro (sync con video) ──
   Padding amplio para respiración visual; en active sube a 14px
   left para acompañar el border. Sin animación de padding para
   que el texto no se desplace al alternar estados. */
.cp-line {
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-left-color 0.2s ease;
    border-left: 2px solid transparent;
    padding: 4px 4px 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}
.cp-line:hover {
    background: var(--bg-surface);
}
.cp-line.line-active {
    background: var(--accent-subtle);
    border-left-color: var(--accent);
    padding: 4px 4px 4px 14px;
}
.cp-line.line-active .cp-lyr {
    color: var(--t1);
    font-weight: 500;
}
.cp-line.line-active .cp-chord {
    color: var(--accent);
}

/* Mobile */
@media (max-width: 767px) {
    .yt-player-wrap {
        max-width: 100%;
        border-radius: var(--radius-md);
    }
}

/* ──────────────────────────────────────────────────────────
   AQ) ICON — Lucide SVG inline
   stroke="currentColor" en los SVG fuente → heredan color del padre.
   ────────────────────────────────────────────────────────── */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 0;
}

/* ──────────────────────────────────────────────────────────
   AR) AUTH — Login, Registro, Recuperar contraseña
   Mobile-first. Cero colores hardcodeados (excepto branding
   de Google y Apple). Funciona en light Y dark mode.
   ────────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 48px;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 480px) {
    .auth-card { padding: 40px 36px; }
}
.auth-logo {
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    text-decoration: none;
    align-self: center;
    margin-bottom: 4px;
}
.auth-logo em {
    color: var(--accent);
    font-style: normal;
}
.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--t1);
    text-align: center;
    margin: 0;
    letter-spacing: -0.01em;
}
.auth-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: var(--t2);
    text-align: center;
    margin: 0 0 8px 0;
}
.auth-error {
    background: var(--red-sub);
    border: 0.5px solid var(--red);
    color: var(--red);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}

/* Mensaje de éxito/info en flujos de auth (recuperar contraseña,
   contraseña cambiada, etc). Verde sutil para no competir con
   el dorado de la marca. */
.auth-info {
    background: var(--green-sub);
    border: 0.5px solid var(--green);
    color: var(--green);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* OAuth buttons — colores de marca (excepción permitida por Regla 10) */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border-med);
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--trans);
}
.oauth-btn:hover {
    border-color: var(--border-str);
    transform: translateY(-1px);
}
.oauth-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.oauth-btn--google {
    background: #FFFFFF;
    color: #3C4043;
    border-color: #DADCE0;
}
.oauth-btn--google:hover {
    background: #F8F9FA;
    border-color: #C6CACE;
}
.oauth-btn--apple {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}
.oauth-btn--apple:hover {
    background: #1A1A1A;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--t3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border-med);
}
.auth-divider span { flex-shrink: 0; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--t2);
    letter-spacing: 0.01em;
}
.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--t1);
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 14px;
    transition: var(--trans);
}
.auth-input::placeholder { color: var(--t3); }
.auth-input:hover        { border-color: var(--border-str); }
.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}
.auth-hint {
    font-size: 11px;
    color: var(--t3);
    margin: 2px 0 0 0;
    line-height: 1.5;
}
.auth-row {
    display: flex;
    justify-content: flex-end;
}
.auth-submit {
    width: 100%;
    height: 44px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
}
.auth-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--trans);
}
.auth-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.auth-link--small { font-size: 12px; }
.auth-link--quiet {
    color: var(--t3);
    font-size: 13px;
}
.auth-link--quiet:hover { color: var(--t2); }

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--t2);
    margin: 8px 0 0 0;
}

/* ──────────────────────────────────────────────────────────
   AS) WELCOME — pantalla post primer login
   ────────────────────────────────────────────────────────── */
.welcome-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
    background: var(--bg);
}
.welcome-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
@media (min-width: 480px) {
    .welcome-card { padding: 48px 40px; }
}
.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.welcome-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 32px;
    font-weight: 600;
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
}
.welcome-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--t1);
    margin: 4px 0 0 0;
    text-align: center;
    letter-spacing: -0.01em;
}
.welcome-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: var(--t2);
    text-align: center;
    margin: 0 0 12px 0;
    max-width: 380px;
}
.welcome-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.welcome-instruments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 480px) {
    .welcome-instruments { grid-template-columns: repeat(4, 1fr); }
}
.welcome-inst-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--trans);
    user-select: none;
}
.welcome-inst-card:hover {
    border-color: var(--border-med);
    transform: translateY(-1px);
}
.welcome-inst-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.welcome-inst-card:has(.welcome-inst-card__input:checked) {
    border-color: var(--accent);
    background: var(--accent-subtle);
}
.welcome-inst-card:has(.welcome-inst-card__input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.welcome-inst-card__icon {
    font-size: 28px;
    line-height: 1;
}
.welcome-inst-card__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--t2);
    text-align: center;
}
.welcome-inst-card:has(.welcome-inst-card__input:checked) .welcome-inst-card__name {
    color: var(--t1);
}
.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ──────────────────────────────────────────────────────────
   AT) NAVBAR USER MENU — avatar + nombre + dropdown
   Cero colores hardcodeados. Funciona en light y dark mode.
   ────────────────────────────────────────────────────────── */
.navbar__user {
    position: relative;
}
.navbar__user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: transparent;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--t1);
    cursor: pointer;
    transition: var(--trans);
}
.navbar__user-btn:hover {
    background: var(--bg-surface);
    border-color: var(--border-med);
}
.navbar__user-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.navbar__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.navbar__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.navbar__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 600;
}
.navbar__user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar__user-chevron {
    color: var(--t3);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.navbar__user-btn[aria-expanded="true"] .navbar__user-chevron {
    transform: rotate(180deg);
    color: var(--t2);
}

/* Dropdown */
.navbar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
    z-index: 200;
}
[data-theme="dark"] .navbar__dropdown {
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.50),
        0 2px 8px rgba(0, 0, 0, 0.30);
}
.navbar__dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header del dropdown — nombre + email + badge premium */
.navbar__dropdown-header {
    padding: 14px 16px 12px;
}
.navbar__dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
}
.navbar__dropdown-email {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.02em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar__dropdown-badge {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: var(--accent-subtle);
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar__dropdown-divider {
    height: 0.5px;
    background: var(--border);
    border: 0;
    margin: 0;
}

/* Items del dropdown — links y botón de logout */
.navbar__dropdown-form {
    margin: 0;
}
.navbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--t2);
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.navbar__dropdown-item .icon {
    color: var(--t3);
    flex-shrink: 0;
    transition: color 0.15s ease;
}
/* El label (primer span sin clase) crece para empujar el badge al
   borde derecho del item. El badge tiene clase, así que no matchea. */
.navbar__dropdown-item > span:not([class]) {
    flex: 1;
    min-width: 0;
}
/* Pill premium dentro del dropdown — estrella + "Premium" en pill
   dorado plano, alineado a la derecha del item. Padding generoso para
   que el pill respire visualmente sin pelearse con el label. */
.navbar__dropdown-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    flex-grow: 0;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-text);
    line-height: 1;
    white-space: nowrap;
}
.navbar__dropdown-badge-pill svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: block;
}
.navbar__dropdown-item:hover,
.navbar__dropdown-item:focus-visible {
    background: var(--bg-surface);
    color: var(--t1);
    outline: none;
}
.navbar__dropdown-item:hover .icon,
.navbar__dropdown-item:focus-visible .icon {
    color: var(--accent);
}
.navbar__dropdown-item--logout {
    color: var(--red);
}
.navbar__dropdown-item--logout .icon {
    color: var(--red);
}
.navbar__dropdown-item--logout:hover,
.navbar__dropdown-item--logout:focus-visible {
    background: var(--red-sub);
    color: var(--red);
}
.navbar__dropdown-item--logout:hover .icon,
.navbar__dropdown-item--logout:focus-visible .icon {
    color: var(--red);
}

/* Bloque user en el mobile drawer */
.mobile-drawer__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    margin-bottom: 8px;
}
.mobile-drawer__avatar-img,
.mobile-drawer__avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 600;
}
.mobile-drawer__user-info {
    min-width: 0;
    flex: 1;
}
.mobile-drawer__user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-drawer__user-email {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mobile-drawer__logout-form {
    margin: 0;
}
.mobile-drawer__logout {
    color: var(--red);
}

/* Mobile: ocultar nombre del usuario para ganar espacio */
@media (max-width: 767px) {
    .navbar__user-name {
        display: none;
    }
    .navbar__dropdown {
        right: -8px;
        min-width: 220px;
    }
}

/* ──────────────────────────────────────────────────────────
   AU) SISTEMA PREMIUM — badge, popup gate, pricing page
   Cero colores hardcodeados (excepto gradiente premium dorado
   #B8943E que es el degrade del var(--accent), permitido por
   ser parte del branding). Funciona en light y dark mode.
   ────────────────────────────────────────────────────────── */

/* Bloquea scroll del body cuando hay modal/overlay abierto.
   Lo activa PremiumGate (y otros futuros modales). */
body.no-scroll {
    overflow: hidden;
}

/* Badge inline para marcar features premium en la UI */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--f-mono);
    font-size: 8px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), #B8943E);
    color: var(--accent-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    flex-shrink: 0;
    white-space: nowrap;
}
.badge-premium svg {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
}

/* Elemento bloqueado — se ve apagado y no recibe clicks */
.feature-locked {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}
/* Wrapper con pointer-events para capturar el click y abrir popup */
.feature-locked-wrap {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* Overlay full-screen del popup */
.premium-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.premium-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Card del popup */
.premium-popup {
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    position: relative;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.22s ease;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.20),
        0 4px 16px rgba(0, 0, 0, 0.10);
}
[data-theme="dark"] .premium-popup {
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.60),
        0 4px 16px rgba(0, 0, 0, 0.30);
}
.premium-overlay.visible .premium-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.premium-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-surface);
    color: var(--t3);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}
.premium-popup__close:hover {
    background: var(--border-med);
    color: var(--t1);
}

.premium-popup__icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.premium-popup__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), #B8943E);
    color: var(--accent-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.premium-popup__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.premium-popup__desc {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.65;
    margin: 0 0 24px 0;
}
.premium-popup__upgrade {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), #B8943E);
    color: var(--accent-text);
    border: 0;
    border-radius: var(--radius-sm);
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}
.premium-popup__upgrade:hover {
    opacity: 0.90;
    transform: scale(0.99);
}
.premium-popup__skip {
    font-size: 12px;
    color: var(--t3);
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    transition: color 0.2s ease;
}
.premium-popup__skip:hover { color: var(--t2); }

/* ── Pricing page /premium ── */
.pricing-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}
.pricing-eyebrow {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px 0;
}
.pricing-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--t1);
    margin: 0 0 8px 0;
    line-height: 1.1;
}
.pricing-subtitle {
    font-size: 15px;
    color: var(--t2);
    margin: 0;
}

/* Wrapper para centrar el toggle (reemplaza style="" inline del spec) */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-pill);
    padding: 4px;
    border: 0.5px solid var(--border);
}
.billing-btn {
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    border: 0;
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 6px;
}
.billing-btn.on {
    background: var(--bg-card);
    color: var(--t1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.billing-save {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    background: var(--green-sub);
    color: var(--green);
    letter-spacing: 0.04em;
}

/* Cards de precio */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}
@media (max-width: 480px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: var(--trans);
}
.pricing-card:hover { border-color: var(--border-med); }
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.pricing-card__popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pricing-card__name {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin: 0 0 12px 0;
}
.pricing-card__price {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-card__price sup {
    font-size: 20px;
    font-weight: 500;
    vertical-align: super;
}
.pricing-card__price span {
    font-size: 15px;
    font-weight: 400;
    color: var(--t3);
}
.pricing-card__period {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    margin: 0 0 20px 0;
    min-height: 16px;
}
.pricing-card__cta {
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-family: var(--f-sans, 'IBM Plex Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    border: 0;
    margin-bottom: 20px;
    text-align: center;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}
.pricing-card__cta--free {
    background: var(--bg-surface);
    color: var(--t1);
    border: 0.5px solid var(--border-med);
}
.pricing-card__cta--premium {
    background: linear-gradient(135deg, var(--accent), #B8943E);
    color: var(--accent-text);
}
.pricing-card__cta--premium:hover {
    opacity: 0.90;
    transform: scale(0.99);
}

/* Lista de features */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.pricing-feat {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--t2);
    line-height: 1.4;
}
.pricing-feat__check {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13px;
}
.pricing-feat__x {
    color: var(--t3);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 13px;
}
.pricing-feat--dim { color: var(--t3); }

/* Tabla comparativa */
.compare-wrap { margin-top: 8px; }
.compare-title {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 16px;
    text-align: center;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.compare-table th {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t3);
    padding: 8px 16px;
    text-align: left;
    border-bottom: 0.5px solid var(--border-med);
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3) {
    text-align: center;
    min-width: 80px;
}
.compare-table td {
    padding: 10px 16px;
    border-bottom: 0.5px solid var(--border);
    color: var(--t2);
}
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
    text-align: center;
}
.compare-table tr:last-child td {
    border-bottom: 0;
}
.compare-table .ct-check { color: var(--green); }
.compare-table .ct-cross { color: var(--t3); }
.compare-table .ct-soft  { color: var(--t2); }
.compare-table .ct-cat td {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t3);
    background: var(--bg-surface);
    padding: 8px 16px;
}

/* FAQ */
.pricing-faq { margin-top: 48px; }
.faq-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    margin: 0 0 16px 0;
    text-align: center;
}
.faq-item {
    border-bottom: 0.5px solid var(--border);
    padding: 16px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    margin: 0 0 6px 0;
}
.faq-a {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.65;
    margin: 0;
}

/* ──────────────────────────────────────────────────────────
   AV) PREMIUM PAGE — hero, features, vs, compare, faq, CTA
   Cero colores hardcodeados (var(--*) only) — funciona en
   light y dark mode.
   ────────────────────────────────────────────────────────── */

/* Link "Premium" en el navbar */
.navbar__link.navbar__link--premium {
    color: var(--accent);
    font-weight: 500;
}
.navbar__link.navbar__link--premium:hover {
    opacity: 0.85;
}
.mobile-drawer__link--premium {
    color: var(--accent);
    font-weight: 500;
}

/* HERO — eyebrow + título + sub + stats */
.premium-page-hero {
    background: var(--bg);
    padding: 64px 0 48px;
    text-align: center;
    border-bottom: 0.5px solid var(--border);
}
.premium-context-msg {
    display: inline-block;
    background: var(--accent-subtle);
    border: 0.5px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    color: var(--t1);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.5;
}
.premium-page-eyebrow {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px 0;
}
.premium-page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--t1);
    line-height: 1.05;
    margin: 0 0 12px 0;
}
.premium-page-sub {
    font-size: 16px;
    color: var(--t2);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Stats sociales */
.premium-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.premium-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}
.premium-stat__num {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}
.premium-stat__label {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.04em;
    text-align: center;
    max-width: 130px;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .premium-stats { gap: 24px; }
    .premium-stat__num { font-size: 22px; }
}

/* Section labels (compartido por features/pricing/compare/faq) */
.premium-section-label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t3);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Features section */
.premium-features-section {
    padding: 56px 0;
    background: var(--bg-surface);
}
.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 767px) {
    .premium-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .premium-features-grid { grid-template-columns: 1fr; }
}
.premium-feature-card {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: var(--trans);
}
.premium-feature-card:hover {
    border-color: var(--border-med);
    transform: translateY(-2px);
}
.premium-feature-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}
.premium-feature-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
    margin: 0 0 6px 0;
}
.premium-feature-card__desc {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.65;
    margin: 0;
}

/* Pricing section */
.premium-pricing-section {
    padding: 56px 0;
    background: var(--bg);
}

/* Trust signals dentro de pricing card premium */
.pricing-card__trust {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 0.5px solid var(--border);
}
.pricing-card__trust span {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.02em;
}

/* VS competencia */
.premium-vs {
    margin-top: 40px;
    text-align: center;
}
.premium-vs__label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
    margin: 0 0 20px 0;
}
.premium-vs__grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.premium-vs__item {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 130px;
    transition: var(--trans);
}
.premium-vs__item--winner {
    border-color: var(--accent);
    background: var(--accent-subtle);
}
.premium-vs__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
}
.premium-vs__item--winner .premium-vs__name {
    color: var(--t1);
    font-weight: 600;
}
.premium-vs__price {
    font-size: 22px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.02em;
}
.premium-vs__price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--t3);
}
.premium-vs__tag {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Compare section */
.premium-compare-section {
    padding: 56px 0;
    background: var(--bg-surface);
}

/* FAQ section */
.premium-faq-section {
    padding: 56px 0 80px;
    background: var(--bg);
}

/* CTA final */
.premium-final-cta {
    text-align: center;
    padding: 48px 24px 0;
}
.premium-final-cta__title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--t1);
    margin: 0 0 8px 0;
}
.premium-final-cta__sub {
    font-size: 14px;
    color: var(--t3);
    margin: 0 0 24px 0;
    font-family: var(--f-mono);
}
.premium-final-cta__btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 15px;
    border-radius: var(--radius-pill);
    width: auto;
}

/* ============================================================
   AW) SECTION HERO — patrón reusable para encabezados de
   secciones (índices de catálogo: álbumes, artistas, etc).
   ============================================================ */
.section-hero {
    padding: 64px 0 32px;
    border-bottom: 0.5px solid var(--border);
}
.section-hero__eyebrow {
    margin: 0 0 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.section-hero__title {
    /* Brandbook v1.0: títulos editoriales weight 300 (no 600).
     * Antes era bold dense; ahora pulido fino tipo revista de jazz.
     * Letter-spacing -0.02em y line-height 1.05 ya cumplen brandbook.
     */
    margin: 0 0 16px;
    font-family: var(--f-sans);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--t1);
}
.section-hero__title em {
    /* `Re` u otra parte de palabra dorada — patrón del brandbook
     * para destacar conceptos clave en títulos. */
    font-style: normal;
    color: var(--accent);
}
.section-hero__sub {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--t2);
}
@media (max-width: 640px) {
    .section-hero {
        padding: 40px 0 24px;
    }
}

/* ============================================================
   AX) ALBUMS INDEX — grid Spotify-style agrupado por artista.
   ============================================================ */
.albums-index {
    padding: 48px 0 96px;
}
.albums-artist-group {
    margin-bottom: 56px;
}
.albums-artist-group:last-child {
    margin-bottom: 0;
}
.albums-artist-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--border);
}
.albums-artist-name {
    font-family: var(--f-sans);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
    text-decoration: none;
    transition: var(--trans);
}
.albums-artist-name:hover {
    color: var(--accent);
}
.albums-artist-count {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
}
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 20px;
}
.album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
}
.album-card__cover-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.album-card__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--trans);
}
.album-card:hover .album-card__cover {
    filter: grayscale(0);
    transform: scale(1.04);
}
.album-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    opacity: 0;
    transition: var(--trans);
}
.album-card:hover .album-card__overlay {
    opacity: 1;
}
.album-card__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transform: translateY(8px);
    transition: var(--trans);
}
.album-card:hover .album-card__play {
    transform: translateY(0);
}
.album-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}
.album-card__info {
    margin-top: 12px;
}
.album-card__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--t1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--trans);
}
.album-card:hover .album-card__title {
    color: var(--accent);
}
.album-card__meta {
    margin: 0;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    line-height: 1.4;
}
.album-card__dot {
    margin: 0 6px;
    color: var(--t3);
}
@media (max-width: 640px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px 14px;
    }
    .albums-artist-name {
        font-size: 18px;
    }
    .albums-artist-group {
        margin-bottom: 40px;
    }
}

/* ============================================================
   AZ) SONG LIST ROW — Vista A (perfil de artista)
   Spotify-style: número/play, cover, info, instrumentos,
   dificultad, duración. Namespace `.song-list-row*` para
   coexistir con `.song-row` legacy (cancionero antiguo).
   ============================================================ */
.song-list-header {
    display: grid;
    grid-template-columns: 28px 56px 1fr auto;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 4px;
}
.song-list-header span {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t3);
}
.song-list-header span:last-child {
    text-align: right;
}

.song-list-row {
    display: grid;
    grid-template-columns: 28px 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    color: inherit;
}
.song-list-row:hover {
    background: var(--bg-surface);
}

.song-list-row__cells {
    display: contents;
}

.song-list-row__num {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--t3);
    text-align: center;
    transition: opacity 0.15s;
}
.song-list-row__play {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--t1);
}
.song-list-row__play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.song-list-row:hover .song-list-row__num {
    display: none;
}
.song-list-row:hover .song-list-row__play {
    display: flex;
}

.song-list-row__img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.song-list-row__img-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.song-list-row__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.song-list-row__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.song-list-row:hover .song-list-row__title {
    color: var(--accent);
}
.song-list-row__album {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list-row__right {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}
.song-list-row__instruments {
    display: flex;
    gap: 4px;
}
.song-list-row__pill {
    font-family: var(--f-mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--t2);
    border: 0.5px solid var(--border);
    letter-spacing: 0.02em;
}
.song-list-row__diff {
    font-family: var(--f-mono);
    font-size: 10px;
    min-width: 70px;
    text-align: right;
}
.song-list-row__diff--easy { color: var(--green); }
.song-list-row__diff--mid  { color: var(--accent); }
.song-list-row__diff--hard { color: var(--red); }

.song-list-row__dur {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    min-width: 36px;
    text-align: right;
}

@media (max-width: 600px) {
    .song-list-row {
        grid-template-columns: 28px 44px 1fr;
    }
    .song-list-row__right { display: none; }
    .song-list-row__img { width: 44px; height: 44px; }
    .song-list-row__img-placeholder {
        width: 44px;
        height: 44px;
    }
    .song-list-header { display: none; }
}

/* ============================================================
   BA) SONG COMPACT — Vista C (cancionero / por género)
   ============================================================ */
.song-compact {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 0.5px solid transparent;
}
.song-compact:hover {
    background: var(--bg-surface);
    border-color: var(--border);
}
.song-compact__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.song-compact__img-placeholder {
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.song-compact__body {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}
.song-compact__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.song-compact:hover .song-compact__title {
    color: var(--accent);
}
.song-compact__sub {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.song-compact__dot {
    color: var(--border-med);
}
.song-compact__right {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}
.song-compact__instruments {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.song-compact__pill {
    font-family: var(--f-mono);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--t3);
    border: 0.5px solid var(--border);
}
.song-compact__diff {
    font-family: var(--f-mono);
    font-size: 10px;
}
.song-compact__diff--easy { color: var(--green); }
.song-compact__diff--mid  { color: var(--accent); }
.song-compact__diff--hard { color: var(--red); }

.song-compact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 600px) {
    .song-compact {
        grid-template-columns: 44px 1fr;
    }
    .song-compact__right { display: none; }
    .song-compact__img { width: 44px; height: 44px; }
    .song-compact__img-placeholder {
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   BB) SONGS INDEX — pagina /cancionero, divider por artista
   ============================================================ */
.songs-index {
    padding: 32px 0 80px;
}
.artist-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 10px;
}
.songs-index .artist-divider:first-child {
    margin-top: 0;
}
.artist-divider__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.artist-divider__name:hover {
    color: var(--accent);
}
.artist-divider__line {
    flex: 1;
    height: 0;
    border-top: 0.5px solid var(--border);
}
.artist-divider__count {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--t3);
    white-space: nowrap;
}

.artist-songs-section {
    padding: 32px 0 16px;
}
.artist-songs-section .section-hero__eyebrow {
    margin-bottom: 16px;
}

/* ============================================================
   BC) SEARCH MODAL — overlay full-screen, input, sugerencias,
   resultados live, hints de teclado.
   ============================================================ */

/* Trigger en navbar */
.navbar__search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: var(--bg-surface);
    font-family: var(--f-sans);
    font-size: 13px;
    color: var(--t3);
    cursor: pointer;
    transition: var(--trans);
}
.navbar__search-trigger:hover {
    border-color: var(--accent);
    color: var(--t1);
}
.navbar__search-text {
    line-height: 1;
}
.navbar__search-kbd {
    font-family: var(--f-mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--t3);
    border: 0.5px solid var(--border-med);
    line-height: 1;
}
@media (max-width: 900px) {
    .navbar__search-text,
    .navbar__search-kbd {
        display: none;
    }
    .navbar__search-trigger {
        padding: 8px;
        border-radius: 50%;
    }
}

/* Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 24px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    overflow-y: auto;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
body.search-open {
    overflow: hidden;
}

.search-overlay__close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.70);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
    font-family: var(--f-sans);
    z-index: 510;
}
.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.search-modal-box {
    width: 100%;
    max-width: 660px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}
.search-modal-box:focus-within {
    border-color: var(--accent);
}
.search-modal-box__icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: var(--t3);
    flex-shrink: 0;
}
.search-modal-box__icon .icon {
    width: 18px;
    height: 18px;
}
.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 18px;
    color: var(--t1);
    padding: 18px 0;
    caret-color: var(--accent);
}
.search-modal-input::placeholder {
    color: var(--t3);
}
.search-modal-box__clear {
    padding: 0 16px;
    cursor: pointer;
    color: var(--t3);
    background: none;
    border: none;
    font-size: 18px;
    transition: color 0.15s ease;
    display: none;
    line-height: 1;
}
.search-modal-box__clear.visible {
    display: block;
}
.search-modal-box__clear:hover {
    color: var(--t1);
}

.search-modal-suggestions {
    width: 100%;
    max-width: 660px;
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.search-modal-sugg {
    font-family: var(--f-mono);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}
.search-modal-sugg:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.90);
}

.search-modal-results {
    width: 100%;
    max-width: 660px;
    margin-top: 14px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: 14px;
    display: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.30);
    max-height: 60vh;
    overflow-y: auto;
    flex-shrink: 0;
}
.search-modal-results.visible {
    display: block;
}
.search-modal-results::-webkit-scrollbar {
    width: 4px;
}
.search-modal-results::-webkit-scrollbar-track {
    background: transparent;
}
.search-modal-results::-webkit-scrollbar-thumb {
    background: var(--border-med);
    border-radius: 2px;
}

.search-modal-section {
    border-bottom: 0.5px solid var(--border);
}
.search-modal-section:last-child {
    border-bottom: none;
}
.search-modal-section__header {
    padding: 10px 16px 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--t3);
}

.search-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.12s ease;
    text-decoration: none;
    color: inherit;
}
.search-modal-item:hover,
.search-modal-item.active {
    background: var(--bg-surface);
}
.search-modal-item__img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.search-modal-item__img--circle {
    border-radius: 50%;
}
.search-modal-item__placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.search-modal-item__placeholder--circle {
    border-radius: 50%;
}
.search-modal-item__info {
    flex: 1;
    min-width: 0;
}
.search-modal-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-modal-item__title mark {
    background: none;
    color: var(--accent);
    font-weight: 600;
}
.search-modal-item__sub {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-modal-item__type {
    font-family: var(--f-mono);
    font-size: 9px;
    color: var(--t3);
    flex-shrink: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.search-modal-item__badge {
    font-family: var(--f-mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--accent-subtle);
    color: var(--accent);
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.search-modal-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
    border-top: 0.5px solid var(--border);
    transition: background 0.12s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.search-modal-more:hover {
    background: var(--bg-surface);
}

.search-modal-empty {
    padding: 32px 16px;
    text-align: center;
    display: none;
}
.search-modal-empty.visible {
    display: block;
}
.search-modal-empty__icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.search-modal-empty__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 4px;
}
.search-modal-empty__sub {
    font-size: 12px;
    color: var(--t3);
}

.search-modal-hints {
    margin-top: 14px;
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}
.search-modal-hints span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.30);
    letter-spacing: 0.04em;
}
.search-modal-hints kbd {
    background: rgba(255, 255, 255, 0.10);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--f-mono);
}

/* ============================================================
   BD) SEARCH RESULTS PAGE — /buscar
   ============================================================ */
.search-results-page {
    padding: 40px 0 80px;
}

.search-results-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid var(--border);
}

.search-results-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.search-results-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.search-results-input-wrap:focus-within {
    border-color: var(--accent);
}
.search-results-input-wrap .icon {
    margin: 0 12px;
    color: var(--t3);
    flex-shrink: 0;
}
.search-results-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--f-sans);
    font-size: 15px;
    color: var(--t1);
    padding: 12px 0;
    caret-color: var(--accent);
}
.search-results-input::placeholder {
    color: var(--t3);
}
.search-results-btn {
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--t1);
    color: var(--bg);
    border: none;
    font-family: var(--f-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.search-results-btn:hover {
    opacity: 0.85;
}

.search-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.search-results-count {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.04em;
}
.search-results-count strong {
    color: var(--t1);
    font-weight: 500;
}

.search-results-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.search-results-tab {
    font-family: var(--f-mono);
    font-size: 11px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: transparent;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}
.search-results-tab.on {
    background: var(--t1);
    color: var(--bg);
    border-color: transparent;
}
.search-results-tab:hover:not(.on) {
    color: var(--t1);
    border-color: var(--border-med);
}

.search-results-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.search-results-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid var(--border);
}
.search-results-section__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--t1);
    letter-spacing: -0.01em;
}
.search-results-section__count {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.search-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.search-artists-grid .artist-card__photo--placeholder {
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--t3);
}

.search-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.search-album-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}
.search-album-card:hover {
    border-color: var(--border-med);
}
.search-album-card__img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}
.search-album-card__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.search-album-card__info {
    min-width: 0;
}
.search-album-card__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}
.search-album-card__title mark {
    background: none;
    color: var(--accent);
    font-weight: 600;
}
.search-album-card:hover .search-album-card__title {
    color: var(--accent);
}
.search-album-card__meta {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t3);
    margin-top: 3px;
}

mark {
    background: none;
    color: var(--accent);
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 64px 24px;
}
.search-no-results__icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.search-no-results__title {
    font-size: 20px;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.search-no-results__sub {
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 24px;
}
.search-no-results__tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.search-no-results__tag {
    font-family: var(--f-mono);
    font-size: 11px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: var(--bg-surface);
    color: var(--t2);
    text-decoration: none;
    transition: all 0.15s ease;
}
.search-no-results__tag:hover {
    color: var(--t1);
    border-color: var(--accent);
}

/* ============================================================
   BG) Sección Historias — listado /historias y artículo show
   ============================================================ */

/* Listado: cards horizontales en grid de 2 columnas (1 en mobile) */
.editorial-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .editorial-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Empty state cuando no hay artículos publicados */
.editorial-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
}

.editorial-empty__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--t2);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.editorial-empty__text {
    font-size: 15px;
    color: var(--t3);
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Artículo individual ── */

.article-page {
    --article-max-width: 720px;
}

/* Hero con imagen full-width + progressive blur (estilo Apple TV) */
.article-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    margin-bottom: 0;
    isolation: isolate;
}

.article-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.article-hero__blur-1,
.article-hero__blur-2,
.article-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-hero__blur-1 {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    mask-image: linear-gradient(to top, black 0%, black 30%, transparent 70%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 70%);
}

.article-hero__blur-2 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to top, black 0%, black 15%, transparent 50%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 15%, transparent 50%);
}

.article-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

.article-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 48px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #FFFFFF;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-hero__instrument {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.article-hero__song {
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
}

.article-hero__title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: var(--article-max-width);
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.article-hero__subtitle {
    font-size: clamp(15px, 1.6vw, 19px);
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 22px;
    max-width: var(--article-max-width);
    font-weight: 300;
}

.article-hero__byline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
}

.article-hero__sep {
    opacity: 0.5;
}

/* Cuerpo del artículo: ancho restringido para legibilidad */
.article-body {
    max-width: var(--article-max-width);
    padding-top: 56px;
    padding-bottom: 32px;
}

.article-body__excerpt {
    font-size: 19px;
    line-height: 1.55;
    color: var(--t1);
    font-weight: 400;
    margin: 0 0 32px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-style: italic;
}

.article-body__content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--t1);
}

.article-body__content p {
    margin: 0 0 22px;
}

.article-body__content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--t1);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
}

.article-body__content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--t1);
    margin: 32px 0 12px;
}

.article-body__content blockquote {
    border-left: 3px solid var(--accent);
    margin: 24px 0;
    padding: 8px 0 8px 20px;
    font-style: italic;
    color: var(--t2);
    font-size: 18px;
    line-height: 1.55;
}

.article-body__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body__content a:hover {
    color: var(--accent-hover);
}

.article-body__content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

/* Footer del artículo */
.article-footer {
    max-width: var(--article-max-width);
    padding-top: 32px;
    padding-bottom: 64px;
    border-top: 0.5px solid var(--border);
    margin-top: 32px;
}

.article-footer__cta {
    font-size: 15px;
    color: var(--t2);
    margin: 0 0 24px;
    line-height: 1.5;
}

.article-footer__cta strong {
    color: var(--t1);
    font-weight: 600;
}

.article-footer__link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: var(--trans);
}

.article-footer__link:hover {
    color: var(--accent-hover);
}

.article-footer__back {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: var(--trans);
}

.article-footer__back:hover {
    color: var(--accent);
}

/* ============================================================
   BH) Sección "Aprendé a tocar" en /historias/{slug}
   ============================================================ */

/* Sección "Aprendé a tocar" — visualmente distinta del cuerpo del
   artículo: fondo de color suave, sin border-top, padding generoso.
   Da la sensación de "ya terminó la lectura, esto es bonus". */
.article-related {
    margin-top: 64px;
    padding: 56px 0 64px;
    background: var(--bg-surface);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    /* Romper el max-width del .container padre para hacer fondo
       full-width — pero mantener el contenido centrado dentro. */
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 24px;
    padding-right: 24px;
}

.article-related__head {
    text-align: center;
    margin-bottom: 36px;
}

.article-related__title {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    color: var(--t1);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.article-related__sub {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.5;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.article-related__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

/* Cuando hay solo UNA card, centrarla con max-width acotado (no
   estirarla a todo el ancho) y posicionarla en el centro. */
.article-related__grid:has(> :only-child) {
    max-width: 480px;
    grid-template-columns: 1fr;
    justify-content: center;
}

.related-song-card {
    display: grid;
    grid-template-columns: 64px 1fr 24px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--trans);
}

.related-song-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.related-song-card__cover {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-song-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.4s ease;
}

.related-song-card:hover .related-song-card__cover img {
    filter: grayscale(0%);
}

.related-song-card__cover-icon {
    font-size: 22px;
    opacity: 0.55;
}

.related-song-card__body {
    min-width: 0;
}

.related-song-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
    margin: 0 0 2px;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.related-song-card:hover .related-song-card__title {
    color: var(--accent);
}

.related-song-card__artist {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    margin: 0 0 6px;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-song-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 10px;
}

.related-song-card__diff {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
}

.related-song-card__diff.diff-easy {
    background: var(--green-sub);
    color: var(--green);
}

.related-song-card__diff.diff-mid {
    background: var(--accent-subtle);
    color: var(--accent);
}

.related-song-card__diff.diff-hard {
    background: var(--red-sub);
    color: var(--red);
}

.related-song-card__dur {
    color: var(--t3);
    letter-spacing: 0.04em;
}

.related-song-card__arrow {
    font-size: 16px;
    color: var(--t3);
    transition: var(--trans);
}

.related-song-card:hover .related-song-card__arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ============================================================
   BI) /hallazgo — listado e individual
   ============================================================ */

/* ── Listado: agrupado por año ── */

.discoveries-year {
    margin-bottom: 56px;
}

.discoveries-year:last-child {
    margin-bottom: 0;
}

.discoveries-year__heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--t3);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--border);
    letter-spacing: 0.04em;
}

.discoveries-year__num {
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: 0.02em;
}

.discoveries-year__count {
    font-size: 11px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.discoveries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card: imagen B&W cuadrada arriba + body editorial debajo */
.discovery-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--trans);
}

.discovery-card:hover {
    border-color: var(--border-med);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.discovery-card__cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-surface);
}

.discovery-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.discovery-card:hover .discovery-card__cover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.discovery-card__week {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 9px;
    border-radius: var(--radius-pill);
}

.discovery-card__type {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 9px;
    border-radius: var(--radius-pill);
}

.discovery-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discovery-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--t1);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.discovery-card:hover .discovery-card__title {
    color: var(--accent);
}

.discovery-card__meta {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin: 0;
}

.discovery-card__quote {
    font-size: 13px;
    font-style: italic;
    color: var(--t2);
    line-height: 1.5;
    margin: 4px 0 0;
}

/* ── Detalle: 2 columnas + cita destacada + CTAs ── */

.discovery-page {
    padding-top: 24px;
    padding-bottom: 64px;
}

.discovery-detail {
    max-width: 1100px;
}

.discovery-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

@media (max-width: 800px) {
    .discovery-detail__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.discovery-detail__cover-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.discovery-detail__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

.discovery-detail__cover-wrap:hover .discovery-detail__cover {
    filter: grayscale(0%);
}

.discovery-detail__week {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
}

.discovery-detail__type {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.discovery-detail__body {
    padding-top: 8px;
}

.discovery-detail__label {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

.discovery-detail__pretitle {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.discovery-detail__title {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 600;
    color: var(--t1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.discovery-detail__subtitle {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t2);
    letter-spacing: 0.04em;
    margin: 0 0 18px;
}

.discovery-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.discovery-detail__tag {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--t2);
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
}

.discovery-detail__divider {
    height: 0.5px;
    background: var(--border);
    margin: 24px 0;
}

.discovery-detail__quote {
    font-family: var(--f-sans);
    font-size: 19px;
    font-style: italic;
    line-height: 1.55;
    color: var(--t1);
    margin: 0 0 12px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.discovery-detail__quote-author {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.04em;
    margin: 0;
    padding-left: 20px;
}

/* Cuerpo opcional (content_html) */
.discovery-detail__content {
    max-width: 720px;
    margin: 48px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--t1);
    padding: 32px 0;
    border-top: 0.5px solid var(--border);
}

.discovery-detail__content p { margin: 0 0 22px; }

.discovery-detail__content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--t1);
    margin: 32px 0 14px;
    letter-spacing: -0.01em;
}

.discovery-detail__content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--t1);
    margin: 28px 0 10px;
}

.discovery-detail__content blockquote {
    border-left: 3px solid var(--accent);
    margin: 22px 0;
    padding: 8px 0 8px 18px;
    font-style: italic;
    color: var(--t2);
    font-size: 17px;
}

.discovery-detail__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.discovery-detail__content a:hover { color: var(--accent-hover); }

/* CTAs externos — botones grandes */
.discovery-detail__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 48px 0 32px;
    padding: 32px 0;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.discovery-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--trans);
    border: 0.5px solid var(--border-med);
    background: var(--bg-card);
    color: var(--t1);
}

.discovery-cta:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    color: var(--accent);
    transform: translateY(-1px);
}

.discovery-cta--yt:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: #FF0000;
    color: #CC0000;
}

.discovery-cta--sp:hover {
    background: rgba(30, 215, 96, 0.10);
    border-color: #1DB954;
    color: #14843C;
}

/* "Aprendelo en Doresol" — variante dorada destacada */
.discovery-cta--ds {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.discovery-cta--ds:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #FFFFFF;
}

.discovery-detail__back {
    text-align: center;
    margin-top: 24px;
}

/* ============================================================
   AZ — Sprint 9: Premios + datos extendidos + traducciones
   ============================================================ */

/* ── Badges de premios en hero de canción ── */
.song-award-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.song-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
}
.song-award-badge--nominated {
    opacity: 0.75;
}
.song-award-badge__icon { font-size: 14px; }
.song-award-badge__year {
    font-family: var(--f-mono);
    font-size: 10px;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

/* ── Premios en página de artista ── */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 8px 0 24px;
}

.award-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--trans);
}
.award-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.award-card--nominated {
    background: var(--bg-surface);
    opacity: 0.85;
}
.award-card--lifetime {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.award-card__icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
}

.award-card__body { flex: 1; min-width: 0; }

.award-card__name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
}
.award-card__year {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.award-card__category {
    margin: 0;
    font-size: 12px;
    color: var(--t2);
    line-height: 1.4;
}

.award-card__badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.award-card__badge--nominated {
    background: var(--bg-surface2);
    color: var(--t3);
}
.award-card__badge--lifetime {
    background: var(--accent);
    color: #FFFFFF;
}

/* ── Miembros de banda + sellos + influencias (pills) ── */
.artist-members {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.artist-member {
    padding: 6px 0;
    font-size: 14px;
    color: var(--t1);
    border-bottom: 0.5px solid var(--border);
}
.artist-member:last-child { border-bottom: none; }

.artist-member__name { font-weight: 600; }
.artist-member__role,
.artist-member__years {
    color: var(--t3);
    font-weight: 400;
    font-family: var(--f-mono);
    font-size: 12px;
}

.artist-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 24px;
}

.artist-tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--t2);
    transition: var(--trans);
}
.artist-tag-pill:hover {
    border-color: var(--border-med);
    color: var(--t1);
}
.artist-tag-pill--label {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}

/* Influencias como mini-cards con foto del artista. Si la
   persona existe en BD, viene como <a> clickeable a su perfil
   con su foto. Si no existe, placeholder con iniciales. */
.influence-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 24px;
}

.influence-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--t1);
    text-decoration: none;
    transition: var(--trans);
}
.influence-card--linked {
    cursor: pointer;
}
.influence-card--linked:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.influence-card__photo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-position: center;
    background-size: cover;
    background-color: var(--bg-surface2);
    border: 0.5px solid var(--border-med);
}

.influence-card__photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--bg-surface2) 0%, var(--bg-surface) 100%);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.influence-card__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
}
.influence-card--linked:hover .influence-card__name {
    color: var(--accent);
}

/* ── Social links del artista ── */
.artist-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 24px;
}

.artist-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    color: var(--t1);
    text-decoration: none;
    transition: var(--trans);
}
.artist-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.artist-social-link--instagram:hover { color: #E4405F; border-color: #E4405F; }
.artist-social-link--twitter:hover   { color: #000000; }

/* ── Créditos detallados de canción ── */
.song-credits {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.song-credit-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
}
.song-credit-row:last-child { border-bottom: none; }

.song-credit-row__role {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--t3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.song-credit-row__names {
    color: var(--t1);
}

/* ── Premios completos en footer de canción ── */
.song-awards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-award-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg-surface);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
}

.song-award-row__icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.song-award-row__body { flex: 1; min-width: 0; }

.song-award-row__name {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
}
.song-award-row__year,
.song-award-row__status {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--t3);
    letter-spacing: 0.04em;
}

.song-award-row__category {
    margin: 0;
    font-size: 11px;
    color: var(--t2);
    font-style: italic;
}

/* ── Toggle de traducción dentro del lyric mode switch ── */
.lyric-mode-btn--translation {
    /* Hereda todo el styling del botón normal. El icono 🌐
       ya identifica que es modo traducción. */
}

.chordpro--translation {
    padding-top: 8px;
}

.chordpro__translation-note {
    display: block;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: var(--accent-subtle);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--t2);
    font-style: italic;
}

/* ─── Bandera de idioma en cards de canción ────────────────── */
/* Pequeño emoji bandera al lado del título de la canción.
   Para identificar visualmente el idioma original de la letra
   (es/gn/en/pt/de/...). */
.song-lang-flag {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85em;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.9;
}
.song-meta-item--lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ─── Filtro de idiomas en /canciones ───────────────────────── */
/* Chips arriba del listado para filtrar por idioma de la letra.
   El chip activo lleva la clase `on`. Filtro client-side via
   `data-language` en cada `.song-compact`. */
.songs-lang-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 0.5px solid var(--border);
}
.songs-lang-chip {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    background: var(--bg-card);
    color: var(--t2);
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.songs-lang-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.songs-lang-chip.on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

/* ============================================================
   ERROR PAGES (404 / 403 / 500)
   ─────────────────────────────────────────────────────────────
   Vista on-brand para los códigos de error. Usa el layout
   main.php, así que vive dentro de .container/.main estándar.
   Mobile-first como todo el resto, escala a desktop.
   Compatible con dark mode (todas las vars son CSS custom props).
   ============================================================ */

.error-page-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

@media (min-width: 768px) {
    .error-page-section {
        padding: 96px 0 128px;
    }
}

.error-page-card {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 0 16px;
}

.error-page__eyebrow {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.error-page__code {
    font-family: var(--f-mono);
    font-size: clamp(80px, 14vw, 140px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--t1);
    margin: 0 0 8px;
    /* Sutil presencia dorada al borde */
    background: linear-gradient(180deg, var(--t1) 0%,
                                          var(--t1) 70%,
                                          var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.error-page__title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    line-height: 1.25;
}

.error-page__message {
    font-size: 15px;
    color: var(--t2);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.error-page__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

@media (min-width: 480px) {
    .error-page__cta {
        flex-direction: row;
        gap: 12px;
    }
}

.error-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--trans);
    min-width: 180px;
    border: 0.5px solid transparent;
}

@media (min-width: 480px) {
    .error-page__btn {
        min-width: 0;
    }
}

.error-page__btn--primary {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}
.error-page__btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.error-page__btn--ghost {
    background: transparent;
    color: var(--t1);
    border-color: var(--border-med);
}
.error-page__btn--ghost:hover {
    background: var(--bg-surface);
    border-color: var(--border-str);
}

/* Lista de sugerencias (404 cuando es resource not found) */
.error-page__suggestions {
    margin-top: 24px;
    padding-top: 32px;
    border-top: 0.5px solid var(--border);
}

.error-page__suggestions-label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.error-page__suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.error-page__suggestion {
    border-bottom: 0.5px solid var(--border);
}
.error-page__suggestion:last-child {
    border-bottom: none;
}

.error-page__suggestion-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--t1);
    transition: var(--trans);
}
.error-page__suggestion-link:hover {
    background: var(--bg-surface);
    color: var(--accent);
}

.error-page__suggestion-title {
    font-size: 14px;
    font-weight: 500;
}

.error-page__suggestion-subtitle {
    font-size: 12px;
    color: var(--t3);
}

/* ============================================================
   ACCOUNT PAGE (/mi-cuenta)
   ─────────────────────────────────────────────────────────────
   Dashboard del usuario logueado. Por ahora solo header + selector
   de idioma. Layout simple, mobile-first, sin colores hardcoded
   (todas las vars son CSS custom props → dark mode automático).
   ============================================================ */

.account-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 96px;
}

@media (min-width: 768px) {
    .account-page {
        padding: 48px 24px 128px;
    }
}

/* Header (avatar + nombre + email) */
.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 0;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 32px;
}

@media (min-width: 600px) {
    .account-header {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.account-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-family: var(--f-sans);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.account-header__info {
    flex: 1;
    min-width: 0;
}

.account-header__name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--t1);
    margin: 0 0 4px;
}

.account-header__email {
    font-size: 14px;
    color: var(--t2);
    margin: 0 0 8px;
    font-family: var(--f-mono);
    word-break: break-all;
}

.account-header__provider {
    font-size: 12px;
    color: var(--t3);
    margin: 0;
}

.account-header__provider strong {
    color: var(--t2);
    font-weight: 500;
}

/* Sección dentro del dashboard */
.account-section {
    padding: 24px 0;
    border-bottom: 0.5px solid var(--border);
}

.account-section:last-child {
    border-bottom: none;
}

.account-section__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.account-section__desc {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.6;
    margin: 0 0 20px;
}

.account-section__hint {
    font-size: 12px;
    color: var(--t3);
    margin: 16px 0 0;
    line-height: 1.5;
}

/* Selector de idioma (radios estilizados como tarjetas) */
.account-locale-form {
    margin: 0;
}

.account-locale-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

@media (min-width: 480px) {
    .account-locale-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.account-locale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px;
    border: 0.5px solid var(--border-med);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--trans);
    text-align: center;
}

.account-locale-option:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.account-locale-option--current {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.account-locale-option__input {
    /* Visualmente oculto pero accesible por keyboard */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.account-locale-option__code {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.account-locale-option__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
}

.account-locale-submit {
    width: 100%;
}

@media (min-width: 480px) {
    .account-locale-submit {
        width: auto;
        min-width: 180px;
    }
}

/* ============================================================
   MARQUEE — franja editorial debajo del navbar
   ─────────────────────────────────────────────────────────────
   Brandbook v1.0: scroll continuo de wordmark + tagline + datos
   del sitio. Hoy se renderea sólo en el home, debajo del hero.
   Animación CSS pura, respeta prefers-reduced-motion.
   ============================================================ */

.marquee {
    overflow: hidden;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    padding: 22px 0;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    gap: 56px;
    /* 50% porque el contenido está duplicado: a -50% el track
     * "vuelve" exactamente al inicio del segundo set sin saltos. */
    animation: marquee-scroll 40s linear infinite;
    white-space: nowrap;
    font-family: var(--f-sans);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--t2);
    width: max-content;
}

.marquee-item {
    flex-shrink: 0;
}

.marquee-track i {
    font-style: normal;
    color: var(--accent);
    font-weight: 400;
}

.marquee-dot {
    color: var(--accent);
    margin: 0 0.25em;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Accesibilidad: usuarios con prefers-reduced-motion ven el track
 * estático. El brandbook no exige el movimiento, es decorativo. */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        /* Cuando se detiene, lo dejamos en posición visible inicial
         * pero levemente offset para que se vean ambos hemisferios
         * del track duplicado en su contexto real. */
        transform: translateX(-12px);
    }
}

/* Mobile: bajar tamaño y velocidad para que sea legible. */
@media (max-width: 720px) {
    .marquee {
        padding: 16px 0;
    }
    .marquee-track {
        font-size: 20px;
        gap: 40px;
        animation-duration: 30s;
    }
}

/* ============================================================
   PHOTO TREATMENTS — Brandbook v1.0 §08.b
   ─────────────────────────────────────────────────────────────
   Tres tratamientos de imagen documentados:
     .photo-bw      → blanco y negro editorial (default opcional)
     .photo-duotone → duotono ink + gold (mix-blend layered)
     .photo-accent  → B&N + acento dorado lateral 4px

   Uso (vistas):
     <figure class="photo-duotone">
         <img src="..." alt="...">
     </figure>

   El wrapper debe tener position: relative para que ::before
   funcione. La imagen DENTRO debe ser <img> directo (no wrapped
   en otro div), porque el efecto depende de mix-blend-mode con
   el padre.
   ============================================================ */

/* Wrapper común — se aplican estilos compartidos a todos los
 * tratamientos para no repetir reglas. */
.photo-bw,
.photo-duotone,
.photo-accent {
    position: relative;
    overflow: hidden;
}

.photo-bw img,
.photo-duotone img,
.photo-accent img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Tratamiento 1: B/N puro ─────────────────────────────── */
.photo-bw img {
    filter: grayscale(1) contrast(1.06) brightness(0.95);
}

/* ─── Tratamiento 2: Duotono ink + gold ───────────────────── */
.photo-duotone {
    background: var(--accent);
}
.photo-duotone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--t1);   /* ink */
    mix-blend-mode: lighten;
    z-index: 0;
}
.photo-duotone img {
    position: relative;
    filter: grayscale(1) contrast(1.15) brightness(1.05);
    mix-blend-mode: multiply;
    z-index: 1;
}
/* Dark mode: el ink ya es claro vs el bg oscuro, el efecto cambia.
 * Bajamos el contrast para que no quede plano y subimos brightness
 * para que el dorado no domine. */
[data-theme="dark"] .photo-duotone img {
    filter: grayscale(1) contrast(1.05) brightness(1.15);
}

/* ─── Tratamiento 3: B/N + acento dorado lateral ──────────── */
.photo-accent img {
    filter: grayscale(1) contrast(1.05);
}
.photo-accent::after {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background: var(--accent);
    z-index: 2;
}

/* Cap opt-in para overlay de texto sobre cualquiera de los tres.
 * Patrón del brandbook: degradado oscuro inferior para legibilidad
 * de captions o títulos sobre la imagen. */
.photo-bw.with-caption::before,
.photo-accent.with-caption::before,
.photo-duotone.with-caption::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 35%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* ════════════════════════════════════════════════════════════
   DISCOVER — /descubrir (Sprint 6 Bloque D)
   Progressive blur Apple TV+ style con IBM Plex y dorado #C8A96E.
   Default light (--bg = #F8F7F4); [data-theme="dark"] override.
   ════════════════════════════════════════════════════════════ */

/* ── Hero a sangre ── */

.ds-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 16px;
}

.ds-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
    will-change: transform;
}

.ds-hero:hover .ds-hero-img {
    transform: scale(1.04);
}

.ds-hero-fog {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Default = LIGHT mode. Fog hacia bg cream. */
.ds-hero-fog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 25%,
        rgba(248, 247, 244, 0.15) 45%,
        rgba(248, 247, 244, 0.75) 68%,
        rgba(248, 247, 244, 0.96) 84%,
        rgba(248, 247, 244, 1) 100%
    );
}
.ds-hero-fog::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(248, 247, 244, 0.35) 0%,
        transparent 35%
    );
}

/* DARK mode: fog hacia bg ink. */
[data-theme="dark"] .ds-hero-fog::before {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 25%,
        rgba(15, 15, 13, 0.12) 45%,
        rgba(15, 15, 13, 0.60) 65%,
        rgba(15, 15, 13, 0.92) 82%,
        rgba(15, 15, 13, 1) 100%
    );
}
[data-theme="dark"] .ds-hero-fog::after {
    background: linear-gradient(
        to right,
        rgba(15, 15, 13, 0.40) 0%,
        transparent 35%
    );
}

.ds-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px 28px;
}

.ds-hero-tag {
    display: block;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.ds-hero-title {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--t1);
    margin: 0 0 6px;
}
[data-theme="dark"] .ds-hero-title {
    color: #EEECEA;
}

.ds-hero-desc {
    font-size: 13px;
    color: var(--t2);
    margin: 0 0 18px;
    max-width: 60ch;
}
[data-theme="dark"] .ds-hero-desc {
    color: rgba(238, 236, 234, 0.50);
}

.ds-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background 0.18s;
}
.ds-hero-btn:hover {
    background: var(--accent-hover);
}

/* ── Pills de tipo ── */

.ds-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 24px 0 0;
}

.ds-pill {
    font-family: var(--f-sans);
    font-size: 12px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--border-med);
    color: var(--t2);
    background: transparent;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}
.ds-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.ds-pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

/* ── Section header ── */

.ds-section {
    margin-top: 32px;
}

.ds-section-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.ds-section-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--t1);
    margin: 0;
}

.ds-section-count {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    margin-left: 6px;
    font-weight: 400;
}

.ds-section-link {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.18s;
    text-transform: uppercase;
    white-space: nowrap;
}
.ds-section-link:hover {
    color: var(--accent);
}

/* ── Grid de collection cards ── */

.ds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.ds-card {
    display: block;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.ds-card:hover {
    transform: translateY(-3px);
}

.ds-card-img {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0;
    background: var(--bg-surface);
}

.ds-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(70%) contrast(1.05);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.ds-card:hover .ds-card-img img {
    filter: grayscale(10%) contrast(1.05);
    transform: scale(1.04);
}

/* Progressive blur en cada card.
   Light por default (fog hacia cream); dark override abajo. */
.ds-card-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(248, 247, 244, 0.55) 58%,
        rgba(248, 247, 244, 0.92) 82%,
        rgba(248, 247, 244, 1) 100%
    );
    pointer-events: none;
}
[data-theme="dark"] .ds-card-fog {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(10, 10, 8, 0.55) 58%,
        rgba(10, 10, 8, 0.92) 82%,
        rgba(10, 10, 8, 1) 100%
    );
}

/* Card sin imagen → gradiente del color de la collection. */
.ds-card-img.is-gradient img {
    display: none;
}
.ds-card-img.is-gradient .ds-card-fog {
    background: linear-gradient(
        135deg,
        var(--card-color, #1E293B) 0%,
        color-mix(in srgb, var(--card-color, #1E293B) 70%, #000 30%) 100%
    );
}

.ds-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 11px 13px;
}

.ds-card-type {
    display: block;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
}

.ds-card-name {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--t1);
    line-height: 1.25;
    margin-bottom: 3px;
}
[data-theme="dark"] .ds-card-name,
.ds-card-img.is-gradient .ds-card-name {
    color: #EEECEA;
}

.ds-card-count {
    display: block;
    font-size: 10px;
    color: var(--t3);
    font-family: var(--f-mono);
}
[data-theme="dark"] .ds-card-count,
.ds-card-img.is-gradient .ds-card-count {
    color: rgba(238, 236, 234, 0.50);
}

/* ── Vista detalle /descubrir/{slug} ── */

.ds-detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 3/1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 16px 0 28px;
}

.ds-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(50%);
}

.ds-detail-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 20%,
        rgba(248, 247, 244, 0.25) 45%,
        rgba(248, 247, 244, 0.80) 72%,
        rgba(248, 247, 244, 1) 100%
    );
}
[data-theme="dark"] .ds-detail-fog {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 20%,
        rgba(15, 15, 13, 0.25) 45%,
        rgba(15, 15, 13, 0.80) 72%,
        rgba(15, 15, 13, 1) 100%
    );
}

.ds-detail-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px 28px;
}

.ds-detail-tag {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.ds-detail-title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--t1);
    margin: 0 0 4px;
    line-height: 1.1;
}
[data-theme="dark"] .ds-detail-title {
    color: #EEECEA;
}

.ds-detail-desc {
    font-size: 14px;
    color: var(--t2);
    margin: 0;
    max-width: 70ch;
}
[data-theme="dark"] .ds-detail-desc {
    color: rgba(238, 236, 234, 0.55);
}

/* ── Song list en detalle ── */

.ds-song-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ds-song-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 0.5px solid var(--border);
    text-decoration: none;
    color: var(--t1);
    transition: color 0.18s;
}
.ds-song-item:hover {
    color: var(--accent);
}
.ds-song-item:last-child {
    border-bottom: none;
}

.ds-song-num {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--t3);
    text-align: right;
}

.ds-song-info-title {
    font-size: 14px;
    font-weight: 400;
    color: inherit;
    display: block;
}
.ds-song-info-artist {
    font-size: 12px;
    color: var(--t3);
    display: block;
    margin-top: 1px;
}

.ds-song-meta {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
}

/* ── Related collections ── */

.ds-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* ── Empty state inline ── */

.ds-empty {
    padding: 28px 0;
    color: var(--t2);
    font-size: 14px;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    text-align: center;
}
