/* Propuesta «web-fable-50» · 15/11/2026 · no publicada.
   Un solo CSS. Tokens del panel 02, con el dorado ajustado a los contrastes del panel 07.
   Cortes: 600, 900 y 1200 px. Sin JavaScript todo se ve en su estado final. */
:root {
  /* Color: un negro, tres fondos claros, un dorado (valor claro u oscuro según el fondo) */
  --ink: #171719;
  --paper: #fff;
  --soft: #f5f5f7;
  --warm: #f1eeea;
  --text-2: #66666c;        /* 5,70 blanco · 5,24 gris · 4,93 beige */
  --line: #dedee1;
  --line-strong: #8a8a90;   /* bordes de controles: 3,43:1 */
  --gold: #7a6238;          /* 5,78 blanco · 5,31 gris · 5,00 beige */
  --focus: #7a6238;
  --tag-bg: var(--warm);
  --tag-ink: #5c4e39;
  --dgata: #2d424d;         /* azul de D'Gata: se conserva (decisión de Raúl) */

  /* Letra */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-hero: clamp(52px, 16.5vw, 96px);
  --t-display: clamp(44px, 5.3vw, 76px);
  --t-section: clamp(34px, 4.2vw, 60px);
  --t-quote: clamp(26px, 3.1vw, 44px);
  --t-title: clamp(24px, 2.4vw, 34px);
  --t-card: clamp(18px, 1.55vw, 22px);
  --t-lead: clamp(18px, 1.55vw, 22px);
  --t-body: 17px;
  --t-small: 15px;
  --t-caption: 13px;
  --measure: 640px;

  /* Espacio */
  --s-section: clamp(64px, 7.2vw, 104px);
  --s-block: clamp(48px, 5.5vw, 80px);
  --s-tight: clamp(32px, 3.6vw, 48px);
  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 40px);
  --gap: 24px;
  --header-h: 60px;

  /* Forma, sombra y movimiento */
  --r-panel: clamp(22px, 2vw, 28px);
  --r-card: 18px;
  --r-small: 10px;
  --r-pill: 999px;
  --shadow-card: 0 4px 18px rgba(20, 20, 24, .035);
  --shadow-object: 0 25px 50px rgba(51, 45, 37, .1);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 400ms;
}
@media (min-width: 900px) {
  :root { --header-h: 66px; --t-hero: clamp(78px, 8.2vw, 120px); }
}
/* Sobre fondo oscuro, los mismos papeles cambian de valor */
.on-dark {
  --gold: #c6ac80;          /* 8,20 sobre tinta · 4,81 sobre el azul de D'Gata */
  --focus: #c6ac80;
  --text-2: #c9c9ce;        /* 10,85 sobre tinta · 6,37 sobre el azul */
  --line: rgba(255, 255, 255, .16);
  --line-strong: #a3a3a8;
  color: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
html:has(.toc) { scroll-padding-top: calc(var(--header-h) + 76px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); }
.skip:focus { left: 16px; }
.proposal-note { background: var(--warm); color: var(--tag-ink); font-size: var(--t-caption); text-align: center; padding: 6px var(--gutter); }
.proposal-note a { font-weight: 500; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--s-section); }
.section--block { padding-block: var(--s-block); }
.section--soft { background: var(--soft); }
.section--flush-top { padding-top: 0; }
.stack { display: grid; gap: 20px; align-content: start; justify-items: start; }
.stack--sm { gap: 10px; }
.measure { max-width: var(--measure); }

/* Texto */
.eyebrow { font-size: var(--t-caption); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; line-height: 1.4; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--muted { color: var(--text-2); }
.dot { color: var(--gold); }
h1, .h1 { font-size: var(--t-display); line-height: .98; letter-spacing: -.045em; }
h2, .h2 { font-size: var(--t-section); line-height: 1; letter-spacing: -.042em; }
h3, .h3 { font-size: var(--t-title); line-height: 1.1; letter-spacing: -.03em; }
.card-title { font-size: var(--t-card); line-height: 1.3; letter-spacing: -.015em; font-weight: 700; }
.card-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.rows .card-title a, .event-rows .card-title a { position: relative; }
.rows .card-title a::after, .event-rows .card-title a::after { content: ""; position: absolute; inset: -11px 0; }   /* zona de toque de 44 px */
.index-table th a, .proposal-note a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.sub { font-size: var(--t-title); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--text-2); }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: var(--measure); }
.small { font-size: var(--t-small); line-height: 1.5; color: var(--text-2); }
.caption { font-size: var(--t-caption); line-height: 1.4; color: var(--text-2); }
.prose { display: grid; gap: 16px; max-width: var(--measure); }
.pending { display: inline-block; font-size: var(--t-caption); font-weight: 500; line-height: 1.3; padding: 3px 9px; border-radius: var(--r-small); border: 1px dashed var(--line-strong); color: var(--text-2); }
@media (max-width: 359px) { h1, .h1 { font-size: 38px; } }

