/* Base mínima: en la vista previa de Claude la aporta el visor */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: "Pliego" — la tienda como un pliego de imprenta: marcas de corte, tiradas numeradas
   y una sola sobreimpresión rosa/azul (risografía) en el titular. Todo lo demás, sobrio. */
:root {
  --paper: #F1F4F7;
  --sheet: #FFFFFF;
  --tile: #E3E8EE;
  --ink: #14203A;
  --ink-soft: #4C5871;
  --rule: #D3DAE3;
  --pink: #FF48B0;
  --blue: #0078BF;
  --link: #00639E;
  --on-blue: #FFFFFF;
  --on-pink: #14203A;
  --on-ink: #F1F4F7;
  --ok: #00805A;
  --warn: #A8500C;
  --header-bg: rgba(241, 244, 247, .9);
  --lift: 0 1px 2px rgba(20, 32, 58, .08), 0 18px 40px -18px rgba(20, 32, 58, .35);
  --overprint: multiply;

  --font-display: "Anybody", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 2.6vw + 1.1rem, 2.9rem);
  --step-4: clamp(2.6rem, 5.6vw + .9rem, 5.4rem);
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151F; --sheet: #171E2A; --tile: #212A38; --ink: #EDF1F6; --ink-soft: #A6B0C0; --rule: #2D3646;
    --pink: #FF5CBC; --blue: #45A7EB; --link: #79C0F3; --on-blue: #08111D; --on-pink: #10151F; --on-ink: #10151F;
    --ok: #3DC48F; --warn: #F2A35A; --header-bg: rgba(16, 21, 31, .86);
    --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -16px rgba(0, 0, 0, .7);
    --overprint: screen;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10151F; --sheet: #171E2A; --tile: #212A38; --ink: #EDF1F6; --ink-soft: #A6B0C0; --rule: #2D3646;
  --pink: #FF5CBC; --blue: #45A7EB; --link: #79C0F3; --on-blue: #08111D; --on-pink: #10151F; --on-ink: #10151F;
  --ok: #3DC48F; --warn: #F2A35A; --header-bg: rgba(16, 21, 31, .86);
  --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -16px rgba(0, 0, 0, .7);
  --overprint: screen;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--paper);
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.02; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap {
  max-width: 1200px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--ink); color: var(--on-ink); padding: .6rem .8rem; border-radius: var(--radius); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.25rem; border: 1.5px solid transparent; border-radius: 3px;
  font: 600 .975rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--ink); color: var(--on-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--blue); color: var(--on-blue); }
.linklike {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1.5px solid var(--rule); border-radius: 3px; background: var(--sheet); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Aviso y encabezado ---------- */
.notice { background: var(--ink); color: var(--on-ink); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .03em; }
.notice .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.75rem; padding-block: .55rem; text-align: center; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--header-bg); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 66px; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-stretch: 140%; font-size: 1.4rem; letter-spacing: -.01em; line-height: 1;
}
.logo__mark { position: relative; width: 25px; height: 17px; flex: none; }
.logo__mark i { position: absolute; top: 0; width: 17px; height: 17px; border-radius: 50%; mix-blend-mode: var(--overprint); }
.logo__mark i:first-child { left: 0; background: var(--pink); }
.logo__mark i:last-child { left: 8px; background: var(--blue); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 42px; padding: 0 .55rem 0 .95rem;
  border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink);
  font-weight: 600; font-size: .95rem; cursor: pointer;
}
.cart-btn:hover { background: var(--ink); color: var(--on-ink); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.65rem; height: 1.65rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--pink); color: var(--on-pink);
  font: 500 .78rem/1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 959px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}

