/* Stampado · sistema visual 2027 en las páginas escritas a mano que se arman con paneles, filas y tarjetas:
   /como-funciona/ e /integraciones/ (i1, nov-2026) y /estampado-dtf/, /remera-basica/, /creditos/ y la 404 (j1).
   Va después de sistema-2027.css: la cabecera y el cierre son los paneles de la hoja común; acá están la columna, el
   índice de la cabecera, los pasos numerados, las tarjetas, las listas con filete y las salidas de la 404.
   Lo propio de la ficha de /remera-basica/ (maqueta y configurador) vive en remera-2027.css.
   Solo tokens de tokens.css; ningún color suelto. */

.sv-ruta { color: var(--s-text); font-family: var(--f-body); font-size: 1rem; line-height: var(--lh-normal); }
.sv-ruta :is(h1, h2, h3, p, ol, ul) { margin: 0; }
.sv-ruta :is(ol, ul) { padding: 0; list-style: none; }
.sv-ruta :is(h2, h3) { font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.sv-ruta [id] { scroll-margin-top: 6rem; }
.sv-ruta a:focus-visible { outline: 2px solid var(--s-focus); outline-offset: 3px; border-radius: var(--r-1); }

/* ── Cabecera: título de dos o tres renglones y, al lado, el índice de la página ──────────────────────────────── */
.sv-ruta .sv-hero .sv-title { max-width: 18ch; font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: .9; letter-spacing: -.05em; overflow-wrap: break-word; }
.sv-ruta .sv-hero .sv-actions { margin-top: var(--sp-2); }
/* Sobre el panel rosa el parche rosa de la tira de control no se vería: pasa a tinta (como el azul sobre el panel azul). */
.sv-ruta .sv-pan-pink .st-strip i:nth-child(4) { background: var(--c-ink); }
/* La 404 no lleva migas: el panel recupera arriba el aire que ellas dan. */
.sv-ruta-404 .sv-hero .sv-pan-inner { padding-top: clamp(var(--sp-10), 5vw, var(--sp-16)); }
.sv-ruta-indice { min-width: 0; }
.sv-ruta-indice ol { counter-reset: ruta-i; border-top: 1px solid var(--pan-line); }
.sv-ruta-indice a {
  display: flex; align-items: center; gap: var(--sp-4); min-height: 3.25rem; padding-block: var(--sp-2);
  border-bottom: 1px solid var(--pan-line); color: var(--pan-fg);
  font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  counter-increment: ruta-i;
}
.sv-ruta-indice a::before { content: counter(ruta-i, decimal-leading-zero); flex: none; color: var(--pan-label); }
.sv-ruta-indice a::after { content: "↓"; flex: none; margin-left: auto; transition: transform var(--m-swap) var(--st-ease); }
@media (hover: hover) {
  .sv-ruta-indice a:hover { border-bottom-color: currentColor; }
  .sv-ruta-indice a:hover::after { transform: translateY(4px); }
}

/* ── Columna de contenido: alineada con el interior de los paneles ────────────────────────────────────────────── */
.sv-ruta-col {
  display: grid; gap: clamp(var(--sp-5), 2.4vw, var(--sp-8));
  width: min(100% - 2 * var(--sp-3), var(--sv-max)); margin-inline: auto;
  padding: clamp(var(--sp-8), 4.5vw, var(--sp-12)) var(--sv-gutter) 0;
}
.sv-ruta-col > .sv-rule:not(:first-child) { margin-top: clamp(var(--sp-8), 4vw, var(--sp-16)); }
/* Sin panel de cierre (créditos, 404) la columna deja el aire del final. */
.sv-ruta-col:last-child { padding-bottom: var(--sv-gap); }

/* Enlace de cada bloque: etiqueta mono subrayada con una flecha que avanza (va aparte, así el subrayado no la alcanza).
   Mide 44 px de alto. */
.sv-ruta .sv-ruta-link {
  position: relative; display: inline-block; padding: calc((var(--h-touch) - 1.3em) / 2) calc(var(--sp-3) + 1.25rem) calc((var(--h-touch) - 1.3em) / 2) 0;
  color: var(--s-text); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--s-border-strong); text-underline-offset: .4em;
  transition: text-decoration-color var(--m-base) var(--m-ease);
}
.sv-ruta .sv-ruta-link::after {
  content: "→"; position: absolute; right: 0; top: 50%; width: 1.25rem; margin-top: -.62em; text-align: right;
  font-size: var(--t-lg); line-height: 1; letter-spacing: 0; transition: transform var(--m-swap) var(--st-ease);
}
@media (hover: hover) {
  .sv-ruta .sv-ruta-link:hover { text-decoration-color: currentColor; }
  .sv-ruta .sv-ruta-link:hover::after { transform: translateX(4px); }
}

