/* Tierra Latina — mundo visual "mercado latino": papel crema, verde hoja, rojo ají y amarillo maíz.
   Rótulos en Caprasimo, texto en Figtree. Precios como etiquetas de mercado y resúmenes como tickets. */

@font-face { font-family: "Caprasimo"; src: url("/fuentes/caprasimo.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fuentes/figtree.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --papel: #f5ebd8;
  --papel-hondo: #ecdfc4;
  --cal: #fffaf0;
  --tinta: #1b2a1f;
  --tinta-suave: #515845;
  --hoja: #1e5b3a;
  --hoja-honda: #14402a;
  --aji: #c2311d;
  --aji-hondo: #9d2413;
  --maiz: #f2b01e;
  --maiz-claro: #fbdf8e;
  --linea: rgb(27 42 31 / 0.14);
  --sombra: 0 1px 2px rgb(40 30 10 / 0.08), 0 8px 24px -10px rgb(40 30 10 / 0.28);
  --sombra-alta: 0 2px 4px rgb(40 30 10 / 0.1), 0 22px 44px -18px rgb(40 30 10 / 0.42);
  --rotulo: "Caprasimo", "Georgia", serif;
  --texto: "Figtree", system-ui, sans-serif;
  --radio: 14px;
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
  --c1: var(--hoja); --c2: var(--maiz); --c3: var(--aji);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--hoja) var(--papel-hondo); }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--papel); color: var(--tinta);
  font: 400 1rem/1.55 var(--texto); font-feature-settings: "ss01";
  caret-color: var(--aji); -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
