@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bosque: #06472c;
  --hoja: #0a7a45;
  --hoja-viva: #12a157;
  --menta: #e8f8ed;
  --menta-2: #cdeed8;
  --neon: #7cf03d;
  --neon-suave: #c9fba6;
  --blanco: #ffffff;
  --tinta: #0d2318;
  --gris: #4f6157;
  --linea: #d5e4da;
  --error: #b3122b;
  --radio: 18px;
  --sombra: 0 10px 30px -12px rgba(6, 71, 44, .35);
  --display: "Bricolage", "Arial Black", system-ui, sans-serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 1rem/1.5 var(--texto); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--hoja); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
svg { width: 1.25em; height: 1.25em; flex: none; }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; box-shadow: 0 0 0 5px var(--bosque); border-radius: 10px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.1 var(--texto); text-decoration: none; text-align: center; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-neon { background: var(--neon); color: var(--bosque); }
.btn-neon:hover { background: var(--neon-suave); }
.btn-borde { border-color: rgba(255,255,255,.55); color: var(--blanco); }
.btn-borde:hover { background: rgba(255,255,255,.1); }
.btn-verde { background: var(--hoja); color: var(--blanco); }
.btn-verde:hover { background: var(--bosque); }
.btn-wa { width: 100%; background: var(--hoja); color: var(--blanco); font-size: 1.05rem; min-height: 54px; }
.btn-wa:hover { background: var(--bosque); }
.btn-chico { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.icono-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--menta); color: var(--bosque); }
.icono-btn:hover { background: var(--menta-2); }

/* ---------- aviso de propuesta ---------- */
.propuesta { background: #fff7cc; color: #4a3b00; text-align: center; font-size: .85rem; padding: .45rem 1rem; border-bottom: 1px solid #ecd97a; }

/* ---------- cabecera ---------- */
/* Fondo propio del contenido: algunos navegadores con modo nocturno oscurecen solo lo que no tiene fondo. */
main { background: var(--blanco); color: var(--tinta); }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; background: var(--bosque); color: var(--blanco); }
.marca { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-height: 44px; }
.marca-logo { width: 46px; height: 46px; object-fit: contain; }
.marca-nombre { font: 800 1rem/1 var(--display); }
.btn-wa-cab { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--blanco); text-decoration: none; font-weight: 700; font-size: .95rem; }
.btn-wa-cab svg { color: var(--neon); }
.btn-wa-cab:hover { background: rgba(255,255,255,.18); }