/* ── Filas: un paso (con número) o un bloque suelto. Filete de tinta arriba, título a la izquierda, texto a la derecha ── */
.sv-ruta-filas { counter-reset: ruta-f; display: grid; }
.sv-ruta-fila { display: grid; gap: var(--sp-4); padding-block: clamp(var(--sp-6), 3vw, var(--sp-10)); border-top: 1px solid var(--c-ink); }
.sv-ruta-filas > .sv-ruta-fila { counter-increment: ruta-f; }
/* La primera fila viene justo después de la etiqueta con filete: no repite la línea. La última no deja aire de más. */
.sv-ruta-filas > .sv-ruta-fila:first-child, .sv-ruta-col > .sv-ruta-fila { padding-top: var(--sp-2); border-top: 0; }
.sv-ruta-filas > .sv-ruta-fila:last-child, .sv-ruta-col > .sv-ruta-fila { padding-bottom: 0; }
.sv-ruta-filas > .sv-ruta-fila::before {
  content: counter(ruta-f, decimal-leading-zero); color: var(--s-primary);
  font: 800 clamp(2.5rem, 5vw, 4.5rem)/.85 var(--f-display); letter-spacing: -.05em;
}
.sv-ruta-fila :is(h2, h3) { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: .95; }
.sv-ruta-fila > div { display: grid; justify-items: start; gap: var(--sp-4); }
.sv-ruta-fila p { max-width: 38rem; color: var(--s-text-2); font-size: clamp(var(--t-lg), 1.4vw, var(--t-xl)); line-height: 1.5; }

/* ── Tarjetas de canal: superficie blanca sobre papel, numeradas en mono ──────────────────────────────────────── */
.sv-ruta-cards { counter-reset: ruta-c; display: grid; gap: clamp(var(--sp-3), 1.6vw, var(--sp-5)); }
.sv-ruta-card {
  display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; justify-items: start; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-4); border: 1px solid var(--s-border); border-radius: var(--r-4); background: var(--s-surface);
  counter-increment: ruta-c;
  transition: border-color var(--m-base) var(--m-ease);
}
.sv-ruta-card::before { content: counter(ruta-c, decimal-leading-zero); margin-bottom: clamp(var(--sp-5), 3vw, var(--sp-10)); color: var(--s-primary); font: 500 var(--t-xs)/1.3 var(--st-f-label); letter-spacing: .08em; }
.sv-ruta-card h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -.04em; }
.sv-ruta-card p { color: var(--s-text-2); font-size: var(--t-md); }
.sv-ruta-card .sv-ruta-link { align-self: end; width: 100%; margin-top: var(--sp-2); border-top: 1px solid var(--s-border); }
.sv-ruta-card:hover, .sv-ruta-card:focus-within { border-color: var(--c-ink); }

/* ── Dentro de una fila: enlaces del texto, lista con filete (numerada si es <ol>) y enlaces en hilera ────────────── */
.sv-ruta-fila :is(p, li) a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: var(--s-border-strong); text-underline-offset: .22em; transition: text-decoration-color var(--m-base) var(--m-ease); }
.sv-ruta-fila :is(p, li) a:not([class]):hover { color: var(--s-primary-hover); text-decoration-color: currentColor; }
.sv-ruta-lista { justify-self: stretch; max-width: 38rem; border-top: 1px solid var(--c-ink); counter-reset: ruta-l; }
.sv-ruta-lista > li { position: relative; padding-block: var(--sp-3); border-bottom: 1px solid var(--s-border); color: var(--s-text); font-size: var(--t-lg); line-height: 1.45; }
ol.sv-ruta-lista > li { padding-left: 2.75rem; counter-increment: ruta-l; }
ol.sv-ruta-lista > li::before { content: counter(ruta-l, decimal-leading-zero); position: absolute; left: 0; top: calc(var(--sp-3) + .4em); color: var(--s-primary); font: 500 var(--t-xs)/1 var(--st-f-label); letter-spacing: .08em; }
.sv-ruta .sv-ruta-enlaces { display: flex; flex-wrap: wrap; gap: 0 var(--sp-8); }

