/* iribe.dev — «Tinta y sello»
   Base editorial (Garamond + Poppins, monocromo) con un solo color: el sello bermellón. */

:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #5c5c5c;
  --ink-3: #8a8a8a;
  --line: #e2e2e2;
  --accent: #c8372d;
  --accent-ink: #fff6ee;
  --sello: #c8372d;
  --sello-tinta: #fff6ee;
  --foot-bg: #1f1f1f;
  --foot-ink: #f1f1f1;
  --foot-ink-2: #a8a8a8;
  --shade: rgba(13, 13, 13, .06);

  --serif: "EB Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --cjk: "Noto Serif SC", "Songti SC", "EB Garamond", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1110px;
  --narrow: 680px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1a1a1a;
    --ink: #ececec;
    --ink-2: #a6a6a6;
    --ink-3: #7a7a7a;
    --line: #2a2a2a;
    --accent: #e0574a;
    --accent-ink: #1a0b09;
    --sello: #d4473a;
    --sello-tinta: #fff3ea;
    --foot-bg: #0a0a0a;
    --foot-ink: #ececec;
    --foot-ink-2: #8f8f8f;
    --shade: rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1a1a1a;
  --ink: #ececec;
  --ink-2: #a6a6a6;
  --ink-3: #7a7a7a;
  --line: #2a2a2a;
  --accent: #e0574a;
  --accent-ink: #1a0b09;
  --sello: #d4473a;
  --sello-tinta: #fff3ea;
  --foot-bg: #0a0a0a;
  --foot-ink: #ececec;
  --foot-ink-2: #8f8f8f;
  --shade: rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(var(--narrow) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 50px; font-family: var(--sans); font-size: .85rem; }
.skip:focus { left: 8px; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .fill { fill: currentColor; stroke: none; }

/* ---------- piezas comunes ---------- */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--lg { font-size: .8rem; color: var(--ink); }
.kicker--on-dark { color: #ff7d70; }
.meta { font-family: var(--sans); font-size: .78rem; color: var(--ink-3); letter-spacing: .01em; }
.more {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: color .2s;
}
.more:hover { color: var(--accent); }
.more .i { transition: transform .2s; }
.more:hover .i { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 1.3em;
  border: 1px solid var(--ink); border-radius: 50px; background: transparent;
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill--solid { background: var(--ink); color: var(--bg); }
.pill--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.tbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tbtn:hover { background: var(--shade); }
.tbtn--dark { color: var(--foot-ink); }
.tbtn--dark:hover { background: rgba(255, 255, 255, .08); color: #ff7d70; }

.sello { width: 34px; height: 34px; flex: none; }
.sello--xl { width: 64px; height: 64px; }

/* ---------- encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; }
.marca__txt { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.marca__dot { color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top__tools { display: flex; gap: 4px; }
.nav-open { display: none; }

/* claro: luna; oscuro: sol */
.when-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: contents; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
:root[data-theme="dark"] .when-dark { display: contents; }
:root[data-theme="dark"] .when-light { display: none; }
.when-light { display: contents; }

.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
}
.drawer[hidden] { display: none; }
.drawer__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 80px var(--gutter);
}
.drawer__in > a { font-family: var(--serif); font-size: 2.4rem; line-height: 1.2; }
.drawer__in > a:hover { color: var(--accent); }
.drawer__close { position: absolute; top: 12px; right: var(--gutter); }
.drawer__vert {
  position: absolute; right: var(--gutter); bottom: 40px;
  writing-mode: vertical-rl; font-family: var(--cjk); font-weight: 700;
  font-size: 3rem; letter-spacing: .2em; color: var(--accent); opacity: .9;
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hola {
  margin-top: 18px;
  font-family: var(--cjk); font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 1.12; letter-spacing: .02em;
}
.hola__l { display: inline-block; white-space: nowrap; }
.hola .punct { color: var(--accent); }
.trad { position: relative; height: 1.6em; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--ink-2); }
.trad__item { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; white-space: nowrap; }
.trad__item.is-on { opacity: 1; transform: none; }
.hero__bio { margin-top: 26px; max-width: 34ch; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__foto { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.hero__foto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 220px 220px var(--r) var(--r);
  box-shadow: 0 30px 60px -30px var(--shade), 0 2px 0 var(--line);
}
.sello--stamp {
  position: absolute; left: -26px; bottom: 34px; width: 84px; height: 84px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18));
}
.hero__vert {
  position: absolute; right: -44px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--cjk); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .6em; color: var(--accent);
}