/* Grano de papel muy leve para que el fondo no sea un color plano. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; outline: none; }
::selection { background: var(--maiz); color: var(--tinta); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-family: var(--rotulo); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--aji); outline-offset: 3px; border-radius: 6px; }
.ancho { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--tinta); color: var(--cal); padding: 0.6rem 1rem; border-radius: 8px; }
.saltar:focus { top: 0.6rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: rgb(245 235 216 / 0.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "marca . cesta" "busca busca busca"; align-items: center; gap: 0.55rem 0.9rem; padding-block: 0.6rem 0.7rem; }
.marca { grid-area: marca; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.marca__sello { width: 2.2rem; height: 2.2rem; flex: none; }
.marca__nombre { font-family: var(--rotulo); font-size: 1.42rem; line-height: 1; color: var(--hoja-honda); white-space: nowrap; }
.buscador { grid-area: busca; position: relative; }
.buscador svg { position: absolute; left: 0.95rem; top: 50%; width: 1.2rem; height: 1.2rem; translate: 0 -50%; fill: none; stroke: var(--tinta-suave); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.buscador input { width: 100%; height: 2.9rem; padding: 0 1rem 0 2.8rem; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--cal); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.buscador input::placeholder { color: var(--tinta-suave); }
.buscador input:focus { outline: none; border-color: var(--hoja); box-shadow: 0 0 0 4px rgb(30 91 58 / 0.16); }
.cabecera__nav { display: none; grid-area: nav; gap: 1.5rem; font-weight: 600; }
.cabecera__nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.cabecera__nav a:hover, .cabecera__nav a[aria-current="page"] { border-color: var(--aji); }
.cesta { grid-area: cesta; position: relative; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; background: var(--hoja); color: var(--cal); font-weight: 700; text-decoration: none; transition: background 0.2s; }
.cesta:hover { background: var(--hoja-honda); }
.cesta svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.cesta__cuenta { min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; display: grid; place-items: center; border-radius: 999px; background: var(--maiz); color: var(--tinta); font-size: 0.86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cesta__cuenta.salta { animation: salto 0.45s var(--salida); }
@keyframes salto { 0% { scale: 0.6; } 55% { scale: 1.28; } 100% { scale: 1; } }
@media (min-width: 860px) {
  .cabecera__fila { grid-template-columns: auto minmax(16rem, 30rem) 1fr auto; grid-template-areas: "marca busca nav cesta"; gap: 1.6rem; padding-block: 0.8rem; }
  .cabecera__nav { display: flex; justify-content: flex-end; }
  .marca__nombre { font-size: 1.6rem; }
}
@media (max-width: 380px) { .cesta__texto { display: none; } }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3rem; padding: 0.7rem 1.35rem; border: 0; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; transition: background 0.2s, transform 0.16s var(--salida), box-shadow 0.2s; }
.boton:active { transform: scale(0.97); }
.boton svg { width: 1.25rem; height: 1.25rem; flex: none; }
.boton--aji { background: var(--aji); color: var(--cal); box-shadow: 0 8px 18px -10px rgb(60 20 10 / 0.7); }
.boton--aji:hover { background: var(--aji-hondo); }
.boton--hoja { background: var(--hoja); color: var(--cal); }
.boton--hoja:hover { background: var(--hoja-honda); }
.boton--linea { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.boton--linea:hover { background: var(--tinta); color: var(--cal); }
.boton--wa { background: #1fa855; color: #fff; }
.boton--wa:hover { background: #17894a; }
.boton--ancho { width: 100%; }
.boton[disabled] { opacity: 0.55; cursor: not-allowed; }
.enlace { font-weight: 700; color: var(--hoja-honda); }

/* ---------- etiqueta de precio y cinta de país ---------- */
.precio { display: inline-block; padding: 0.24rem 0.6rem 0.24rem 1.15rem; background: var(--maiz); color: var(--tinta); font-weight: 800; font-size: 1.02rem; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap;
  clip-path: polygon(0.7rem 0, 100% 0, 100% 100%, 0.7rem 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 0.72rem 50%, #0000 0.14rem, #000 0.17rem); mask: radial-gradient(circle at 0.72rem 50%, #0000 0.14rem, #000 0.17rem); }
.precio--grande { font-size: 1.7rem; padding: 0.3rem 0.9rem 0.3rem 1.5rem; }
.cinta { display: inline-block; width: 1.5rem; height: 0.62rem; border-radius: 2px; flex: none; background: linear-gradient(90deg, var(--c1) 0 33.4%, var(--c2) 0 66.7%, var(--c3) 0); box-shadow: inset 0 0 0 1px rgb(27 42 31 / 0.18); }

[data-pais="colombia"] { --c1: #f6c70f; --c2: #1d3f94; --c3: #c8202f; }
[data-pais="ecuador"] { --c1: #f8d21c; --c2: #0d4ea0; --c3: #d7252c; }
[data-pais="venezuela"] { --c1: #f5c518; --c2: #1b3a8c; --c3: #c8202f; }
[data-pais="peru"] { --c1: #c8202f; --c2: #fbf6ea; --c3: #c8202f; }
[data-pais="argentina"] { --c1: #6cace4; --c2: #fbf6ea; --c3: #6cace4; }
[data-pais="mexico"] { --c1: #0b6b45; --c2: #fbf6ea; --c3: #c8202f; }
[data-pais="bolivia"] { --c1: #d52b1e; --c2: #f4d00c; --c3: #007a3d; }
[data-pais="cuba"] { --c1: #0f3a8d; --c2: #fbf6ea; --c3: #c8202f; }
[data-pais="panama"] { --c1: #c8202f; --c2: #fbf6ea; --c3: #0f3a8d; }
[data-pais="chile"] { --c1: #0f3a8d; --c2: #fbf6ea; --c3: #d52b1e; }
[data-pais="republica-dominicana"] { --c1: #0f3a8d; --c2: #fbf6ea; --c3: #c8202f; }
[data-pais="honduras"] { --c1: #1a78c2; --c2: #fbf6ea; --c3: #1a78c2; }
[data-pais="brasil"] { --c1: #0f8a43; --c2: #f7d117; --c3: #1d3f94; }
[data-pais="costa-rica"] { --c1: #0f3a8d; --c2: #c8202f; --c3: #0f3a8d; }
[data-pais="el-salvador"] { --c1: #1549a8; --c2: #fbf6ea; --c3: #1549a8; }
[data-pais="espana"] { --c1: #c2311d; --c2: #f4c20d; --c3: #c2311d; }
[data-pais="italia"] { --c1: #0b8a45; --c2: #fbf6ea; --c3: #c8202f; }
[data-pais="nicaragua"] { --c1: #1565c0; --c2: #fbf6ea; --c3: #1565c0; }
[data-pais="paraguay"] { --c1: #c8202f; --c2: #fbf6ea; --c3: #1d3f94; }
[data-pais="puerto-rico"] { --c1: #c8202f; --c2: #fbf6ea; --c3: #1b4fb0; }
[data-pais="union-europea"] { --c1: #1d3f94; --c2: #f4c20d; --c3: #1d3f94; }
[data-pais="uruguay"] { --c1: #fbf6ea; --c2: #1d5fb4; --c3: #f4c20d; }

/* ---------- portada ---------- */
.portada { padding-block: 1.6rem 0; }
.portada__rejilla { display: grid; gap: 2.2rem; align-items: center; }
.portada h1 { font-size: clamp(2.6rem, 11.5vw, 5.4rem); color: var(--hoja-honda); }
.portada h1 em { font-style: normal; color: var(--aji); }
.portada__entrada { margin-top: 1.1rem; font-size: 1.12rem; max-width: 34ch; color: var(--tinta-suave); }
.portada__acciones { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.portada__datos { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-weight: 600; font-size: 0.95rem; color: var(--tinta-suave); }
.portada__datos span { display: inline-flex; align-items: center; gap: 0.45rem; }
.portada__datos svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--hoja); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.postales { position: relative; aspect-ratio: 5 / 4; margin-inline: 0.4rem; }
.postal { position: absolute; margin: 0; padding: 0.45rem; background: var(--cal); border-radius: 6px; box-shadow: var(--sombra-alta); }
.postal img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.postal--paisaje { inset: 0 6% 16% 0; rotate: -2.2deg; animation: posar-a 0.9s var(--salida) both; }
.postal--mesa { width: 62%; aspect-ratio: 5 / 2; right: 0; bottom: 0; rotate: 2.6deg; animation: posar-b 0.9s 0.12s var(--salida) both; }
.postal--tejido { width: 30%; aspect-ratio: 7 / 5; left: 3%; bottom: 4%; rotate: -5deg; animation: posar-a 0.9s 0.2s var(--salida) both; }
@keyframes posar-a { from { rotate: -7deg; translate: -14px 18px; } }
@keyframes posar-b { from { rotate: 8deg; translate: 16px 22px; } }
@media (min-width: 900px) {
  .portada { padding-block: 3.2rem 0; }
  .portada__rejilla { grid-template-columns: 1.02fr 1fr; gap: 3.5rem; }
}

.seccion { padding-block: 3.2rem 0; }
.seccion:last-child { padding-bottom: 4rem; }
.seccion__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.seccion__cabeza h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); color: var(--hoja-honda); }

/* países: fila de rótulos que se desliza */
.paises { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.3rem 1rem 1rem; margin-inline: -1rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.paises::-webkit-scrollbar { display: none; }
.pais { flex: none; scroll-snap-align: start; display: grid; gap: 0.5rem; min-width: 8.6rem; padding: 0.85rem 1rem 0.8rem; background: var(--cal); border-radius: var(--radio); text-decoration: none; box-shadow: var(--sombra); transition: transform 0.25s var(--salida), box-shadow 0.25s; }
.pais:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--sombra-alta); }
.pais .cinta { width: 100%; height: 0.5rem; }
.pais__nombre { font-family: var(--rotulo); font-size: 1.16rem; line-height: 1.1; }
.pais__n { font-size: 0.85rem; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .paises { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------- rejilla de productos ---------- */
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.9rem; }
@media (min-width: 620px) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.2rem; } }
@media (min-width: 960px) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1.5rem; } }
.producto { position: relative; display: flex; flex-direction: column; min-width: 0; }
.producto__foto { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radio); background: var(--cal); overflow: hidden; box-shadow: var(--sombra); text-decoration: none; }
.producto__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--salida); }
.producto:hover .producto__foto img { transform: scale(1.045); }
.sinfoto { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 0.8rem; background: var(--hoja); color: var(--cal); font-family: var(--rotulo); font-size: clamp(1.15rem, 5.2vw, 1.6rem); line-height: 1.02; overflow-wrap: anywhere; hyphens: auto; }
.sinfoto::before { content: ""; position: absolute; inset: 0 0 auto; height: 0.55rem; background: linear-gradient(90deg, var(--c1) 0 33.4%, var(--c2) 0 66.7%, var(--c3) 0); }
.producto:nth-child(3n) .sinfoto { background: var(--aji-hondo); }
.producto:nth-child(4n + 1) .sinfoto { background: var(--hoja-honda); }
.producto:nth-child(5n + 2) .sinfoto { background: #8a5a12; }
.producto__marco { position: relative; }
.producto__precio { position: absolute; left: -0.25rem; bottom: 0.55rem; rotate: -3deg; filter: drop-shadow(0 2px 3px rgb(40 30 10 / 0.3)); }
.producto__precio .precio { position: static; rotate: none; }
.producto__pais { margin-top: 0.7rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--tinta-suave); text-decoration: none; }
.producto__nombre { margin-top: 0.2rem; font-weight: 700; font-size: 0.98rem; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; text-decoration: none; }
.producto__nombre:hover { text-decoration: underline; }
.producto__pie { margin-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.6rem; }
.producto__stock { font-size: 0.8rem; font-weight: 700; color: var(--aji-hondo); }
.agotado .producto__foto { filter: grayscale(0.75); opacity: 0.72; }

.anadir { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.6rem; padding: 0 0.95rem 0 0.7rem; border: 0; border-radius: 999px; background: var(--hoja); color: var(--cal); font-weight: 700; font-size: 0.92rem; transition: background 0.2s, transform 0.16s var(--salida); }
.anadir:hover { background: var(--hoja-honda); }
.anadir:active { transform: scale(0.94); }
.anadir svg, .mas-menos svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mas-menos { display: inline-flex; align-items: center; height: 2.6rem; border-radius: 999px; background: var(--cal); box-shadow: inset 0 0 0 1.5px var(--hoja); animation: abrir 0.3s var(--salida); }
@keyframes abrir { from { clip-path: inset(0 0 0 60% round 999px); } to { clip-path: inset(0 round 999px); } }
.mas-menos button { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0; background: none; border-radius: 999px; color: var(--hoja-honda); }
.mas-menos button:hover { background: rgb(30 91 58 / 0.12); }
.mas-menos output { min-width: 1.6rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- catálogo ---------- */
.catalogo { padding-block: 1.6rem 4rem; }
.catalogo h1 { font-size: clamp(2rem, 7.5vw, 3.3rem); color: var(--hoja-honda); }
.catalogo__sub { margin-top: 0.5rem; color: var(--tinta-suave); }
.filtros { position: sticky; top: var(--alto-cabecera, 6.6rem); z-index: 20; margin: 1.2rem -1rem 1.6rem; padding: 0.6rem 1rem; background: rgb(245 235 216 / 0.96); backdrop-filter: blur(8px); border-block: 1px solid var(--linea); display: flex; gap: 0.6rem; align-items: center; }
.fichas { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; flex: 1; padding-block: 0.15rem; }
.fichas::-webkit-scrollbar { display: none; }
.ficha { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.9rem; border-radius: 999px; background: var(--cal); box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 600; font-size: 0.93rem; text-decoration: none; white-space: nowrap; transition: background 0.2s, box-shadow 0.2s; }
.ficha:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.ficha[aria-current="true"] { background: var(--tinta); color: var(--cal); box-shadow: none; }
.orden { flex: none; height: 2.5rem; padding: 0 2rem 0 0.9rem; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--cal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%231b2a1f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 0.7rem; appearance: none; font-weight: 600; font-size: 0.93rem; max-width: 9.5rem; }
.cargar-mas { margin-top: 2.6rem; display: grid; justify-items: center; gap: 0.6rem; color: var(--tinta-suave); font-size: 0.92rem; }
.vacio { padding: 3rem 0; max-width: 34rem; }
.vacio h2 { font-size: 1.8rem; color: var(--hoja-honda); }
.vacio p { margin-top: 0.7rem; color: var(--tinta-suave); }
.vacio .boton { margin-top: 1.3rem; }
.esqueleto { aspect-ratio: 1; border-radius: var(--radio); background: linear-gradient(100deg, var(--papel-hondo) 40%, var(--cal) 50%, var(--papel-hondo) 60%) 0 0 / 300% 100%; animation: brillo 1.3s linear infinite; }
@keyframes brillo { to { background-position: -150% 0; } }

/* ---------- ficha de producto ---------- */
.ficha-producto { padding-block: 1.4rem 4rem; }
.migas { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--tinta-suave); margin-bottom: 1.1rem; }
.migas a { color: inherit; }
.ficha-producto__rejilla { display: grid; gap: 1.6rem; }
.ficha-producto__foto { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--cal); box-shadow: var(--sombra-alta); position: relative; }
.ficha-producto__foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-producto__foto .sinfoto { font-size: clamp(2rem, 9vw, 3.4rem); padding: 1.5rem; }
.ficha-producto h1 { font-size: clamp(1.8rem, 6.5vw, 2.9rem); color: var(--hoja-honda); }
.ficha-producto__compra { margin-top: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ficha-producto__nota { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--linea); color: var(--tinta-suave); display: grid; gap: 0.5rem; font-size: 0.96rem; }
@media (min-width: 800px) { .ficha-producto__rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }

/* ---------- ticket (carrito, pago y pedido) ---------- */
.ticket-sombra { filter: drop-shadow(0 12px 18px rgb(40 30 10 / 0.22)); }
.ticket { background: var(--cal); padding: 1.4rem 1.25rem 2rem; border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.ticket h2 { font-size: 1.45rem; color: var(--hoja-honda); }
.ticket__lineas { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.ticket__lineas li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: baseline; }
.ticket__lineas .cant { font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket__sumas { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1.5px dashed rgb(27 42 31 / 0.3); display: grid; gap: 0.35rem; }
.ticket__sumas div { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.ticket__sumas dt, .ticket__sumas dd { margin: 0; }
.ticket__total { margin-top: 0.35rem; font-weight: 800; font-size: 1.3rem; }
.ticket__pie { margin-top: 1.1rem; font-size: 0.88rem; color: var(--tinta-suave); }

.dos-columnas { padding-block: 1.6rem 4rem; display: grid; gap: 2rem; align-items: start; }
.dos-columnas h1 { font-size: clamp(2rem, 7.5vw, 3.1rem); color: var(--hoja-honda); margin-bottom: 1.3rem; }
@media (min-width: 900px) { .dos-columnas { grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 1fr); gap: 3.5rem; } .dos-columnas > aside { position: sticky; top: 6.5rem; } }

.linea-carrito { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.3rem 0.9rem; padding-block: 1rem; border-bottom: 1px solid var(--linea); align-items: center; }
.linea-carrito__foto { grid-row: span 2; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cal); box-shadow: var(--sombra); position: relative; }
.linea-carrito__foto img { width: 100%; height: 100%; object-fit: cover; }
.linea-carrito__foto .sinfoto { font-size: 0.74rem; padding: 0.35rem; }
.linea-carrito__nombre { font-weight: 700; line-height: 1.25; text-decoration: none; }
.linea-carrito__fila { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.linea-carrito__importe { font-weight: 800; font-variant-numeric: tabular-nums; }
.quitar { border: 0; background: none; padding: 0.4rem 0.2rem; font-size: 0.86rem; font-weight: 600; color: var(--aji-hondo); text-decoration: underline; text-underline-offset: 0.2em; }
.aviso-linea { grid-column: 2; font-size: 0.86rem; font-weight: 700; color: var(--aji-hondo); }

/* ---------- formularios ---------- */
.campo { display: grid; gap: 0.35rem; margin-bottom: 1.05rem; }
.campo label, .campo legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.campo small { color: var(--tinta-suave); font-size: 0.86rem; }
.campo input, .campo textarea, .campo select { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1.5px solid rgb(27 42 31 / 0.3); border-radius: 12px; background: var(--cal); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.campo textarea { min-height: 5.5rem; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--hoja); box-shadow: 0 0 0 4px rgb(30 91 58 / 0.16); }
.campo input::placeholder, .campo textarea::placeholder { color: #6c705d; }
fieldset.campo { border: 0; padding: 0; margin-inline: 0; }
.opciones { display: grid; gap: 0.6rem; }
@media (min-width: 520px) { .opciones { grid-template-columns: 1fr 1fr; } }
.opcion { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--cal); box-shadow: inset 0 0 0 1.5px rgb(27 42 31 / 0.3); cursor: pointer; }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--hoja); background: #f3f5e4; }
.opcion input { width: 1.2rem; min-height: 0; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--hoja); grid-row: span 2; }
.opcion strong { font-size: 1rem; }
.opcion span { font-size: 0.86rem; color: var(--tinta-suave); grid-column: 2; }
.error-form { margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 12px; background: #fbe3dc; color: #7c1b0d; font-weight: 600; }
.bizum-nota { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; margin: 1.4rem 0; padding: 0.9rem 1rem; border-radius: 12px; background: var(--maiz-claro); }
.bizum-nota svg { width: 2rem; height: 2rem; }
.letra-chica { font-size: 0.85rem; color: var(--tinta-suave); margin-top: 0.9rem; }

/* ---------- página del pedido ---------- */
.pedido { padding-block: 1.6rem 4rem; display: grid; gap: 2rem; align-items: start; }
.pedido h1 { font-size: clamp(2rem, 8vw, 3.2rem); color: var(--hoja-honda); }
.pedido__entrada { margin-top: 0.7rem; font-size: 1.08rem; color: var(--tinta-suave); max-width: 40ch; }
.pasos-pago { list-style: none; counter-reset: paso; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.pasos-pago > li { counter-increment: paso; display: grid; grid-template-columns: 2.3rem 1fr; gap: 0.2rem 0.9rem; }
.pasos-pago > li::before { content: counter(paso); grid-row: span 3; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--tinta); color: var(--cal); font-family: var(--rotulo); font-size: 1.15rem; }
.pasos-pago > li.hecho::before { content: ""; background: var(--hoja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fffaf0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.3rem no-repeat; }
.pasos-pago h3 { font-family: var(--texto); font-weight: 800; font-size: 1.08rem; line-height: 1.3; letter-spacing: 0; padding-top: 0.35rem; }
.pasos-pago p { color: var(--tinta-suave); }
.pasos-pago .boton { margin-top: 0.7rem; justify-self: start; }
.dato-bizum { margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.dato-bizum div { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 12px; background: var(--cal); box-shadow: inset 0 0 0 1.5px var(--linea); }
.dato-bizum dt { font-size: 0.8rem; font-weight: 600; color: var(--tinta-suave); }
.dato-bizum dd { margin: 0; font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.copiar { flex: none; border: 0; height: 2.4rem; padding: 0 0.9rem; border-radius: 999px; background: var(--papel-hondo); font-weight: 700; font-size: 0.88rem; }
.copiar:hover { background: var(--maiz-claro); }
.estado-pedido { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--maiz-claro); font-weight: 800; font-size: 0.9rem; }
.estado-pedido[data-estado="pagado"], .estado-pedido[data-estado="preparando"], .estado-pedido[data-estado="en_camino"], .estado-pedido[data-estado="entregado"] { background: #d3e8cf; color: var(--hoja-honda); }
.estado-pedido[data-estado="cancelado"] { background: #fbe3dc; color: #7c1b0d; }
.estado-pedido i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.estado-pedido[data-estado="pendiente"] i { animation: latir 1.6s ease-in-out infinite; }
@keyframes latir { 50% { opacity: 0.25; } }
@media (min-width: 900px) { .pedido { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 1fr); gap: 3.5rem; } .pedido > aside { position: sticky; top: 6.5rem; } }

/* ---------- cómo funciona ---------- */
.como { background: var(--hoja-honda); color: var(--cal); margin-top: 3.4rem; padding-block: 3rem; }
.como h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); color: var(--maiz); }
.como ol { list-style: none; counter-reset: c; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.como li { counter-increment: c; display: grid; grid-template-columns: 3rem 1fr; gap: 0.1rem 1rem; }
.como li::before { content: counter(c); grid-row: span 2; font-family: var(--rotulo); font-size: 2.6rem; line-height: 0.9; color: var(--maiz); }
.como h3 { font-family: var(--texto); font-weight: 800; font-size: 1.12rem; letter-spacing: 0; line-height: 1.3; }
.como p { color: #d8e2d2; font-size: 0.98rem; }
@media (min-width: 800px) { .como ol { grid-template-columns: repeat(4, 1fr); gap: 2rem; } .como li { grid-template-columns: 1fr; } .como li::before { grid-row: auto; margin-bottom: 0.6rem; } }

.pide { margin-top: 3.4rem; display: grid; gap: 1.4rem; align-items: center; padding: 1.8rem 1.4rem; border-radius: 20px; background: var(--maiz); }
.pide h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
.pide p { margin-top: 0.6rem; max-width: 46ch; }
@media (min-width: 800px) { .pide { grid-template-columns: 1fr auto; padding: 2.4rem 2.6rem; } }

.aviso-tienda { background: var(--tinta); color: var(--cal); text-align: center; font-weight: 600; font-size: 0.92rem; padding: 0.5rem 1rem; }

/* ---------- pie ---------- */
.pie { margin-top: auto; background: var(--tinta); color: #e9e2d0; padding-block: 2.6rem calc(2.4rem + env(safe-area-inset-bottom)); }
.pie__rejilla { display: grid; gap: 2rem; }
.pie h2 { font-size: 1.7rem; color: var(--maiz); }
.pie h3 { font-family: var(--texto); font-weight: 800; font-size: 0.95rem; letter-spacing: 0; color: var(--cal); margin-bottom: 0.6rem; }
.pie p, .pie li { color: #cfd3c2; font-size: 0.95rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.pie a { color: #f3ecd9; }
.pie__base { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 0.85rem; color: #aeb5a2; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (min-width: 800px) { .pie__rejilla { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- barra inferior del carrito (móvil) y avisos ---------- */
.barra-carrito { position: fixed; z-index: 45; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.2rem; border-radius: 999px; background: var(--aji); color: var(--cal); font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px -12px rgb(120 25 10 / 0.75); animation: subir 0.4s var(--salida); }
.barra-carrito[hidden] { display: none; }
@keyframes subir { from { translate: 0 130%; } }
@media (min-width: 860px) { .barra-carrito { display: none; } }
body.con-barra .pie { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.avisos { position: fixed; z-index: 70; left: 50%; top: 0.9rem; translate: -50% 0; display: grid; gap: 0.5rem; width: min(26rem, 100% - 1.5rem); pointer-events: none; }
.aviso { padding: 0.8rem 1.1rem; border-radius: 12px; background: var(--tinta); color: var(--cal); font-weight: 600; box-shadow: var(--sombra-alta); animation: caer 0.35s var(--salida); }
.aviso--error { background: #7c1b0d; }
@keyframes caer { from { translate: 0 -140%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