/* ── Página sobria (créditos): misma cabecera, texto de lectura y título de sección más chico ───────────────────── */
.sv-ruta-sobria .sv-ruta-fila h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -.04em; }
.sv-ruta-sobria .sv-ruta-fila p, .sv-ruta-sobria .sv-ruta-lista > li { max-width: 42rem; font-size: var(--t-md); line-height: 1.6; }
.sv-ruta-sobria .sv-ruta-lista { max-width: 42rem; }
.sv-ruta-sobria .sv-ruta-lista a { overflow-wrap: anywhere; }

/* ── 404: una tarjeta puede llevar el logotipo de su submarca como título; debajo, las salidas secundarias ─────────── */
.sv-ruta-marca .sb-logo { display: block; width: auto; height: clamp(1.625rem, 2.6vw, 2.25rem); max-width: 100%; }
.sv-ruta-salidas { display: grid; gap: var(--sp-5) clamp(var(--sp-3), 1.6vw, var(--sp-5)); }
.sv-ruta-salidas > li { display: grid; justify-items: start; padding-top: var(--sp-2); border-top: 1px solid var(--c-ink); }
.sv-ruta-salidas span { color: var(--s-text-2); font-size: var(--t-md); }
@media (min-width: 40rem) { .sv-ruta-salidas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 60rem) {
  .sv-ruta-indice { align-self: end; }
  .sv-ruta-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-ruta-fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; column-gap: var(--sp-12); }
  .sv-ruta-filas > .sv-ruta-fila { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.25fr); column-gap: var(--sp-8); }
  .sv-ruta-fila > div { padding-top: var(--sp-1); }
}
@media (max-width: 40rem) { .sv-ruta-col { width: min(100% - 2 * var(--sp-2), var(--sv-max)); } }
@media (prefers-reduced-motion: reduce) {
  .sv-ruta .sv-ruta-link::after, .sv-ruta-indice a::after { transition: none; }
  .sv-ruta .sv-ruta-link:hover::after, .sv-ruta-indice a:hover::after { transform: none; }
}

/* ── r1 · /como-funciona/ por capítulos: una figura dibujada por paso (SVG en línea, solo tokens) ─────────────────── */
/* Celular: la figura va debajo del texto de su paso. Escritorio: cada paso es un capítulo alto y su figura queda fija
   a la derecha mientras se lee; al llegar al siguiente, entra la suya. Movimiento reducido: todo quieto y en columna. */