/* ---------- Ventajas ---------- */
.facts ul {
  list-style: none; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { display: flex; flex-direction: column; gap: .2rem; padding-top: .8rem; border-top: 1.5px solid var(--ink); }
.facts strong { font-weight: 700; }
.facts span { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.75rem; }
.section-head > div { display: flex; flex-direction: column; gap: .6rem; }
.h2 { font-size: var(--step-3); font-weight: 820; font-stretch: 116%; letter-spacing: -.015em; }
.section-note { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Catálogo ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: .85rem; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.input {
  width: 100%; min-height: 46px; padding: 0 .85rem; border: 1.5px solid var(--rule); border-radius: 3px;
  background: var(--sheet); color: var(--ink); font: inherit; font-size: 1rem;
}
.input::placeholder { color: var(--ink-soft); opacity: .8; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.input:user-invalid { border-color: var(--warn); }
.search .input { padding-left: 2.5rem; }
.sort { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.sort select { min-height: 46px; padding: 0 .7rem; border: 1.5px solid var(--rule); border-radius: 3px; background: var(--sheet); color: var(--ink); font: inherit; font-size: .95rem; }
.filters { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.chips__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: .2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: 0 .9rem;
  border: 1.5px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink);
  font-weight: 500; font-size: .9rem; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip__n { font-family: var(--font-mono); font-size: .72rem; opacity: .7; font-variant-numeric: tabular-nums; }
.chips--sub .chip { min-height: 32px; padding: 0 .75rem; font-size: .84rem; }
.results { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); margin-bottom: 1.25rem; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 1.5rem; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.product__art {
  position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0;
  border-radius: var(--radius); background: var(--tile); overflow: hidden; cursor: pointer;
}
.art, .art svg { display: block; width: 100%; height: 100%; }
.product__art .art > svg { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.product__art:hover .art > svg { transform: translateY(-5px) rotate(-1.5deg); }
.badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 1; padding: .38rem .5rem; border-radius: 2px;
  background: var(--pink); color: var(--on-pink); font: 500 .66rem/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
}
.product__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 0; }
.product__name { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.3; letter-spacing: 0; }
.product__specs { font-family: var(--font-mono); font-size: .74rem; line-height: 1.5; color: var(--ink-soft); }
.swatches { display: flex; gap: .15rem; margin-left: -5px; }
.swatch { position: relative; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.swatch::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
}
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid var(--ink); }
.product__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .3rem; }
.price { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.btn-add {
  min-height: 38px; padding: 0 .85rem; border: 1.5px solid var(--ink); border-radius: 3px;
  background: transparent; color: var(--ink); font-weight: 600; font-size: .86rem; cursor: pointer;
}
.btn-add:hover, .btn-add.is-done { background: var(--ink); color: var(--on-ink); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2.5rem 0; }
.empty p { font-size: 1.1rem; }

/* ---------- Guía de gramajes ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.guide__text { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.guide__text p { color: var(--ink-soft); }
.guide__text p strong { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.table-wrap { position: relative; overflow-x: auto; background: var(--sheet); border-radius: var(--radius); box-shadow: var(--lift); }
.gtable { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9rem; }
.gtable th, .gtable td { padding: .9rem .9rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.gtable tbody tr:last-child th, .gtable tbody tr:last-child td { border-bottom: 0; }
.gtable thead th { font-family: var(--font-mono); font-weight: 500; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.gtable .c { text-align: center; }
.gtable tbody th { white-space: nowrap; }
.gnum { font-family: var(--font-display); font-weight: 820; font-stretch: 112%; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.gnum small { font-family: var(--font-mono); font-weight: 400; font-size: .68rem; color: var(--ink-soft); margin-left: .2rem; }
.thick { display: flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thick__track { width: 72px; height: 8px; background: var(--tile); flex: none; }
.thick__bar { display: block; height: 100%; background: var(--blue); }
.mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); vertical-align: middle; }
.mk--2 { background: var(--blue); }
.mk--1 { background: linear-gradient(90deg, var(--blue) 50%, transparent 50%); }
.mk--0 { border-color: var(--pink); background: transparent; }

/* ---------- Preguntas ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: 3.5rem; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: 1.25rem; color: var(--ink-soft); }

/* ---------- Avisos de tirada ---------- */
.news {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem); background: var(--sheet); box-shadow: var(--lift);
}
@media (min-width: 900px) { .news { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 3rem; } }
.news__copy { display: flex; flex-direction: column; gap: .75rem; }
.news__copy p:last-child { color: var(--ink-soft); max-width: 34rem; }
.news__form { display: flex; flex-direction: column; gap: .45rem; }
.news__form label { font-weight: 600; font-size: .9rem; }
.news__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.news__row .input { flex: 1 1 220px; min-width: 0; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 3rem 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { display: flex; flex-direction: column; gap: .8rem; }
.footer-brand p, .footer-grid p { color: var(--ink-soft); max-width: 30ch; }
.footer-h { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; background: var(--sheet); color: var(--ink); }
dialog::backdrop { background: rgba(8, 12, 20, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.pd {
  width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  border-radius: 6px; overflow: auto; box-shadow: var(--lift); overscroll-behavior: contain;
}
.pd[open] { animation: rise .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.pd__close { position: sticky; top: .75rem; z-index: 2; display: grid; margin: .75rem .75rem -3.4rem auto; }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pd__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pd__art { background: var(--tile); aspect-ratio: 1 / 1; max-width: 100%; }
.pd__art svg { display: block; width: 100%; height: 100%; }
.pd__info { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.pd__info h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); font-weight: 830; font-stretch: 114%; letter-spacing: -.015em; padding-right: 2.5rem; }
.pd__price { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pd__price small { font-family: var(--font-mono); font-weight: 400; font-size: .72rem; color: var(--ink-soft); margin-left: .5rem; }
.pd__desc { color: var(--ink-soft); max-width: 60ch; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.variants legend { padding: 0; margin-bottom: .6rem; font-size: .9rem; font-weight: 600; }
.variants legend span { font-weight: 400; color: var(--ink-soft); }
.variants__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.vopt { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .8rem 0 .55rem; border: 1.5px solid var(--rule); border-radius: 999px; cursor: pointer; font-size: .88rem; }
.vopt input { position: absolute; opacity: 0; pointer-events: none; }
.vopt__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.vopt:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.vopt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd__buy { display: flex; flex-wrap: wrap; gap: .75rem; }
.pd__buy .btn { flex: 1 1 220px; }
.stepper { display: inline-flex; align-items: center; height: 46px; border: 1.5px solid var(--ink); border-radius: 3px; }
.stepper__btn { width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.stepper__btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.stepper__val { width: 2.6rem; height: 100%; border: 0; background: transparent; color: var(--ink); text-align: center; font: 500 1rem var(--font-mono); -moz-appearance: textfield; appearance: textfield; }
.stepper__val::-webkit-inner-spin-button, .stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { height: 34px; border-width: 1px; border-color: var(--rule); }
.stepper--sm .stepper__btn { width: 32px; font-size: 1rem; }
.stepper--sm output { min-width: 1.8rem; text-align: center; font: 500 .9rem var(--font-mono); font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: .9rem; }
.specs dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2em; }

/* Carrito lateral */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(440px, 100%); height: 100%;
  max-width: none; max-height: none; box-shadow: var(--lift); flex-direction: column; overscroll-behavior: contain;
}
.drawer[open] { display: flex; animation: drawer-in .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) calc(1.25rem + env(safe-area-inset-right, 0px)) 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.drawer__head h2 { font-size: 1.5rem; font-weight: 820; font-stretch: 118%; }
.drawer__body { flex: 1; overflow: auto; padding: 1.25rem calc(1.25rem + env(safe-area-inset-right, 0px)) 1.25rem 1.25rem; }
.drawer__foot {
  display: flex; flex-direction: column; gap: .7rem; border-top: 1px solid var(--rule);
  padding: 1rem calc(1.25rem + env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
}
.meter { display: flex; flex-direction: column; gap: .55rem; padding: .9rem 1rem; margin-bottom: 1.25rem; background: var(--paper); border-radius: var(--radius); font-size: .9rem; }
.meter__track { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.meter__fill { display: block; height: 100%; background: var(--pink); border-radius: 3px; transition: width .35s; }
.meter.is-free .meter__fill { background: var(--ok); }
.lines { list-style: none; padding: 0; display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.line:first-child { padding-top: 0; }
.line__art { width: 64px; height: 64px; border-radius: var(--radius); background: var(--tile); overflow: hidden; }
.line__art svg { display: block; width: 100%; height: 100%; }
.line__info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.line__name { font-weight: 600; line-height: 1.3; }
.line__meta { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }
.line__info .stepper { margin-top: .35rem; align-self: flex-start; }
.line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.line__total { font-weight: 700; font-variant-numeric: tabular-nums; }
.remove { padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove:hover { color: var(--ink); }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding-top: 1rem; }
.cart-empty__title { font-family: var(--font-display); font-weight: 800; font-stretch: 116%; font-size: 1.35rem; }
.cart-empty p:not(.cart-empty__title) { color: var(--ink-soft); }
.sum { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.sum--total { padding-top: .55rem; border-top: 1px solid var(--rule); font-weight: 700; font-size: 1.1rem; }
.fine { font-size: .8rem; color: var(--ink-soft); }
.back { align-self: center; padding: .25rem; border: 0; background: none; color: var(--ink-soft); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.checkout { display: flex; flex-direction: column; gap: 1.1rem; }
.checkout__lead { font-family: var(--font-display); font-weight: 800; font-stretch: 116%; font-size: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.input--short { max-width: 10rem; font-family: var(--font-mono); letter-spacing: .08em; }
.hint { font-size: .8rem; color: var(--ink-soft); }
.hint.is-ok { color: var(--ok); }
.ship { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.ship legend { padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .9rem; }
.radio-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .85rem .9rem; border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.radio-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.radio-card span { display: flex; flex-direction: column; }
.radio-card small { color: var(--ink-soft); font-size: .8rem; }
.radio-card__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.radio-card:has(input:checked) { border-color: var(--ink); }
.radio-card:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.demo-note { padding: .75rem .9rem; border: 1px dashed var(--rule); border-radius: var(--radius); font-size: .82rem; color: var(--ink-soft); }
.done { display: flex; flex-direction: column; gap: 1rem; }
.done h3 { font-size: 1.8rem; font-weight: 830; font-stretch: 116%; }
.done p { color: var(--ink-soft); }
.done strong { color: var(--ink); }
.done ul { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.done li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; align-items: center; gap: 1rem; width: max-content; max-width: calc(100% - 32px);
  padding: .7rem .7rem .7rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--on-ink);
  box-shadow: var(--lift); font-size: .9rem; transform: translateX(-50%);
  animation: toast-in .3s cubic-bezier(.2, .7, .2, 1);
}
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }
.toast__btn { flex: none; min-height: 34px; padding: 0 .75rem; border: 1px solid currentColor; border-radius: 3px; background: transparent; color: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Capa de movimiento: tintas de risógrafo, grano de papel y animaciones
   ===================================================================== */
:root {
  /* Tintas de risógrafo: iguales en ambos temas, siempre con su texto fijo */
  --riso-pink: #FF48B0;
  --riso-blue: #0078BF;
  --riso-yellow: #FFE800;
  --riso-green: #00A95C;
  --riso-ink: #14203A;
  --on-riso-blue: #FFFFFF;
  --bad: #C42B48;
  --grain: .075;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.65, 0, .25, 1);
  --step-3: clamp(2.2rem, 3.6vw + 1.1rem, 4.4rem);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grain: .05; --bad: #FF7088; } }
:root[data-theme="dark"] { --grain: .05; --bad: #FF7088; }

::selection { background: var(--riso-pink); color: var(--riso-ink); }

/* Grano de papel sobre toda la página */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 -.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Botones con desfase de registro */
.btn { transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background-color .15s, color .15s; }
.btn--primary:hover { background: var(--blue); color: var(--on-blue); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--riso-pink); }
.btn--ghost:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--riso-pink); }
.btn:active, .btn--primary:active, .btn--ghost:active { transform: translate(0, 0); box-shadow: 0 0 0 transparent; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* Logotipo: los dos círculos se desregistran al pasar el cursor */
.logo__mark i { transition: transform .35s var(--ease-out); }
.logo:hover .logo__mark i:first-child { transform: translate(-3px, -2px); }
.logo:hover .logo__mark i:last-child { transform: translate(3px, 2px); }

/* Encabezado: se esconde al bajar; barra de avance en dos tintas */
.site-header { transition: transform .4s var(--ease-out); }
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 4px)); }
.site-header::before, .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  transform-origin: 0 50%; pointer-events: none;
}
.site-header::before { background: var(--riso-blue); transform: scaleX(var(--pb, 0)); }
.site-header::after { background: var(--riso-pink); mix-blend-mode: var(--overprint); transform: scaleX(var(--p, 0)); }

/* ---------- Tarjetas ---------- */
.product { --hit: var(--riso-pink); }
.product:nth-child(3n+2) { --hit: var(--riso-blue); }
.product:nth-child(3n) { --hit: var(--riso-yellow); }
.product__art {
  background: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) .9px, transparent 1.4px) 0 0 / 13px 13px, var(--tile);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.product:hover .product__art, .product__art:focus-visible { transform: translate(-5px, -5px); box-shadow: 10px 10px 0 var(--hit); }
.btn-add { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .15s, color .15s; }
.btn-add:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--hit); }

/* Cuaderno en capas: la portada gira sobre el lomo */
.nbx { position: relative; display: block; width: 100%; height: 100%; perspective: 760px; }
.nbx > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.nbx__cover { transform-origin: var(--hinge, 25%) 50%; transition: transform .8s var(--ease-out); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.product:hover .nbx__cover, .product__art:focus-visible .nbx__cover, .pd__art:hover .nbx__cover { transform: rotateY(-46deg); }

/* Microinteracciones de los demás productos */
.art .mv { transition: transform .7s var(--ease-out); transform-box: view-box; }
.art .mv-cap { transform-origin: 140px 120px; }
.product:hover .mv-cap { transform: translate(-14px, -18px); }
.art .mv-bottle { transform-origin: 84px 194px; }
.product:hover .mv-bottle { transform: rotate(-9deg); }
.art .mv-puddle { transform-origin: 60px 206px; }
.product:hover .mv-puddle { transform: scale(1.25, 1.12); }
.art .mv-pencil { transform-origin: 120px 214px; }
.product:hover .mv-pencil { transform: rotate(calc((var(--i) - 2.5) * 6deg)); }
.art .mv-sheet { transform-origin: 120px 119px; }
.product:hover .mv-sheet { transform: rotate(-8deg) translate(-8px, -6px); }
.product:hover .mv-letter { transform: translateY(-30px); }

/* Al cambiar de color, la ilustración "sale de la máquina" de arriba abajo */
.art > *, .pd__art > * { animation: print-in .75s var(--ease-press) backwards; }
@keyframes print-in { from { clip-path: inset(0 0 100% 0); } }

/* Ficha de producto */
.pd__art { background: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.5px) 0 0 / 15px 15px, var(--tile); }
.pd__art .nbx { width: 100%; height: 100%; }

/* Volar al carrito */
.fly { position: fixed; z-index: 80; pointer-events: none; will-change: transform; }
.fly > * { display: block; width: 100%; height: 100%; }
.burst { position: fixed; z-index: 81; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; }

/* Preguntas: se despliegan con altura animada donde el navegador lo permite */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* Avisos de tirada: bloque rosa con trama azul sobreimpresa */
.news { position: relative; isolation: isolate; overflow: hidden; background: var(--riso-pink); color: var(--riso-ink); box-shadow: none; }
.news::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(circle, var(--riso-blue) 2.2px, transparent 2.8px) 0 0 / 12px 12px;
  -webkit-mask: radial-gradient(circle at 100% 0%, #000 0 10%, transparent 34%);
  mask: radial-gradient(circle at 100% 0%, #000 0 10%, transparent 34%);
}
.news .eyebrow, .news__copy p:last-child { color: var(--riso-ink); }
.news .input { background: #FFFFFF; color: var(--riso-ink); border-color: var(--riso-ink); }
.news .input::placeholder { color: #4C5871; }
.news .btn--primary { background: var(--riso-ink); color: #FFFFFF; }
.news .btn--primary:hover { box-shadow: 5px 5px 0 var(--riso-blue); }

/* ---------- Entradas ligadas al scroll (solo transformaciones: todo es legible en reposo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .h2 { animation: h2-stretch linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .product, .facts li, .faq details { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    .product:nth-child(2n) { animation-range: entry 10% entry 100%; }
  }
}
@keyframes h2-stretch { from { font-stretch: 56%; } }
@keyframes rise { from { transform: translateY(60px) rotate(1.2deg); } }

/* ---------- Hero: dos pasadas de risógrafo ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(1.75rem, 4.5vw, 4rem) clamp(1rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--rule); }
.hx__dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hx__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 900px) {
  .hx__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 4.5rem); }
  .hx__specs { grid-column: 1 / -1; }
}
.hx__copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hx__eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.hx__pulse { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--riso-pink); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--riso-pink) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.hx__title { font-size: clamp(3rem, 8.4vw, 8.6rem); font-weight: 900; line-height: .84; letter-spacing: -.01em; text-transform: uppercase; }
.hx__line {
  position: relative; display: block; width: max-content; white-space: nowrap;
  color: var(--blue); font-stretch: var(--fs, 84%); transition: font-stretch .8s var(--ease-out);
}
.hx__line::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--pink);
  mix-blend-mode: var(--overprint); pointer-events: none;
  transform: translate(var(--rx, 3px), var(--ry, 3px));
}
.hx__lede { max-width: 33rem; font-size: 1.125rem; color: var(--ink-soft); }
.hx__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Escenario de cuadernos: perspectiva y giro con el puntero */
.hx__stage { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1 / 1; perspective: 1100px; --tx: 0deg; --ty: 0deg; }
.hx__nb {
  position: absolute; top: 0; left: 0; width: 74%; aspect-ratio: 1 / 1; transform-style: preserve-3d;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) rotateY(calc(var(--tx) * var(--d))) rotateX(calc(var(--ty) * var(--d)));
}
.hx__nb--1 { --x: -4%; --y: 12%; --r: -13deg; --d: .55; }
.hx__nb--2 { --x: 31%; --y: -3%; --r: 8deg; --d: .8; }
.hx__nb--3 { --x: 14%; --y: 25%; --r: -2deg; --d: 1.15; }
.hx__nb > * { width: 100%; height: 100%; }
.hx__stage:hover .hx__nb--3 .nbx__cover { transform: rotateY(-52deg); }

.stamp { position: absolute; left: 0; bottom: 1%; z-index: 2; width: 34%; height: auto; color: var(--riso-pink); mix-blend-mode: var(--overprint); transform: rotate(-14deg); }
.stamp__ring { transform-origin: 60px 60px; transform-box: view-box; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hx__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.hx__specs div { padding: .9rem .9rem .1rem; border-left: 1px solid var(--rule); }
.hx__specs div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
@media (min-width: 640px) {
  .hx__specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hx__specs div:nth-child(3) { border-left: 1px solid var(--rule); padding-left: .9rem; }
}
.hx__specs dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hx__specs dd { font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; font-variant-numeric: tabular-nums; }

.slug {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px dashed var(--rule);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.slug svg { width: 16px; height: 16px; flex: none; }
.slug__bar { display: inline-flex; }
.slug__bar i { display: block; width: 18px; height: 12px; }
.slug__bar i:nth-child(1) { background: var(--riso-pink); }
.slug__bar i:nth-child(2) { background: var(--riso-blue); }
.slug__bar i:nth-child(3) { position: relative; background: var(--riso-pink); }
.slug__bar i:nth-child(3)::after { content: ""; position: absolute; inset: 0; background: var(--riso-blue); mix-blend-mode: var(--overprint); }

/* Entrada: pasada azul, pasada rosa que cae en registro, cuadernos y sello */
@media (prefers-reduced-motion: no-preference) {
  .js-intro .hx__line { animation: pass-blue .85s var(--ease-press) backwards; animation-delay: calc(.1s + var(--li, 0) * .1s); }
  .js-intro .hx__line::after { animation: pass-pink 1s var(--ease-out) backwards; animation-delay: calc(.6s + var(--li, 0) * .1s); }
  .js-intro .hx__nb > * { animation: nb-drop 1.1s var(--ease-out) backwards; }
  .js-intro .hx__nb--1 > * { animation-delay: .35s; }
  .js-intro .hx__nb--2 > * { animation-delay: .5s; }
  .js-intro .hx__nb--3 > * { animation-delay: .65s; }
  .js-intro .stamp { animation: stamp-slam .7s var(--ease-out) 1.3s backwards; }
  .js-intro .hx__lede, .js-intro .hx__actions, .js-intro .hx__eyebrow { animation: fade-up .8s var(--ease-out) backwards; }
  .js-intro .hx__eyebrow { animation-delay: .05s; }
  .js-intro .hx__lede { animation-delay: .7s; }
  .js-intro .hx__actions { animation-delay: .85s; }
}
@keyframes pass-blue { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -6% -20% -6%); } }
@keyframes pass-pink { from { transform: translate(34px, -18px); opacity: 0; } 35% { opacity: 1; } }
@keyframes nb-drop { from { transform: translate3d(0, -45%, 0) rotateX(70deg) rotateZ(-12deg); opacity: 0; } 50% { opacity: 1; } }
@keyframes stamp-slam { from { transform: rotate(-14deg) scale(2.6); opacity: 0; } 55% { transform: rotate(-14deg) scale(.9); opacity: 1; } 78% { transform: rotate(-14deg) scale(1.05); } }
@keyframes fade-up { from { transform: translateY(16px); opacity: 0; } }

/* ---------- Bandas cruzadas: dos tintas que se sobreimprimen ---------- */
.bands { position: relative; isolation: isolate; height: clamp(150px, 19vw, 250px); overflow: hidden; --skew: 0deg; }
.band {
  position: absolute; left: -6%; width: 112%; top: 50%; padding-block: .42em .36em;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.4vw, 3.5rem); line-height: 1; white-space: nowrap;
}
.band--a { background: var(--riso-pink); color: var(--riso-ink); transform: translateY(-78%) rotate(-3.5deg) skewX(var(--skew)); }
.band--b { background: var(--riso-blue); color: var(--on-riso-blue); mix-blend-mode: var(--overprint); transform: translateY(-22%) rotate(2.6deg) skewX(calc(var(--skew) * -1)); }
.band__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.band--b .band__track { animation-duration: 46s; animation-direction: reverse; }
.band__group { display: flex; align-items: center; gap: .55em; padding-right: .55em; }
.reg { position: relative; display: inline-block; width: .5em; height: .5em; flex: none; border: .08em solid currentColor; border-radius: 50%; }
.reg::before, .reg::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.reg::before { width: .9em; height: .08em; }
.reg::after { width: .08em; height: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Anatomía: cuaderno 3D sincronizado con el scroll ---------- */
.spot {
  --fg: var(--on-ink); --fg-soft: color-mix(in srgb, var(--on-ink) 68%, var(--ink));
  background: var(--ink); color: var(--fg); padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem); overflow: clip;
}
.spot .eyebrow, .spot .section-note { color: var(--fg-soft); }
.spot__grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .spot__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.spot__sticky {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1; height: min(84vh, 680px);
  display: grid; place-items: center; overflow: hidden; background: var(--ink);
}
@media (max-width: 899px) { .spot__sticky { height: 54vh; } }
.spot__stage { container-type: inline-size; width: 100%; height: 100%; display: grid; place-items: center; perspective: 1700px; }
.spot__ticks { position: absolute; left: 50%; bottom: 1rem; display: flex; gap: .45rem; transform: translateX(-50%); }
.spot__ticks i { display: block; width: 26px; height: 3px; background: var(--fg-soft); opacity: .35; transition: background-color .3s, opacity .3s; }
.spot__ticks i.is-on { background: var(--riso-pink); opacity: 1; }

.spot__feats { list-style: none; padding: 0; margin: 0; }
.feat { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding-block: 2rem; opacity: .45; transition: opacity .45s; cursor: default; }
@media (max-width: 899px) { .feat { min-height: 58vh; justify-content: flex-start; padding-top: 1.5rem; } }
.feat.is-active { opacity: 1; }
.feat h3 { font-size: clamp(1.7rem, 2.4vw + .8rem, 2.6rem); font-weight: 820; font-stretch: 118%; letter-spacing: -.01em; }
.feat > p:not(.eyebrow):not(.feat__spec) { color: var(--fg-soft); max-width: 38ch; font-size: 1.05rem; }
.feat__spec { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .78rem; color: var(--fg); }
.feat__spec::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--riso-pink); }

/* El cuaderno: caras en 3D medidas en em (A5, 148 × 210 mm) */
.nb3 {
  --w: 15em; --h: 21em; --t: 1.5em; --open: 0deg;
  --bx: 0em; --sc: 1; --rx: 12deg; --ry: -26deg; --rz: 3deg; --px: 0deg; --py: 0deg;
  position: relative; width: var(--w); height: var(--h); font-size: 14px; font-size: clamp(9px, 3.2cqi, 19px);
  transform-style: preserve-3d;
  transform: translateX(var(--bx)) scale(var(--sc)) rotateX(calc(var(--rx) + var(--py))) rotateY(calc(var(--ry) + var(--px))) rotateZ(var(--rz));
  transition: transform 1.2s var(--ease-out);
}
.spot__stage[data-state="spine"] .nb3 { --rx: 8deg; --ry: 64deg; --rz: 0deg; --sc: 1.04; }
.spot__stage[data-state="open"] .nb3 { --bx: 7.2em; --rx: 30deg; --ry: 0deg; --rz: -3deg; --sc: .9; --open: -176deg; }
.spot__stage[data-state="paper"] .nb3 { --bx: -.5em; --rx: 20deg; --ry: -4deg; --rz: -2deg; --sc: 1.6; --open: -176deg; }
.nb3 > div { position: absolute; }
.nb3__back { inset: 0; border-radius: .25em; background: var(--c1); transform: translateZ(calc(var(--t) / -2)); box-shadow: 0 2.5em 3em -1em rgba(0, 0, 0, .45); }
.nb3__block {
  left: .25em; top: .3em; width: calc(var(--w) - .45em); height: calc(var(--h) - .6em); border-radius: 0 .2em .2em 0;
  transform: translateZ(calc(var(--t) / 2 - .08em));
  background: radial-gradient(circle, #98A1AF 0 .06em, transparent .075em) .25em .25em / .507em .507em, #F6F4EE;
  box-shadow: inset .7em 0 .9em -.7em rgba(0, 0, 0, .3);
}
.nb3__spine {
  left: calc(var(--t) / -2); top: 0; width: var(--t); height: var(--h); transform: rotateY(-90deg);
  background:
    repeating-linear-gradient(to bottom, transparent 0 .8em, #F3EFE6 .8em 1.08em) 50% .5em / 64% calc(100% - 1em) no-repeat,
    linear-gradient(90deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .08)), var(--c1);
}
.nb3__edge {
  left: calc(var(--w) - .2em - (var(--t) - .2em) / 2); top: .3em; width: calc(var(--t) - .2em); height: calc(var(--h) - .6em);
  transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #F3F1EA 0 .07em, #CFC9BA .07em .11em);
}
.nb3__top {
  left: .25em; top: calc(.3em - (var(--t) - .2em) / 2); width: calc(var(--w) - .45em); height: calc(var(--t) - .2em);
  transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #F3F1EA 0 .07em, #CFC9BA .07em .11em);
}
.nb3__cover { inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(calc(var(--t) / 2)) rotateY(var(--open)); transition: transform 1.3s var(--ease-press); }
.nb3__front, .nb3__inside { position: absolute; inset: 0; overflow: hidden; border-radius: .25em; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.nb3__front svg { display: block; width: 100%; height: 100%; }
.nb3__inside {
  transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: space-between; padding: 1.5em 1.3em;
  background: #ECE6D8; color: #14203A; box-shadow: inset -.7em 0 .9em -.7em rgba(0, 0, 0, .3);
}
.nb3__ed { align-self: flex-start; padding: .45em .6em; border: .1em solid #0078BF; color: #0078BF; font: 500 .62em/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.nb3__ed b { font-family: var(--font-display); font-size: 2.1em; font-weight: 900; letter-spacing: 0; display: block; }
.nb3__colophon { font: .5em/1.6 var(--font-mono); color: #4C5871; letter-spacing: .05em; }
.nb3__measure {
  position: absolute; left: 6.53em; top: 5.73em; display: flex; flex-direction: column; align-items: flex-start; gap: .25em;
  font: 600 .62em/1 var(--font-mono); color: #E0007A; opacity: 0; transition: opacity .4s;
}
.nb3__measure i { display: block; width: .818em; height: .45em; border: .12em solid currentColor; border-top: 0; }
.spot__stage[data-state="paper"] .nb3__measure { opacity: 1; transition-delay: .9s; }

/* ---------- Guía de gramajes + prueba de traspaso ---------- */
@media (min-width: 1000px) {
  .guide { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); column-gap: 3.5rem; row-gap: 3rem; align-items: start; }
  .guide .table-wrap { grid-column: 1 / -1; }
}
.ink { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--sheet); border-radius: 6px; box-shadow: var(--lift); min-width: 0; }
.ink__head { display: flex; flex-direction: column; gap: .3rem; }
.ink__title { font-size: 1.6rem; font-weight: 830; font-stretch: 118%; }
.ink__hint { color: var(--ink-soft); font-size: .92rem; }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: .45rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.seg__opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 .85rem; border: 1.5px solid var(--rule); border-radius: 999px;
  font-weight: 500; font-size: .9rem; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, border-color .15s;
}
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
#ink-g label::after { content: " g/m²"; font-size: .72em; opacity: .7; margin-left: .2em; }

.ink__sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.25rem); }
.sheet { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.sheet__svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 22px -12px rgba(0, 0, 0, .45); }
.sheet figcaption { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.ink__result { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.verdict { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1.5px solid currentColor; }
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.verdict[data-r="2"] { color: var(--ok); }
.verdict[data-r="1"] { color: var(--warn); }
.verdict[data-r="0"] { color: var(--bad); }
.verdict.is-new { animation: verdict-pop .45s var(--ease-out); }
@keyframes verdict-pop { 40% { transform: scale(1.08); } }
.ink__meta { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); }
.ink__match { flex-basis: 100%; font-size: .92rem; color: var(--ink-soft); }
.ink__match .linklike { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Taller: tarjetas que se apilan al bajar ---------- */
.taller__intro { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; margin-bottom: 2rem; }
.taller__intro p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1.25rem, 5vh, 3rem); }
.stack__card {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem + var(--i) * 1.4rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center;
  min-height: clamp(260px, 42vh, 380px); padding: clamp(1.25rem, 4vw, 2.75rem); border-radius: 6px;
  color: var(--riso-ink); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .45);
}
@media (min-width: 760px) { .stack__card { grid-template-columns: auto minmax(0, 1fr) minmax(0, 210px); gap: clamp(1.5rem, 4vw, 3.5rem); } }
.stack__card--pink { background: var(--riso-pink); }
.stack__card--yellow { background: var(--riso-yellow); }
.stack__card--blue { background: var(--riso-blue); color: var(--on-riso-blue); }
.stack__card--green { background: var(--riso-green); }
.stack__num { font-family: var(--font-display); font-weight: 900; font-stretch: 55%; font-size: clamp(4.5rem, 12vw, 10rem); line-height: .8; letter-spacing: -.02em; }
.stack__body { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.stack__body h3 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; font-stretch: 125%; line-height: .95; }
.stack__body p { max-width: 42ch; font-size: 1.05rem; }
.stack__meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.stack__art { width: 100%; max-width: 210px; height: auto; }
@media (max-width: 759px) { .stack__art { max-width: 150px; justify-self: end; margin-top: -.5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .stack__art .spin-slow { transform-box: view-box; transform-origin: 62px 52px; animation: spin 9s linear infinite; }
  .stack__art .thread { stroke-dasharray: 8 6; animation: sew 1.6s linear infinite; }
  .stack__art .blade { animation: chop 2.4s var(--ease-press) infinite; }
}
@keyframes sew { to { stroke-dashoffset: -28; } }
@keyframes chop { 0%, 55%, 100% { transform: translateY(0); } 70% { transform: translateY(14px); } }

/* ---------- Logotipo del pie: peso variable ---------- */
.wm {
  display: flex; justify-content: space-between; margin-top: 2.5rem; padding-bottom: .12em; overflow: hidden; overflow: clip visible; user-select: none;
  font-family: var(--font-display); font-weight: 400; font-stretch: 100%; font-size: clamp(3.2rem, 15vw, 13rem);
  line-height: 1.04; letter-spacing: -.02em; color: var(--blue);
}
.wm span { position: relative; transition: font-weight .5s var(--ease-out); }
.wm span::after { content: attr(data-l); position: absolute; inset: 0; color: var(--pink); mix-blend-mode: var(--overprint); transform: translate(.035em, .03em); }
@media (prefers-reduced-motion: no-preference) {
  .wm:not(.is-tracking) span { animation: wm-wave 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * .22s); }
}
@keyframes wm-wave { 0%, 100% { font-weight: 400; } 50% { font-weight: 900; } }

/* ---------- Envío y pago ---------- */
.field-row { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: .75rem; }
.field-row .input--short { max-width: none; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237C879A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px 8px;
}
.pay { display: flex; flex-direction: column; gap: 1rem; }
.pay #pay-title:focus { outline: none; }
.pay__card { display: grid; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); }
.pay__row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; font-size: .9rem; }
.pay__k { padding-top: .2em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pay__v { overflow-wrap: anywhere; }
.pay__edit { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pay__items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.pay__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-variant-numeric: tabular-nums; }
.pay__box { display: flex; flex-direction: column; gap: .8rem; padding: 1rem; border-radius: var(--radius); background: var(--paper); }
.pay__label { font-weight: 600; font-size: .9rem; }
.pay__buttons { min-height: 52px; }
.pay__loading { color: var(--ink-soft); font-size: .9rem; }
.pay__preview { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border: 1.5px dashed var(--rule); border-radius: var(--radius); color: var(--ink-soft); font-size: .9rem; }
.pay__preview strong { color: var(--ink); }
.pay__status { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-left: 3px solid var(--ink-soft); background: var(--sheet); font-size: .9rem; }
.pay__status[data-kind="error"] { border-left-color: var(--bad); }
.pay__status[data-kind="wait"] { border-left-color: var(--blue); }
.done .ref { font-family: var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }

/* ---------- Existencias en la tienda ---------- */
.btn-add[disabled], .btn-add[disabled]:hover { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; background: transparent; color: var(--ink); border-style: dashed; }
.product.is-soldout .art { opacity: .5; filter: grayscale(.7); }
.product.is-soldout .badge:not(.badge--out) { display: none; }
.product.is-soldout:hover .product__art { transform: none; box-shadow: none; }
.badge--out { background: var(--ink); color: var(--on-ink); }
.stock-note { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; color: var(--warn); }
.product.is-soldout .stock-note { color: var(--ink-soft); }

/* Color agotado: el círculo lleva una diagonal */
.swatch.is-out::before {
  opacity: .6;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--c);
}

.vopt.is-out { color: var(--ink-soft); border-style: dashed; }
.vopt.is-out .vopt__dot { opacity: .45; }
.vopt__out { font-size: .78em; }
.pd__stock { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.pd__stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd__stock[data-level="ok"] { color: var(--ok); }
.pd__stock[data-level="low"] { color: var(--warn); }
.pd__stock[data-level="out"] { color: var(--bad); }
#pd-add[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- Avisos legales dentro de la tienda ---------- */
mark.todo { padding: 0 .3em; border-radius: 2px; background: #FFE800; color: #14203A; font-weight: 600; }
.privacy-note { font-size: .8rem; line-height: 1.5; color: var(--ink-soft); }
.privacy-note strong { color: var(--ink); }
.pay .fine a, .privacy-note a { color: var(--link); }
.news__legal { margin-top: .35rem; font-size: .8rem; line-height: 1.5; color: var(--riso-ink); }
.news__legal a { color: var(--riso-ink); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; font-style: normal; color: var(--ink-soft); margin-bottom: .8rem; overflow-wrap: anywhere; }
@media (min-width: 640px) and (max-width: 999px) { .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; } }