/* Botones y enlaces */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: var(--t-small); font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur) ease, color var(--dur) ease;
}
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: var(--line-strong); }
.btn--small { min-height: 44px; padding: 0 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #3a3a3e; border-color: #3a3a3e; }
  .btn--light:hover { background: #e8e8ec; border-color: #e8e8ec; }
  .btn--ghost:hover { background: transparent; border-color: currentColor; }
}
.link {
  position: relative; font-size: var(--t-small); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur) ease;
}
.link::after { content: ""; position: absolute; inset: -11px -4px; }   /* zona de toque de 44 px */
.prose a, .small a, .lead a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .link:hover, .prose a:hover, .small a:hover, .lead a:hover { text-decoration-color: currentColor; }
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; font-size: var(--t-caption); font-weight: 500; line-height: 1; padding: 7px 11px; border-radius: var(--r-pill); background: var(--tag-bg); color: var(--tag-ink); text-decoration: none; }
a.tag { background: var(--ink); color: #fff; position: relative; }
a.tag::after { content: ""; position: absolute; inset: -9px -2px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-bottom: 1px solid rgba(0, 0, 0, .06); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: none; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: var(--t-small); text-decoration: none; color: #46464b; border-radius: var(--r-small); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.langs { display: none; gap: 2px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: var(--t-caption); font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--text-2); border-radius: var(--r-pill); }
.langs a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.site-header .btn { min-height: 44px; padding: 0 18px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur-fast) ease; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px; max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility 0s linear var(--dur-fast);
}
.menu-panel.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s; }
.menu-panel nav a { display: flex; align-items: center; min-height: 48px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel nav a[aria-current="page"] { color: var(--gold); }
.menu-panel .langs { display: flex; margin-top: 14px; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(23, 23, 25, .45); opacity: 0; visibility: hidden; transition: opacity var(--dur) ease, visibility 0s linear var(--dur); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) ease, visibility 0s; }
.no-js .menu-btn { display: none; }
.no-js .menu-panel { position: static; visibility: visible; opacity: 1; transform: none; }
@media (min-width: 900px) {
  .nav, .site-header .wrap > .langs { display: flex; }
  .menu-btn, .menu-panel, .scrim { display: none; }
}

/* Migas */
.crumbs { padding-top: 24px; font-size: var(--t-caption); color: var(--text-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.crumbs span { margin-inline: 6px; }

/* Portada: la foto actual (4751), entera y ampliada con ChatGPT (img/hero-4751-amp-*.webp): fondo, parte baja del instrumento y fachada generados; Raúl y el instrumento visible son la foto original.
   Nunca se recorta: en móvil va entera y el nombre debajo; en ordenador la caja guarda la proporción 2:1 de la imagen. */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-photo { display: block; }
.hero-photo img { width: 100%; height: auto; }
.hero .wrap { position: relative; z-index: 1; padding-block: 28px 40px; }
.hero h1 { font-size: var(--t-hero); line-height: .96; letter-spacing: -.059em; }
.hero h1 .sq { display: inline-block; width: .13em; height: .13em; margin-left: .05em; background: var(--gold); }
.hero .sub { color: #fff; margin-top: 14px; }
.hero .actions { margin-top: 26px; }
.hero .socials { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 14px; }
.hero .socials a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); color: var(--text-2); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.hero .credit { margin-top: 14px; font-size: var(--t-caption); color: #a3a3a8; }
@media (min-width: 900px) {
  .hero { display: grid; align-items: center; height: clamp(450px, 50vw, 820px); }
  .hero-photo { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 2 / 1; }
  .hero-photo img { width: 100%; height: 100%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 25, .94) 0%, rgba(23, 23, 25, .82) 30%, rgba(23, 23, 25, .35) 48%, rgba(23, 23, 25, 0) 58%); }
  .hero .wrap { padding-block: 0; }
  .hero .wrap > * { max-width: 46%; }
}
/* Móvil apaisado: el nombre cabe en la pantalla y la foto sigue entera */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { display: grid; align-items: center; height: calc(100svh - var(--header-h)); min-height: 280px; }
  .hero-photo { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 2 / 1; }
  .hero-photo img { width: 100%; height: 100%; }
  .hero .wrap { padding-block: 0; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 25, .94) 0%, rgba(23, 23, 25, .82) 30%, rgba(23, 23, 25, .35) 48%, rgba(23, 23, 25, 0) 58%); }
  .hero .wrap > * { max-width: 50%; }
  .hero h1 { font-size: 48px; }
  .hero .socials, .hero .credit { display: none; }
}