.sv-cap { width: min(100%, 26rem); margin: var(--sp-2) 0 0; }
.sv-cap svg { display: block; width: 100%; height: auto; overflow: visible; }
.sv-cap .cf-card { fill: var(--c-paper-50); stroke: var(--c-ink); stroke-width: 2; }
.sv-cap :is(.cf-l, .cf-shirt, .cf-rail, .cf-box, .cf-box-top, .cf-box-side, .cf-label, .cf-tile, .cf-url, .cf-tag, .cf-cart, .cf-tagshape) { stroke: var(--c-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-cap .cf-l { fill: none; }
.sv-cap .cf-shirt { fill: var(--c-paper-0); }
.sv-cap .cf-shirt-a { fill: var(--c-blue-200); }
.sv-cap .cf-shirt-b { fill: var(--c-orange-200); }
.sv-cap .cf-zone { fill: none; stroke: var(--s-print-area); stroke-width: 2.5; stroke-dasharray: 7 6; }
.sv-cap .cf-t { fill: var(--c-ink); font: 500 15px/1 var(--st-f-label); letter-spacing: .08em; }
.sv-cap .cf-sw-a { fill: var(--c-paper-0); stroke: var(--c-ink); stroke-width: 2; }
.sv-cap .cf-sw-b { fill: var(--c-ink); }
.sv-cap .cf-ring { fill: none; stroke: var(--s-primary); stroke-width: 3; }
.sv-cap .cf-tag { fill: var(--c-paper-0); }
.sv-cap .cf-tag.cf-on { fill: var(--c-ink); }
.sv-cap .cf-tt.cf-on { fill: var(--c-paper-50); }
.sv-cap .cf-dot { fill: var(--c-paper-300); }
.sv-cap .cf-rail, .sv-cap .cf-url, .sv-cap .cf-tile { fill: var(--c-paper-0); }
.sv-cap .cf-orange { fill: var(--c-orange-500); }
.sv-cap .cf-blue { fill: var(--s-primary); }
.sv-cap .cf-blue-l { fill: none; stroke: var(--s-primary); stroke-width: 6; stroke-linecap: round; }
.sv-cap .cf-pink { fill: var(--c-pink-400); }
.sv-cap .cf-sel { fill: none; stroke: var(--s-primary); stroke-width: 1.5; }
.sv-cap .cf-handle { fill: var(--c-paper-0); stroke: var(--s-primary); stroke-width: 1.5; }
.sv-cap .cf-box { fill: var(--c-paper-200); }
.sv-cap .cf-box-top { fill: var(--c-paper-100); }
.sv-cap .cf-box-side { fill: var(--c-paper-300); }
.sv-cap .cf-label { fill: var(--c-paper-0); }
.sv-cap .cf-paper-l { fill: none; stroke: var(--c-paper-50); stroke-width: 3; stroke-linecap: round; }
.sv-cap .cf-stamp-c { fill: none; stroke: var(--c-orange-600); stroke-width: 4; }
.sv-cap .cf-stamp-l { fill: none; stroke: var(--c-orange-600); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sv-cap .cf-stamp { rotate: -12deg; transform-origin: 300px 282px; transform-box: view-box; }
.sv-cap .cf-cart { fill: var(--c-paper-0); }
.sv-cap .cf-tagshape { fill: var(--c-lime-400); }
.sv-cap .cf-toast { fill: var(--c-ink); }
.sv-cap .cf-ok { fill: var(--c-lime-400); }
.sv-cap .cf-toast-l { stroke: var(--c-paper-50); stroke-width: 6; stroke-linecap: round; opacity: .7; }

@media (min-width: 60rem) {
  .sv-ruta-pasos .sv-ruta-filas > .sv-ruta-fila { grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; min-height: min(88vh, 48rem); }
  .sv-ruta-pasos .sv-ruta-filas > .sv-ruta-fila::before { grid-column: 1; grid-row: 1 / span 2; }
  .sv-ruta-pasos .sv-ruta-fila > h2 { grid-column: 2; grid-row: 1; }
  .sv-ruta-pasos .sv-ruta-fila > div { grid-column: 2; grid-row: 2; align-self: start; }
  .sv-ruta-pasos .sv-cap { grid-column: 3; grid-row: 1 / span 2; align-self: start; position: sticky; top: max(7rem, 50vh - 15rem); width: 100%; margin: 0; }
}
/* Entrada ligada al scroll (solo donde el navegador la soporta y con movimiento permitido): la figura se asienta y sus
   piezas de color aparecen; el sello cae al final. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sv-cap svg { animation: cf-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .sv-cap .cf-pop { animation: cf-pop linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; transform-box: fill-box; transform-origin: center; }
    .sv-cap .cf-stamp { animation: cf-stamp linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
  }
}
@keyframes cf-in { from { opacity: .25; translate: 0 2rem; scale: .96; } }
@keyframes cf-pop { from { opacity: 0; scale: .6; } }
@keyframes cf-stamp { from { opacity: 0; scale: 1.6; } 70% { opacity: 1; scale: .94; } }
@media (prefers-reduced-motion: reduce) {
  .sv-ruta-pasos .sv-cap { position: static; }
  .sv-ruta-pasos .sv-ruta-filas > .sv-ruta-fila { min-height: 0; }
}