/* ---------- secciones ---------- */
.sec { padding: clamp(48px, 7vw, 80px) var(--gutter); }
.sec.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 28px; border-bottom: 2px solid var(--ink);
}
.sec--fotos { background: var(--surface); padding-left: 0; padding-right: 0; }

/* tarjetas de entrada */
.latest { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
.latest__list { display: grid; gap: 26px; align-content: start; }
.card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.card:not(:has(.card__img)) { grid-template-columns: minmax(0, 1fr); }
.card + .card { padding-top: 26px; border-top: 1px solid var(--line); }
.card__img { display: block; overflow: hidden; border-radius: 10px; background: var(--line); }
.card__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: grid; gap: 8px; }
.card__t { font-size: 1.35rem; line-height: 1.2; }
.card__t a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card__t a:hover { background-size: 100% 1px; }
.card__x { color: var(--ink-2); font-size: 1.1rem; }
.card--big { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card--big .card__img img { aspect-ratio: 16 / 10; }
.card--big .card__t { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; }
.latest:not(:has(.latest__list > *)) { grid-template-columns: minmax(0, 1fr); }
.latest:not(:has(.latest__list > *)) .card--big { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.card--big + .card--big { border-top: 1px solid var(--line); padding-top: 40px; }

/* franja de fotos */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--line); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease, filter .3s; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .66));
  color: #fff; font-family: var(--sans); font-size: .74rem; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.tile__cap span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