/* Alta de correo (maqueta: no envía nada) */
.signup { display: grid; gap: 10px; width: 100%; padding: 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.signup label { font-size: var(--t-card); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.signup input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 16px/1.2 var(--font); }
.signup .caption { color: #66666c; }
.signup .is-sent { color: var(--ink); font-weight: 500; }
/* Hueco de foto pendiente */
.photo-slot { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 16px; border-radius: var(--r-panel); border: 1px dashed var(--line-strong); background: var(--soft); text-align: center; }
.photo-slot--card { aspect-ratio: 3 / 2; border-radius: var(--r-small); }

/* Cita */
.quote { display: grid; gap: 18px; justify-items: start; }
.quote blockquote { font-size: var(--t-quote); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; max-width: 20em; text-wrap: balance; }
.quote .q { color: var(--gold); }
.quote figcaption { font-size: var(--t-small); color: var(--text-2); }
.quotes { display: grid; gap: var(--s-tight); }
.quotes .quote blockquote { font-size: var(--t-title); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Cabecera de sección con título y enlace */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: var(--s-tight); }
.head .stack { gap: 12px; }
.split { display: grid; gap: var(--s-tight); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--text { grid-template-columns: .75fr 1.25fr; } }

/* Vídeos */
.videos { display: grid; gap: 28px; }
@media (min-width: 600px) { .videos { grid-template-columns: repeat(2, 1fr); gap: var(--gap); } }
@media (min-width: 900px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-card { position: relative; display: grid; gap: 12px; align-content: start; }
.video-card .thumb { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--ink); }
.video-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.video-card .play { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.video-card .play::before { content: ""; margin-left: 3px; border: 8px solid transparent; border-left: 13px solid var(--ink); border-right: 0; }
.video-card a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
@media (hover: hover) and (pointer: fine) { .video-card:hover .thumb img { transform: scale(1.03); } }

/* Agenda */
.event-rows > li { display: grid; grid-template-columns: 96px 1fr; gap: 6px 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.event-rows > li:last-child { border-bottom: 1px solid var(--line); }
.event-rows .date { font-size: var(--t-small); line-height: 1.3; color: var(--text-2); font-variant-numeric: tabular-nums; }
.event-rows .date b { display: block; font-size: var(--t-title); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.on-dark .event-rows .date b { color: #fff; }
.event-rows .meta { font-size: var(--t-small); color: var(--text-2); margin-top: 4px; }
.event-rows .aside { grid-column: 2; }
@media (min-width: 900px) {
  .event-rows > li { grid-template-columns: 150px 1fr auto; align-items: center; gap: 24px; }
  .event-rows .aside { grid-column: auto; }
}
.page-hero { position: relative; background: var(--ink); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 25, .92) 12%, rgba(23, 23, 25, .35) 70%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(96px, 16vw, 200px) clamp(40px, 6vw, 72px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-size: var(--t-small); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.events { display: grid; gap: var(--gap); }
@media (min-width: 600px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .events { grid-template-columns: repeat(3, 1fr); } }
.event { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-card); overflow: hidden; background: var(--soft); scroll-margin-top: 12px; }
.event > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.event-body { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px; }
.event-body .when { font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.event-body p { font-size: var(--t-small); line-height: 1.5; }
.event-body .where { color: var(--text-2); }
.event:target { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Filas numeradas (Sobre mí en la portada, premios, prensa, repertorio) */
.rows > li { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows .num { font-size: var(--t-small); font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.rows .text { margin-top: 6px; max-width: var(--measure); }
.rows .meta { font-size: var(--t-small); color: var(--text-2); margin-top: 4px; }
.rows .tags { margin-top: 10px; }
.rows .aside { grid-column: 2; }
.rows img.logo { width: 72px; height: 72px; object-fit: contain; grid-column: 2; }
.rows--photo > li { grid-template-columns: 1fr; }
.rows--labels > li { grid-template-columns: 1fr; }
.rows--labels .aside { grid-column: auto; }   /* etiquetas de texto (Blog, Mi práctica…) no caben en 64 px */
.rows--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); }
@media (min-width: 600px) { .rows--photo > li { grid-template-columns: 220px 1fr; align-items: center; gap: 28px; } }
@media (min-width: 900px) {
  .rows > li { grid-template-columns: 110px 1fr auto; align-items: center; gap: 28px; }
  .rows .aside, .rows img.logo { grid-column: auto; }
  .rows--photo > li { grid-template-columns: 300px 1fr; gap: 48px; }
}

/* Paneles: uno oscuro y uno beige por página como mucho */
.panel { border-radius: var(--r-panel); padding: clamp(24px, 5vw, 64px); }
.panel--dark { background: var(--ink); }
.panel--warm { background: var(--warm); }
.panel--soft { background: var(--soft); }
.panel--dgata { background: var(--dgata); }
.kv > div { display: grid; grid-template-columns: minmax(96px, .5fr) 1fr; gap: 14px; padding-block: 12px; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.5; }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv { width: 100%; }

/* CD que asoma de la funda */
.cd { position: relative; width: min(100%, 420px); margin-inline: auto; padding-right: 13%; }
.cd img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-object); }
.cd::before { content: ""; position: absolute; right: 0; top: 6%; height: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #171719 0 7%, #d9d9de 7.5% 15%, #f4f4f6 15.5% 17%, #c9c9cf 17.5% 100%); box-shadow: var(--shadow-card); }

/* Portadas y tarjetas de la tienda */
.covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 600px) { .covers { grid-template-columns: repeat(3, 1fr); gap: 40px var(--gap); } }
@media (min-width: 900px) { .covers--4 { grid-template-columns: repeat(4, 1fr); } }
.score { position: relative; display: grid; gap: 4px; align-content: start; }
.score .cover { display: grid; place-items: center; padding: 12%; margin-bottom: 10px; background: var(--warm); border-radius: var(--r-card); }
.score .cover img { width: 100%; aspect-ratio: 509 / 720; object-fit: cover; box-shadow: var(--shadow-object); transition: transform var(--dur-slow) var(--ease); }
.score .card-title a, .video-card .card-title a { text-decoration: none; }
.score a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }   /* un solo enlace cubre la tarjeta */
.score .by, .score .data { font-size: var(--t-small); line-height: 1.4; color: var(--text-2); }
.score .price { font-size: var(--t-body); font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 4px; }
.score .tags { margin-top: 6px; }
.covers > * { min-width: 0; }
.score--soon .eyebrow { font-size: 12px; letter-spacing: .08em; overflow-wrap: anywhere; }
.score--soon .cover { aspect-ratio: 509 / 720; padding: 10px; align-content: center; gap: 8px; text-align: center; border: 1px dashed var(--line-strong); background: transparent; }
@media (hover: hover) and (pointer: fine) { .score:hover .cover img { transform: translateY(-4px); } }

/* Ficha de producto */
.product { display: grid; gap: var(--s-tight); }
.product-cover { display: grid; place-items: center; padding: clamp(28px, 9vw, 72px); background: var(--warm); border-radius: var(--r-panel); }
.product-cover img { width: min(100%, 360px); box-shadow: var(--shadow-object); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price { font-size: var(--t-title); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stars { color: var(--gold); letter-spacing: .12em; }
@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; grid-template-areas: "media head" "media info"; column-gap: 64px; align-items: start; }
  .product-head { grid-area: head; }
  .product-info { grid-area: info; }
  .product-media { grid-area: media; position: sticky; top: calc(var(--header-h) + 24px); }
}
.preview { display: block; width: min(100%, 420px); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
/* Barra fija de compra: solo móvil, cuando el botón principal sale de la pantalla */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(105%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.buybar.is-on { transform: none; visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s; }
.buybar b { font-size: var(--t-small); line-height: 1.25; }
.buybar b span { display: block; font-weight: 400; color: var(--text-2); }
@media (min-width: 900px) { .buybar { display: none; } }
body.has-buybar { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-buybar { padding-bottom: 0; } }

/* Proyectos y tarjetas con foto */
.cards { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: grid; gap: 12px; align-content: start; justify-items: start; padding: 20px; border-radius: var(--r-card); background: var(--soft); }
.card > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-small); margin-bottom: 4px; }
.card > img.contain { object-fit: contain; background: var(--warm); padding: 8%; }
.card a.cover-link { text-decoration: none; }
.card a.cover-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.card p { font-size: var(--t-small); line-height: 1.5; }
.feature { position: relative; display: grid; align-items: end; min-height: clamp(360px, 46vw, 520px); border-radius: var(--r-panel); overflow: hidden; background: var(--ink); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(23, 23, 25, .92)); }
.feature .stack { position: relative; z-index: 1; padding: clamp(20px, 4vw, 40px); gap: 10px; }
.feature a.cover-link { color: #fff; text-decoration: none; }
.feature a.cover-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Sobre mí */
.about-hero { display: grid; gap: var(--s-tight); align-items: center; }
.about-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-panel); }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1.1fr .9fr; gap: 64px; } .about-hero figure { order: 2; } }
.facts { display: grid; gap: 0; }
.facts li { padding-block: 12px; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.5; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 8px; padding-block: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.chapter { display: grid; gap: var(--s-tight); align-items: start; }
.chapter figure img { width: 100%; border-radius: var(--r-card); aspect-ratio: 3 / 2; object-fit: cover; }
.chapter figure.tall img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.chapter figcaption, .gallery figcaption { margin-top: 8px; font-size: var(--t-caption); color: var(--text-2); line-height: 1.4; }
@media (min-width: 900px) { .chapter { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.gallery { columns: 2; column-gap: 12px; }
.gallery figure { break-inside: avoid; margin-bottom: 20px; }
@media (min-width: 900px) { .gallery { columns: 4; column-gap: var(--gap); } .gallery figure { margin-bottom: 28px; } }
.gallery a { display: block; border-radius: var(--r-small); overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: auto; transition: transform var(--dur-slow) var(--ease); }
@media (hover: hover) and (pointer: fine) { .gallery a:hover img { transform: scale(1.03); } }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logos a, .logos div { display: grid; gap: 12px; justify-items: center; align-content: center; min-height: 150px; padding: 20px; border-radius: var(--r-card); background: #fff; font-size: var(--t-small); font-weight: 500; text-align: center; text-decoration: none; }
.logos img { width: 120px; height: 64px; object-fit: contain; }
.copybox { display: grid; gap: 12px; justify-items: start; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--line); }
.copybox p { font-size: var(--t-small); line-height: 1.55; }

/* Disco */
.tracks > li { grid-template-columns: 44px 1fr; }
@media (min-width: 900px) { .tracks > li { grid-template-columns: 64px 1fr auto; } }
.interview { display: grid; gap: var(--s-tight); align-items: start; }
.interview video { width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: var(--r-card); background: #000; }
@media (min-width: 900px) { .interview { grid-template-columns: 320px 1fr; gap: 64px; } }
details { width: 100%; }
summary { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-small); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
details .prose { margin-top: 12px; font-size: var(--t-small); }
.reviews { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-card); background: var(--soft); }
.review blockquote { font-size: var(--t-small); line-height: 1.55; }
.review .reply { padding-left: 14px; border-left: 2px solid var(--gold); font-size: var(--t-small); }

/* Encargos y estrenos: lista sobria por año, una línea por obra */
.year { display: grid; gap: 8px; margin-top: var(--s-tight); }
.year:first-child { margin-top: 0; }
.works > li { scroll-margin-top: 12px; }
.works > li:target { outline: 3px solid var(--gold); outline-offset: 6px; }
.year-label { font-size: var(--t-title); line-height: 1.1; letter-spacing: -.03em; }
.works > li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.works > li:last-child { border-bottom: 1px solid var(--line); }
.works .work { font-size: var(--t-card); line-height: 1.4; }
.works cite { font-style: italic; }
.works .meta { font-size: var(--t-small); color: var(--text-2); }
.works .work-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
@media (min-width: 900px) { .year { grid-template-columns: 180px 1fr; gap: 28px; } }

/* 404 */
.nf { display: grid; gap: var(--s-tight); }
.nf .big { font-size: clamp(96px, 22vw, 220px); font-weight: 700; letter-spacing: -.06em; line-height: .85; color: var(--warm); }
.nf-links { display: grid; gap: 0; }
.nf-links a { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.nf-links a:last-child { border-bottom: 1px solid var(--line); }
.nf-links span { font-size: var(--t-small); color: var(--text-2); }
@media (min-width: 900px) { .nf { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }

/* Ventanas: vídeo y visor de fotos */
dialog { border: 0; padding: 0; background: transparent; color: #fff; max-width: none; max-height: none; width: 100vw; height: 100dvh; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(10, 10, 12, .94); }
dialog[open] { display: grid; place-items: center; opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
@starting-style { dialog[open] { opacity: 0; transform: scale(.97); } }
.dlg { position: relative; display: grid; gap: 14px; width: min(1040px, 100vw - 32px); max-height: calc(100dvh - 32px); justify-items: center; }
.dlg-close, .dlg-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(23, 23, 25, .7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.dlg-close { justify-self: end; }
.dlg-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; display: grid; place-items: center; }
.dlg-frame iframe { width: 100%; height: 100%; border: 0; }
.consent { display: grid; gap: 16px; justify-items: center; padding: 24px; text-align: center; max-width: 34em; }
.consent p { font-size: var(--t-small); color: #c9c9ce; }
.dlg-img img { max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; border-radius: var(--r-small); }
.dlg-bar { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; }
.dlg-bar p { flex: 1; text-align: center; font-size: var(--t-small); color: #c9c9ce; }

/* Pie */
.site-footer { background: var(--ink); padding-block: var(--s-section) 32px; }
.foot-contact { display: grid; gap: var(--s-tight); padding-bottom: var(--s-block); }
.foot-contact .mails { display: grid; gap: 0; width: 100%; }
.foot-contact .mails a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.foot-contact .mails a:last-child { border-bottom: 1px solid var(--line); }
.foot-contact .mails a span { font-weight: 400; font-size: var(--t-small); color: var(--text-2); }
.foot-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; padding-block: var(--s-tight); border-top: 1px solid var(--line); }
.foot-groups h2 { font-size: var(--t-caption); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; line-height: 1.4; color: var(--text-2); margin-bottom: 6px; }
.foot-groups a { display: flex; align-items: center; min-height: 44px; font-size: var(--t-small); text-decoration: none; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-caption); color: var(--text-2); }
.foot-legal img { width: 150px; height: auto; }
.foot-legal .sponsors { display: flex; align-items: center; gap: 12px; }
@media (min-width: 900px) {
  .foot-contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .foot-groups { grid-template-columns: repeat(4, 1fr); }
}
@media (hover: hover) and (pointer: fine) {
  .foot-groups a:hover, .nav a:hover, .langs a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* Índice de la propuesta */
.index-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.index-table th, .index-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.index-table th { font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ───────── Movimiento (v2, 15/11/2026) ─────────
   Reglas: solo transform y opacity; curva propia; la interfaz, por debajo de 300 ms (las entradas de contenido, hasta 600 ms).
   Todo cuelga de html.motion, que pone web.js solo si hay IntersectionObserver y no se pide «reducir movimiento».
   Sin JavaScript, o en reposo, el contenido se ve entero: nada nace oculto en el CSS. */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* 1. Entradas al bajar: web.js marca como «pending» solo lo que queda por debajo de la pantalla al cargar */
.motion [data-reveal] { transition: opacity var(--dur-slow) ease, transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.motion [data-reveal="pending"] { opacity: 0; transform: translateY(14px); }

/* 2. Título de página, palabra a palabra, al cargar */
.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .06em .14em; margin: -.12em -.06em -.14em; }
.motion .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 600ms var(--ease-out), opacity var(--dur-slow) ease; transition-delay: calc(var(--i, 0) * 55ms); }
.motion .words-in .w > span { transform: none; opacity: 1; }
.motion .words-done .w { overflow: visible; }
.motion [data-words] .dot, .motion [data-words] .sq { opacity: 0; transition: opacity var(--dur-slow) ease calc(var(--n, 1) * 55ms + 250ms); }
.motion .words-in .dot, .motion .words-in .sq { opacity: 1; }

/* 3. Portada en ordenador: el texto se retira al bajar (la foto no se mueve ni se amplía: no se recorta nunca) */
@keyframes hero-lift { to { opacity: 0; transform: translateY(-48px); } }
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .motion .hero .wrap { animation: hero-lift linear both; animation-timeline: scroll(root); animation-range: 18vh 78vh; }
  }
}

/* 4. Cabecera: sombra suave cuando la página ya ha bajado */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(rgba(23, 23, 25, .07), transparent); opacity: 0; pointer-events: none; transition: opacity var(--dur) ease; }
.site-header.is-scrolled::after { opacity: 1; }

/* 5. Respuesta al toque y al ratón */
.pill, a.tag, .menu-btn, .dlg-close, .dlg-nav, .gallery a, .score .cover, .video-card .thumb, .preview { transition: transform var(--dur-fast) var(--ease-out); }
.pill { transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.pill:active, a.tag:active, .menu-btn:active, .dlg-close:active, .dlg-nav:active { transform: scale(.96); }
.gallery a:active, .preview:active, .score:active .cover, .video-card:active .thumb { transform: scale(.985); }
.event > img, .card > img:not(.contain) { transition: transform var(--dur-slow) var(--ease-out); }
.card { overflow: hidden; }
.nf-links a { position: relative; padding-right: 36px; }
.nf-links a::after { content: "→"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); transition: transform var(--dur) var(--ease-out); }
.tracks > li { position: relative; isolation: isolate; }
.tracks > li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--soft); opacity: 0; transition: opacity var(--dur) ease; }
@media (hover: hover) and (pointer: fine) {
  .event:hover > img { transform: scale(1.03); }
  .nf-links a:hover::after { transform: translate(4px, -50%); }
  .tracks > li:hover::before { opacity: 1; }
  .play { transition: transform var(--dur) var(--ease-out); }
  .video-card:hover .play { transform: scale(1.08); }
}

/* 6. Disco: el CD asoma de la funda al entrar y un poco más al pasar el ratón */
.cd::before { background: conic-gradient(from 20deg, transparent 0 7%, rgba(255, 255, 255, .6) 12%, transparent 18% 50%, rgba(255, 255, 255, .45) 56%, transparent 63%), radial-gradient(circle, #171719 0 7%, #d9d9de 7.5% 15%, #f4f4f6 15.5% 17%, #c9c9cf 17.5% 100%); transition: transform 600ms var(--ease-out); }
.cd img { transition: transform 600ms var(--ease-out); }
.motion .cd[data-disc="pending"]::before { transform: translateX(-30%) rotate(-200deg); }
@media (hover: hover) and (pointer: fine) {
  .cd:hover::before { transform: translateX(6%) rotate(50deg); }
  .cd:hover img { transform: rotate(-1.2deg); }
}

/* 7. «Sobre el álbum»: el texto se enciende al bajar. Parte de un 62 % (4,9:1), no de un gris ilegible */
.motion .lit .lw { opacity: .62; transition: opacity 300ms ease; }
.motion .lit .lw.is-lit { opacity: 1; }

/* 8. Ventanas (vídeo y visor): también se despiden; la foto del visor entra con un fundido */
dialog { opacity: 0; transform: scale(.98); transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, overlay var(--dur-fast) allow-discrete, display var(--dur-fast) allow-discrete; }
dialog[open] { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), overlay var(--dur) allow-discrete, display var(--dur) allow-discrete; }
@starting-style { dialog[open] { opacity: 0; transform: scale(.97); } }
dialog::backdrop { opacity: 0; transition: opacity var(--dur-fast) ease, overlay var(--dur-fast) allow-discrete, display var(--dur-fast) allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }
.dlg-img img { transition: opacity var(--dur-fast) ease; }
.dlg-img img.is-loading { opacity: 0; }

/* 9. Menú móvil: los enlaces entran escalonados */
.menu-panel nav a { opacity: 0; transform: translateY(6px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
.menu-panel.is-open nav a { opacity: 1; transform: none; }
.menu-panel.is-open nav a:nth-child(2) { transition-delay: 30ms; }
.menu-panel.is-open nav a:nth-child(3) { transition-delay: 60ms; }
.menu-panel.is-open nav a:nth-child(4) { transition-delay: 90ms; }
.menu-panel.is-open nav a:nth-child(5) { transition-delay: 120ms; }
.no-js .menu-panel nav a { opacity: 1; transform: none; }

/* 10. Mensaje de las altas de correo */
@keyframes fade-in { from { opacity: 0; } }
.signup .is-sent { animation: fade-in var(--dur) ease; }

/* 11. Cambio de página: fundido corto, sin desplazamiento (navegadores con transiciones entre documentos) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 120ms ease both vt-out; }
  ::view-transition-new(root) { animation: 220ms cubic-bezier(.23, 1, .32, 1) both fade-in; }
}
@keyframes vt-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .video-card:hover .thumb img, .gallery a:hover img, .score:hover .cover img, .btn:active { transform: none; }
  /* Sin movimiento: nada se desplaza ni se escala; quedan los cambios instantáneos */
  .hero .wrap { animation: none !important; }
  .pill:active, a.tag:active, .menu-btn:active, .dlg-close:active, .dlg-nav:active, .gallery a:active, .preview:active, .score:active .cover, .video-card:active .thumb,
  .event:hover > img, .video-card:hover .play, .cd:hover::before, .cd:hover img, .menu-panel nav a, dialog, dialog[open] { transform: none; }
  .nf-links a:hover::after { transform: translateY(-50%); }
}

/* ───────── Carruseles (vídeos y partituras) ─────────
   Una fila que se desliza con el dedo, el trackpad o las flechas que añade web.js. En el móvil asoma la siguiente tarjeta. */
.rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--rail-w); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.videos.rail { --rail-w: 82%; }
.covers.rail { --rail-w: 44%; }
@media (min-width: 600px) { .videos.rail { --rail-w: calc((100% - 16px) / 2.15); } .covers.rail { --rail-w: calc((100% - 32px) / 3.2); gap: 16px; } }
@media (min-width: 900px) {
  .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: var(--gap); }
  .videos.rail { --rail-w: calc((100% - 2 * var(--gap)) / 3); }
  .covers.rail { --rail-w: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); }
}
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.rail-nav[hidden] { display: none; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease; }
.rail-nav button:active { transform: scale(.96); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 16px; height: 16px; }

/* ───────── 12. Escenas de ordenador (como en la web publicada) ─────────
   Solo con html.scenes: ratón, pantalla de 1024 × 600 o más y movimiento permitido. En el móvil y el iPad no existen:
   se ve la lista de facetas y el panel del disco, y las imágenes de la escena no se descargan. */
.facet-num, .facet-tabs, .story-stage { display: none; }

/* Interpretar. Dirigir. Compartir: la faceta cambia al bajar, con su foto */
.scenes .facet-scroll { height: 300vh; height: calc(300svh - 112px); position: relative; }
.scenes .facet-stage { position: sticky; top: calc(var(--header-h) + 20px); height: calc(100vh - var(--header-h) - 40px); height: calc(100svh - var(--header-h) - 40px);
  display: grid; grid-template-rows: minmax(0, 1fr) 44px; gap: 12px; }
.scenes .facets { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "text" "photo"; gap: 28px; min-height: 0; justify-items: center; }
.scenes .facets > li { display: contents; }
.scenes .facets > li > div { grid-area: text; width: min(720px, 100%); text-align: center; opacity: var(--o, 0); transform: translateY(var(--y, 45px)); }
.scenes .facets > li > img { grid-area: photo; height: 100%; width: auto; max-width: 100%; min-height: 0; aspect-ratio: 3 / 2; border-radius: var(--r-panel); opacity: var(--o, 0); transform: scale(var(--s, 1.02)); }
.scenes .facets > li:first-child { --o: 1; --y: 0px; --s: 1; }
.scenes .facet-num { display: block; font-size: var(--t-caption); letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.scenes .facets h3 { font-size: clamp(40px, 4.3vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
.scenes .facets .text { font-size: 20px; line-height: 1.5; margin: 16px auto 0; text-wrap: pretty; }
.scenes .facet-tabs { display: flex; justify-content: center; gap: 26px; }
.facet-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 2px; background: none; font: inherit; font-size: var(--t-small); color: var(--text-2); cursor: pointer; transition: color var(--dur) ease, border-color var(--dur) ease; }
.facet-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }

/* Disco y partituras: el CD deja paso a las partituras al bajar */
.scenes .story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.scenes .story-stage { display: block; position: sticky; top: calc(var(--header-h) + 40px); height: min(560px, calc(100vh - var(--header-h) - 80px)); border-radius: var(--r-panel); overflow: hidden; isolation: isolate; background: var(--soft); perspective: 1200px; }
.scenes .story-stage::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dark, 0); }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 48px; }
.scene-cap { font-size: var(--t-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.scene-album { opacity: var(--a-o, 1); transform: translate3d(var(--a-x, 0px), var(--a-y, 0px), 0) rotateY(var(--a-r, 0deg)) scale(var(--a-s, 1)); }
.scene-album .cd { width: min(78%, 400px); transform: rotateY(-14deg) rotateX(4deg) rotateZ(-2deg); }
.scene-score { opacity: var(--s-o, 0); transform: translate3d(var(--s-x, 60px), var(--s-y, 35px), 0) rotateY(var(--s-r, 12deg)) scale(var(--s-s, .92)); }
.scene-score .scene-cap { color: #c9c9ce; }
.fan { position: relative; width: min(46%, 250px); aspect-ratio: 509 / 720; }
.fan img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.fan img:nth-child(1) { transform: translateX(-30%) rotate(-11deg); }
.fan img:nth-child(2) { transform: translateX(-10%) rotate(-4deg); }
.fan img:nth-child(3) { transform: translateX(10%) rotate(3deg); }
.fan img:nth-child(4) { transform: translateX(28%) rotate(9deg); }
.scenes .story-chapters > * { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
.scenes .story-album .panel { background: none; padding: 0; color: var(--ink); --gold: #7a6238; --focus: #7a6238; --text-2: #66666c; --line: #dedee1; --line-strong: #8a8a90; }
.scenes .story-album .split { grid-template-columns: 1fr; }
.scenes .story-album .cd { display: none; }
.scenes .story-album .btn--light { background: var(--ink); color: #fff; border-color: var(--ink); }
.scenes .story-scores .covers.rail { --rail-w: calc((100% - var(--gap)) / 2.3); }
.scenes .story-scores .head { flex-direction: column; align-items: start; }
.scenes .story-album .btn--light:hover { background: #3a3a3e; border-color: #3a3a3e; }
@media print { .facet-scroll, .facet-stage { height: auto !important; position: static !important; } .scenes .facets > li { display: grid; } .scenes .facets > li > * { opacity: 1 !important; transform: none !important; } .story-stage { display: none !important; } }
.story-chapters { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-block); min-width: 0; }
.scenes .story-chapters { gap: 0; }

/* ───────── Publicación en raulsabiote.com (15/11/2026) ───────── */
/* Portada: la foto original 4751, sin la ampliación con IA, también en ordenador: entera a la derecha y fundida hacia el nombre */
@media (min-width: 900px), (orientation: landscape) and (max-height: 500px) {
  .hero--orig .hero-photo { aspect-ratio: 1332 / 1700; }
  .hero--orig .hero-photo::after { background: linear-gradient(90deg, rgba(23, 23, 25, 1) 0%, rgba(23, 23, 25, .6) 20%, rgba(23, 23, 25, 0) 46%); }
}
/* Con la barra de administración de WordPress (solo al tener la sesión abierta) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
