/* Frescura y Sazón — "La ristra". Base para 390 px; breakpoints hacia arriba. */
@view-transition { navigation: auto; }

:root {
  --hoja: #0F7A33;
  --hoja-noche: #083D1C;
  --aji: #E3212B;
  --cinta: #FFD21F;
  --curcuma: #F2A900;
  --color: #E8591A;
  --comino: #8A5A2B;
  --papel: #FFF6DC;
  --tinta: #1B1408;
  --fluor-rojo: #FF4B2B;
  --fluor-lima: #E6FF2A;
  --fluor-verde: #49F26B;
  --alambre: #0B5D2A;
  --display: 'Bagel Fat One', 'Arial Black', system-ui, sans-serif;
  --marcador: 'Permanent Marker', 'Comic Sans MS', cursive;
  --cuerpo: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --barra: 68px;
  --sombra: 4px 4px 0 var(--hoja-noche);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font: 500 17px/1.5 var(--cuerpo);
  color: var(--tinta);
  background: var(--cinta);
  padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom));
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }
.sobre-oscuro :focus-visible, .oscuro :focus-visible { outline-color: var(--papel); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: absolute; left: 8px; top: -60px; background: var(--tinta); color: var(--papel); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.salto:focus { top: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px;
  font: 700 17px/1 var(--cuerpo); text-decoration: none;
  background: var(--hoja); color: var(--papel);
  border: 3px solid var(--hoja-noche); border-radius: 999px;
  box-shadow: var(--sombra);
  transition: transform .12s, box-shadow .12s;
  touch-action: manipulation;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--hoja-noche); }
.btn-claro { background: var(--papel); color: var(--hoja-noche); }
.btn-aji { background: var(--aji); }
.btn-chico { min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* ---------- Cabecera ---------- */
.cab {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
}
.calco {
  display: block; width: 74px; height: 74px; border-radius: 50%;
  background: #fff; border: 3px solid var(--hoja-noche); box-shadow: var(--sombra);
  overflow: hidden; rotate: -6deg;
  animation: calco 5s ease-in-out infinite;
}
.calco img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
@keyframes calco { 50% { rotate: 5deg; } }
.cab-nav { display: none; }

/* ---------- Barra inferior tipo app ---------- */
.barra {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--barra) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--hoja-noche); color: var(--papel);
  border-top: 3px solid var(--cinta);
}
.barra a, .barra button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 700 11.5px/1 var(--cuerpo); text-decoration: none; color: inherit;
  background: none; border: 0; padding: 0; position: relative;
  touch-action: manipulation;
}
.barra svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.barra [aria-current="page"] { color: var(--cinta); }
.barra [aria-current="page"] svg { transform: translateY(-3px) scale(1.12); }
.barra a:active svg, .barra button:active svg { transform: scale(.85); }
.cuenta {
  position: absolute; top: 7px; left: calc(50% + 6px);
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--aji); color: #fff; font: 700 13px/22px var(--cuerpo); text-align: center;
}
.cuenta[data-n="0"] { display: none; }
.cuenta.salta { animation: salta .45s; }
@keyframes salta { 30% { transform: scale(1.7) rotate(-12deg); } 60% { transform: scale(.9); } }

