@font-face { font-family: "Anton"; src: url("assets/fonts/anton-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* La guía de diseño vive en site/DESIGN.md. */
:root {
  --navy: #16366B;
  --red: #D72B32;
  --red-text: #B3141B;   /* rojo para letra chica: 4.5:1 o más sobre blanco y amarillo (Issues #241, #339) */
  --yellow: #FFD447;
  --wa: #25D366;         /* verde WhatsApp: botones que abren WhatsApp */
  --wa-ink: #0A3B26;     /* letra sobre --wa: 6.5:1 */
  --white: #FFFFFF;
  --mist: #F2F5FA;
  --display: "Fraunces", Georgia, serif;
  --display-axes: "SOFT" 100, "WONK" 1;
  /* Ritmo vertical: todas las secciones respiran igual. */
  --section: clamp(56px, 8vw, 96px);
  --section-s: clamp(40px, 6vw, 64px);
  /* Inclinación: solo sellos; nunca párrafos ni tarjetas con texto. */
  --tilt-l: 3deg;
  color: var(--navy);
  font-family: "Archivo", "Trebuchet MS", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
/* Issue #666: la inclinación de paper-settle ensanchaba la página en celular (421 px en 412). overflow-x: clip en html Y en body (con solo uno Chrome móvil sigue ampliando la ventana); clip, no hidden, para no crear contenedor de scroll: sticky y View Transitions siguen igual. */
html { scroll-behavior: smooth; overflow-x: clip; }
/* Transiciones entre páginas (Chrome 126+, Safari 18.2+; Firefox y el resto navegan normal, sin JS). */
@view-transition { navigation: auto; }
/* Cabecera y logo persisten: se capturan aparte y el resto hace crossfade. Nombres únicos: el logo del pie NO lo lleva. */
.masthead { view-transition-name: masthead; }
.brand img { view-transition-name: logo; }
::view-transition-group(*) { animation-duration: 200ms; }
body {
  margin: 0;
  background: var(--white);
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.6; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 12px 20px; background: var(--yellow); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Aviso de promoción (Issue #772): franja azul con la tipografía de la portada; index.html la oculta al vencer. */
.promo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 28px; padding: 16px 20px; background: var(--navy); color: var(--white); text-align: center; }
.promo p { margin: 0; line-height: 1.25; }
.promo-title { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; color: var(--yellow); }
.promo-offer { font-family: "Anton", sans-serif; font-size: clamp(20px, 2.4vw, 28px); text-transform: uppercase; letter-spacing: .02em; }
.promo-offer strong { font-weight: 400; color: var(--yellow); }
.promo-dates { flex-basis: 100%; font-size: 15px; font-weight: 700; }

/* Cabecera de periódico */
.masthead { border-bottom: 5px double var(--navy); }
.header { display: flex; align-items: center; justify-content: space-between; min-height: 106px; gap: 24px; }
.brand { width: 222px; flex-shrink: 0; }
.brand img, .footer-brand img { filter: drop-shadow(2px 3px 0 rgb(22 54 107 / .18)); }
.header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.header nav a { text-decoration: none; }
.portal-link { padding: 11px 16px; background: var(--yellow); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); }

/* Piezas comunes */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 14px 22px; border: 2px solid var(--navy); border-radius: 2px; color: var(--navy); box-shadow: 4px 4px 0 var(--navy); text-decoration: none; font-size: 16px; font-weight: 800; line-height: 1.3; transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.button svg { width: 24px; height: 24px; }
.button-yellow { background: var(--yellow); }
.button-paper { background: var(--white); }
/* WhatsApp (#345): verde de la marca con su logo en círculo blanco; borde y sombra azul como todos los botones. */
.button-whatsapp { text-align: center; background: linear-gradient(180deg, #3BE07A, var(--wa) 55%, #1FC25C); color: var(--wa-ink); }
/* `.button > span` (más arriba) lo vuelve inline-block: por eso el selector lleva .button. */
.button .wa-logo { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1.5px var(--wa-ink); }
.button .wa-logo svg { width: 18px; height: 18px; fill: var(--wa); }
.button-navy { background: var(--navy); color: var(--white); }
.text-link { font-weight: 800; line-height: 1.5; }
.button > span, .text-link > span, .portal-link > span { display: inline-block; transition: transform 180ms ease; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* Encabezado de sección: filete grueso y fino, etiqueta y titular de tabloide */
.section-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 40px; padding-top: 16px; border-top: 6px solid currentColor; }
.section-head::before { content: ""; position: absolute; inset: 4px 0 auto; border-top: 1px solid currentColor; }
.section-label { grid-column: 1 / -1; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h2 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.section-lede { max-width: 380px; padding-bottom: 6px; font-size: 17px; font-weight: 500; }

/* Portada */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 32px; padding: 36px max(56px, calc((100vw - 1280px) / 2)) 52px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-kicker { margin-bottom: 14px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.hero-title { max-width: 11ch; font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: clamp(48px, 6.2vw, 96px); line-height: .98; letter-spacing: -.03em; }
.hero-title em { color: var(--red); font-style: italic; }
.hero-sub { margin-top: 16px; font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.01em; }
.intro { max-width: 470px; margin-top: 18px; font-size: 18px; font-weight: 500; }
.hero-stamp { display: inline-flex; flex-direction: column; margin-top: 24px; padding: 8px 14px 6px; border: 3px solid var(--red); border-radius: 4px; color: var(--red-text); font-family: "Anton", sans-serif; font-size: 22px; line-height: 1.1; text-transform: uppercase; rotate: calc(-1 * var(--tilt-l)); }
.hero-stamp span { font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.hero-art { position: relative; min-width: 0; }
.hero-directions { display: inline-block; margin-top: 18px; font-size: 15px; }
.hero-art > img { width: 100%; }

/* Portada: stickers de recortes reales (#526, #531)
   La imagen del HTML es la pila semanal (tools/pila_stickers.py): LCP y respaldo. stickers.js pone encima 5 stickers vivos en
   lugares fijos (--l, --t, --w, --r); el tablero es una capa absoluta, así que la portada no cambia de alto al activarse.
   Técnica del prototipo aprobado: borde troquelado blanco, sombra, dorso y aro holográfico se hornean una vez en canvas
   (troquelar() en stickers.js; los filtros SVG por cuadro iban a tirones en celular, #539), esquina que se despega
   con clip-path y un dorso espejado. Todo lo que se mueve va en no-preference; con «reducir movimiento» quedan planos. */
@property --peel { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --alto { syntax: "<number>"; inherits: true; initial-value: 0; }
.sticker-board { --px: .5; --py: .5; position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease; }
.sticker-board.listo { opacity: 1; }
.vacio { position: absolute; left: var(--l); top: var(--t); width: var(--w); rotate: var(--r); aspect-ratio: 1; border: 2px dashed rgb(22 54 107 / .25); border-radius: 8px; }
.sticker {
  --sx: 1; --sy: 1; /* esquina activa: 1 = izquierda/arriba, -1 = derecha/abajo (la geometría se espeja con scale) */
  --k: .55;        /* compresión de la pestaña: 1 = doblez plano, menor = rizo */
  /* Distancia del pliegue desde la esquina; el min() salta rápido los primeros 24% porque la esquina casi siempre está vacía. */
  --d: calc(var(--peel) * 115% + min(var(--peel) * 800%, 24%));
  --alza: max(var(--peel), var(--alto));
  position: absolute; left: var(--l); top: var(--t); width: var(--w); rotate: var(--r); display: block; aspect-ratio: 1; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  /* none para que el dedo pueda despegar el sticker en celular (con pan-y el navegador se quedaba el gesto para scroll y mandaba pointercancel); el scroll sigue funcionando en los huecos del tablero y fuera de él. */
  touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
  transform: scale(var(--sx), var(--sy)) scale(calc(1 + var(--alto) * .06));
}
.sticker > *, .frente > * { position: absolute; inset: 0; display: block; }
.sticker img, .sticker canvas { width: 100%; height: 100%; pointer-events: none; transform: scale(var(--sx), var(--sy)); }
/* Sombra: silueta desenfocada; al levantar solo se oscurece y crece, sin desplazarse. */
.sombra { opacity: calc(.10 + var(--alza) * .22); transform: scale(var(--sx), var(--sy)) scale(calc(1 + var(--alza) * .05)); }
.frente { clip-path: polygon(var(--d) 0, 100% 0, 100% 100%, 0 100%, 0 var(--d)); }
/* Aro holográfico: el degradado se ve solo a través del aro horneado en canvas (--anillo, data URL de stickers.js). */
.holo {
  opacity: .9; transform: scale(var(--sx), var(--sy));
  -webkit-mask: var(--anillo) center / 100% 100% no-repeat; mask: var(--anillo) center / 100% 100% no-repeat;
  background:
    repeating-linear-gradient(calc(var(--py) * 180deg + 20deg), #fff9 0 1px, transparent 1px 5px),
    conic-gradient(from calc(var(--px) * 360deg) at calc(var(--px) * 100%) calc(var(--py) * 100%), #ff7a9c, #ffd36b, #8bff9e, #6bd6ff, #c58bff, #ff7a9c);
}
/* Dorso: la pestaña levantada, la misma imagen vuelta papel, reflejada sobre el pliegue x+y=d. */
.dorso { clip-path: polygon(var(--d) 0, var(--d) var(--d), 0 var(--d)); }
.dorso img, .dorso canvas {
  transform-origin: 0 0;
  transform:
    translate(calc(var(--d) / 2), calc(var(--d) / 2)) rotate(45deg) scaleX(var(--k)) rotate(-45deg) translate(calc(var(--d) / -2), calc(var(--d) / -2))
    translate(var(--d), var(--d)) scaleY(-1) rotate(90deg)
    translate(50%, 50%) scale(var(--sx), var(--sy)) translate(-50%, -50%);
}
@media (prefers-reduced-motion: no-preference) {
  .sticker { cursor: grab; transition: --peel 500ms cubic-bezier(.2, .9, .3, 1.25), --alto 300ms ease; }
  .frente { will-change: clip-path; }
  .sticker.agarrado { cursor: grabbing; z-index: 2; transition: none; }
  @media (hover: hover) { .sticker:hover { --alto: .35; } }
  /* Despegado del todo: sale en la dirección del jalón (--vx/--vy; el contenedor está espejado, de ahí los signos). */
  .sticker.volando { pointer-events: none; z-index: 3; animation: volar 550ms cubic-bezier(.3, .6, .4, 1) forwards; }
  @keyframes volar { to { transform: scale(var(--sx), var(--sy)) translate(calc(var(--vx, 0px) * var(--sx)), calc(var(--vy, -160px) * var(--sy))) rotate(calc(var(--giro, -20deg) * var(--sx) * var(--sy))) scale(.7); opacity: 0; } }
  /* La nueva cae y se pega. */
  .sticker.nuevo { animation: pegar 450ms cubic-bezier(.2, .9, .3, 1.3) backwards; }
  @keyframes pegar { from { transform: translateY(-30px) scale(1.12) rotate(-6deg); opacity: 0; } }
  .sticker.nuevo .sombra { animation: sombra-pegar 450ms ease-out backwards; }
  @keyframes sombra-pegar { from { opacity: .35; } }
}

/* Los más buscados (Issues #339, #630): tarjetas como las del catálogo, más grandes, con lo de mayor precio. */
.wanted { padding-block: var(--section-s) var(--section); scroll-margin-top: 16px; }
.wanted-grid { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 32px; }
.wanted-grid li { display: flex; flex: 0 0 calc((100% - 64px) / 3); }
.wanted-item { display: flex; flex-direction: column; flex: 1; min-width: 0; background: var(--white); border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); }
/* Toda la tarjeta abre la ficha (catalogo.js); la foto es solo imagen. */
.wanted-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-bottom: 2px solid var(--navy); background: var(--mist); cursor: pointer; }
.wanted-photo img { width: 100%; height: 100%; object-fit: cover; }
.wanted-photo.con-recorte { padding: 8%; }
.wanted-photo.con-recorte img { object-fit: contain; filter: drop-shadow(0 6px 6px rgb(22 54 107 / .18)); }
/* Sello de goma «¡Última pieza!» (Issue #339): tinta roja gastada, chueco, encima de la foto. */
.wanted-stamp { position: absolute; top: 14px; left: 12px; padding: 8px 14px 5px; border: 3px solid var(--red); outline: 1.5px solid var(--red); outline-offset: 2px; border-radius: 4px;
  background: rgb(255 255 255 / .9); color: var(--red-text); font-family: "Anton", sans-serif; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; rotate: -8deg; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 1.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 1.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); }
.wanted-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 18px 20px 20px; }
.wanted-body .piece-brand { min-height: 1.6em; }
/* Nombres largos: 2 líneas y el mismo alto en todas, para que precios y botones queden alineados. */
.wanted-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.3em; font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.wanted-price { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--red); font-family: "Anton", sans-serif; font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.wanted-was { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; color: var(--navy); font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; }
.wanted-was s { color: var(--red-text); }
.wanted-was b { font-weight: 800; }
.wanted-item { cursor: pointer; }
.wanted-ask { align-self: flex-start; min-height: 52px; margin-top: 18px; padding: 8px 18px; gap: 8px; font-size: 15px; }
.wanted-hint { display: none; }
.wanted-grid:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }

/* Novedades: recortes pegados con cinta */
.catalog { padding-block: var(--section-s) var(--section); scroll-margin-top: 16px; background: var(--mist); }
.catalog-search { margin-top: 26px; max-width: 680px; }
.search-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search-input { flex: 1 1 240px; min-height: 50px; padding: 10px 14px; border: 2px solid var(--navy); border-radius: 2px; background: var(--white); color: var(--navy); box-shadow: 3px 3px 0 var(--navy); font: 600 16px/1.3 "Archivo", sans-serif; }
.search-input::placeholder { color: rgb(22 54 107 / .8); font-weight: 500; }
.search-submit, .catalog-clear { min-height: 50px; padding: 10px 18px; box-shadow: 3px 3px 0 var(--navy); }
.chips-wrap { position: relative; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 8px 14px 6px; border: 2px solid var(--navy); border-radius: 2px; background: var(--white); color: var(--navy); box-shadow: 2px 2px 0 var(--navy); font-family: "Anton", sans-serif; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.chip[aria-pressed="true"] { background: var(--red); color: var(--white); view-transition-name: chip-activo; }
.chip[aria-pressed="true"]::before { content: "\2713 "; }
.filter-size { margin-top: 18px; max-width: 320px; }
.filter-size-select { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 2px; background: var(--white); color: var(--navy); box-shadow: 2px 2px 0 var(--navy); font: 700 16px/1.3 "Archivo", sans-serif; }
.filter-size-select:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.chips-filters .chip[aria-pressed="true"] { view-transition-name: none; }
.catalog-status { margin-top: 22px; min-height: 26px; font-size: 15px; font-weight: 700; }
.catalog-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 34px 26px; }
.piece { position: relative; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); transition: translate 150ms ease, box-shadow 150ms ease; }
.piece-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: 2px solid var(--navy); aspect-ratio: 4 / 5; overflow: hidden; background: #F1F1EF; cursor: pointer; }
.piece-photo img { width: 100%; height: 100%; object-fit: cover; }
.piece-photo.con-recorte { padding: 8%; background: #F4F5F8; }
.piece-photo.con-recorte img { object-fit: contain; filter: drop-shadow(0 6px 6px rgb(22 54 107 / .18)); }
.piece-body { display: flex; flex-direction: column; flex: 1; gap: 2px; padding: 12px 14px 14px; }
.piece h3 { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.piece-brand { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.piece-size { font-size: 14px; font-weight: 800; }
.piece-price { align-self: flex-start; margin-top: auto; padding-top: 8px; font-family: "Anton", sans-serif; font-size: 30px; line-height: 1.15; }
/* «Disponible» y «Lo quiero» de las dos listas (Issue #648). El verde es el de .ficha-disp. */
.piece-disp { margin-top: 2px; color: #17703A; font-size: 13px; font-weight: 800; line-height: 1.3; }
.piece-disp::before { content: "● " / ""; }
/* Objetivo táctil de 44 px (NN/g, WCAG 2.5.8) o más; el botón siempre abre la ficha. */
.button.piece-quiero { align-self: stretch; min-height: 48px; margin-top: 12px; padding: 6px 12px; background: var(--red); color: var(--white); font-size: 16px; box-shadow: 3px 3px 0 var(--navy); cursor: pointer; }
.piece-price s { margin-left: 8px; color: var(--red-text); font-family: "Archivo", sans-serif; font-size: 14px; font-weight: 700; }
/* El sello de «Los más buscados» reducido para la tarjeta chica. */
.piece-photo .wanted-stamp { top: 8px; left: 6px; padding: 5px 8px 3px; font-size: 16px; }
.catalog-more { margin: 40px auto 0; display: flex; }
.catalog-fallback { max-width: 580px; margin-top: 28px; padding: 28px; background: var(--white); border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.catalog-fallback h3 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: 26px; line-height: 1.15; }
.catalog-fallback p { margin-top: 10px; }
.piece-dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: hidden; border: 3px solid var(--navy); background: var(--white); color: var(--navy); box-shadow: 8px 10px 0 rgb(22 54 107 / .4); }
.piece-dialog::backdrop { background: rgb(22 54 107 / .68); }
/* Ficha de pieza (Issue #645): cabecera fija, zona que se desplaza (foto + datos) y barra fija abajo con «Lo quiero». */
.piece-dialog-box { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); }
.piece-dialog-head { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
/* Anterior / Siguiente (#690): también flechas del teclado y deslizar sobre la foto sin zoom. */
.ficha-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ficha-nav .button { min-height: 44px; padding: 6px 10px; font-size: 14px; box-shadow: 2px 2px 0 var(--navy); }
.ficha-nav .button:disabled { opacity: .35; box-shadow: none; }
.ficha-contador { min-width: 4.5em; text-align: center; font: 800 13px/1.2 "Archivo", sans-serif; white-space: nowrap; }
.piece-dialog-close { min-height: 44px; padding: 6px 16px; font-size: 14px; box-shadow: 2px 2px 0 var(--navy); }
.piece-dialog-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Foto 4:5. `touch-action: none` deja el doble toque, el pellizco y el arrastre a catalogo.js (mismo truco que los stickers, #537). */
.piece-dialog-photo { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc(50vh * .8)); width: min(100%, calc(50dvh * .8)); margin-inline: auto; overflow: hidden; background: #F1F1EF; touch-action: none; user-select: none; -webkit-user-select: none; }
.piece-dialog-photo.acercada { cursor: grab; }
.piece-dialog-img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: center; -webkit-user-drag: none; view-transition-name: pieza-foto; }
.piece-dialog-stamp { top: 12px; left: 10px; }
.ficha-zoom { position: absolute; right: 8px; bottom: 8px; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--navy); background: rgb(255 255 255 / .92); color: var(--navy); font: 800 12px/1.1 "Archivo", sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.ficha-pista { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 8px 14px; background: rgb(22 54 107 / .88); color: var(--white); font: 700 14px/1.2 "Archivo", sans-serif; white-space: nowrap; pointer-events: none; }
.ficha-datos { display: grid; gap: 6px; padding: 14px 16px 22px; }
.piece-dialog-meta { color: #4A5568; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.piece-dialog-title { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.piece-dialog .piece-dialog-price { margin: 0; padding: 0; color: var(--red); font-size: 36px; line-height: 1.1; }
.piece-dialog .piece-dialog-price s { display: inline; margin-left: 8px; color: var(--red-text); font-size: 16px; }
.piece-dialog-price b { margin-left: 10px; color: var(--navy); font: 800 16px/1.2 "Archivo", sans-serif; }
.ficha-disp { color: #17703A; font-weight: 800; }
.ficha-disp::before { content: "● " / ""; }
.ficha-cond { font-size: 14px; font-weight: 700; }
.ficha-compra { margin-top: 4px; padding: 10px 12px; background: var(--mist); font-size: 15px; line-height: 1.4; }
.piece-dialog-bar { flex: none; display: grid; gap: 2px; padding: 10px 14px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 5px double var(--navy); background: var(--white); }
.ficha-principal { display: flex; align-items: center; gap: 14px; }
.ficha-barprecio { font-family: "Anton", sans-serif; font-size: 30px; line-height: 1; }
.button.ficha-comprar { flex: 1; min-height: 56px; background: var(--red); color: var(--white); font-size: 20px; }
.button.ficha-carrito { min-height: 52px; margin-top: 8px; font-size: 18px; }
.ficha-secundarios { display: flex; justify-content: space-between; gap: 12px; }
.ficha-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--navy); font: 700 16px/1.2 "Archivo", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ficha-aviso { text-align: center; font-size: 14px; font-weight: 700; }
.ficha-aviso:empty { display: none; }
@media (max-width: 560px) {
  /* En celular la ficha ocupa toda la pantalla, fija al viewport (no depende de márgenes automáticos ni del zoom de página). */
  .piece-dialog { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; margin: 0; max-width: none; max-height: none; border: 0; box-shadow: none; }
  .piece-dialog-box { max-height: none; height: 100%; }
}
/* Carrito (Issue #681): botón fijo arriba a la derecha mientras se recorre el catálogo, y la hoja con las piezas. */
.catalog-bar { position: sticky; top: 8px; z-index: 5; display: flex; justify-content: flex-end; margin-bottom: 14px; pointer-events: none; }
.cart-button { pointer-events: auto; min-height: 48px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--navy); }
.cart-dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 24px; overflow-y: auto; border: 3px solid var(--navy); background: var(--white); color: var(--navy); box-shadow: 8px 10px 0 rgb(22 54 107 / .4); }
.cart-dialog::backdrop { background: rgb(22 54 107 / .68); }
.cart-title { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: 26px; line-height: 1.2; }
.cart-notice { min-height: 1.3em; margin-top: 4px; font-size: 14px; font-weight: 700; }
.cart-list { list-style: none; margin: 8px 0 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgb(22 54 107 / .25); }
.cart-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.cart-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-data p { margin: 0; }
.cart-name { font-weight: 800; overflow-wrap: anywhere; }
.cart-price { color: var(--red-text); font-weight: 800; }
.cart-price.cart-sold { color: #4A5568; }
.cart-item.vendida { opacity: .75; }
.cart-item.vendida .cart-name { text-decoration: line-through; }
.button.cart-remove { min-height: 44px; padding: 6px 12px; box-shadow: 2px 2px 0 var(--navy); }
.cart-total { margin-top: 16px; font-family: "Anton", sans-serif; font-size: 24px; line-height: 1.2; }
.cart-hint { margin: 6px 0 14px; font-size: 14px; }
.button.cart-apartar { display: flex; width: 100%; min-height: 56px; font-size: 20px; background: var(--red); }
.button.cart-close { display: flex; width: 100%; margin-top: 16px; }
/* Morph miniatura → visor (catalogo.js). */
::view-transition-group(pieza-foto) { animation-duration: 300ms; animation-timing-function: cubic-bezier(.2, .9, .3, 1.05); }
/* Miniatura recortada (cover) y foto completa (contain): ambas caben en el grupo mientras cambia de tamaño. */
::view-transition-old(pieza-foto), ::view-transition-new(pieza-foto) { height: 100%; object-fit: contain; overflow: clip; }

/* Ropa: escalera de precios en Anton (Issue #630) */
.ropa { padding-block: var(--section); scroll-margin-top: 16px; }
.price-ladder { list-style: none; margin: 40px 0 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.ladder-num { display: block; color: var(--red); font-family: "Anton", sans-serif; font-size: clamp(56px, 9vw, 128px); line-height: .95; }
.ladder-note { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Grupos: tarjetas blancas sobre tinta azul punteada; la sombra dura va en amarillo porque la azul se pierde en el fondo. */
.groups { background: var(--navy) radial-gradient(rgb(255 255 255 / .07) 1.2px, transparent 1.4px) 0 0 / 9px 9px; color: var(--white); }
.groups a:focus-visible { outline-color: var(--yellow); }
.group-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.6vw, 32px); background: var(--white); color: var(--navy); border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--yellow); }
.group-card h3 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.group-card p { margin: 8px 0 20px; font-size: 16px; font-weight: 500; }
/* Dentro de la tarjeta blanca el foco vuelve al rojo de todo el sitio. */
.groups .group-card a:focus-visible { outline-color: var(--red); }
.groups-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; padding-block: var(--section); }
.groups-copy .section-lede { margin-top: 18px; max-width: 440px; }
.groups-cards { display: grid; gap: 26px; }

/* Dolarones: vales sobre papel amarillo */
.dolarones { background: var(--yellow); }
.dolarones .wrap { padding-block: var(--section); }
.dolarones-layout { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.dolarones-copy { flex: 1; }
.dolarones-copy > p:not(.section-label) { max-width: 560px; margin-block: 18px 24px; font-size: 18px; font-weight: 500; }
.dolarones-symbol { width: 300px; height: auto; margin-right: 30px; rotate: -6deg; filter: drop-shadow(5px 6px 0 rgb(22 54 107 / .25)); }
.dolarones-pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 40px 0 26px; padding: 0; list-style: none; }
.dolarones-pasos li { padding: 26px 26px 24px; background: var(--white); outline: 2px dashed var(--navy); outline-offset: -10px; box-shadow: 4px 4px 0 var(--navy); }
.dolarones-cifra { display: block; color: var(--red); font-family: "Anton", sans-serif; font-size: 72px; line-height: .95; }
.dolarones-pasos h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 800; }
.dolarones-pasos p { font-size: 15px; line-height: 1.55; }
.dolarones-nota { font-size: 14px; font-weight: 500; }
.dolarones-nota a { font-weight: 800; }

/* Cómo comprar: columnas de periódico */
.how { padding-block: var(--section); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 32px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--navy); }
.steps li::before { content: counter(step); display: block; color: var(--red); font-family: "Anton", sans-serif; font-size: 64px; line-height: 1; }
.steps h3 { margin: 6px 0 10px; font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.steps p { max-width: 300px; font-size: 16px; }

/* Visítanos: tarjeta blanca con sombra dura (sin cinta, Issue #630) */
.visit { scroll-margin-top: 16px; }
.visit-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; padding-block: 24px var(--section); }
.address-block { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; }
.pin { width: 28px; height: 35px; color: var(--red); margin-top: 3px; }
.address-block h3 { margin-bottom: 6px; font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 900; font-size: 30px; letter-spacing: -.02em; }
address { font-style: normal; font-size: 17px; line-height: 1.6; }
.visit-heading .button { margin-top: 28px; }
.visit-details { position: relative; padding: 40px 42px 38px; background: var(--white); border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.hours-label { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hours { margin-top: 10px; font-family: "Anton", sans-serif; font-size: clamp(48px, 5vw, 72px); line-height: .98; text-transform: uppercase; }
.hours span { color: var(--red); }
dl { margin: 26px 0 22px; }
dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: 14px; border-top: 2px dashed rgb(22 54 107 / .4); }
dt { font-weight: 800; }
dd { margin: 0; line-height: 1.5; }

/* Pie */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 40px; border-top: 5px double var(--navy); font-size: 13px; font-weight: 600; }
.footer-brand { width: 160px; flex-shrink: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 800; }

@media (hover: hover) and (pointer: fine) {
  .header nav a:hover, .footer a:hover { text-decoration: underline; }
  .button:hover, .portal-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
  .button-paper:hover { background: var(--yellow); }
  .button-navy:hover { background: var(--red); }
  .button-whatsapp:hover { background: var(--wa); }
  .button:hover > span:not(.wa-logo), .text-link:hover > span, .portal-link:hover > span { transform: translate(2px, -2px); }
  .chip:hover { background: var(--yellow); }
  .chip[aria-pressed="true"]:hover { background: var(--red); }
  .piece:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--navy); }
}
/* Pulsar = sellar: la sombra dura se hunde rápido y vuelve con la transición existente. Feedback para táctil, donde no hay hover. */
.button:active, .portal-link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); transition-duration: 60ms; }
.chip:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--navy); }
.piece:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--navy); }
/* Barra fija de celular: WhatsApp y Catálogo siempre a la mano; en escritorio no existe. */
.sticky-bar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .visit-details.motion-enter, .dolarones-symbol.motion-enter { animation: paper-settle 650ms cubic-bezier(.2, .9, .3, 1.3); }
  @keyframes paper-settle { from { translate: 0 -18px; rotate: -6deg; } }
  /* Las tarjetas nuevas se asientan como recortes; escalonado solo donde hay sibling-index() (Chrome 138+, Safari 26.2+). */
  .piece { animation: card-settle 320ms cubic-bezier(.2, .9, .3, 1.1) backwards; animation-delay: calc(mod(sibling-index() - 1, 8) * 35ms); }
  @keyframes card-settle { from { opacity: 0; translate: 0 10px; rotate: -1.2deg; } }
  @supports (animation-timeline: view()) {
    /* La hoja se asienta conforme entra en pantalla y vuelve si se sube; motion.js se apaga solo. */
    [data-motion] { animation: paper-settle cubic-bezier(.2, .9, .3, 1.3) both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { padding: 32px 32px 44px; gap: 20px; }
  .hero-title { font-size: clamp(44px, 7vw, 80px); }
  .header nav { gap: 20px; }
  .groups-layout, .visit-layout { gap: 48px; }
  .dolarones-symbol { width: 220px; margin-right: 8px; }
}
@media (max-width: 1000px) {
  /* Con tres por fila las tarjetas de 761 a 1000 px quedan angostas: de dos en dos. */
  .wanted-grid li { flex-basis: calc((100% - 32px) / 2); }
}
@media (max-width: 900px) {
  /* Portada en celular: título, collage chico y luego el resto; .hero-copy se disuelve en la rejilla para ordenar. */
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 32px; gap: 8px; }
  .hero-copy { display: contents; }
  .hero > *, .hero-copy > * { min-width: 0; }
  .hero-kicker { order: 1; } .hero-title { order: 2; } .hero-art { order: 3; } .hero-sub { order: 4; } .intro { order: 5; } .actions { order: 6; } .hero-stamp { order: 7; } .hero-directions { order: 8; justify-self: start; }
  .hero-sub { margin-top: 4px; }
  .intro { margin-top: 12px; }
  .hero-kicker { font-size: 15px; }
  .hero-title { font-size: clamp(40px, 11vw, 72px); }
  .intro { font-size: 16px; }
  .hero .button { padding-inline: 14px; }
  .hero-stamp { font-size: 19px; }
  .hero-art { width: min(100%, 360px); margin: 12px auto 0; }
  .section-head { grid-template-columns: 1fr; }
  .groups-layout, .visit-layout { grid-template-columns: 1fr; }
  .dolarones-symbol { display: none; }
  .dolarones-pasos, .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { padding: 18px 0; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--navy); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .sticky-bar { position: fixed; inset: auto 0 0; z-index: 4; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 5px double var(--navy); }
  .sticky-bar .button { min-height: 50px; padding-inline: 12px; box-shadow: 3px 3px 0 var(--navy); }
  body:has(.sticky-bar) { padding-bottom: 84px; }
  body:has(dialog[open]) .sticky-bar { display: none; }
  .piece h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .header { min-height: 84px; }
  .brand { width: 150px; }
  .nav-link { display: none; }
  .header nav { gap: 14px; font-size: 12px; }
  .portal-link { padding: 9px 11px; }
  h2 { font-size: clamp(32px, 9vw, 48px); }
  /* Fila deslizable con la siguiente tarjeta asomando: una a la vez se lee completa en 390 px. */
  .wanted-hint { display: block; margin-top: 18px; font-size: 14px; font-weight: 800; }
  .wanted-grid { flex-wrap: nowrap; justify-content: flex-start; gap: 18px; margin: 4px -20px 0; padding: 14px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
  .wanted-grid li { flex: 0 0 min(80vw, 330px); scroll-snap-align: start; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .piece-body { padding: 10px 10px 12px; }
  .piece h3 { font-size: 14px; }
  .piece-price { font-size: 24px; }
  .piece-price s { display: block; margin-left: 0; font-size: 12px; }
  .button.piece-quiero { font-size: 15px; }
  .chips-wrap { margin-inline: -20px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 38px), transparent 100%); }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 38px 6px 20px; scrollbar-width: none; }
  .chip { flex-shrink: 0; font-size: 14px; padding-inline: 10px; }
  .price-ladder { justify-content: flex-start; gap: 18px 32px; }
  .visit-details { padding: 30px 26px 30px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .header { gap: 12px; }
  .brand { width: 124px; }
  .header nav { gap: 10px; }
  .visit-link { display: none; }
  .header nav { font-size: 11px; letter-spacing: .04em; }
  .portal-link { white-space: nowrap; padding-inline: 9px; }
  .portal-link > span { display: none; }
  .hero .button { gap: 6px; padding-inline: 10px; }
}
@media (max-width: 340px) {
  .catalog-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