/* ---------- portada ---------- */
.portada { position: relative; background: var(--bosque); color: var(--blanco); overflow: hidden; }
.toldo { height: 38px; background: repeating-linear-gradient(90deg, var(--blanco) 0 34px, var(--hoja-viva) 34px 68px);
  -webkit-mask: radial-gradient(17px at 17px 21px, #000 98%, transparent) 0 0 / 34px 100% repeat-x, linear-gradient(#000 0 0) top / 100% 21px no-repeat;
          mask: radial-gradient(17px at 17px 21px, #000 98%, transparent) 0 0 / 34px 100% repeat-x, linear-gradient(#000 0 0) top / 100% 21px no-repeat; }
.portada-in { display: grid; gap: 2rem; max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.portada-texto { display: grid; justify-items: center; text-align: center; gap: .9rem; }
.portada-logo { width: min(62vw, 230px); height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.portada h1 { font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 800; max-width: 14ch; text-wrap: balance; }
.portada-sub { margin: 0; max-width: 38ch; font-size: 1.08rem; color: #d9f3e2; text-wrap: pretty; }
.portada-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .4rem; }
.portada-acciones .btn { flex: 1 1 220px; max-width: 320px; }

.vitrina { display: grid; gap: 0; align-self: center; width: 100%; max-width: 480px; justify-self: center; padding: 0 .25rem; }
.repisa { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 100%; align-items: end; gap: 6%; padding: 0 6% 14px; height: clamp(104px, 30vw, 150px); }
.repisa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 4px; background: linear-gradient(var(--neon) 0 3px, #0b5f39 3px); box-shadow: 0 10px 16px -6px rgba(0,0,0,.55); }
.repisa img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: no-preference) {
  .repisa img { animation: caer .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
  @keyframes caer { from { transform: translateY(-40px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 1rem; display: grid; gap: .6rem; background: var(--hoja); }
.pasos li { counter-increment: paso; display: flex; align-items: center; gap: .75rem; line-height: 1.3; max-width: 1180px; margin: 0 auto; width: 100%; font-size: .98rem; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--neon); color: var(--bosque); font: 800 1rem/1 var(--display); }
.pasos b { color: var(--neon-suave); }

/* ---------- tienda: catálogo + pedido ---------- */
.tienda { max-width: 1280px; margin: 0 auto; padding: 0 1rem 2rem; }
.barra-catalogo { position: sticky; top: 0; z-index: 20; margin: 0 -1rem; padding: .75rem 1rem .5rem; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.buscador { position: relative; display: flex; align-items: center; }
.buscador > svg { position: absolute; left: 14px; color: var(--hoja); pointer-events: none; }
.buscador input { width: 100%; min-height: 50px; padding: .6rem 3rem .6rem 2.8rem; border-radius: 999px; border: 2px solid var(--menta-2); background: var(--menta); font-size: 1rem; }
.buscador input::placeholder { color: #6f8277; }
.buscador input:focus { outline: none; border-color: var(--hoja); background: var(--blanco); }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador-x { position: absolute; right: 3px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--gris); display: grid; place-items: center; }
.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .6rem 0 .15rem; margin: 0 -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--linea); background: var(--blanco); color: var(--tinta); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.chip:hover { border-color: var(--hoja); }
.chip.activo { background: var(--bosque); border-color: var(--bosque); color: var(--blanco); }

.nota-catalogo { margin: .9rem 0 0; font-size: .86rem; color: var(--gris); }
.resultado { margin: .6rem 0 0; font-weight: 700; }
.resultado:empty { display: none; }

.categoria { padding-top: 1.6rem; }
.cat-titulo { display: flex; align-items: baseline; gap: .55rem; font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; margin-bottom: .9rem; color: var(--bosque); }
.cat-num { font: 700 .9rem/1 var(--texto); color: var(--gris); }

/* ---------- mecánicas para recorrer cada categoría ---------- */
.mec-ayuda { margin: -.35rem 0 .8rem; color: var(--gris); font-size: .92rem; max-width: 60ch; }
.mec { position: relative; isolation: isolate; } /* las tarjetas en primer plano no se montan sobre la barra del buscador */
.mec-flechas { display: flex; justify-content: center; gap: .75rem; margin-top: .6rem; }
.mec-flecha { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--hoja); background: var(--blanco); color: var(--hoja); }
.mec-flecha:hover:not(:disabled) { background: var(--hoja); color: var(--blanco); }
.mec-flecha:disabled { opacity: .35; cursor: default; }
.mec-flecha svg { width: 22px; height: 22px; }
/* tarjetas que flotan sobre la rueda o el riel: fondo propio para que se lean encima de otras */
.pista-orbita .tarjeta, .pista-riel .tarjeta { position: absolute; width: 168px; padding: 6px 6px 8px; border-radius: 22px; background: var(--blanco); box-shadow: 0 12px 26px -14px rgba(6, 40, 25, .5); }

/* 1. rueda orbital */
.pista-orbita { position: relative; height: 480px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 28px; background: radial-gradient(ellipse 70% 32% at 50% 62%, var(--menta) 0 70%, transparent 71%); }
.pista-orbita.arrastrando { cursor: grabbing; }
.pista-orbita .tarjeta { left: 50%; top: 50%; transform-origin: center; will-change: transform; }
.pista-orbita img { -webkit-user-drag: none; }
.pista-orbita .tarjeta.al-frente { box-shadow: 0 18px 34px -14px rgba(6, 40, 25, .6); }

/* 2. riel curvo */
.riel-scroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
.pista-riel { position: relative; min-height: 360px; }
.riel-svg { position: absolute; left: 0; top: 0; pointer-events: none; }
.riel-sombra { fill: none; stroke: rgba(6, 71, 44, .12); stroke-width: 16; stroke-linecap: round; }
.riel-trazo { fill: none; stroke: var(--hoja-viva); stroke-width: 6; stroke-linecap: round; }
.pista-riel .tarjeta { scroll-snap-align: center; transition: transform .2s ease, opacity .2s ease, filter .2s ease; }
.pista-riel.con-foco .tarjeta:not(.foco) { opacity: .45; filter: saturate(.55); }
.pista-riel .tarjeta.foco { transform: scale(1.08); z-index: 2; box-shadow: 0 18px 34px -14px rgba(6, 40, 25, .6); }

/* 3. vitrina con encaje */
.pista-vitrina { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 30px; background: linear-gradient(to top, #0b5f39 0 12px, var(--neon) 12px 15px, transparent 15px) local; }
.pista-vitrina::-webkit-scrollbar { display: none; }
.pista-vitrina .tarjeta { flex: 0 0 70%; scroll-snap-align: start; }
.mec-vitrina .mec-flechas { display: none; }
@media (min-width: 620px) { .pista-vitrina .tarjeta { flex-basis: 42%; } }
@media (min-width: 760px) { .mec-vitrina .mec-flechas { display: flex; } }
@media (min-width: 900px) { .pista-vitrina .tarjeta { flex-basis: calc((100% - 28px) / 3.25); } }
@media (min-width: 900px) {
  .pista-orbita { height: 520px; }
  .pista-orbita .tarjeta, .pista-riel .tarjeta { width: 196px; }
}

/* con el buscador activo, todas las mecánicas vuelven a ser cuadrícula */
.buscando .pista-orbita, .buscando .pista-riel, .buscando .pista-vitrina { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.1rem .75rem; height: auto !important; width: auto !important; overflow: visible; background: none; padding: 0; cursor: auto; }
.buscando .pista-orbita .tarjeta, .buscando .pista-riel .tarjeta { position: static; width: auto; transform: none !important; opacity: 1 !important; filter: none !important; pointer-events: auto !important; padding: 0; box-shadow: none; background: none; }
.buscando .riel-scroll { overflow: visible; }
.buscando .riel-svg, .buscando .mec-flechas, .buscando .mec-ayuda { display: none !important; }

/* ---------- tarjeta ---------- */
.tarjeta { display: flex; flex-direction: column; min-width: 0; }
/* El marco toma los colores del empaque: un color, tramos en el orden de la foto, o bicolor arriba/abajo. */
.t-foto { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; padding: 0; overflow: hidden; border: 5px solid transparent; border-radius: var(--radio); background: linear-gradient(var(--blanco), var(--blanco)) padding-box, var(--marco, linear-gradient(var(--menta-2), var(--menta-2))) border-box; }
.t-foto:hover img { transform: scale(1.04); }
/* Toda foto queda centrada dentro del recuadro y conserva su proporción, sea alta o ancha. */
.t-foto img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; object-position: center; transition: transform .2s ease; }
.t-sinfoto { font: 800 1.1rem/1.1 var(--display); color: var(--bosque); text-align: center; }
.t-contador { position: absolute; top: -8px; right: -6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--neon); color: var(--bosque); font: 800 1rem/1 var(--display); border: 3px solid var(--blanco); }
.t-texto { padding: .55rem .15rem .5rem; flex: 1; display: flex; flex-direction: column; }
.t-pres { margin: 0; font-size: .8rem; color: var(--gris); }
.t-nombre { font: 700 1.05rem/1.15 var(--display); margin: .15rem 0 .1rem; overflow-wrap: break-word; hyphens: auto; }
.t-sabores { margin: 0; font-size: .82rem; color: var(--hoja); font-weight: 700; }
.t-precio { margin: auto 0 0; padding-top: .3rem; font: 700 1.2rem/1 var(--texto); color: var(--bosque); }
.t-accion { min-height: 46px; }
.t-btn { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; border: 2px solid var(--hoja); background: var(--blanco); color: var(--hoja); font-weight: 700; font-size: .95rem; padding: .3rem .5rem; }
.t-btn:hover:not(:disabled) { background: var(--hoja); color: var(--blanco); }
.t-btn:disabled { border-color: var(--linea); color: var(--gris); background: #f1f4f2; cursor: not-allowed; }

.paso { display: flex; align-items: center; justify-content: space-between; gap: .25rem; border-radius: 999px; background: var(--neon); padding: 2px; }
.paso output { font: 800 1.1rem/1 var(--display); min-width: 2ch; text-align: center; color: var(--bosque); }
.paso-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blanco); color: var(--bosque); display: grid; place-items: center; }
.paso-btn:hover:not(:disabled) { background: var(--bosque); color: var(--neon); }
.paso-btn:disabled { opacity: .4; cursor: not-allowed; }
.t-paso { width: 100%; }

.agotado .t-foto img { filter: grayscale(1); opacity: .5; }
.agotado .t-precio { color: var(--gris); }
.sello-agotado { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); padding: .35rem .9rem; border-radius: 8px; background: var(--tinta); color: var(--blanco); font: 800 1rem/1 var(--display); }

.no-lo-ves { margin-top: 2.2rem; padding: 1.4rem 1.2rem; border-radius: 24px; background: var(--menta); border: 2px dashed var(--menta-2); text-align: center; display: grid; justify-items: center; gap: .5rem; }
.no-lo-ves h3 { font-size: 1.5rem; color: var(--bosque); }
.no-lo-ves p { margin: 0 0 .4rem; max-width: 40ch; }

/* ---------- pedido ---------- */
.pedido { display: flex; flex-direction: column; background: var(--blanco); outline: none; }
.pedido-cab { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .6rem; }
.pedido-cab h2 { font-size: 1.7rem; color: var(--bosque); }
.pedido-cuerpo { padding: 0 1.1rem 1rem; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.pedido-vacio { margin: .25rem 0 1rem; color: var(--gris); }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.l-foto { width: 56px; height: 56px; border-radius: 12px; border: 3px solid transparent; background: linear-gradient(var(--blanco), var(--blanco)) padding-box, var(--marco, linear-gradient(var(--menta-2), var(--menta-2))) border-box; display: grid; place-items: center; padding: 2px; overflow: hidden; }
.l-foto img { width: 100%; height: 100%; object-fit: contain; }
.l-texto { min-width: 0; }
.l-texto p { margin: 0; }
.l-nombre { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.l-det { font-size: .82rem; color: var(--gris); }
.l-precio { font-weight: 700; color: var(--bosque); }
.paso-chico { gap: 0; }

.datos { margin-top: 1rem; display: grid; gap: 1rem; }
.datos fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.datos legend, .datos label:not(.opcion):not(.segmento), .etiqueta { display: block; font: 700 1rem/1.2 var(--display); margin-bottom: .45rem; color: var(--bosque); }
.datos legend { font-size: 1.15rem; }
.datos small { font-family: var(--texto); font-weight: 400; color: var(--gris); }
.opciones { display: grid; gap: .5rem; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input, .segmento input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span { display: block; min-height: 56px; padding: .7rem 1rem .7rem 2.8rem; border: 2px solid var(--linea); border-radius: 14px; background: var(--blanco); line-height: 1.25; }
.opcion span::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gris); background: var(--blanco); }
.opcion small { display: block; font-size: .85rem; margin-top: .15rem; }
.opcion input:checked + span { border-color: var(--hoja); background: var(--menta); }
.opcion input:checked + span::before { border-color: var(--hoja); background: radial-gradient(var(--hoja) 0 45%, var(--blanco) 50%); }
.opcion input:focus-visible + span, .segmento input:focus-visible + span { outline: 3px solid var(--neon); outline-offset: 2px; box-shadow: 0 0 0 5px var(--bosque); }
.segmentos { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmento { flex: 1 1 140px; cursor: pointer; position: relative; }
.segmento span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .4rem .8rem; border: 2px solid var(--linea); border-radius: 999px; font-weight: 700; }
.segmento input:checked + span { border-color: var(--hoja); background: var(--hoja); color: var(--blanco); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: .65rem .9rem; border: 2px solid var(--linea); border-radius: 12px; background: var(--blanco); font-size: 1rem; }
.campo textarea { resize: vertical; min-height: 70px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--hoja); box-shadow: 0 0 0 3px var(--neon-suave); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error { margin: .35rem 0 0; color: var(--error); font-weight: 700; font-size: .9rem; }
.error:empty { display: none; }

.pedido-pie { padding: .9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--blanco); }
.totales { margin: 0 0 .75rem; display: grid; gap: .2rem; }
.totales div { display: flex; justify-content: space-between; }
.totales dt, .totales dd { margin: 0; }
.totales .total { font: 800 1.35rem/1.2 var(--display); color: var(--bosque); }
.vaciar { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: 44px; margin-top: .4rem; border: 0; background: transparent; color: var(--gris); font-weight: 700; }
.vaciar:hover { color: var(--error); }

/* celular: el pedido es una hoja que sube */
@media (max-width: 1023.98px) {
  .pedido { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 92dvh; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.25); transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
  .pedido-abierto .pedido { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .pedido-abierto { overflow: hidden; }
  .pedido-abierto::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(6, 30, 18, .5); }
  .pedido-cab::before { content: ""; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--linea); }
  .con-barra { padding-bottom: 84px; }
}
@media (min-width: 1024px) {
  .tienda { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
  .pedido { position: sticky; top: 1rem; margin-top: 1rem; max-height: calc(100dvh - 2rem); border: 2px solid var(--menta-2); border-radius: 24px; overflow: hidden; }
  .pedido-cerrar { display: none; }
  .barra-pedido { display: none !important; }
}

.barra-pedido { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(255,255,255,.95) 30%); }
.barra-btn { width: 100%; min-height: 58px; display: flex; align-items: center; gap: .8rem; padding: .4rem .5rem .4rem .9rem; border: 0; border-radius: 999px; background: var(--bosque); color: var(--blanco); box-shadow: var(--sombra); }
.barra-cuenta { display: inline-flex; align-items: center; gap: .35rem; }
.barra-cuenta svg { color: var(--neon); }
.barra-cuenta b { font: 800 1.1rem/1 var(--display); }
.barra-total { font: 700 1.15rem/1 var(--texto); }
.barra-ver { margin-left: auto; padding: .7rem 1.1rem; border-radius: 999px; background: var(--neon); color: var(--bosque); font-weight: 700; }

/* ---------- ficha ---------- */
.ficha { width: 100%; max-width: 760px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; color: var(--tinta); background: var(--blanco); overflow-y: auto; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(6, 30, 18, .55); }
.ficha-in { position: relative; display: grid; }
.ficha-cerrar { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: var(--blanco); box-shadow: var(--sombra); }
.ficha-foto { position: relative; flex: none; background: var(--blanco); height: min(42vh, 340px); }
/* Tira con los colores del empaque, la misma del marco de la tarjeta. */
.ficha-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--tira-h, var(--menta-2)); }
/* La foto vive dentro de su recuadro: no puede tapar el nombre ni los controles. */
.ficha-foto img { position: absolute; top: 1rem; bottom: 1rem; left: 3.5rem; right: 3.5rem; width: calc(100% - 7rem); height: calc(100% - 2rem); object-fit: contain; object-position: center; }
.ficha-texto { padding: 1.1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); display: grid; gap: .55rem; }
.ficha-cat { justify-self: start; margin: 0; padding: .25rem .75rem; border-radius: 999px; background: var(--menta); color: var(--bosque); font-weight: 700; font-size: .85rem; }
.ficha-pres { margin: 0; font-size: .9rem; color: var(--gris); }
.ficha h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; color: var(--bosque); overflow-wrap: anywhere; }
.ficha-precio { margin: 0; font: 700 1.5rem/1 var(--texto); color: var(--bosque); }
.ficha-desc { margin: 0; color: var(--gris); max-width: 60ch; }
.ficha-desc:empty { display: none; }
.ficha-sabores { border: 0; padding: 0; margin: .3rem 0 0; }
.ficha-sabores legend { font: 700 1.05rem/1.2 var(--display); margin-bottom: .5rem; color: var(--bosque); }
.filas-sabor { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
/* Cada sabor lleva el color de su empaque en el borde; con cantidad, un fondo suave del mismo color. El texto siempre va oscuro. */
.fila-sabor { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 60px; padding: .45rem .5rem .45rem .9rem; border: 3px solid var(--sabor, var(--linea)); border-radius: 16px; background: var(--blanco); color: var(--tinta); transition: background-color .15s; }
.fila-sabor.elegido { background: var(--sabor-suave, var(--menta)); }
.fila-sabor-nombre::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: .5rem; border-radius: 50%; background: var(--sabor, var(--linea)); box-shadow: 0 0 0 1px rgba(0,0,0,.18); vertical-align: 1px; }
.fila-sabor-texto { min-width: 0; display: grid; }
.fila-sabor-nombre { font-weight: 700; font-size: 1.05rem; overflow-wrap: break-word; }
.fila-sabor-texto small { color: var(--gris); font-size: .8rem; }
.fila-sabor .paso { flex: none; min-width: 140px; }
.ficha-cantidad { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.ficha-cantidad .etiqueta { margin: 0; }
.ficha-cantidad .paso { min-width: 160px; }
.ficha-agregar { width: 100%; min-height: 54px; font-size: 1.05rem; }
.ficha-agregar.espera { background: var(--menta-2); color: var(--bosque); }
.ficha-agregar:disabled { background: #e3e8e5; color: var(--gris); cursor: not-allowed; }
.ficha-credito { margin: 0; font-size: .8rem; color: var(--gris); }
@media (min-width: 760px) {
  .ficha { margin: auto; border-radius: 28px; }
  .ficha-in { grid-template-columns: 1fr 1fr; }
  .ficha-foto { height: auto; min-height: 440px; }
  .ficha-foto::after { left: auto; top: 0; width: 8px; height: auto; background: var(--tira-v, var(--menta-2)); }
  .ficha-texto { align-content: center; padding: 2rem 1.6rem; }
}

/* ---------- información ---------- */
.info { background: var(--menta); padding: 2.5rem 1rem; }
.info h2 { max-width: 1180px; margin: 0 auto 1.2rem; font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 800; color: var(--bosque); }
.info-grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 1rem; }
@media (min-width: 720px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info-item { background: var(--blanco); border-radius: 20px; padding: 1.2rem; display: grid; align-content: start; gap: .45rem; }
.info-item > svg { width: 30px; height: 30px; color: var(--hoja); }
.info-item h3 { font-size: 1.25rem; color: var(--bosque); }
.info-item p { margin: 0; }
.info-item ul { margin: 0; padding-left: 1.1rem; }
.info-item .btn { justify-self: start; margin-top: .3rem; }
.horario { margin: 0; display: grid; gap: .4rem; }
.horario dt { font-weight: 700; }
.horario dd { margin: 0; color: var(--gris); }

/* ---------- pie ---------- */
.pie { background: var(--bosque); color: #d9f3e2; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); font-size: .9rem; }
.pie > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pie p { margin: 0 auto .8rem; }
.creditos summary { cursor: pointer; font-weight: 700; color: var(--blanco); min-height: 44px; display: flex; align-items: center; }
.creditos ul { columns: 2 240px; padding-left: 1.1rem; font-size: .82rem; }
.creditos li { break-inside: avoid; margin-bottom: .2rem; overflow-wrap: anywhere; }
.creditos a { color: var(--neon-suave); }
.pie-nombre { font-family: var(--display); font-weight: 700; color: var(--blanco); }

/* ---------- toast ---------- */
.aviso-toast { position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translate(-50%, 20px); max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: 999px; background: var(--tinta); color: var(--blanco); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.aviso-toast.ver { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .aviso-toast { bottom: 24px; } }

/* ---------- escritorio: portada en dos columnas ---------- */
@media (min-width: 900px) {
  .toldo { height: 46px; }
  .portada-in { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 2rem 1.5rem 2.6rem; }
  .portada-texto { justify-items: start; text-align: left; }
  .portada-logo { width: 220px; }
  .portada-acciones { justify-content: flex-start; }
  .portada-acciones .btn { flex: 0 1 auto; }
  .pasos { grid-template-columns: repeat(3, 1fr); padding: 1rem 1.5rem; }
  .pasos li { margin: 0; }
  .repisa { height: 150px; }
  .tienda { padding: 0 1.5rem 3rem; }
  .barra-catalogo { margin: 0 -1.5rem; padding-inline: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.pedido-abierto .aviso-toast { top: 16px; bottom: auto; }

/* zoom alto o pantallas muy angostas */
@media (max-width: 340px) {
  .btn-wa-cab span { display: none; }
  .btn-wa-cab { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 300px) {
  .marca-nombre { font-size: .9rem; }
}
.campo textarea#direccion { min-height: 50px; }

