/*
 * Don! Studio · landing.
 * Las maquetas animadas conservan sus coordenadas en línea (son el dibujo de la escena); aquí viven
 * los tokens, los componentes y los cortes responsive. Corte móvil: menos de 720 px.
 */

:root {
  --paper: #f6f3ec;
  --paper-hi: #fdfbf6;
  --paper-alt: #efebe2;
  --deep: #e9e5dc;
  --hover: #ece7dc;
  --ink: #121214;
  --ink-2: #2b2b30;
  --muted: #55555c;
  --muted-2: #8a8781;
  /* Gris de los rótulos del pie: el de --muted-2 no llega a 4,5:1 sobre el fondo del pie. */
  --muted-pie: #6b6964;
  --line: #d6d0c4;
  --line-2: #e3ddd1;
  --shu: #c13b24;
  --on-shu: #fff7ee;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --f-sans: 'Zen Kaku Gothic New', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;
  --f-dela: 'Dela Gothic One', sans-serif;
  --f-anto: 'Antonio', sans-serif;
  --f-kaisei: 'Kaisei Tokumin', serif;
  --f-mincho: 'Zen Old Mincho', serif;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 62px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--shu); }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }

/* Hasta que el motor crea las entradas en pausa, lo que va a entrar no se pinta (evita el destello). */
.motion-pending [data-r] { opacity: 0; }

/* Portada: las secciones bajo el hero se maquetan cuando se acercan a la pantalla, así el primer pintado solo
   calcula el hero (la primera maquetación de la página entera, con todas sus fuentes, es lo que más lo retrasaba).
   Para saltar a un ancla se maquetan todas antes (app.js y el script de <head> ponen .secciones-visibles): con las
   alturas estimadas el salto acabaría en otro sitio. */
[data-home] main > section:not(.hero), [data-home] > .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.secciones-visibles [data-home] main > section, .secciones-visibles [data-home] > .foot { content-visibility: visible; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  transition: top .2s ease;
}
.skip:focus, .skip:hover { top: 12px; color: var(--paper); }

/* Contenedor de página. No se llama .home: WordPress pone esa clase en el <body> de la portada. */
.ds {
  position: relative; background: var(--paper); color: var(--ink); font-family: var(--f-sans);
  overflow-x: clip; min-height: 100vh;
}
.red { color: var(--shu); }

/* Línea con máscara: el padding y el margen negativo evitan que se corten la g y la j. */
.lm { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.12em; }
.lm > span { display: block; }

.arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo ---------- */

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-stamp {
  width: 34px; height: 34px; background: var(--shu); border-radius: 7px; transform: rotate(-4deg);
  display: flex; align-items: center; justify-content: center; position: relative; flex: none;
}
.logo-stamp::before {
  content: ''; position: absolute; inset: 3px; border: 1.5px solid rgba(255, 247, 238, .5); border-radius: 4px;
}
.logo-stamp span {
  font-family: var(--f-mincho); font-weight: 900; font-size: 11px; color: var(--on-shu);
  writing-mode: vertical-rl; letter-spacing: 1px; line-height: 1;
}
.logo-words { display: flex; flex-direction: column; }
.logo-name { font-family: var(--f-mincho); font-weight: 900; font-size: 17px; color: #0f1117; line-height: 1.05; }
.logo-tag { font-size: 7.5px; letter-spacing: .3em; color: #5b626f; margin-top: 3px; }

.logo--lg { gap: 16px; }
.logo--lg .logo-stamp { width: 52px; height: 52px; border-radius: 9px; }
.logo--lg .logo-stamp::before { inset: 4px; border-radius: 6px; }
.logo--lg .logo-stamp span { font-size: 18px; letter-spacing: 2px; }
.logo--lg .logo-name { font-size: 22px; }
.logo--lg .logo-tag { font-size: 8.5px; letter-spacing: .34em; margin-top: 4px; }

/* ---------- Cabecera ---------- */

.hdr {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: stretch; height: 62px;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
}
.hdr-logo {
  display: flex; align-items: center; padding: 0 clamp(14px, 2vw, 24px);
  border-right: 2px solid var(--ink); flex: none;
}
.hdr-nav {
  flex: 0 1 auto; min-width: 0; height: 62px; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.hdr-nav a {
  display: flex; flex: none; height: 62px; white-space: nowrap; align-items: center; gap: 8px;
  padding: 0 clamp(12px, 1.6vw, 22px); border-right: 2px solid var(--ink);
}
.hdr-nav a span { color: var(--shu); }
.hdr-nav a:hover { background: var(--ink); color: var(--paper); }
.hdr-fill {
  flex: 1 1 0; min-width: 0; border-right: 2px solid var(--ink);
  background-image: radial-gradient(#121214 .8px, transparent 1.05px); background-size: 5px 5px; opacity: .35;
}
.hdr-lang {
  display: flex; align-items: center; padding: 0 14px; border-right: 2px solid var(--ink); flex: none;
}
.hdr-cta {
  display: flex; align-items: center; padding: 0 22px; flex: none;
  background: var(--shu); color: var(--on-shu);
  font-family: var(--f-sans); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.hdr-cta:hover { background: var(--ink); color: var(--on-shu); }
.hdr-menu {
  display: none; flex: none; width: 62px; align-items: center; justify-content: center;
  border: 0; border-left: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
}
.hdr-menu.is-open { background: var(--ink); color: var(--paper); }
.burger { position: relative; width: 20px; height: 14px; display: block; }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor; display: block;
  transition: transform .45s var(--ease), top .3s ease;
}
.burger span:first-child { top: 2px; }
.burger span:last-child { top: 10px; }
.hdr-menu.is-open .burger span:first-child { top: 6px; transform: rotate(45deg); }
.hdr-menu.is-open .burger span:last-child { top: 6px; transform: rotate(-45deg); }

/* Selector de idioma. EN y JA aún no existen: se ven, pero no navegan. */
.lang { display: flex; border: 2px solid var(--ink); font-family: var(--f-mono); font-size: 11px; flex: none; }
.lang a { height: 30px; padding: 0 9px; display: flex; align-items: center; }
.lang a + a { border-left: 2px solid var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { background: var(--deep); }
.lang a[aria-disabled] { cursor: default; }
.lang--lg { font-size: 12px; background: var(--paper); }
.lang--lg a { height: 40px; padding: 0 12px; }
.lang--lg a:not([aria-current]):hover { background: transparent; }

/* ---------- Menú móvil ---------- */

.menu {
  position: fixed; left: 0; right: 0; top: 62px; bottom: 0; z-index: 49;
  display: flex; flex-direction: column; background: var(--paper);
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden; overflow: auto;
  transition: transform .55s var(--ease), opacity .35s ease, visibility 0s linear .55s;
}
.menu.is-open {
  transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible;
  transition: transform .55s var(--ease), opacity .35s ease, visibility 0s;
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 18px 18px; border-bottom: 2px solid var(--ink); color: var(--ink);
}
.menu-nav a:hover { background: var(--ink); color: var(--paper); }
.menu-num { font-family: var(--f-mono); font-size: 12px; color: var(--shu); }
.menu-name { font-family: var(--f-dela); font-size: 30px; line-height: 1; }
.menu-kanji { font-family: var(--f-kaisei); font-weight: 800; font-size: 18px; opacity: .5; }
.menu-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 18px 28px; margin-top: auto;
  background-image: radial-gradient(rgba(18, 18, 20, .2) .9px, transparent 1.15px); background-size: 6px 6px;
}
.menu-cta {
  flex: 1 1 auto; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--shu); color: var(--on-shu); font-size: 15px; font-weight: 700;
}
.menu-cta:hover { color: var(--on-shu); }

/* ---------- Hero ---------- */

.hero { padding: 12px clamp(10px, 1.4vw, 20px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; min-height: calc(100vh - 86px);
}

.hero-main {
  grid-column: 1 / 8; grid-row: 1 / 3; position: relative;
  border: 2px solid var(--ink); background: var(--paper); overflow: hidden; min-height: 440px;
}
.hero-main-trama {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(#121214 .9px, transparent 1.15px); background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(200deg, transparent 38%, rgba(0, 0, 0, .55) 80%, #000 100%);
  mask-image: linear-gradient(200deg, transparent 38%, rgba(0, 0, 0, .55) 80%, #000 100%);
}
.hero-main-in {
  position: relative; height: 100%; box-sizing: border-box; padding: clamp(22px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.hero-label {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.hero-h1 {
  margin: 0; font-family: var(--f-anto); font-weight: 700; font-style: normal; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 108px); line-height: .98; letter-spacing: -.005em; color: var(--ink); max-width: 12ch;
}
/* Sitio del sello: se repite en la viñeta principal (las líneas de concentración, que esa viñeta recorta) y en
   .hero-seal-capa (el sello y sus ondas de impacto). Mide lo mismo que el sello para que ambos compartan centro. */
.hero-seal {
  position: absolute; right: clamp(18px, 3vw, 44px); top: clamp(60px, 9vh, 90px);
  width: clamp(110px, 11vw, 180px); height: clamp(110px, 11vw, 180px);
  display: flex; gap: 14px; pointer-events: none;
}
/* Capa del sello: la misma área de la rejilla que la viñeta principal (con su borde, para que el sitio coincida),
   pero sin recorte y por encima de todas las viñetas, así el sello al caer y sus ondas pasan por encima. */
.hero-seal-capa {
  grid-column: 1 / 8; grid-row: 1 / 3; position: relative; z-index: 10;
  border: 2px solid transparent; pointer-events: none;
}
.hero-rays-at { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hero-rays {
  position: absolute; left: -1200px; top: -1200px; width: 2400px; height: 2400px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(18, 18, 20, .22) 0deg .18deg, transparent .18deg 2.2deg);
  -webkit-mask-image: radial-gradient(circle, transparent 150px, #000 320px, transparent 740px);
  mask-image: radial-gradient(circle, transparent 150px, #000 320px, transparent 740px);
}
.hero-seal-rot { position: relative; transform: rotate(-6deg); }
.hero-stamp { position: relative; width: clamp(110px, 11vw, 180px); aspect-ratio: 1 / 1; }

/* Sello ドン grande (hero y CTA). */
.ring { position: absolute; inset: -4%; border: 2px solid var(--shu); border-radius: 16%; opacity: 0; display: block; }
.ring--thin { border-width: 1.5px; }
.stamp-body {
  position: absolute; inset: 0; background: var(--shu); border-radius: 13%;
  display: flex; align-items: center; justify-content: center;
}
.stamp-body::before {
  content: ''; position: absolute; inset: 6.5%; border: 2px solid rgba(255, 247, 238, .55); border-radius: 9%;
}
.stamp-body span {
  font-family: var(--f-mincho); font-weight: 900; color: var(--on-shu); writing-mode: vertical-rl; line-height: 1;
}
.hero-stamp .stamp-body { box-shadow: 0 20px 44px -18px rgba(193, 59, 36, .55); container-type: inline-size; }
.hero-stamp .stamp-body span { font-size: 34cqw; letter-spacing: .1em; }

/* Viñeta de los tres pasos (se repite cada 5,8 s). */
.hero-steps { grid-column: 8 / 13; grid-row: 1; position: relative; background: var(--paper); min-height: 300px; }
.hs-panel { position: absolute; inset: 0; background: var(--paper-hi); }
.hs-trama {
  position: absolute; inset: 0; opacity: .6;
  background-image: radial-gradient(#121214 .8px, transparent 1.05px); background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
.hs-bub {
  position: absolute; top: 46%; width: clamp(78px, 6.6vw, 112px); aspect-ratio: 1 / 1.3;
  transform: translate(-50%, -50%); background: #fff; border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
}
.hs-ja {
  writing-mode: vertical-rl; font-family: var(--f-mincho); font-weight: 900;
  font-size: clamp(12px, 1.15vw, 17px); letter-spacing: .06em; line-height: 1.45;
}
.hs-lab {
  position: absolute; top: auto; bottom: 8px; font-family: var(--f-mono); font-size: 10px;
  background: var(--paper-hi); border: 2px solid var(--ink); padding: 2px 6px; white-space: nowrap;
}
.hs-handle { position: absolute; width: 6px; height: 6px; background: #fff; border: 1.5px solid #2f6fe0; }

/* Producción del capítulo (estado vivo). */
.hero-prod {
  grid-column: 8 / 13; grid-row: 2; position: relative; border: 2px solid var(--ink);
  background: var(--paper-hi); color: var(--ink); overflow: hidden; min-height: 210px; padding: 18px;
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.pr-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: #5c5a55;
}
.pr-title { display: flex; align-items: center; gap: 8px; }
.pr-live { width: 6px; height: 6px; border-radius: 999px; background: var(--shu); transition: opacity .4s ease; }
.pr-done { color: var(--ink); }
.pr-segs { display: flex; gap: 2px; height: 8px; margin: 2px 0 6px; }
.pr-seg { background: var(--c); transform-origin: left; display: block; transition: flex-grow .7s var(--ease); }
.pr-row {
  position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto minmax(50px, 90px) 34px;
  align-items: center; gap: 10px; padding: 7px 10px; border: 2px solid #cfc9bd; background: transparent;
  font-size: 12.5px; transition: background .5s ease, border-color .5s ease;
}
.pr-row.is-act { border-color: var(--ink); background: var(--hover); }
.pr-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--c);
  box-shadow: 0 0 0 0px var(--ring); transition: box-shadow .5s ease;
}
.pr-row.is-act .pr-dot { box-shadow: 0 0 0 4px var(--ring); }
.pr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-who { font-family: var(--f-mono); font-size: 10.5px; color: #5c5a55; white-space: nowrap; }
.pr-track { height: 4px; background: var(--line-2); display: block; overflow: hidden; }
.pr-fill {
  display: block; height: 100%; background: var(--c); transform-origin: left; transition: width .7s var(--ease);
}
.pr-n { font-family: var(--f-mono); font-size: 11px; text-align: right; color: var(--ink); }
.pr-log {
  height: 14px; overflow: hidden; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: #5c5a55;
}
.pr-log span {
  display: block; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
}
.pr-log.is-on span { opacity: 1; transform: translateY(0); }

/* Resumen y cinta. */
.hero-sum {
  grid-column: 1 / 6; grid-row: 3; position: relative; border: 2px solid var(--ink); background: var(--paper);
  padding: clamp(18px, 2.2vw, 28px); min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.hero-sum > div { display: flex; flex-direction: column; gap: 10px; }
.hero-sum h2 {
  margin: 0; font-family: var(--f-anto); font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; letter-spacing: .01em;
}
.hero-sum p {
  margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; color: var(--ink-2); max-width: 460px; text-wrap: pretty;
}
.hero-tape {
  grid-column: 6 / 13; grid-row: 3; position: relative; border: 2px solid var(--ink);
  overflow: hidden; min-height: 180px; background: var(--deep);
}
.tape-trama {
  position: absolute; inset: -30px; opacity: .7;
  background-image: radial-gradient(#121214 1px, transparent 1.25px); background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.tape-in {
  position: relative; height: 100%; box-sizing: border-box; padding: 18px 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.tape-run { display: flex; width: max-content; }
.tape-g {
  display: flex; align-items: center; gap: 1em; padding-right: 1em;
  font-family: var(--f-kaisei); font-weight: 800; font-size: clamp(24px, 2.6vw, 42px); white-space: nowrap;
}
.tape-es { font-family: var(--f-anto); font-weight: 400; color: #5c5a55; }

/* ---------- Pasos 1–4 (estructura común) ---------- */

.step { position: relative; --p: 0; --o: 1; }
.step--dark { background: var(--ink); color: var(--paper); }
.step--alt { background: var(--paper-alt); border-top: 2px solid var(--ink); }
.step-main {
  position: relative; height: calc(100vh - 62px); min-height: 560px; max-height: 920px;
  box-sizing: border-box; overflow: hidden;
}
.bgk {
  position: absolute; bottom: -5vh; font-family: var(--f-kaisei); font-weight: 800;
  font-size: clamp(180px, 30vw, 520px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1.5px rgba(18, 18, 20, .1); white-space: nowrap; pointer-events: none;
}
.bgk--r { right: -2vw; }
.bgk--l { left: -2vw; }
.step--dark .bgk { -webkit-text-stroke-color: rgba(246, 243, 236, .12); }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.step--dark .eyebrow { color: #a9a59c; }
.h2x {
  margin: 0; font-family: var(--f-dela); font-weight: 400;
  font-size: clamp(30px, 3.8vw, 66px); line-height: 1.04; letter-spacing: -.01em;
}
.h2x--sm { font-size: clamp(22px, 2.6vw, 48px); }
.kicker {
  display: block; margin-bottom: .7em; font-family: var(--f-anto); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.15vw, 18px); letter-spacing: .06em; line-height: 1.2; color: var(--shu);
}
.lede {
  margin: 0; max-width: 440px; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; color: var(--ink-2); text-wrap: pretty;
}
.step--dark .lede { color: #d9d4ca; }
.status {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
}
.dot7 { width: 7px; height: 7px; border-radius: 999px; }

/* Franja de 3 celdas: gutters de 2 px de tinta, como el espacio entre viñetas. */
.strip {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2px; background: var(--ink); border-top: 2px solid var(--ink);
}
.step--dark .strip { background: rgba(246, 243, 236, .22); border-top-color: rgba(246, 243, 236, .22); }
.cell {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(24px, 3.4vw, 44px) clamp(18px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 14px; transition: background-color .35s ease;
}
.cell:hover { background-color: var(--hover); }
.step--dark .cell { background: var(--ink); color: var(--paper); }
.step--dark .cell:hover { background-color: #1d1d21; }
.cell-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.step--dark .cell-top { color: #a9a59c; }
.cell h3 {
  margin: 0; font-family: var(--f-dela); font-weight: 400; font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.18; text-wrap: balance;
}
.cell p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.step--dark .cell p { color: #d9d4ca; }

/* Paso 1 · Detecta */
.dt-main {
  padding: clamp(20px, 4vh, 44px) clamp(16px, 4vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 80px);
}
.dt-text {
  position: relative; flex: 1 1 320px; max-width: 480px;
  display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 26px);
}
.dt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0;
  border-top: 2px solid var(--ink); border-bottom: 1.5px solid var(--line); max-width: 440px; font-size: 14px;
  opacity: var(--o);
}
.dt-boxes { display: flex; gap: 4px; }
.dt-box {
  width: 14px; height: 14px; border: 1.5px solid var(--ink); position: relative; display: block; box-sizing: border-box;
}
.dt-box span { position: absolute; inset: 2px; background: #2f6fe0; display: block; }
.dt-stage { position: relative; flex: 0 1 auto; display: flex; flex-direction: column; gap: 14px; }
.dt-status { position: relative; height: 16px; }
.dt-status > span { position: absolute; left: 0; }

/* Paso 2 · Limpia */
.lp-main {
  padding: clamp(20px, 4vh, 44px) clamp(16px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); align-items: center; gap: clamp(20px, 4vw, 72px);
  --e: min(clamp(0, calc((var(--p) - .04) * 4.5), 1), clamp(0, calc((.94 - var(--p)) * 5), 1));
  --x: clamp(0, calc((var(--p) - .36) * 4), 1);
}
.lp-stage { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lp-text {
  position: relative; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px);
}

/* Paso 3 · Edita */
.ed-main {
  padding: clamp(14px, 3vh, 36px) clamp(16px, 4vw, 56px);
  display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 24px);
}
.ed-head {
  position: relative; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end;
  gap: 16px clamp(20px, 4vw, 60px);
}
.ed-headl { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-width: 0; }
.ed-p {
  margin: 0; flex: 0 1 460px; min-width: 0; font-size: clamp(13px, 1vw, 15px); line-height: 1.7;
  color: var(--ink-2); text-wrap: pretty;
}
.ed-app {
  position: relative; flex: 1 1 auto; min-height: 0; border: 2px solid var(--ink); background: var(--paper-hi);
  box-shadow: 10px 10px 0 var(--ink); display: grid; grid-template-rows: 40px minmax(0, 1fr); overflow: hidden; height: auto;
}
.ed-bar {
  display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); min-width: 0;
}
.mini-stamp {
  flex: none; width: 18px; height: 18px; background: var(--shu); border-radius: 4px; display: grid; place-items: center;
  font-family: var(--f-mincho); font-weight: 900; font-size: 7px; color: var(--on-shu); writing-mode: vertical-rl; line-height: 1;
}
.ed-body {
  display: grid; grid-template-columns: minmax(0, min(210px, 19%)) minmax(0, 1fr) minmax(0, min(220px, 21%)); min-height: 0;
}
.ed-side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ed-side--l { border-right: 2px solid var(--ink); }
.ed-side--r { border-left: 2px solid var(--ink); }
.ed-sh {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted);
  padding: 12px 14px; border-bottom: 1.5px solid var(--line);
}
.ed-layer {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 14px; gap: 8px; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.ed-layer > span:first-child { font-family: var(--f-mono); font-size: 10px; color: #2f6fe0; }
.ed-layer > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-layer svg { width: 14px; height: 14px; }
.ed-prop {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.ed-prop > span:first-child { color: var(--muted); }
.ed-prop > span:last-child { text-align: right; }
.ed-canvas {
  position: relative; background: #ece8df;
  background-image: radial-gradient(rgba(18, 18, 20, .18) .8px, transparent 1px); background-size: 14px 14px;
  display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; container-type: size;
}
.ed-page {
  position: relative; opacity: var(--o); container-type: inline-size; flex: none; aspect-ratio: 1.45 / 1;
  width: min(100cqw - 24px, (100cqh - 24px) * 1.45); transform: translateX(0px);
  background: var(--paper-hi); border: 2px solid var(--ink); box-shadow: 0 18px 40px -20px rgba(18, 18, 20, .45);
}
.ed-sel { position: absolute; border: .18cqw solid #2f6fe0; box-sizing: border-box; pointer-events: none; }
.ed-sel > i {
  position: absolute; width: 1cqw; height: 1cqw; background: #fff; border: .18cqw solid #2f6fe0; box-sizing: border-box;
}
.ed-sel > i:nth-of-type(1) { left: -.5cqw; top: -.5cqw; }
.ed-sel > i:nth-of-type(2) { right: -.5cqw; top: -.5cqw; }
.ed-sel > i:nth-of-type(3) { left: -.5cqw; bottom: -.5cqw; }
.ed-sel > i:nth-of-type(4) { right: -.5cqw; bottom: -.5cqw; }
.ed-sel > b {
  position: absolute; left: -.18cqw; bottom: 100%; margin-bottom: .4cqw; font-family: var(--f-mono);
  font-weight: 400; font-size: 1.1cqw; background: #2f6fe0; color: #fff; padding: .15cqw .5cqw; white-space: nowrap;
}
.ed-com { position: absolute; left: 19.5%; top: 6%; width: 30%; --k: 1; pointer-events: none; }

/* Paso 4 · Revisa */
.rv-main {
  position: relative; box-sizing: border-box; padding: clamp(56px, 10vh, 110px) clamp(16px, 4vw, 56px); overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center;
  gap: clamp(36px, 5vw, 88px);
}
.rv-text { position: relative; max-width: 500px; display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 26px); }
.rv-text .lede { max-width: 460px; }
.xl-row {
  display: grid; grid-template-columns: clamp(30px, 3.6vw, 52px) repeat(3, minmax(0, 1fr)) clamp(18px, 1.8vw, 26px);
}
.xl-row--h {
  height: 34px; border-bottom: 1.5px solid var(--line);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted-2);
}
.xl-row--b { min-height: 58px; border-bottom: 1px solid var(--line-2); font-size: clamp(12px, 1vw, 13px); }
.xl-n { display: flex; align-items: center; padding-left: clamp(8px, .9vw, 12px); }
.xl-row--b .xl-n { font-family: var(--f-mono); font-size: 10px; color: var(--muted-2); }
.xl-c {
  padding: 9px clamp(6px, .8vw, 10px); box-sizing: border-box; display: flex; align-items: center; min-width: 0;
  border-left: 1px solid var(--line-2); line-height: 1.3; overflow-wrap: break-word;
}
.xl-ja { font-family: var(--f-kaisei); font-weight: 700; font-size: clamp(12.5px, 1.05vw, 14px); }
.xl-es { position: relative; }
.xl-en { color: var(--ink-2); }
.xl-st { display: grid; place-items: center; border-left: 1px solid var(--line-2); }
.dot8 { width: 8px; height: 8px; border-radius: 999px; display: block; }

/* ---------- Preguntas frecuentes ---------- */

.faq {
  position: relative; padding: clamp(70px, 12vh, 130px) clamp(16px, 4vw, 56px);
  border-top: 2px solid var(--ink); background: var(--paper);
}
.faq-grid {
  max-width: 1320px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 6vw, 96px); align-items: start;
}
.faq-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.faq-h2 { font-size: clamp(34px, 4.6vw, 78px); }
.faq-side p { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.btn-ink {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.btn-ink:hover { background: var(--shu); color: var(--on-shu); }
.btn-ink svg { width: 15px; height: 15px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 14px;
  padding: clamp(18px, 2.6vh, 26px) 0; background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit;
}
.faq-q:hover { color: var(--shu); }
.faq-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--shu); }
.faq-t {
  font-family: var(--f-dela); font-weight: 400; font-size: clamp(18px, 1.8vw, 27px); line-height: 1.2; text-wrap: balance;
}
.faq-ico {
  width: 36px; height: 36px; border: 2px solid currentColor; box-sizing: border-box; display: grid; place-items: center;
  transform: rotate(0deg); transition: transform .55s var(--ease);
}
.faq-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p {
  margin: 0; padding: 0 clamp(0px, 4vw, 54px) 28px 70px; max-width: 720px; font-size: 16px; line-height: 1.75;
  color: var(--ink-2); text-wrap: pretty; opacity: 0; transform: translateY(-8px);
  transition: opacity .45s ease, transform .6s var(--ease);
}
.faq-a a { color: var(--shu); font-weight: 700; border-bottom: 2px solid var(--shu); }
.faq-item.is-open .faq-ico { transform: rotate(45deg); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: translateY(0px); }

/* ---------- CTA «Muy pronto» ---------- */

.cta {
  position: relative; padding: clamp(100px, 18vh, 200px) clamp(16px, 4vw, 56px); text-align: center;
  overflow: hidden; border-top: 2px solid var(--ink);
}
.cta-rays {
  position: absolute; left: 50%; top: 36%; width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(18, 18, 20, .2) 0deg .16deg, transparent .16deg 2deg);
  -webkit-mask-image: radial-gradient(circle, transparent 170px, #000 360px, transparent 900px);
  mask-image: radial-gradient(circle, transparent 170px, #000 360px, transparent 900px);
}
.cta-seal { position: relative; width: 230px; height: 230px; margin: 0 auto clamp(40px, 6vh, 64px); }
.cta-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cta-seal-rot { position: absolute; inset: 52px; transform: rotate(-4deg); }
.cta-stamp { position: absolute; inset: 0; }
.cta-stamp .stamp-body::before { border-width: 1.5px; }
.cta-stamp .stamp-body span { font-size: 40px; letter-spacing: 4px; }
.cta-h2 {
  position: relative; margin: 0 auto; max-width: 1100px; font-family: var(--f-dela); font-weight: 400;
  font-size: clamp(38px, 6.4vw, 110px); line-height: 1.02;
}
.cta-btns {
  position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(34px, 5vh, 50px);
}
.btn-shu {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px;
  background: var(--shu); color: var(--on-shu); font-weight: 700; font-size: 15px;
}
.btn-shu:hover { background: var(--ink); color: var(--paper); }
.btn-shu svg { width: 16px; height: 16px; }

/* ---------- Avísame (lista de espera) ---------- */

.av {
  position: relative; padding: clamp(80px, 13vh, 140px) clamp(16px, 4vw, 56px);
  border-top: 2px solid var(--ink); background: var(--paper); overflow: hidden;
}
.av-trama {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18, 18, 20, .16) .9px, transparent 1.15px); background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 45%);
  mask-image: linear-gradient(0deg, #000, transparent 45%);
}
.av-grid {
  position: relative; max-width: 1320px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(36px, 6vw, 96px); align-items: start;
}
.av-text { display: flex; flex-direction: column; gap: 22px; }
.av-h2 { font-size: clamp(34px, 4.8vw, 82px); }
.av-text p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.av-card {
  position: relative; border: 2px solid var(--ink); background: var(--paper-hi);
  box-shadow: 10px 10px 0 var(--ink); padding: clamp(22px, 3vw, 36px);
}
.av-form { display: flex; flex-direction: column; gap: 20px; }
.av-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld > span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.fld input {
  height: 50px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper-hi); color: var(--ink);
  font-family: var(--f-sans); font-size: 15px; outline: none; border-radius: 0; box-sizing: border-box; width: 100%;
}
.fld input:focus { box-shadow: 4px 4px 0 var(--shu); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.av-err { font-family: var(--f-mono); font-size: 12px; color: var(--shu); }
.av-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px;
}
.av-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 300px; }
.av-send {
  height: 56px; padding: 0 26px; display: inline-flex; align-items: center; gap: 12px;
  border: 2px solid var(--shu); background: var(--shu); color: var(--on-shu);
  font-family: var(--f-sans); font-size: 15px; font-weight: 700; cursor: pointer;
}
.av-send:hover { background: var(--ink); border-color: var(--ink); }
.av-send[disabled] { cursor: progress; opacity: .7; }
.av-send svg { width: 16px; height: 16px; }
.av-ok { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); min-height: 280px; outline: none; }
.ok-stamp {
  flex: none; position: relative; width: 120px; height: 120px; transform: rotate(-8deg);
  border: 4px solid var(--shu); border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--shu);
}
.ok-stamp::before { content: ''; position: absolute; inset: 6px; border: 1.5px solid var(--shu); border-radius: 7px; }
.ok-stamp b { font-family: var(--f-mincho); font-weight: 900; font-size: 36px; line-height: 1; letter-spacing: .1em; }
.ok-stamp small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; }
.ok-txt { display: flex; flex-direction: column; gap: 10px; }
.ok-txt > span:first-child { font-family: var(--f-dela); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.ok-txt > span:last-child { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Barra fija de lista de espera (solo escritorio) ---------- */

.wbar {
  position: fixed; left: 50%; bottom: clamp(12px, 2.2vh, 24px); z-index: 80; width: min(840px, calc(100vw - 24px));
  transform: translate(-50%, calc(100% + 48px)); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .75s var(--ease), opacity .4s ease, visibility 0s linear .75s;
}
.wbar.is-on {
  transform: translate(-50%, 0px); opacity: 1; pointer-events: auto; visibility: visible;
  transition: transform .75s var(--ease), opacity .4s ease, visibility 0s;
}
.wbar-in {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 10px 10px 10px 14px;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.wbar-stamp {
  flex: none; position: relative; width: 42px; height: 42px; background: var(--shu); border-radius: 8px;
  transform: rotate(-6deg); display: grid; place-items: center;
}
.wbar-stamp::before {
  content: ''; position: absolute; inset: 3px; border: 1.5px solid rgba(255, 247, 238, .55); border-radius: 5px;
}
.wbar-stamp span {
  font-family: var(--f-mincho); font-weight: 900; font-size: 12px; color: var(--on-shu);
  writing-mode: vertical-rl; letter-spacing: 1px; line-height: 1;
}
.wbar-txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wbar-k {
  display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted);
}
.wbar-t { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.wbar-go {
  flex: none; justify-content: center; height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--shu); color: var(--on-shu); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.wbar-go:hover { background: var(--ink); color: var(--on-shu); }
.wbar-go svg { width: 15px; height: 15px; }
.wbar-x {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
}
.wbar-x:hover { background: var(--ink); color: var(--paper); }
.wbar-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Footer ---------- */

.foot { background: var(--paper-alt); color: #17161a; font-family: 'M PLUS 1p', sans-serif; }
.foot footer { padding: 52px clamp(16px, 4vw, 56px) 0; border-top: 2px solid #17161a; overflow: hidden; }
.foot-top { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 13px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col > span {
  font-family: var(--f-anto); font-size: 12px; letter-spacing: .18em; color: var(--muted-pie); margin-bottom: 4px;
}
.foot-col a { color: #5c5a55; }
.foot-col a:hover { color: #17161a; }
.foot-legal {
  max-width: 1320px; margin: 48px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-anto); font-size: 12px; letter-spacing: .14em; color: var(--muted-pie);
}
.foot-mark { overflow: hidden; margin-top: 24px; }
.foot-mark div {
  font-family: var(--f-kaisei); font-weight: 800; font-size: 15vw; line-height: .84; color: #e3ded3;
  white-space: nowrap; text-align: center;
}

/* ---------- Móvil (menos de 720 px) ---------- */

@media (max-width: 719.98px) {
  .hdr-nav, .hdr-lang { display: none; }
  .hdr-cta { padding: 0 16px; }
  .hdr-menu { display: flex; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  .hero-main, .hero-steps, .hero-prod, .hero-sum, .hero-tape { grid-column: 1 / -1; grid-row: auto; }
  /* La capa del sello comparte fila con la viñeta principal; las dos van fijas en la primera. */
  .hero-main, .hero-seal-capa { grid-column: 1 / -1; grid-row: 1; }
  .hero-steps { min-height: 210px; }
  .hs-bub { top: 56%; }
  .hs-lab { top: 8px; bottom: auto; font-size: 9px; }

  .step-main { height: auto; min-height: 0; max-height: none; }

  .lp-main { grid-template-columns: minmax(0, 1fr); }
  .lp-text { order: -1; }

  .ed-head { flex-wrap: wrap; }
  .ed-app { height: 420px; }
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-side { display: none; }
  .ed-canvas { justify-content: flex-start; }
  .ed-page {
    width: 160cqw;
    transform: translateX(calc(min(clamp(0, calc((var(--p) - .11) * 25), 1), clamp(0, calc((.46 - var(--p)) * 25), 1)) * -37.5%));
  }
  .ed-com { width: 42%; --k: 1.6; }

  .faq-side { position: static; }
  .faq-a p { padding: 0 0 24px 0; }

  .wbar { display: none; }
}

@media (min-width: 720px) {
  .menu { display: none; }
}

/* ---------- Barra de administración de WordPress (solo con sesión iniciada) ---------- */

.admin-bar { scroll-padding-top: 94px; }
.admin-bar .hdr { top: 32px; }
.admin-bar .menu { top: 94px; }
@media screen and (max-width: 782px) {
  .admin-bar .hdr { top: 46px; }
  .admin-bar .menu { top: 108px; }
}
@media screen and (max-width: 600px) {
  /* Aquí la barra de WordPress ya no es fija: se va con el scroll. */
  .admin-bar .hdr { top: 0; }
}

/* ---------- Blog y páginas de WordPress ---------- */

.hdr-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.bl-card .bl-meta { position: relative; z-index: 1; }
.bl { padding: clamp(48px, 9vh, 96px) clamp(16px, 4vw, 56px) clamp(70px, 12vh, 130px); }
.bl-in { max-width: 1320px; margin: 0 auto; }
.bl-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 6vh, 64px); max-width: 900px; }
.bl-h1 { margin: 0; font-family: var(--f-dela); font-weight: 400; font-size: clamp(38px, 5.6vw, 92px); line-height: 1.04; letter-spacing: -.01em; }
.bl-lede { margin: 0; max-width: 560px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; color: var(--ink-2); }
/* Rejilla con gutters de 2 px como la franja de celdas; con bordes por tarjeta para que una última fila
   incompleta no deje un hueco de tinta. */
.bl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.bl-card {
  position: relative; background: var(--paper); display: flex; flex-direction: column;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: background-color .35s ease;
}
.bl-card:hover { background: var(--hover); }
.bl-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--deep); }
.bl-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-card-in { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.2vw, 30px); flex: 1; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.bl-meta a { color: var(--shu); }
.bl-card h2 { margin: 0; font-family: var(--f-dela); font-weight: 400; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.18; text-wrap: balance; }
.bl-card h2 a::after { content: ''; position: absolute; inset: 0; }
.bl-card h2 a:hover { color: var(--ink); }
.bl-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.bl-more { margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--shu); }
.bl-empty { padding: 40px 0; font-size: 16px; color: var(--ink-2); }
.bl-pag { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; font-family: var(--f-mono); font-size: 12px; }
.bl-pag .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 2px solid var(--ink); box-sizing: border-box; }
.bl-pag .page-numbers.current { background: var(--ink); color: var(--paper); }
.bl-pag a.page-numbers:hover { background: var(--ink); color: var(--paper); }

/* Entrada y página */
.art { max-width: 760px; margin: 0 auto; }
.post-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(28px, 5vh, 48px); }
.post-h1 { margin: 0; font-family: var(--f-dela); font-weight: 400; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.post-img { margin: 0 0 clamp(28px, 5vh, 48px); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--paper-hi); }
.post-img img { display: block; width: 100%; height: auto; }
.entry { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; color: var(--ink-2); overflow-wrap: break-word; }
.entry > * { margin-top: 0; margin-bottom: 1.2em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--f-dela); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 1.8em 0 .6em; }
.entry h2 { font-size: clamp(24px, 2.4vw, 34px); }
.entry h3 { font-size: clamp(20px, 1.8vw, 26px); }
.entry h4 { font-size: 19px; }
.entry a { color: var(--shu); border-bottom: 2px solid currentColor; }
.entry a:hover { color: var(--ink); }
.entry strong { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .35em; }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--shu); font-size: 1.08em; color: var(--ink); }
.entry blockquote cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; font-style: normal; letter-spacing: .08em; color: var(--muted); }
.entry img, .entry video { max-width: 100%; height: auto; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .entry .wp-element-caption { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.entry hr { border: 0; border-top: 2px solid var(--ink); margin: 2.4em 0; }
.entry code { font-family: var(--f-mono); font-size: .88em; background: var(--deep); padding: .1em .35em; }
.entry pre { font-family: var(--f-mono); font-size: 14px; line-height: 1.6; background: var(--ink); color: var(--paper); padding: 18px 20px; overflow-x: auto; }
.entry pre code { background: none; padding: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .92em; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ''; display: table; clear: both; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-family: var(--f-mono); font-size: 12px; }
.post-tags a { padding: 4px 10px; border: 1.5px solid var(--ink); }
.post-tags a:hover { background: var(--ink); color: var(--paper); }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2px; margin-top: clamp(40px, 7vh, 72px); background: var(--ink); border: 2px solid var(--ink); }
.post-nav a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--paper); transition: background-color .35s ease; }
.post-nav a:hover { background: var(--hover); color: var(--ink); }
.post-nav span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--shu); }
.post-nav b { font-family: var(--f-dela); font-weight: 400; font-size: 18px; line-height: 1.25; }
.post-nav .sig { text-align: right; }

/* Comentarios */
.coms { max-width: 760px; margin: clamp(48px, 8vh, 80px) auto 0; padding-top: 32px; border-top: 2px solid var(--ink); }
.coms h2 { margin: 0 0 24px; font-family: var(--f-dela); font-weight: 400; font-size: clamp(22px, 2vw, 30px); }
.coms ol { list-style: none; margin: 0; padding: 0; }
.coms ol ol { padding-left: clamp(16px, 4vw, 40px); }
.coms .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.coms .comment-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.coms .comment-meta a { color: var(--muted); }
.coms .avatar { float: left; margin-right: 12px; border: 1.5px solid var(--ink); }
.coms .comment-content { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.coms .reply a { font-family: var(--f-mono); font-size: 12px; color: var(--shu); }
.comment-respond { margin-top: 32px; }
.comment-reply-title { margin: 0 0 12px; font-family: var(--f-dela); font-weight: 400; font-size: clamp(22px, 2vw, 30px); }
.comment-reply-title small { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }
.comment-respond label { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper-hi); color: var(--ink); font-family: var(--f-sans); font-size: 15px; outline: none;
}
.comment-respond textarea { min-height: 140px; }
.comment-respond input:focus, .comment-respond textarea:focus { box-shadow: 4px 4px 0 var(--shu); }
.comment-respond .submit {
  height: 50px; padding: 0 24px; border: 2px solid var(--shu); background: var(--shu); color: var(--on-shu);
  font-family: var(--f-sans); font-size: 15px; font-weight: 700; cursor: pointer;
}
.comment-respond .submit:hover { background: var(--ink); border-color: var(--ink); }

/* Texto solo para lectores de pantalla (clase estándar de WordPress). */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Japonés ---------- */

/* Antonio e IBM Plex Mono no tienen japonés: los glifos japoneses caen en Zen Kaku Gothic New. */
html:lang(ja) {
  --f-mono: 'IBM Plex Mono', 'Zen Kaku Gothic New', monospace;
  --f-anto: 'Antonio', 'Zen Kaku Gothic New', sans-serif;
  line-break: strict;
}
:lang(ja) .hero-h1 {
  font-family: var(--f-dela); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(32px, 4.3vw, 78px); line-height: 1.12; max-width: none;
}
:lang(ja) .h2x { font-size: clamp(26px, 3.2vw, 54px); line-height: 1.16; letter-spacing: 0; }
:lang(ja) .h2x--sm { font-size: clamp(20px, 2.2vw, 40px); }
:lang(ja) .faq-h2, :lang(ja) .av-h2 { font-size: clamp(30px, 4vw, 66px); }
:lang(ja) .cta-h2 { font-size: clamp(32px, 5.2vw, 92px); line-height: 1.14; }
:lang(ja) .h2x, :lang(ja) .cta-h2, :lang(ja) .cell h3, :lang(ja) .faq-t, :lang(ja) .hero-sum h2 { word-break: auto-phrase; }
:lang(ja) .kicker { letter-spacing: .02em; }
:lang(ja) .hero-sum h2 { letter-spacing: 0; }

/*
 * En japonés la portada se lee como un manga: los bloques numerados van de derecha a izquierda.
 * - Menú de secciones: 01 queda a la derecha.
 * - Viñetas del hero: su geometría sale reflejada del PHP (donstudio_espejo() en inc/idiomas.php), con 1 · 検出
 *   a la derecha.
 * - Franjas de tres celdas: la .1 a la derecha.
 */
:lang(ja) .hdr-nav { flex-direction: row-reverse; }
:lang(ja) .strip { direction: rtl; }
:lang(ja) .strip > * { direction: ltr; }