/* proyectos */
.proys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.proy {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.proy:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px var(--shade); }
.proy__img img, .proy__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proy__ph { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.proy__ph .sello { width: 56px; height: 56px; }
.proy__body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 22px; }
.proy__t { font-size: 1.45rem; line-height: 1.15; }
.proy__x { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- listados ---------- */
.pagehead { padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(24px, 4vw, 40px); }
.pagehead__t { margin-top: 10px; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; }
.pagehead__d { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; padding-bottom: 40px; }
.feed .latest:not(:has(.latest__list > *)) { grid-template-columns: minmax(0, 1fr); }
.latest:not(:has(.latest__list > *)) .card--big { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.card--big + .card--big { border-top: 0; padding-top: 0; }
.proys--page { padding-bottom: 40px; }
.empty { color: var(--ink-3); font-family: var(--sans); font-size: .9rem; padding: 40px 0; }
.paginas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 64px; }

/* ---------- artículo ---------- */
.art { padding-bottom: 56px; }
.art__h { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 28px; display: grid; gap: 14px; }
.art__t { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -.005em; }
.art__dek { font-size: 1.4rem; line-height: 1.4; color: var(--ink-2); font-style: italic; }
.art__img { margin: 8px auto 40px; }
.art__img img { width: 100%; border-radius: var(--r); }
.art__img figcaption { margin-top: 10px; font-family: var(--sans); font-size: .78rem; color: var(--ink-3); text-align: center; }
.art__f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

.prose { font-size: 1.28rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.9rem; line-height: 1.15; }
.prose h3 { margin-top: 1.5em; font-size: 1.45rem; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 0; text-align: center; font-style: italic; font-size: 1.55rem; line-height: 1.4; color: var(--ink); }
.prose blockquote::before { content: "\201C"; display: block; font-size: 3.4rem; line-height: .6; color: var(--accent); margin-bottom: .1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82em; background: var(--shade); padding: .12em .35em; border-radius: 5px; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 12px; background: #161616; color: #ececec; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption { margin-top: 8px; font-family: var(--sans); font-size: .78rem; color: var(--ink-3); text-align: center; }
.prose :lang(zh), .prose :lang(ja) { font-family: var(--cjk); }
.prose--side { font-size: 1.15rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--sans); font-size: .8rem; color: var(--ink-3); }
.tags a:hover { color: var(--accent); }

/* tarjetas de Ghost: anchos */
.gh-content .kg-width-wide { width: min(1000px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }

/* entrada de foto */
.foto-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-top: clamp(24px, 5vw, 56px); padding-bottom: 64px; align-items: start; }
.foto-post__fig { margin: 0; }
.foto-post__fig img { width: 100%; border-radius: var(--r); }
.foto-post__side { position: sticky; top: 96px; display: grid; gap: 14px; }
.foto-post__t { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
.foto-post__nav { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* visor */
.lb {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
  background: rgba(8, 8, 8, .94); color: #f1f1f1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 56px 0 22px; justify-items: center; align-items: center; touch-action: pan-y; min-width: 0; }
/* la foto nunca pasa de la pantalla: alto disponible = viewport − barra superior − pie de foto */
.lb__media { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.lb__img {
  display: block; width: auto; height: auto;
  max-width: min(100%, calc(100vw - 128px));
  max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px);
  object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none;
}
.lb__cap { display: grid; gap: 4px; justify-items: center; text-align: center; max-width: 60ch; padding: 0 12px; }
.lb__t { font-family: var(--serif); font-size: 1.3rem; }
.lb__c { font-size: 1rem; color: #bdbdbd; }
.lb__d { font-family: var(--sans); font-size: .74rem; color: #8f8f8f; letter-spacing: .05em; }
.lb__go { color: #ff7d70; margin-top: 4px; }
.lb__go:hover { color: #fff; }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; justify-self: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .18); }
.lb__close { position: absolute; top: 12px; right: 12px; }
.lb__btn .i { width: 22px; height: 22px; }

/* ---------- boletín y pie ---------- */
.news { background: var(--foot-bg); color: var(--foot-ink); }
.news__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.news__t { margin-top: 10px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.news__p { margin-top: 10px; color: var(--foot-ink-2); }
.news__f { display: flex; flex-wrap: wrap; gap: 10px; }
.news__f input {
  flex: 1 1 220px; min-height: 48px; padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50px;
  background: transparent; color: var(--foot-ink);
  font-family: var(--sans); font-size: .9rem;
}
.news__f input::placeholder { color: #8f8f8f; }
.news__f input:focus { outline: none; border-color: #ff7d70; }
.news__f .pill { min-height: 48px; background: #f1f1f1; color: #111; border-color: #f1f1f1; }
.news__f .pill:hover { background: #ff7d70; border-color: #ff7d70; color: #1a0b09; }
.news__ok, .news__err { display: none; flex-basis: 100%; font-family: var(--sans); font-size: .82rem; }
.news__f.success .news__ok { display: block; color: #9ad7a5; }
.news__f.error .news__err { display: block; color: #ff9d93; }
.news__f.loading .pill { opacity: .6; pointer-events: none; }

.foot { background: var(--foot-bg); color: var(--foot-ink); }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 48px; padding-top: 40px; padding-bottom: 28px; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__name { font-family: var(--cjk); font-weight: 700; font-size: 1.5rem; letter-spacing: .1em; }
.foot__sub { font-family: var(--sans); font-size: .76rem; color: var(--foot-ink-2); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.foot__nav a { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--foot-ink-2); }
.foot__nav a:hover { color: #ff7d70; }
.foot__social { display: flex; gap: 4px; }
.foot__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--sans); font-size: .72rem; color: #7d7d7d; }
.foot .sello { --sello-tinta: #fff3ea; }

.err { display: grid; justify-items: start; gap: 14px; padding-bottom: 96px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .proys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-open { display: inline-grid; }
  .top__tools { margin-left: auto; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__foto { justify-self: center; max-width: 380px; margin-top: 8px; }
  .hero__vert { right: -30px; font-size: .9rem; }
  .sello--stamp { left: -10px; width: 70px; height: 70px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
  .foto-post { grid-template-columns: minmax(0, 1fr); padding-left: 0; padding-right: 0; }
  .foto-post__fig img { border-radius: 0; }
  .foto-post__side { position: static; padding: 0 var(--gutter); }
  .news__in { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .foot__nav { justify-content: flex-start; }
  .lb { grid-template-columns: minmax(0, 1fr); }
  .lb__prev, .lb__next { display: none; }
  .lb__img { max-width: 100vw; border-radius: 0; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
}
@media (max-width: 640px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .strip .tile:nth-child(n+7) { display: none; }
  .grid { gap: 3px; }
  .tile, .grid .tile { border-radius: 0; }
  .sec--fotos .wrap { padding: 0; }
  .sec--fotos .sec__h { margin-left: var(--gutter); margin-right: var(--gutter); }
  .proys { grid-template-columns: minmax(0, 1fr); }
  .card:not(.card--big) { grid-template-columns: 92px minmax(0, 1fr); }
  .latest:not(:has(.latest__list > *)) .card--big { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero__vert { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- música (pastilla estilo Instagram) ---------- */
.song-slot[hidden] { display: none; }
.foto-post__fig { position: relative; }
.song-slot--photo { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; }
.song-slot--lb { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; pointer-events: none; line-height: normal; }
.song-slot--hero { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; }
.hero__foto:has(.song-slot--hero:not([hidden])) .sello--stamp { bottom: 74px; }
.song-slot--lb .song { pointer-events: auto; }
.song-slot--art { margin-top: 6px; }

.song {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: min(100%, 320px); height: 40px; padding: 0 12px 0 5px;
  border: 0; border-radius: 50px; cursor: pointer;
  background: rgba(18, 18, 18, .55); color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
  font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .01em;
  transition: background-color .2s, transform .2s;
}
.song:hover { background: rgba(18, 18, 18, .72); }
.song:active { transform: scale(.97); }
.song-slot--art .song { background: var(--ink); color: var(--bg); }
.song .song__art { width: 30px; height: 30px; max-width: none; border-radius: 50%; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.song.is-playing .song__art, .song.is-playing img.song__art { animation: song-spin 6s linear infinite; }
.song__txt { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.song__run { display: inline-block; }
.song.is-long .song__txt { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 14px), transparent); }
.song.is-long .song__run { animation: song-run 12s linear infinite; }
.song__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.song__eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }
.song.is-playing .song__eq i { animation: song-eq .9s ease-in-out infinite; }
.song.is-playing .song__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .75s; }
.song.is-playing .song__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.05s; }
@keyframes song-spin { to { transform: rotate(360deg); } }
@keyframes song-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes song-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (max-width: 860px) {
  .song-slot--photo { left: calc(var(--gutter)); }
}

@media (max-height: 520px) {
  .lb__fig { padding: 10px 0 8px; gap: 6px; }
  .lb__img { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); }
  .lb__c, .lb__go { display: none; }
  .lb__cap { grid-auto-flow: column; gap: 10px; align-items: baseline; }
  .lb__t { font-size: 1rem; }
}

/* ---------- top de canciones: funda + vinilo ---------- */
.lista { position: relative; overflow: hidden; background: var(--surface); isolation: isolate; }
.lista[hidden] { display: none; }
.lista::before {
  content: ""; position: absolute; inset: -25%; z-index: -1;
  background: var(--ambient, none) center / cover no-repeat;
  filter: blur(90px) saturate(1.5); opacity: .2; transition: opacity .8s;
  pointer-events: none;
}
.lista.is-playing::before { opacity: .32; }
:root:not([data-theme="dark"]) .lista::before { opacity: .1; }
:root:not([data-theme="dark"]) .lista.is-playing::before { opacity: .16; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lista::before { opacity: .2; }
  :root:not([data-theme="light"]) .lista.is-playing::before { opacity: .32; }
}
.lista--full { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); min-height: calc(100vh - 64px); }
.lista__cjk { font-family: var(--cjk); font-weight: 700; font-size: .95rem; letter-spacing: .3em; color: var(--accent); }
.lista__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lista__note { margin-top: 28px; color: var(--ink-2); font-style: italic; max-width: 60ch; }

.deck { display: grid; justify-items: start; }
.deck__stage { position: relative; width: min(66%, 330px); aspect-ratio: 1; margin-left: 18px; margin-top: 10px; }
.deck__sleeve {
  position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 6px; cursor: pointer; background: var(--line);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .06);
  transition: opacity .18s ease, transform .35s ease;
}
.deck__sleeve:hover { transform: translateY(-2px); }
.deck.is-swapping .deck__sleeve { opacity: 0; transform: scale(.97); }
.sello--deck { position: absolute; z-index: 3; left: -18px; bottom: -18px; width: 48px; height: 48px; transform: rotate(-10deg); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }

.vinyl { position: absolute; z-index: 1; inset: 4%; transform: translateX(14%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.lista.is-playing .vinyl { transform: translateX(44%); }
.deck.is-swapping .vinyl { transform: translateX(6%); transition-duration: .18s; }
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 25deg, transparent 0 7%, rgba(255, 255, 255, .12) 11%, transparent 16% 50%, rgba(255, 255, 255, .08) 57%, transparent 62%);
}
.vinyl__disc {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle at 50% 50%, #0c0c0c 0 1.4px, #1a1a1a 1.4px 2.8px);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .7), inset 0 0 0 5px #070707;
  animation: vinyl-spin 2.4s linear infinite; animation-play-state: paused;
}
.lista.is-playing .vinyl__disc { animation-play-state: running; }
.vinyl__label {
  width: 36%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent) center / cover no-repeat; box-shadow: 0 0 0 3px #070707, 0 0 0 4px rgba(255, 255, 255, .06);
}
.vinyl__hole { width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.deck__now { margin-top: 30px; width: min(100%, 440px); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: end; }
.deck__num { font-family: var(--serif); font-style: italic; font-size: clamp(3.2rem, 6vw, 4.4rem); line-height: .78; color: var(--accent); letter-spacing: -.02em; }
.deck__meta { min-width: 0; }
.deck__t { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__a { margin-top: 4px; font-family: var(--sans); font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__bar { grid-column: 1 / -1; position: relative; height: 2px; margin-top: 18px; background: var(--line); border-radius: 2px; overflow: hidden; }
.deck__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .25s linear; }
.deck__ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.deck__play {
  display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--bg); transition: background-color .2s, transform .15s;
}
.deck__play:hover { background: var(--accent); color: var(--accent-ink); }
.deck__play:active { transform: scale(.94); }
.deck__play .i { width: 22px; height: 22px; }
.deck__ic--pause, .lista.is-playing .deck__ic--play { display: none; }
.lista.is-playing .deck__ic--pause { display: contents; }
.deck__ic--play { display: contents; }
.deck__hint { margin-left: auto; font-family: var(--sans); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.tracks { list-style: none; margin: 0; padding: 0; }
.trk { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.trk:first-child { border-top: 1px solid var(--line); }
.trk__play {
  flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 2.2em 46px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 9px 6px; border: 0; background: none; text-align: left; cursor: pointer;
}
.trk__n { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-3); transition: color .2s; }
.trk:first-child .trk__n { color: var(--accent); }
.trk__art { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; background: var(--line); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); transition: transform .3s; }
.trk__meta { min-width: 0; display: grid; gap: 2px; }
.trk__t { font-family: var(--serif); font-size: 1.16rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk__a { font-family: var(--sans); font-size: .74rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; color: var(--accent); opacity: 0; transition: opacity .2s; }
.trk__eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }
.trk.is-current .trk__eq { opacity: 1; }
.trk.is-playing .trk__eq i { animation: song-eq .9s ease-in-out infinite; }
.trk.is-playing .trk__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .75s; }
.trk.is-playing .trk__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.05s; }
.trk__go { display: grid; place-items: center; width: 38px; height: 38px; margin-right: 2px; border-radius: 50%; color: var(--ink-3); opacity: 0; transition: opacity .2s, color .2s, background-color .2s; }
.trk__go:hover { color: var(--accent); background: var(--shade); }
.trk:hover .trk__go, .trk:focus-within .trk__go { opacity: 1; }
@media (hover: none) { .trk__go { opacity: .7; } }
.trk__prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; transition: transform .25s linear, opacity .2s; }
.trk.is-current .trk__prog { opacity: 1; }
.trk:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.trk:hover .trk__n, .trk.is-current .trk__n { color: var(--accent); }
.trk:hover .trk__art { transform: scale(1.06); }
.trk.is-current { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.trk.is-ghost .trk__art { display: block; }
.trk.is-ghost { min-height: 64px; display: grid; grid-template-columns: 2.2em 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 6px; }
.trk.is-ghost .trk__t, .trk.is-ghost .trk__a { display: block; height: .8em; border-radius: 4px; background: var(--line); }
.trk.is-ghost .trk__t { width: 55%; }
.trk.is-ghost .trk__a { width: 30%; height: .6em; }

@media (max-width: 860px) {
  .lista__in { grid-template-columns: minmax(0, 1fr); }
  .deck { justify-items: center; }
  .deck__stage { width: min(58%, 260px); margin-left: 0; margin-right: 22%; }
  .lista.is-playing .vinyl { transform: translateX(38%); }
  .deck__now { margin-top: 24px; }
  .lista--full { min-height: 0; }
}
@media (max-width: 640px) {
  .trk__play { grid-template-columns: 1.8em 42px minmax(0, 1fr) auto; gap: 12px; }
  .trk__art { width: 42px; height: 42px; }
  .deck__hint { display: none; }
}

/* ---------- comentarios (nativos de Ghost) ---------- */
.comentarios { margin-top: 48px; }
.comentarios:empty { display: none; }
.comentarios--side { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
/* el iframe de comentarios es claro por dentro: igualar esquema para que el navegador no le pinte fondo blanco */
.comentarios iframe { color-scheme: light; background: transparent; }