/* ---------- Secciones a color pleno con borde de sobre sellado ---------- */
.sec { position: relative; padding: 44px 18px 50px; background: var(--bg, var(--cinta)); color: var(--fg, var(--tinta)); }
.sec + .sec::before, .dientes::before {
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, var(--bg) 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--bg) 50%) 7px 0 / 14px 10px repeat-x;
}
.oscuro { --fg: var(--papel); }
.ceja { font: 400 20px/1 var(--marcador); display: inline-block; padding: 7px 12px 6px; background: var(--fluor-lima); color: var(--tinta); rotate: -3deg; margin-bottom: 14px; box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.ceja.rojo { background: var(--fluor-rojo); }
.ceja.verde { background: var(--fluor-verde); }
.tit { font-size: clamp(44px, 13.5vw, 96px); }
.bajada { font-size: 18px; max-width: 34ch; margin-top: 14px; }
.ancho { max-width: 1120px; margin-inline: auto; }

/* ---------- Revelados (solo si hay JS) ---------- */
.js [data-r] { opacity: 0; transform: translateY(34px) rotate(-2deg); transition: opacity .5s, transform .7s cubic-bezier(.2, 1.4, .4, 1); }
.js [data-r].in { opacity: 1; transform: none; }
.js [data-r="2"] { transition-delay: .08s; } .js [data-r="3"] { transition-delay: .16s; } .js [data-r="4"] { transition-delay: .24s; }

/* ---------- El sobre ---------- */
.sobre {
  --giro: 0deg;
  position: relative; display: block; width: 100%;
  transform-origin: 50% -18px; rotate: var(--giro);
  text-decoration: none; color: var(--tinta);
  background: none; border: 0; padding: 0; text-align: left;
  touch-action: manipulation;
}
.sobre::before { /* alambre que baja al agujero */
  content: ''; position: absolute; left: 50%; top: -20px; width: 3px; height: 30px; translate: -50% 0;
  background: repeating-linear-gradient(180deg, var(--alambre) 0 4px, #12843d 4px 8px); border-radius: 2px; z-index: 3;
}
.sobre-bolsa {
  display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: var(--polvo, var(--comino));
  box-shadow: 5px 6px 0 rgba(0, 0, 0, .28);
}
.sobre-bolsa img { width: 100%; height: 100%; object-fit: cover; }
.sobre-bolsa.de-afiche img { object-position: 50% 80%; scale: 1.7; transform-origin: 50% 82%; }
.sobre-bolsa.sin-foto { /* sobre dibujado: polvo abajo, plástico arriba */
  background:
    radial-gradient(120% 60% at 50% 100%, var(--polvo) 0 62%, transparent 63%),
    linear-gradient(180deg, #f4f1e6, #e2ddcc);
}
.sobre-bolsa::after { /* brillo del plástico */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 44%, transparent 52%, transparent 70%, rgba(255,255,255,.16) 78%, transparent 86%);
  background-size: 220% 100%; animation: brillo 4.5s linear infinite;
}
@keyframes brillo { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sobre-tag {
  position: absolute; left: -4px; right: -4px; top: -6px; z-index: 2;
  padding: 13px 8px 9px; text-align: center;
  font: 400 clamp(15px, 4.6vw, 21px)/1 var(--marcador); text-transform: uppercase;
  background: var(--fluor-rojo); color: #111; rotate: var(--tagr, -2deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
.sobre-tag::before { /* agujero */
  content: ''; position: absolute; left: 50%; top: 3px; width: 8px; height: 8px; border-radius: 50%; translate: -50% 0; background: rgba(0,0,0,.55);
}
.sobre-tag::after { /* grapa */
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; translate: -50% 0; background: #9aa0a6; border-radius: 1px;
}
.tag-lima .sobre-tag { background: var(--fluor-lima); }
.tag-verde .sobre-tag { background: var(--fluor-verde); }

/* ---------- Sello estrella ---------- */
.sello {
  --d: 96px;
  width: var(--d); height: var(--d); display: grid; place-items: center; text-align: center;
  position: relative; color: #fff; font: 400 15px/.95 var(--display); text-transform: uppercase;
}
.sello::before {
  content: ''; position: absolute; inset: 0; background: var(--aji);
  clip-path: polygon(50% 0%, 57% 8%, 66% 3%, 70% 13%, 80% 10%, 82% 20%, 92% 20%, 90% 30%, 100% 34%, 95% 43%, 100% 50%, 95% 57%, 100% 66%, 90% 70%, 92% 80%, 82% 80%, 80% 90%, 70% 87%, 66% 97%, 57% 92%, 50% 100%, 43% 92%, 34% 97%, 30% 87%, 20% 90%, 18% 80%, 8% 80%, 10% 70%, 0% 66%, 5% 57%, 0% 50%, 5% 43%, 0% 34%, 10% 30%, 8% 20%, 18% 20%, 20% 10%, 30% 13%, 34% 3%, 43% 8%);
  animation: gira 14s linear infinite;
}
.sello > * { position: relative; }
.sello b { display: block; font-weight: 400; font-size: 2.3em; color: var(--cinta); }
@keyframes gira { to { rotate: 360deg; } }

/* ---------- HERO: el tendedero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--barra)); overflow: hidden;
  padding: 96px 18px 0; display: flex; flex-direction: column;
  background: var(--bg, var(--cinta)); color: var(--fg, var(--tinta));
  transition: color .4s;
}
.hero-tinte { position: absolute; inset: 0; background: var(--cinta); clip-path: circle(0 at 50% 80%); pointer-events: none; }
.hero-polvo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-txt { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(74px, 24vw, 190px); line-height: .82; padding-bottom: .13em; /* descendentes de p, j, g */ }
.hero h1 span { display: block; animation: sube .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero h1 .cambia { animation-delay: .12s; color: var(--aji); rotate: -3deg; transform-origin: 0 100%; white-space: nowrap; transition: color .4s; }
.hero.oscuro h1 .cambia { color: var(--cinta); }
.hero h1 .cambia.fuera { animation: sale .22s ease-in both; }
.hero h1 .cambia.entra { animation: sube .45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes sube { from { opacity: 0; transform: translateY(70%) rotate(6deg); } }
@keyframes sale { to { opacity: 0; transform: translateY(-50%) rotate(-6deg); } }
.hero .bajada { font-weight: 700; animation: sube .7s .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; animation: sube .7s .32s cubic-bezier(.2, 1.4, .4, 1) both; }
.tendedero .sello { position: absolute; left: 10px; top: -60px; z-index: 3; --d: 86px; font-size: 13.5px; rotate: -10deg; }

.tendedero { position: relative; z-index: 2; margin: auto -18px 0; padding: 44px 0 34px; touch-action: pan-y; }
.tendedero::before { /* alambre horizontal */
  content: ''; position: absolute; left: -5%; right: -5%; top: 25px; height: 4px; rotate: -1.2deg;
  background: repeating-linear-gradient(90deg, var(--alambre) 0 6px, #12843d 6px 12px); border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.tendedero-riel { display: flex; gap: 22px; width: max-content; padding-inline: 50vw; transition: transform .8s cubic-bezier(.2, 1.2, .3, 1); will-change: transform; }
.tendedero .sobre { width: clamp(150px, 44vw, 230px); flex: none; transition: scale .5s cubic-bezier(.2, 1.6, .4, 1), filter .4s; scale: .86; filter: saturate(.75); will-change: rotate; }
.tendedero .sobre.activo { scale: 1.06; filter: none; z-index: 2; }
.pausa {
  position: absolute; left: 12px; bottom: 10px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid currentColor; background: none;
  display: grid; place-items: center; font: 700 14px/1 var(--cuerpo);
}

/* ---------- Cintas marquee ---------- */
.cintas { position: relative; padding: 26px 0; background: var(--hoja-noche); overflow: hidden; }
.cinta { display: flex; width: max-content; font: 400 34px/1 var(--display); text-transform: uppercase; padding: 9px 0; white-space: nowrap; animation: corre 26s linear infinite; transform-origin: 50vw 50%; /* la tira mide miles de px: girar sobre el centro la saca de pantalla */ }
.cinta span { padding-inline: 14px; }
.cinta-a { background: var(--cinta); color: var(--hoja-noche); rotate: -3deg; margin-inline: -20px; }
.cinta-b { background: var(--aji); color: var(--papel); rotate: 2deg; margin: 6px -20px 0; animation-direction: reverse; animation-duration: 32s; }
@keyframes corre { to { transform: translateX(-50%); } }
.quieto .cinta, .quieto .sello::before, .quieto .calco, .quieto .sobre-bolsa::after, .quieto .mece { animation-play-state: paused; }

/* ---------- Calculadora ---------- */
.calc { --bg: var(--hoja); }
.calc-caja { margin-top: 26px; background: var(--papel); color: var(--tinta); border: 3px solid var(--hoja-noche); border-radius: 22px; box-shadow: 6px 6px 0 var(--hoja-noche); padding: 20px 18px 22px; }
.calc-fijo { display: flex; gap: 10px; align-items: center; font-weight: 700; padding-bottom: 14px; border-bottom: 2px dashed rgba(0,0,0,.2); }
.calc-fijo .mini { width: 46px; flex: none; }
.campo { margin-top: 18px; }
.campo label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; gap: 10px; }
.campo output { font: 400 28px/1 var(--display); color: var(--aji); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: none; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--hoja) var(--p, 50%), #d8cfae var(--p, 50%)); border: 2px solid var(--hoja-noche); }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 6px; background: #d8cfae; border: 2px solid var(--hoja-noche); }
input[type="range"]::-moz-range-progress { height: 12px; border-radius: 6px; background: var(--hoja); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border-radius: 50%; background: var(--cinta); border: 3px solid var(--hoja-noche); box-shadow: 2px 2px 0 var(--hoja-noche); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--cinta); border: 3px solid var(--hoja-noche); }
.calc-res { margin-top: 22px; display: grid; gap: 14px; }
.calc-res > div { background: var(--cinta); border: 3px solid var(--hoja-noche); border-radius: 16px; padding: 14px 16px; }
.calc-res .grande { background: var(--aji); color: #fff; rotate: -1.5deg; }
.calc-res small { display: block; font-weight: 700; font-size: 14px; }
.odo { display: inline-flex; align-items: flex-start; font: 400 clamp(40px, 12.5vw, 72px)/1 var(--display); height: 1em; overflow: hidden; vertical-align: bottom; }
.odo .col { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, 1.1, .3, 1); }
.odo .col span, .odo .fijo { display: block; height: 1em; line-height: 1; }
.calc .nota { margin-top: 14px; font-size: 14px; opacity: .85; }

/* ---------- Carrusel con inercia ---------- */
.carril-sec { --bg: var(--color); padding-inline: 0; }
.carril-sec > .ancho { padding-inline: 18px; }
.carril {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 44px 24vw 30px; margin-top: 8px; scrollbar-width: none;
}
.carril::-webkit-scrollbar { display: none; }
.carril .item { flex: none; width: 52vw; max-width: 250px; scroll-snap-align: center; }
.carril .sobre { rotate: var(--tilt, 0deg); transition: rotate .15s linear; }
.carril .cap { margin-top: 12px; text-align: center; font-weight: 700; color: var(--papel); }
.carril .cap b { display: block; font: 400 24px/1 var(--display); color: var(--cinta); }

/* ---------- Franja promo ---------- */
.franja { --bg: var(--aji); display: grid; gap: 22px; }
.franja figure { margin: 0; border: 3px solid var(--hoja-noche); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--hoja-noche); rotate: 2deg; background: #fff; }
.precio-ant { text-decoration: line-through; opacity: .8; font-weight: 700; }
.precio { font: 400 clamp(52px, 16vw, 110px)/.9 var(--display); color: var(--cinta); display: block; }
.mece { transform-origin: 50% -10px; animation: mece 3.2s ease-in-out infinite; }
@keyframes mece { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* ---------- Catálogo ---------- */
.pag-cab { padding: 108px 18px 30px; background: var(--bg, var(--cinta)); color: var(--fg, var(--tinta)); position: relative; overflow: hidden; }
.pag-cab h1 { font-size: clamp(56px, 17vw, 130px); animation: sube .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.pag-cab .bajada { animation: sube .7s .12s cubic-bezier(.2, 1.4, .4, 1) both; }
.chips {
  position: sticky; top: 0; z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 18px; background: var(--hoja-noche);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--papel); background: none; color: var(--papel); font: 700 15px/1 var(--cuerpo); transition: transform .15s; touch-action: manipulation; }
.chip[aria-pressed="true"] { background: var(--cinta); color: var(--hoja-noche); border-color: var(--cinta); transform: rotate(-3deg) scale(1.05); }
.rejilla-sec { --bg: var(--papel); padding-top: 34px; transition: background-color .5s; }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 22px; padding: 30px 6px 0; }
.rejilla .item { position: relative; animation: cae .6s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.rejilla .item::before { /* tramo de alambre horizontal de la fila */
  content: ''; position: absolute; left: -11px; right: -11px; top: -22px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--alambre) 0 6px, #12843d 6px 12px);
}
@keyframes cae { from { opacity: 0; transform: translateY(-40px) rotate(8deg); } }
.rejilla .sobre { animation: mece 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
.item-pie { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; }
.item-pie .dato { font-size: 13.5px; line-height: 1.25; font-weight: 700; min-width: 0; }
.item-pie .dato b { display: block; font: 400 21px/1.05 var(--display); color: var(--aji); }
.item-pie .dato b.cot { font: 400 17px/1.1 var(--marcador); color: var(--hoja); }
.mas {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--hoja); color: #fff; border: 3px solid var(--hoja-noche); box-shadow: 3px 3px 0 var(--hoja-noche);
  font: 400 28px/1 var(--display); display: grid; place-items: center; padding: 0 0 3px; touch-action: manipulation;
}
.mas:active { transform: translate(3px, 3px) rotate(90deg); box-shadow: none; }
.nuevo { position: absolute; top: -14px; right: -8px; z-index: 4; --d: 62px; font-size: 12px; rotate: 14deg; pointer-events: none; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 30px 0; font-weight: 700; }

/* ---------- Hojas inferiores (dialog) ---------- */
dialog.hoja {
  width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0; background: var(--papel); color: var(--tinta);
  overflow: hidden;
}
dialog.hoja[open] { display: flex; flex-direction: column; animation: hoja .38s cubic-bezier(.2, 1.15, .3, 1); }
dialog.hoja::backdrop { background: rgba(8, 61, 28, .72); }
@keyframes hoja { from { transform: translateY(100%); } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; background: var(--polvo, var(--hoja)); color: #fff; }
.hoja-cab h2 { font-size: 30px; }
.cerrar { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid currentColor; background: none; font: 700 20px/1 var(--cuerpo); color: inherit; }
.hoja-cuerpo { overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.hoja-pie { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 3px solid var(--hoja-noche); background: var(--cinta); display: grid; gap: 10px; }
.ficha-img { border-radius: 14px; border: 3px solid var(--hoja-noche); overflow: hidden; background: #fff; max-height: 46dvh; }
.ficha-img img { width: 100%; height: 100%; max-height: 46dvh; object-fit: contain; }
.ficha-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ficha-datos div { background: #fff; border: 2px solid var(--hoja-noche); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.ficha-datos b { display: block; font: 400 24px/1.1 var(--display); color: var(--aji); }
.ficha-nota { margin-top: 12px; font-weight: 700; }
.cant { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.cant-ctrl { display: flex; align-items: center; gap: 4px; }
.cant-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--hoja-noche); background: var(--papel); font: 400 24px/1 var(--display); padding: 0 0 2px; }
.cant-ctrl output { min-width: 44px; text-align: center; font: 400 26px/1 var(--display); }

.ped-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ped-lista li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: #fff; border: 2px solid var(--hoja-noche); border-radius: 14px; padding: 10px 12px; }
.ped-lista .n { font-weight: 700; line-height: 1.2; }
.ped-lista .p { font-size: 14px; grid-column: 1; }
.ped-lista .cant-ctrl { grid-row: 1 / 3; grid-column: 2; }
.ped-lista .cant-ctrl button { width: 44px; height: 44px; }
.ped-campos { display: grid; gap: 10px; margin-top: 16px; }
.ped-campos label { font-weight: 700; font-size: 15px; display: grid; gap: 4px; }
.ped-campos input { font: 500 17px/1.2 var(--cuerpo); min-height: 48px; padding: 8px 12px; border: 2px solid var(--hoja-noche); border-radius: 10px; background: #fff; color: var(--tinta); width: 100%; }
.ped-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.ped-total b { font: 400 30px/1 var(--display); color: var(--aji); }
.ped-aviso { font-size: 14px; }

/* sobre que vuela al pedido */
.vuela { position: fixed; z-index: 90; border-radius: 6px; overflow: hidden; pointer-events: none; box-shadow: 4px 5px 0 rgba(0,0,0,.3); }
.vuela img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Promos ---------- */
.reloj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; max-width: 460px; }
.reloj div { background: var(--hoja-noche); color: var(--cinta); border-radius: 14px; padding: 12px 4px 10px; text-align: center; font: 400 clamp(34px, 10vw, 54px)/1 var(--display); }
.reloj small { display: block; font: 700 12px/1.4 var(--cuerpo); color: var(--papel); text-transform: uppercase; letter-spacing: .06em; }
.promo { display: grid; gap: 20px; }
.promo figure { margin: 0; border: 3px solid var(--hoja-noche); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,.35); background: #fff; }
.promo:nth-of-type(odd) figure { rotate: -2deg; } .promo:nth-of-type(even) figure { rotate: 2deg; }
.promo h2 { font-size: clamp(38px, 11vw, 70px); }
.promo ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.promo li { background: var(--papel); color: var(--tinta); border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: 15px; }
.promo .ahorro { display: inline-block; margin-top: 12px; font: 400 19px/1 var(--marcador); background: var(--fluor-lima); color: #111; padding: 7px 11px 6px; rotate: -2deg; }
.promo .btn { margin-top: 18px; }
.promo .nota { margin-top: 12px; font-size: 14px; }
.dos { display: grid; gap: 26px; }
.dos figure { margin: 0; border: 3px solid var(--hoja-noche); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 rgba(0,0,0,.3); }
.dos h3 { font-size: 34px; margin: 16px 0 6px; }
.lista-precios { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.lista-precios li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 700; border-bottom: 2px dashed currentColor; padding-bottom: 6px; }
.lista-precios b { font: 400 22px/1 var(--display); white-space: nowrap; }

/* ---------- Tenderos ---------- */
.pasos { counter-reset: paso; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.pasos li { counter-increment: paso; position: relative; background: var(--papel); color: var(--tinta); border: 3px solid var(--hoja-noche); border-radius: 18px; box-shadow: 5px 5px 0 var(--hoja-noche); padding: 20px 18px 18px 84px; min-height: 96px; }
.pasos li:nth-child(even) { rotate: 1deg; } .pasos li:nth-child(odd) { rotate: -1deg; }
.pasos li::before { content: counter(paso); position: absolute; left: 14px; top: 14px; width: 56px; height: 56px; border-radius: 50%; background: var(--aji); color: #fff; display: grid; place-items: center; font: 400 34px/1 var(--display); padding-bottom: 3px; }
.pasos h3 { font-size: 26px; margin-bottom: 4px; }
.razones { display: grid; gap: 14px; margin-top: 26px; }
.razon { border: 3px solid currentColor; border-radius: 18px; padding: 16px 18px; }
.razon h3 { font-size: 28px; margin-bottom: 6px; color: var(--cinta); }
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 3px solid var(--hoja-noche); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 16px; font-weight: 700; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 9px; font: 400 32px/1 var(--display); color: var(--aji); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 16px 16px; }

/* ---------- Contacto ---------- */
.contactos { display: grid; gap: 14px; margin-top: 26px; }
.contacto { display: block; text-decoration: none; background: var(--papel); color: var(--tinta); border: 3px solid var(--hoja-noche); border-radius: 18px; box-shadow: 5px 5px 0 var(--hoja-noche); padding: 16px 18px; transition: transform .12s, box-shadow .12s; }
a.contacto:active { transform: translate(5px, 5px); box-shadow: none; }
.contacto small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--hoja); }
.contacto b { display: block; font: 400 clamp(24px, 7.4vw, 34px)/1.1 var(--display); overflow-wrap: anywhere; }
.mapa { margin-top: 22px; border: 3px solid var(--hoja-noche); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--hoja-noche); aspect-ratio: 4 / 3; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA final y pie ---------- */
.cta-fin { --bg: var(--cinta); text-align: center; }
.cta-fin .tit { font-size: clamp(50px, 15vw, 120px); }
.cta-fin .hero-cta { justify-content: center; animation: none; }
.pie { position: relative; background: var(--hoja-noche); --bg: var(--hoja-noche); color: var(--papel); padding: 44px 18px 34px; font-size: 15px; }
.pie .calco { width: 92px; height: 92px; animation: none; }
.pie-datos { margin-top: 18px; display: grid; gap: 4px; }
.pie a { text-underline-offset: 3px; }
.pie-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-weight: 700; }
.pie-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.credito { margin-top: 24px; font-size: 13px; opacity: .75; }
.credito a:hover { color: var(--cinta); }

/* ---------- Breakpoints hacia arriba ---------- */
@media (min-width: 600px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-res { grid-template-columns: 1fr 1fr; }
  .calc-res .grande { grid-column: 1 / -1; }
  .carril .item { width: 220px; }
  .contactos { grid-template-columns: 1fr 1fr; }
  .dos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 18px; }
  .barra { display: none; }
  .cab { padding: 16px 28px; }
  .cab-nav { display: flex; align-items: center; gap: 4px; background: var(--hoja-noche); color: var(--papel); border-radius: 999px; padding: 6px; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
  .cab-nav a, .cab-nav button { min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--cuerpo); text-decoration: none; color: inherit; background: none; border: 0; position: relative; }
  .cab-nav [aria-current="page"] { background: var(--cinta); color: var(--hoja-noche); }
  .cab-nav .cuenta { position: static; }
  .sec { padding: 96px 40px 104px; }
  .hero { padding: 130px 40px 0; }
  .tendedero .sello { left: auto; right: 36%; top: -150px; --d: 150px; font-size: 21px; rotate: 12deg; }
  .hero { min-height: 100svh; }
  .tendedero { margin-inline: -40px; }
  .calc .ancho, .franja .ancho, .promo { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; display: grid; }
  .calc-caja { margin-top: 0; }
  .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 34px; }
  .pag-cab { padding: 150px 40px 50px; }
  .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .razones { grid-template-columns: repeat(2, 1fr); }
  .promo:nth-of-type(even) figure { order: 2; }
  dialog.hoja { margin: auto; border-radius: 26px; max-height: 88dvh; }
  .chips { justify-content: center; }
}
@media (min-width: 1200px) { .rejilla { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- Caricatura del producto en el hero (solo donde sobra espacio) ---------- */
.personaje { position: absolute; z-index: 3; right: -12px; bottom: 4px; height: min(41svh, 310px); aspect-ratio: 2 / 3; pointer-events: none; animation: flota 3.4s ease-in-out infinite; }
.personaje:has(img[hidden]) { display: none; }
.personaje img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .22)); }
.personaje.entra img { animation: brinca .75s cubic-bezier(.2, 1.5, .4, 1) both; }
.hero.oscuro .sello::before { background: var(--hoja-noche); } /* la estrella roja se perdia sobre el fondo de aji */
@media (min-width: 900px) {
  .personaje { z-index: 1; right: 7%; top: 84px; bottom: auto; height: min(66svh, 620px); }
  .pausa { left: auto; right: 12px; }
}
@keyframes flota { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -14px; rotate: 3deg; } }
@keyframes brinca { from { opacity: 0; transform: translateY(60%) scale(.4) rotate(-25deg); } }
.quieto .personaje { animation-play-state: paused; }

/* ---------- Contacto: QR, canales y formulario ---------- */
.qr-fila { display: grid; gap: 26px; }
.qr-caja { background: #fff; border: 3px solid var(--hoja-noche); border-radius: 22px; box-shadow: 6px 6px 0 var(--hoja-noche); padding: 20px 18px 18px; text-align: center; rotate: -1.5deg; max-width: 360px; margin-inline: auto; }
.qr-caja .ceja { margin-bottom: 10px; }
.qr-caja .qr { width: 100%; max-width: 260px; margin: 0 auto 10px; image-rendering: pixelated; }
.qr-caja p { font-weight: 700; font-size: 15px; }
.qr-txt { position: relative; }
.qr-pj { width: 150px; margin: 18px 0 -64px auto; filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .22)); }
.canales { display: grid; gap: 16px; margin-top: 26px; }
.canal { background: #fff; border: 3px solid var(--hoja-noche); border-radius: 18px; box-shadow: 5px 5px 0 var(--hoja-noche); padding: 18px; display: grid; gap: 10px; align-content: start; }
.canal h3 { font-size: 30px; color: var(--aji); }
.canal .btn { justify-self: start; margin-top: 4px; }
.form-fila { display: grid; gap: 24px; }
.form { background: var(--papel); color: var(--tinta); border: 3px solid var(--hoja-noche); border-radius: 22px; box-shadow: 6px 6px 0 var(--hoja-noche); padding: 20px 18px; display: grid; gap: 12px; }
.form label { font-weight: 700; font-size: 15px; display: grid; gap: 4px; }
.form input, .form select, .form textarea { font: 500 17px/1.3 var(--cuerpo); min-height: 50px; padding: 10px 12px; border: 2px solid var(--hoja-noche); border-radius: 10px; background: #fff; color: var(--tinta); width: 100%; }
.form textarea { resize: vertical; }
.form :focus-visible { outline-color: var(--aji); }
.form .btn { margin-top: 6px; }
@media (min-width: 600px) { .canales { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .qr-fila, .form-fila { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .qr-pj { width: 210px; position: absolute; right: 0; bottom: -150px; margin: 0; }
}

/* ---------- Cabecera que vuelve al subir (escritorio; en móvil ya está la barra inferior) ---------- */
@media (min-width: 900px) {
  .cab { position: fixed; transition: transform .32s cubic-bezier(.2, 1, .3, 1); }
  .cab-oculta .cab { transform: translateY(-130%); }
  .chips { transition: top .32s cubic-bezier(.2, 1, .3, 1); }
  .cab-flota .chips { top: 96px; } /* los filtros del catálogo bajan para no quedar debajo del menú */
}
