/* Tu Mercado — tienda pública. Móvil primero. Colores y nombre se configuran desde el panel (variables --verde y --naranja). */
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --verde: #0f766e; --naranja: #ff5a5f;
  --verde-osc: color-mix(in srgb, var(--verde) 78%, #000);
  --verde-suave: color-mix(in srgb, var(--verde) 9%, #ffffff);
  --verde-medio: color-mix(in srgb, var(--verde) 22%, #ffffff);
  --naranja-osc: color-mix(in srgb, var(--naranja) 40%, #3a1a00);
  --naranja-suave: color-mix(in srgb, var(--naranja) 16%, #ffffff);
  --crema: #f2f7f6; --papel: #ffffff; --tinta: #12211a; --tinta-2: #46574e; --oro: #d4af37; --linea: #d4af37; --error: #b3261e; --error-suave: #fbe9e7;
  --superficie: #fff; --sobre-color: #fff; --sobre-color-suave: #e7efe9; --gris: #3b3b3b; --error-osc: #8f1d17; --whatsapp: #0f7a3d; --brillo-1: #e8ece1; --brillo-2: #f3f5ef;
  --r: 16px; --sombra: 0 1px 2px rgba(27,42,32,.06), 0 6px 18px rgba(27,42,32,.07);
  --fuente: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --precio: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.22,.8,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1rem/1.5 var(--fuente); color: var(--tinta); background: var(--crema); -webkit-tap-highlight-color: transparent; }
body.bloqueado { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--verde); text-underline-offset: 3px; }
::selection { background: var(--naranja); color: var(--tinta); }
html { scrollbar-color: var(--verde-medio) transparent; }
input, textarea { caret-color: var(--verde); }
.tabla, .totales, .fila-item, .kpi .v { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 6px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
#catalogo, #cats-sec { scroll-margin-top: 64px; } @media (min-width: 900px) { #catalogo, #cats-sec { scroll-margin-top: calc(var(--enc-h, 64px) + 64px); } } #titulo-catalogo:focus { outline: none; }
.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; transition: transform .12s var(--ease), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primario { background: var(--verde); color: var(--sobre-color); } .btn-primario:hover { background: var(--verde-osc); }
.btn-acento { background: var(--naranja); color: var(--tinta); } .btn-acento:hover { background: color-mix(in srgb, var(--naranja) 88%, #000); }
.btn-borde { background: transparent; border-color: var(--verde); color: var(--verde); } .btn-borde:hover { background: var(--verde-suave); }
.btn-suave { background: var(--verde-suave); color: var(--verde); }
.btn-bloque { width: 100%; } .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ico { width: 44px; padding: 0; }

/* Encabezado */
.encabezado { position: sticky; top: 0; z-index: 30; background: var(--papel); border-bottom: 1px solid var(--linea); }
.enc-fila { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.marca { order: 1; min-height: 44px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--verde); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; min-width: 0; }
.marca img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-zona { display: contents; }
.zona-btn { order: 2; display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 230px; padding: 0 12px 0 10px; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--papel); color: var(--tinta); text-align: left; flex: none; }
.zona-btn:hover { background: var(--verde-suave); } .zona-btn .ico { width: 20px; height: 20px; color: var(--verde); }
.zona-btn span { display: grid; line-height: 1.15; min-width: 0; } .zona-btn small { font-size: 0.6875rem; color: var(--tinta-2); } .zona-btn b { font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-pedido { order: 5; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.buscador { order: 3; flex: 1; position: relative; min-width: 0; }
.buscador input { width: 100%; height: 46px; border-radius: 23px; border: 1.5px solid var(--linea); background: var(--crema); padding: 0 16px 0 44px; }
.buscador input:focus { border-color: var(--verde); outline: none; background: var(--superficie); box-shadow: 0 0 0 3px var(--verde-medio); }
.buscador svg { position: absolute; left: 15px; top: 13px; width: 20px; height: 20px; color: var(--tinta-2); pointer-events: none; }
.acciones-enc { order: 4; display: flex; gap: 6px; flex: none; }
.accion-enc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--linea); background: var(--papel); color: var(--verde); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.accion-enc:hover { background: var(--verde-suave); } .accion-enc svg { width: 22px; height: 22px; flex: none; } .accion-enc.wa { color: var(--whatsapp); }
.accion-enc span { display: none; } @media (min-width: 1100px) { .accion-enc span { display: inline; } }
.carrito-btn { order: 6; position: relative; background: var(--verde); color: var(--sobre-color); border: 0; min-width: 46px; height: 44px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; font-weight: 700; }
.carrito-btn:hover { background: var(--verde-osc); } .carrito-btn svg { width: 24px; height: 24px; }
.car-total { font: 700 1.1875rem/1 var(--precio); letter-spacing: .02em; }
.contador { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--naranja); color: var(--tinta); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--papel); }
.contador.salto { animation: salto .35s var(--ease); } .contador[hidden] { display: none; }
@keyframes salto { 40% { transform: scale(1.35); } }
@media (max-width: 899px) {
  .encabezado { position: static; } .enc-fila { flex-wrap: wrap; gap: 8px 8px; }
  .marca { flex: 1; } .acciones-enc { order: 2; } .carrito-btn { order: 3; } .car-total { display: none; } .accion-enc.wa { display: none; }
  .buscador { order: 4; flex-basis: 100%; }
  .fila-zona { display: flex; order: 5; flex-basis: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: -2px; }
  .fila-zona > * { order: 0; } .zona-btn { flex: 1; max-width: none; min-height: 44px; }
}

/* Categorías (barra fija bajo el encabezado) */
.cat-nav { position: sticky; top: var(--enc-h, 64px); z-index: 25; background: var(--papel); border-bottom: 1px solid var(--linea); }
@media (max-width: 899px) { .cat-nav { top: 0; } }

.franja-estado { background: var(--verde); color: var(--sobre-color); font-size: 0.875rem; }
.franja-estado .contenedor { display: flex; gap: 8px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.franja-estado.cerrado { background: var(--naranja-osc); } .franja-estado.pausa { background: var(--error); }
.franja-estado button { position: relative; background: none; border: 0; color: var(--sobre-color); text-decoration: underline; padding: 0; min-height: 28px; font-size: 0.8125rem; }
.franja-estado button::after { content: ''; position: absolute; inset: -8px 0; }
.franja-estado .contenedor { gap: 2px 14px; }

/* Portada breve */
.portada { margin: 12px 0 14px; border-radius: 22px; overflow: hidden; background: var(--verde); color: var(--sobre-color); display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; }
.portada .texto { padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.portada h1 { margin: 0; font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.portada p { margin: 0; color: var(--sobre-color-suave); max-width: 36ch; font-size: 0.9375rem; }
.portada .btn { align-self: flex-start; margin-top: 4px; }
.portada .foto { position: relative; min-height: 160px; }
.portada .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada .texto > * { animation: entra .5s var(--ease) both; } .portada .texto > :nth-child(2) { animation-delay: .06s; } .portada .texto > :nth-child(3) { animation-delay: .12s; }
@keyframes entra { from { transform: translateY(8px); } }
@media (max-width: 560px) { .portada { grid-template-columns: 1fr; margin-top: 12px; } .portada .foto { min-height: 120px; max-height: 120px; order: -1; } .portada .texto { padding: 14px 16px 16px; gap: 8px; } .portada p { display: none; } .portada h1 { font-size: 1.5rem; } }

/* Categorías */
.categorias { margin: 0 -16px; padding: 6px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.cat-tiles { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.cat-tile { flex: 0 0 104px; border: 1px solid var(--linea); background: var(--papel); border-radius: var(--r); padding: 0 0 8px; overflow: hidden; display: grid; gap: 6px; text-align: center; font-weight: 600; font-size: 0.875rem; color: var(--tinta); transition: transform .15s var(--ease), border-color .15s; }
.cat-tile { align-content: start; } .cat-tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--verde-suave); }
.cat-tile:hover { border-color: var(--verde); transform: translateY(-2px); } .cat-tile.oferta { border-color: var(--naranja); }
@media (min-width: 760px) { .cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); overflow: visible; margin: 0; padding: 0; } .cat-tile { flex: none; } }
.ver-todo { background: none; border: 0; color: var(--verde); font-weight: 700; font-size: 0.875rem; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid transparent; background: var(--crema); font-weight: 600; font-size: 0.875rem; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.chip[aria-pressed=true] { background: var(--verde); border-color: var(--verde); color: var(--sobre-color); }
.chip.oferta { border-color: var(--naranja); } .chip.oferta[aria-pressed=true] { background: var(--naranja); border-color: var(--naranja); color: var(--tinta); }

/* Productos */
.seccion-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.seccion-titulo h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; } .seccion-titulo small { color: var(--tinta-2); }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rejilla { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 900px) { .rejilla { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); position: relative; }
.tarjeta .imagen { aspect-ratio: 4 / 3; width: 100%; background: var(--verde-suave); border: 0; padding: 0; display: block; position: relative; overflow: hidden; }
.tarjeta .imagen img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; } .tarjeta .imagen img.listo { opacity: 1; }
.etiqueta { position: absolute; top: 8px; left: 8px; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: var(--naranja); color: var(--tinta); z-index: 1; }
.etiqueta.agotado { background: var(--gris); color: var(--sobre-color); }
.etiqueta.peso { top: auto; bottom: 8px; background: var(--papel); color: var(--tinta); font-weight: 600; }
.tarjeta .cuerpo { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tarjeta h3 { margin: 0; font-size: 1rem; line-height: 1.25; font-weight: 600; }
.tarjeta h3 button { all: unset; cursor: pointer; position: relative; display: block; }
.tarjeta h3 button::after { content: ''; position: absolute; inset: -12px 0; } .tarjeta h3 button:focus-visible { outline: 3px solid var(--naranja); }
.pres { color: var(--tinta-2); font-size: 0.8125rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detalle .pres { white-space: normal; }
.precio { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.precio b { font: 700 1.625rem/1 var(--precio); color: var(--verde); letter-spacing: .01em; }
.precio .unidad { font-size: 0.8125rem; color: var(--tinta-2); } .precio s { font-size: 0.8125rem; color: var(--tinta-2); }
.precio.oferta b { color: var(--naranja-osc); }
.estimado { font-size: 0.75rem; color: var(--tinta-2); }
.accion { margin-top: 6px; }
.accion .btn, .accion .paso { width: 100%; }
.accion .paso { justify-content: space-between; }
.paso-tarjeta { background: var(--verde-suave); border-color: var(--verde); }
.paso-tarjeta output { font-weight: 700; color: var(--verde); }
.paso { display: inline-flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--superficie); flex: none; }
.paso button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; line-height: 1; border-radius: 10px; color: var(--verde); font-weight: 700; }
.paso button:disabled { opacity: .3; } .paso button:active { background: var(--verde-suave); }
.paso output { min-width: 46px; text-align: center; font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.tarjeta .btn { min-height: 44px; padding: 0 10px; font-size: 0.9375rem; }
.tarjeta { transition: box-shadow .2s, border-color .2s; } .tarjeta.en-carro { border-color: var(--verde); }
.tarjeta.agrego { animation: pulso .55s var(--ease); } @keyframes pulso { 35% { box-shadow: 0 0 0 4px var(--naranja); } }
.btn:disabled { cursor: not-allowed; }
.en-carrito { position: absolute; top: 8px; right: 8px; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: var(--verde); color: var(--sobre-color); pointer-events: none; }
.en-carrito:empty { display: none; }
.vacio, .error-caja { text-align: center; padding: 36px 16px; color: var(--tinta-2); background: var(--papel); border: 1px dashed var(--linea); border-radius: var(--r); }
.error-caja { border-style: solid; border-color: var(--error); background: var(--error-suave); color: var(--error); }
.esqueleto { background: linear-gradient(90deg, var(--brillo-1) 25%, var(--brillo-2) 37%, var(--brillo-1) 63%); background-size: 400% 100%; animation: brilla 1.3s infinite; border-radius: var(--r); aspect-ratio: 3 / 4; }
@keyframes brilla { to { background-position: -100% 0; } }
.destacados { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: thin; }
.destacados .tarjeta { flex: 0 0 168px; scroll-snap-align: start; } @media (min-width: 640px) { .destacados .tarjeta { flex-basis: 200px; } }

/* Hojas (carrito, detalle, pedido, asistente) */
.fondo { position: fixed; inset: 0; background: rgba(20,30,24,.5); z-index: 50; opacity: 0; transition: opacity .2s; }
.fondo.on { opacity: 1; }
.hoja { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92dvh; background: var(--papel); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .26s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.hoja.on { transform: none; }
.hoja.completa { top: 0; max-height: none; border-radius: 0; }
@media (min-width: 760px) { .hoja { left: auto; right: 0; top: 0; bottom: 0; width: 460px; max-height: none; border-radius: 0; transform: translateX(100%); } .hoja.on { transform: none; } .hoja.completa { width: 560px; } .hoja.centro { left: 50%; top: 50%; right: auto; bottom: auto; width: 520px; max-height: 90dvh; border-radius: 22px; transform: translate(-50%, -46%); opacity: 0; transition: transform .24s var(--ease), opacity .2s; } .hoja.centro.on { transform: translate(-50%, -50%); opacity: 1; } }
.hoja header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--linea); }
.hoja header h2 { margin: 0; font-size: 1.1875rem; letter-spacing: -.01em; }
.cerrar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--verde-suave); color: var(--verde); font-size: 1.375rem; line-height: 1; }
.hoja .contenido { overflow-y: auto; padding: 14px 16px; flex: 1; overscroll-behavior: contain; }
.hoja footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--papel); }
.linea-carrito { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.linea-carrito img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--verde-suave); }
.linea-carrito .nom { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; } .linea-carrito .sub { color: var(--tinta-2); font-size: 0.8125rem; }
.linea-carrito .imp { font: 700 1.25rem/1 var(--precio); color: var(--verde); text-align: right; } .linea-carrito .imp small { display: block; font: 0.75rem var(--fuente); color: var(--tinta-2); }
.linea-carrito .ctrl { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quitar { background: none; border: 0; color: var(--error); font-size: 0.875rem; min-height: 44px; padding: 0 6px; text-decoration: underline; }
.totales { display: grid; gap: 4px; font-size: 0.9375rem; } .totales div { display: flex; justify-content: space-between; gap: 12px; }
.totales .total { font-size: 1.125rem; font-weight: 700; border-top: 1px dashed var(--linea); padding-top: 8px; margin-top: 4px; } .totales .total b { font-family: var(--precio); font-size: 1.625rem; color: var(--verde); }
.nota { font-size: 0.8125rem; color: var(--tinta-2); background: var(--naranja-suave); border-radius: 10px; padding: 8px 10px; margin: 10px 0; }
.nota.error { background: var(--error-suave); color: var(--error); }
.barra { height: 8px; background: var(--verde-medio); border-radius: 4px; overflow: hidden; margin: 6px 0; } .barra i { display: block; height: 100%; background: var(--naranja); transform-origin: left; transition: transform .3s var(--ease); }

/* Formularios */
.campo { display: grid; gap: 4px; margin-bottom: 12px; } .campo > label, .grupo > legend { font-weight: 600; font-size: 0.875rem; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 46px; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--superficie); padding: 10px 12px; }
.campo textarea { min-height: 76px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px var(--verde-medio); }
.campo.malo input, .campo.malo select { border-color: var(--error); } .campo .err { color: var(--error); font-size: 0.8125rem; min-height: 0; }
.campo small { color: var(--tinta-2); }
.grupo { border: 0; padding: 0; margin: 0 0 14px; } .grupo > legend { padding: 0; margin-bottom: 6px; }
.opcion { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--superficie); margin-bottom: 8px; cursor: pointer; min-height: 48px; }
.opcion input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--verde); flex: none; }
.opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-suave); }
.opcion b { display: block; font-weight: 600; } .opcion small { color: var(--tinta-2); display: block; line-height: 1.35; }
.paso-titulo { font-size: 1rem; font-weight: 700; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--linea); display: flex; align-items: center; gap: 8px; color: var(--verde); }
#resumen-pedido { background: var(--crema); border-radius: var(--r); padding: 12px 14px; } .paso-titulo:first-child { margin-top: 0; }

/* Detalle */
.detalle-img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 14px; background: var(--verde-suave); }
.detalle h3 { margin: 12px 0 2px; font-size: 1.375rem; } .detalle p { color: var(--tinta-2); margin: 6px 0; }

/* Confirmación */
.exito { text-align: center; padding: 8px 0; } .exito .sello { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--verde); color: var(--sobre-color); display: grid; place-items: center; animation: aparece .4s var(--ease); }
.exito .sello svg { width: 34px; height: 34px; } @keyframes aparece { from { transform: scale(.6); opacity: 0; } }
.exito .num { font: 700 2.125rem/1 var(--precio); color: var(--verde); letter-spacing: .04em; margin: 6px 0; }
.enlace-seg { display: flex; gap: 8px; margin: 10px 0; } .enlace-seg input { flex: 1; min-width: 0; font-size: 0.8125rem; border: 1.5px solid var(--linea); border-radius: 10px; padding: 0 10px; min-height: 44px; background: var(--superficie); }

/* Información */
.info { display: grid; gap: 14px; margin: 28px 0 8px; } @media (min-width: 760px) { .info { grid-template-columns: repeat(3, 1fr); } }
.info section { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 16px; } .info h2 { margin: 0 0 8px; font-size: 1.0625rem; }
.horarios { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font-size: 0.875rem; } .horarios dt { font-weight: 600; } .horarios dd { margin: 0; }
.zonas-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; } .zonas-lista li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--linea); padding-bottom: 5px; }
.pie { margin-top: 28px; padding: 22px 0 120px; border-top: 1px solid var(--linea); color: var(--tinta-2); font-size: 0.8125rem; }
.aviso-demo { background: var(--naranja-suave); border: 1px solid var(--naranja); color: var(--tinta); border-radius: 10px; padding: 8px 12px; font-size: 0.8125rem; margin-top: 12px; }

/* Barra inferior móvil */
.barra-carrito { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: var(--verde); color: var(--sobre-color); border: 0; border-radius: 16px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; box-shadow: 0 8px 24px rgba(20,83,45,.35); transform: translateY(150%); transition: transform .28s var(--ease); font-weight: 600; max-width: 520px; margin: 0 auto; }
.barra-carrito.on { transform: none; } .barra-carrito b { font: 700 1.375rem var(--precio); }
@media (min-width: 900px) { .barra-carrito { display: none; } }

/* Asistente */
.chat { display: grid; gap: 8px; } .msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.9375rem; white-space: pre-wrap; } .msg.yo { background: var(--verde); color: var(--sobre-color); justify-self: end; border-bottom-right-radius: 4px; } .msg.bot { background: var(--verde-suave); border-bottom-left-radius: 4px; }
.propuesta { background: var(--superficie); border: 1.5px solid var(--verde); border-radius: 12px; padding: 10px 12px; font-size: 0.875rem; } .propuesta ul { margin: 6px 0; padding-left: 18px; }
.chat-form { display: flex; gap: 8px; } .chat-form input { flex: 1; min-height: 46px; border: 1.5px solid var(--linea); border-radius: 12px; padding: 0 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--tinta); color: var(--sobre-color); padding: 10px 16px; border-radius: 12px; z-index: 80; opacity: 0; pointer-events: none; transition: .22s var(--ease); max-width: 90vw; text-align: center; font-size: 0.875rem; }
body.bloqueado .toast { bottom: auto; top: 16px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); } .toast.error { background: var(--error); }

/* Seguimiento */
.seg { max-width: 640px; margin: 0 auto; padding: 16px 16px 60px; }
.seg h1 { font-size: 1.375rem; margin: 8px 0; } .seg .caja { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; } .seg .caja h2 { font-size: 1rem; margin: 0 0 8px; }
.linea-tiempo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.linea-tiempo li { display: block; position: relative; padding: 0 0 16px 32px; color: var(--tinta-2); }
.linea-tiempo li > span:first-child { display: none; }
.linea-tiempo li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--linea); background: var(--superficie); z-index: 1; }
.linea-tiempo li::after { content: ''; position: absolute; left: 8px; top: 22px; bottom: -2px; width: 2px; background: var(--linea); }
.linea-tiempo li:last-child::after { display: none; }
.linea-tiempo li.hecho { color: var(--tinta); } .linea-tiempo li.hecho::before { background: var(--verde); border-color: var(--verde); } .linea-tiempo li.actual::before { background: var(--naranja); border-color: var(--naranja); box-shadow: 0 0 0 4px var(--naranja-suave); }
.linea-tiempo b { display: block; } .linea-tiempo small { color: var(--tinta-2); }
.insignia { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8125rem; font-weight: 700; background: var(--verde-suave); color: var(--verde); } .insignia.naranja { background: var(--naranja-suave); color: var(--naranja-osc); } .insignia.roja { background: var(--error-suave); color: var(--error); }
.fila-item { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linea); font-size: 0.875rem; } .fila-item:last-child { border: 0; }
.fila-item .tachado { text-decoration: line-through; color: var(--tinta-2); }
.cambio { border: 1.5px solid var(--naranja); background: var(--naranja-suave); border-radius: 12px; padding: 12px; margin: 8px 0; } .cambio .botones { display: flex; gap: 8px; margin-top: 10px; } .cambio .botones .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  /* Sin desplazamientos ni rebotes; se conservan los fundidos y cambios de color que confirman lo que pasó. */
  html { scroll-behavior: auto; }
  .portada .texto > *, .contador.salto, .tarjeta.agrego, .cat-tile, .exito .sello, .esqueleto { animation: none; }
  .hoja, .hoja.centro, .barra-carrito, .toast { transition: opacity .15s linear; }
  .hoja:not(.on), .toast:not(.on) { opacity: 0; } .hoja.on { opacity: 1; }
}
@media print { .encabezado, .barra-carrito, .no-imprimir { display: none !important; } }

/* Utilidades: sustituyen a los estilos en línea de las plantillas. */
.m-0{margin:0 !important} .ar-2{aspect-ratio:2/1 !important} .ar-3{aspect-ratio:3/1 !important} .ar-4{aspect-ratio:4/1 !important} .as-c{align-self:center !important} .borde{border:1.5px solid var(--linea) !important}
.borde-acento{border-color:var(--naranja) !important} .bt{border-top:1px solid var(--linea) !important} .centrar{align-items:center !important} .col-toda{grid-column:1/-1 !important} .cols-fila{grid-template-columns:auto 1fr auto !important} .cursor{cursor:pointer !important}
.entre{justify-content:space-between !important} .envuelve{flex-wrap:wrap !important} .f-1{flex:1 !important} .flex{display:flex !important} .fondo-error{background:var(--error-suave) !important} .gap-10{gap:10px !important}
.gap-6{gap:6px !important} .gap-8{gap:8px !important} .grid{display:grid !important} .h-72{height:72px !important} .lh-17{line-height:1.7 !important} .m-2{margin:2px !important}
.mb-6{margin-bottom:6px !important} .mb-8{margin-bottom:8px !important} .mh-32{min-height:32px !important} .mh-42{min-height:42px !important} .mh-46{min-height:46px !important} .mh-80{min-height:80px !important}
.mh-90{min-height:90px !important} .ml-auto{margin-left:auto !important} .mt-10{margin-top:10px !important} .mt-16{margin-top:16px !important} .mt-6{margin-top:6px !important} .mt-8{margin-top:8px !important}
.mw-860{max-width:860px !important} .my-6{margin:6px 0 !important} .my-8{margin:8px 0 !important} .negrita{font-weight:700 !important} .normal{font-weight:400 !important} .oculto{display:none !important}
.p-2{padding:2px !important} .p-24{padding:24px !important} .p-6{padding:6px !important} .p-8{padding:8px !important} .px-8{padding:0 8px !important} .py-3{padding:3px 0 !important}
.py-4{padding:4px 0 !important} .py-6{padding:6px 0 !important} .r-10{border-radius:10px !important} .redondo{border-radius:50% !important} .sin-contorno{outline:none !important} .suave{color:var(--tinta-2) !important}
.t-12{font-size:0.75rem !important} .t-13{font-size:0.8125rem !important} .t-14{font-size:0.875rem !important} .t-16{font-size:1rem !important} .t-26{font-size:1.625rem !important} .t-28{font-size:1.75rem !important}
.t-30{font-size:1.875rem !important} .tc{text-align:center !important} .td{text-align:right !important} .tx-error{color:var(--error) !important} .va-m{vertical-align:middle !important} .w-100{width:100% !important}
.w-72{width:72px !important}
.mt-4{margin-top:4px !important} .mb-10{margin-bottom:10px !important} .mb-12{margin-bottom:12px !important} .gap-12{gap:12px !important} .gap-14{gap:14px !important} .block{display:block !important}
.mh-44{min-height:44px !important}
[hidden] { display: none !important; }

/* ===== Estilo supermercado: banda de marca, buscador grande, tarjetas blancas sobre bandas ===== */
.encabezado { background: var(--verde); color: var(--sobre-color); border-bottom: 0; }
.enc-fila { padding: 10px 0; gap: 14px; }
.marca { color: var(--sobre-color); } .marca img { background: #fff; padding: 2px; width: 42px; height: 42px; }
.zona-btn { background: transparent; border-color: transparent; color: var(--sobre-color); } .zona-btn:hover { background: rgba(255,255,255,.14); }
.zona-btn .ico, .zona-btn small { color: var(--sobre-color-suave); } .zona-btn small { opacity: .9; }
.mi-pedido { color: var(--sobre-color); }
.buscador input { height: 48px; border: 0; background: #fff; border-radius: 10px; padding: 0 56px 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.18); font-size: 1rem; }
.buscador input:focus { box-shadow: 0 0 0 3px var(--naranja); }
.buscador svg { left: auto; right: 0; top: 0; width: 48px; height: 48px; padding: 13px; background: var(--naranja); color: var(--tinta); border-radius: 0 10px 10px 0; }
.accion-enc { background: transparent; border-color: transparent; color: var(--sobre-color); flex-direction: column; gap: 0; height: 52px; font-size: .75rem; }
.accion-enc:hover { background: rgba(255,255,255,.14); } .accion-enc.wa { color: var(--sobre-color); }
.accion-enc span { display: inline; line-height: 1.1; } .accion-enc svg { width: 24px; height: 24px; }
.carrito-btn { background: transparent; border: 0; flex-direction: column; gap: 0; height: 52px; min-width: 56px; padding: 0 6px; }
.carrito-btn:hover { background: rgba(255,255,255,.14); } .carrito-btn::after { content: 'Carrito'; font-size: .75rem; font-weight: 600; line-height: 1.1; }
.car-total { display: none !important; } .contador { top: 0; right: 6px; border-color: var(--verde); }
.cat-nav { background: var(--verde-osc); border-bottom: 0; color: var(--sobre-color); }
.categorias { padding: 4px 16px; gap: 4px; }
.chip { background: transparent; color: var(--sobre-color); border-radius: 8px; font-size: .9375rem; min-height: 44px; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip[aria-pressed=true] { background: #fff; color: var(--verde); border-color: transparent; }
.chip.oferta { background: var(--naranja); color: var(--tinta); border-color: transparent; } .chip.oferta[aria-pressed=true] { background: #fff; color: var(--naranja-osc); }
@media (max-width: 899px) { .enc-fila { gap: 6px 4px; } .marca { flex: 1; } .accion-enc span { display: none; } .accion-enc, .carrito-btn { height: 46px; } .carrito-btn::after { display: none; } .fila-zona { margin-top: 0; } .zona-btn { border-color: rgba(255,255,255,.35); } }
.franja-estado { font-size: .8125rem; }

/* Portada grande tipo banner */
.portada { border-radius: 12px; min-height: 120px; margin-top: 14px; }
@media (min-width: 760px) { .portada { grid-template-columns: 1fr 1.2fr; min-height: 300px; } .portada .texto { padding: 32px 36px; } .portada h1 { font-size: clamp(2rem, 3.6vw, 3rem); } .portada p { font-size: 1.0625rem; } .portada .btn { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; } }
.promo-franja { background: var(--verde-osc); color: var(--sobre-color); border-radius: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 12px 16px; text-align: center; margin: 0 0 6px; font-size: .9375rem; }

/* Categorías en círculos */
.cat-tiles { gap: 14px; }
.cat-tile { flex: 0 0 92px; background: none; border: 0; padding: 0; border-radius: 0; font-size: .875rem; gap: 8px; overflow: visible; }
.cat-tile img { width: 92px; height: 92px; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--verde-medio); }
.cat-tile:hover { transform: none; } .cat-tile:hover img { box-shadow: 0 0 0 3px var(--verde); } .cat-tile.oferta img { box-shadow: 0 0 0 3px var(--naranja); }
@media (min-width: 760px) { .cat-tiles { display: flex; justify-content: space-between; overflow-x: auto; } .cat-tile { flex: 0 0 120px; } .cat-tile img { width: 112px; height: 112px; } }

/* Carruseles sobre banda gris con tarjetas blancas */
.banda { background: var(--brillo-1); border-radius: 12px; padding: 4px 16px 14px; margin: 18px -4px 0; position: relative; }
.banda .seccion-titulo { margin-top: 12px; } .banda .destacados { margin: 0 -16px; }
.rail { position: absolute; top: 55%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 1.5rem; line-height: 1; color: var(--tinta); display: none; }
.rail.ant { left: -6px; } .rail.sig { right: -6px; } @media (min-width: 900px) { .rail { display: block; } }
.tarjeta { border: 0; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tarjeta .imagen { background: #fff; aspect-ratio: 1 / 1; } .tarjeta .imagen img { object-fit: contain; padding: 6px; }
.tarjeta h3 { font-size: 1.0625rem; font-weight: 500; }
.antes { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 2px; } .antes s { color: var(--tinta-2); font-size: .875rem; }
.dto { background: var(--tinta); color: #fff; font-weight: 700; font-size: .8125rem; border-radius: 4px; padding: 1px 7px; }
.antes + .precio { margin-top: 0; padding-top: 0; }
.precio b { font: 700 1.5rem/1 var(--fuente); letter-spacing: -.01em; color: var(--tinta); } .precio.oferta b { color: var(--tinta); }
.btn-agregar { background: var(--verde); color: var(--sobre-color); border-radius: 8px; min-height: 46px; gap: 10px; width: 100%; } .btn-agregar:hover { background: var(--verde-osc); }
.btn-agregar .ico { width: 1.3em; height: 1.3em; }
.paso-tarjeta { background: var(--verde); border-color: var(--verde); border-radius: 8px; } .paso-tarjeta button, .paso-tarjeta output { color: var(--sobre-color); } .paso-tarjeta button:active { background: var(--verde-osc); }
.tarjeta.en-carro { box-shadow: 0 0 0 2px var(--verde); }
.destacados .tarjeta { flex-basis: 176px; } @media (min-width: 900px) { .destacados .tarjeta { flex-basis: 214px; } }
.rejilla { gap: 10px; } .seccion-titulo h2 { font-size: 1.375rem; }

/* Portada al estilo de la referencia: franja arriba, banner con panel sobre la foto y banner lateral */
.promo-franja { margin: 14px 0 0; padding: 18px 16px; font-size: 1.125rem; }
.hero-fila { display: grid; gap: 14px; margin: 14px 0; }
.hero-fila .portada { margin: 0; display: block; position: relative; min-height: 300px; background: var(--brillo-1); }
.hero-fila .portada .foto { position: absolute; inset: 0; min-height: 0; max-height: none; }
.hero-fila .portada .texto { position: relative; z-index: 1; background: var(--verde); border-radius: 0 0 14px 14px; width: min(290px, 78%); min-height: 300px; margin-left: 6%; padding: 22px; }
.portada-lado { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; min-height: 180px; text-align: center; color: var(--verde); }
.portada-lado img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-lado span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 12px; padding: 10px; font-size: .875rem; } .portada-lado b { display: block; font-size: 1.125rem; }
@media (min-width: 760px) { .hero-fila { grid-template-columns: 1fr 280px; } }
.banda { background: #f4f4f4; } .tarjeta { border-radius: 14px; box-shadow: none; }
.btn-agregar, .paso-tarjeta { border-radius: 3px; font-weight: 400; font-size: .875rem; }
.tarjeta h3 { font-size: 1.125rem; } .precio b { font-size: 1.125rem; font-weight: 700; }

/* ===== Versión 3: paleta moderna, banner rotativo, promociones, menú, pie y selecciones ===== */
:root { --linea-fuerte: #b9c7bf; --foco: 0 0 0 3px color-mix(in srgb, var(--verde) 28%, transparent); }
body { background: var(--crema); letter-spacing: -.003em; }
.encabezado { background: linear-gradient(180deg, var(--verde), var(--verde-osc)); }
.cat-nav { background: var(--verde-osc); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.cat-fila { display: flex; align-items: center; gap: 8px; }
.cat-fila .categorias { flex: 1; min-width: 0; margin: 0; padding: 4px 0; }
.menu-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-right: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--sobre-color); font-weight: 700; border-radius: 0; }
.menu-btn svg { width: 22px; height: 22px; } .menu-btn:hover, .menu-btn[aria-expanded=true] { background: rgba(255,255,255,.14); }
.menu-cat { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-bottom: 1px solid var(--linea); box-shadow: 0 18px 40px rgba(10,30,20,.18); }
.menu-cat ul { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; max-height: 70dvh; overflow-y: auto; }
.menu-cat button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; min-height: 56px; }
.menu-cat button:hover { background: var(--verde-suave); } .menu-cat img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--verde-suave); }
.menu-cat b { display: block; } .menu-cat small { color: var(--tinta-2); }
.chip { border-radius: 10px; font-weight: 600; }
.chip[aria-pressed=true] { background: #fff; color: var(--verde); position: relative; }

/* Banner rotativo */
.hero-fila { margin-top: 14px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--verde); min-width: 0; }
.hero-pistas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-pistas::-webkit-scrollbar { display: none; } .hero-pistas:focus-visible { outline-offset: -4px; }
.hero-pistas > .portada { flex: 0 0 100%; scroll-snap-align: start; margin: 0; border-radius: 0; min-height: 320px; }
.hero-fila .portada .texto { background: var(--verde); } .hero-fila .portada.alt .texto { background: var(--naranja); color: var(--tinta); } .hero-fila .portada.alt p { color: var(--tinta); }
.portada h1, .portada h2 { margin: 0; font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero-fila .portada.alt .btn-acento { background: var(--verde); color: var(--sobre-color); }
.hero-flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--tinta); font-size: 1.75rem; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.28); display: none; }
.hero-flecha:hover { background: var(--verde-suave); } .hero-flecha.ant { left: 10px; } .hero-flecha.sig { right: 10px; }
@media (min-width: 760px) { .hero-flecha:not([hidden]) { display: block; } }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.hero-puntos { display: flex; gap: 0; background: rgba(0,0,0,.28); border-radius: 12px; pointer-events: auto; }
.hero-puntos button { position: relative; width: 28px; height: 28px; border: 0; background: none; padding: 0; }
.hero-puntos button::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid #fff; transition: background-color .2s, inset .2s; }
.hero-puntos button[aria-current] ::after, .hero-puntos button[aria-current]::after { background: #fff; }
.hero-pausa { pointer-events: auto; position: absolute; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: .6875rem; }
@media (max-width: 759px) {
  .hero-pistas > .portada { min-height: 300px; position: relative; }
  .hero-fila .portada .texto { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; min-height: 0; margin: 0; border-radius: 0; padding: 14px 16px 40px; background: color-mix(in srgb, var(--verde) 92%, transparent); }
  .hero-fila .portada.alt .texto { background: color-mix(in srgb, var(--naranja) 94%, transparent); }
  .hero-fila .portada p { display: none; } .portada-lado { display: none; }
  .hero-ctrl { bottom: 6px; justify-content: flex-start; padding-left: 10px; }
}
@media (min-width: 760px) { .hero-pistas > .portada { min-height: 340px; } .hero-fila .portada .texto { min-height: 340px; width: min(340px, 48%); border-radius: 0; margin-left: 0; padding: 32px 34px 48px; } .portada-lado { min-height: 340px; border-radius: 18px; } .hero-fila { grid-template-columns: 1fr 300px; } }

/* Promociones bajo el banner */
.promos { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 6px; }
@media (min-width: 760px) { .promos { grid-template-columns: repeat(3, 1fr); } }
.promo-card { display: grid; grid-template-columns: 44% 1fr; min-height: 112px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; text-align: left; color: var(--tinta); transition: transform .18s var(--ease), box-shadow .18s; background: var(--verde-medio); }
.promo-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,30,20,.14); }
.promo-card img { width: 100%; height: 100%; object-fit: cover; } .promo-card.c1 { background: var(--naranja-suave); } .promo-card.c2 { background: var(--verde-suave); }
.pc-txt { display: grid; align-content: center; gap: 2px; padding: 12px 16px; } .pc-txt small { font-size: .8125rem; color: var(--tinta-2); } .pc-txt b { font-size: 1.75rem; line-height: 1; letter-spacing: -.03em; color: var(--verde); } .promo-card.c1 .pc-txt b { color: var(--naranja-osc); } .pc-txt em { font-style: normal; font-weight: 600; font-size: .9375rem; }

/* Selecciones: opciones, casillas, listas y orden */
.opcion { border: 1.5px solid var(--linea); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, background-color .15s, box-shadow .15s; align-items: center; }
.opcion:hover { border-color: var(--linea-fuerte); } .opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-suave); box-shadow: 0 0 0 1px var(--verde) inset; }
.opcion:has(input:focus-visible) { box-shadow: var(--foco); }
.opcion input[type=radio], .opcion input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--linea-fuerte); background: #fff; display: grid; place-content: center; transition: background-color .15s, border-color .15s; }
.opcion input[type=radio] { border-radius: 50%; } .opcion input[type=checkbox] { border-radius: 7px; }
.opcion input:checked { background: var(--verde); border-color: var(--verde); }
.opcion input[type=radio]:checked { box-shadow: inset 0 0 0 4px #fff; } .opcion input[type=radio]:checked { background: var(--verde); }
.opcion input[type=checkbox]:checked::before { content: ''; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.opcion input:focus-visible { outline: none; }
.campo select, .orden select, .herramientas select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346574e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center / 18px; }
.campo select:focus, .orden select:focus { outline: none; border-color: var(--verde); box-shadow: var(--foco); }
.campo input:focus, .campo textarea:focus { box-shadow: var(--foco); }
.orden { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.orden select { min-height: 44px; border: 1.5px solid var(--linea); border-radius: 12px; padding-left: 12px; font-weight: 600; color: var(--tinta); }
.paso { border-radius: 10px; }
.btn { border-radius: 12px; } .btn-primario { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(10,30,20,.2); }
.vista-sel button[aria-pressed=true] { box-shadow: none; }

/* Pie de página */
.pie { display: none; }
.pie2 { background: var(--verde-osc); color: var(--sobre-color-suave); margin-top: 36px; padding-bottom: 96px; }
.pie-benef { background: #fff; border-top: 1px solid var(--linea); } .pie-benef .contenedor { display: grid; gap: 4px; padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 760px) { .pie-benef .contenedor { grid-template-columns: repeat(3, 1fr); } }
.pie-benef div > div, .pie-benef .contenedor > div { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--verde); } .pie-benef .ico { width: 28px; height: 28px; } .pie-benef span { display: grid; color: var(--tinta); } .pie-benef small { color: var(--tinta-2); }
.pie-cols { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 20px; } @media (min-width: 760px) { .pie-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie2 h2 { margin: 0 0 8px; font-size: 1.0625rem; color: var(--sobre-color); } .pie2 p { margin: 0 0 6px; } .pie2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pie2 a, .pie2 button { color: var(--sobre-color-suave); background: none; border: 0; padding: 0; min-height: 36px; text-align: left; text-decoration: underline; text-underline-offset: 3px; } .pie2 a:hover, .pie2 button:hover { color: #fff; }
.pie-fin { border-top: 1px solid rgba(255,255,255,.15); font-size: .8125rem; padding: 14px 0; }
@media (min-width: 900px) { .pie2 { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .promo-card, .hero-puntos button::after { transition: none; } .promo-card:hover { transform: none; } .hero-pistas { scroll-behavior: auto; } }
.menu-cat button { color: var(--tinta); } .menu-cat b { color: var(--tinta); }
#prog { display: grid; width: 100%; } #prog select { width: 100%; min-height: 44px; border: 1.5px solid var(--linea); border-radius: 10px; padding-left: 10px; } .opcion > span { min-width: 0; flex: 1; }

/* ===== Versión 4: composición como la referencia (ancho, banda única, portada limpia) ===== */
.contenedor { max-width: 1480px; padding: 0 24px; }
.encabezado { background: var(--verde); border-bottom: 0; }
.enc-fila { padding: 14px 24px 10px; gap: 18px; }
.marca { order: 1; } .buscador { order: 2; flex: 1 1 auto; } .zona-btn { order: 3; } .acciones-enc { order: 4; } .mi-pedido { order: 5; } .carrito-btn { order: 6; }
.buscador input { height: 50px; border-radius: 12px; } .buscador svg { height: 50px; border-radius: 0 12px 12px 0; }
.zona-btn { max-width: 250px; } .zona-btn b { font-size: .9375rem; }
.cat-nav { background: var(--verde); box-shadow: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.cat-fila { gap: 4px; }
.menu-btn { border-right: 0; font-size: 1.0625rem; padding: 0 12px 0 0; } .menu-btn:hover, .menu-btn[aria-expanded=true] { background: transparent; text-decoration: underline; text-underline-offset: 6px; }
.chip, .chip.oferta { background: transparent; color: var(--sobre-color); border: 0; border-radius: 0; padding: 0 14px; min-height: 48px; font-weight: 500; font-size: 1rem; box-shadow: none; }
.chip:hover { background: transparent; text-decoration: underline; text-underline-offset: 6px; }
.chip[aria-pressed=true], .chip.oferta[aria-pressed=true] { background: transparent; color: #fff; font-weight: 700; position: relative; }
.chip[aria-pressed=true]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--naranja); }
.chip.oferta { color: var(--naranja); font-weight: 700; } .chip.oferta[aria-pressed=true] { color: var(--naranja); }
.cat-der { display: none; margin-left: auto; gap: 14px; align-items: center; flex: none; }
.cat-der button, .cat-der a { color: var(--sobre-color); background: none; border: 0; padding: 0; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; } .cat-der button:hover, .cat-der a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .cat-der { display: flex; } }
.franja-estado { background: var(--verde-suave); color: var(--verde); border-bottom: 1px solid var(--verde-medio); font-size: .875rem; font-weight: 500; }
.franja-estado.cerrado { background: var(--naranja-suave); color: var(--naranja-osc); border-color: color-mix(in srgb, var(--naranja) 35%, #fff); } .franja-estado.pausa { background: var(--error-suave); color: var(--error); }
.franja-estado button { color: inherit; font-weight: 700; }
.franja-estado .contenedor { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 899px) { .contenedor { padding: 0 16px; } .enc-fila { gap: 8px 6px; padding: 10px 16px 8px; } .marca { order: 1; } .acciones-enc { order: 2; } .carrito-btn { order: 3; } .buscador { order: 4; } .fila-zona { order: 5; } .cat-fila { gap: 0; } }

/* Banner de domicilio, grande como la referencia */
.promo-franja { background: var(--verde); border-radius: 16px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; font-size: clamp(1.125rem, 2.2vw, 1.75rem); margin-top: 18px; }
.promo-franja::before { content: 'Domicilio'; background: #fff; color: var(--verde); font-weight: 800; letter-spacing: -.02em; padding: 8px 22px; border-radius: 999px; font-size: clamp(1.25rem, 2.6vw, 2.125rem); }
.promo-franja span { display: block; } .promo-franja span:last-child:not(:first-child) { font-size: .75em; opacity: .9; }

/* Portada: foto limpia + panel de texto sin tapar con las flechas */
.hero-fila { grid-template-columns: 1fr; margin: 18px 0 14px; }
@media (min-width: 760px) { .hero-fila { grid-template-columns: 1fr 26%; } .hero-pistas > .portada { min-height: 400px; } .hero-fila .portada .texto { min-height: 400px; width: min(440px, 44%); padding: 36px 36px 56px 76px; border-radius: 0 28px 28px 0; margin-left: 0; justify-content: center; } .portada-lado { min-height: 400px; } }
.portada h1, .portada h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); } .portada p { font-size: 1rem; }
.hero-fila .portada .foto img { object-position: center; }
@media (min-width: 760px) { .hero-fila .portada .foto { left: 0; } .hero-fila .portada .foto img { object-position: 70% center; } }
.hero { background: var(--verde); }
.hero-flecha { background: rgba(255,255,255,.92); } .hero-flecha.ant { left: 14px; } .hero-flecha.sig { right: 14px; }
.hero-puntos { background: rgba(0,0,0,.35); } .hero-ctrl { bottom: 12px; }
@media (min-width: 1000px) { .categorias { gap: 2px; } }
@media (max-width: 759px) { .promo-franja { padding: 10px 14px; margin-top: 12px; gap: 2px 14px; font-size: .9375rem; } .promo-franja::before { display: none; } .hero-fila { margin-top: 12px; } }

/* ===== Pulido por secciones ===== */
/* Encabezado y menú */
.cat-nav { box-shadow: 0 6px 14px -8px rgba(5,30,18,.45); }
.hero-flecha svg, .rail svg { width: 22px; height: 22px; } .hero-pausa svg { width: 14px; height: 14px; }
.hero-pausa { display: grid; place-items: center; }
.rail { place-items: center; } @media (min-width: 900px) { .rail { display: grid; } }
/* Tarjetas: filas fijas para que los precios queden alineados entre tarjetas */
.bloque-precio { margin-top: auto; display: grid; grid-template-rows: 26px auto 1.3em; align-content: end; }
.bloque-precio .antes, .bloque-precio .precio { margin-top: 0; padding-top: 0; } .bloque-precio .antes { min-height: 26px; }
.estimado { font-size: .8125rem; line-height: 1.3; color: var(--tinta-2); }
.tarjeta .cuerpo { gap: 2px; } .pres { margin-bottom: 6px; }
.pc-txt b { font-size: 1.5rem; } .pc-txt em { margin-top: 2px; }
/* Información: cobertura, horarios y contacto */
.info { gap: 16px; margin-top: 32px; } .info section { padding: 20px 22px; border: 1px solid var(--linea); box-shadow: none; }
.info h2 { font-size: 1.125rem; margin-bottom: 12px; letter-spacing: -.01em; }
.zonas-lista li:last-child { border-bottom: 0; padding-bottom: 0; } .zonas-lista { gap: 10px; } .zonas-lista li { padding-bottom: 10px; }
.zonas-lista li > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.horarios { display: block; } .horarios > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.horarios dt { font-weight: 600; } .horarios dd { margin: 0; color: var(--tinta-2); }
.horarios .hoy { background: var(--verde-suave); } .horarios .hoy dd { color: var(--tinta); font-weight: 600; }
.hoy-tag { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--verde); color: var(--sobre-color); font-size: .6875rem; font-weight: 700; vertical-align: 1px; }
.contacto-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .contacto-acc .btn { flex: 1 1 130px; }
.info #contacto .ico { color: var(--verde); }
.aviso-demo { margin-top: 16px; }
/* Pie de página */
.pie-benef .contenedor > div { align-items: center; gap: 14px; } .pie-benef .bi { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--verde-suave); color: var(--verde); display: grid; place-items: center; } .pie-benef .bi .ico { width: 24px; height: 24px; }
.pie-benef b { font-size: 1rem; }
.pie-cols { padding-top: 36px; padding-bottom: 28px; gap: 28px; } .pie2 h2 { font-size: 1rem; margin-bottom: 12px; }
.pie2 ul { gap: 0; } .pie2 a, .pie2 button { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; } .pie2 a:hover, .pie2 button:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie2 p .ico { margin-right: 6px; color: var(--sobre-color); opacity: .8; }
.pie-fin { padding: 16px 0 18px; }
@media (max-width: 759px) { .info section { padding: 16px; } .horarios > div { grid-template-columns: 6.5rem 1fr; } }
.info #contacto { display: block; line-height: 2; } .info #contacto .ico { margin-right: 4px; }

/* ===== Menta + coral, franja de avisos y encabezado móvil compacto ===== */
.chip.oferta, .chip.oferta[aria-pressed=true] { background: var(--naranja); color: var(--tinta); border-radius: 999px; min-height: 36px; padding: 0 14px; margin: 6px 4px; font-weight: 700; }
.chip.oferta[aria-pressed=true]::after { display: none; } .chip.oferta[aria-pressed=true] { box-shadow: 0 0 0 2px #fff inset; }
.por-unidad { font-size: .75rem; color: var(--tinta-2); min-height: 1.1em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ticker { overflow: hidden; margin: 0 0 14px; border-radius: 10px; background: var(--verde-medio); color: var(--tinta); }
.ticker-pista { display: flex; width: max-content; animation: ticker 38s linear infinite; } .ticker:hover .ticker-pista { animation-play-state: paused; }
.ticker-pista > div { display: flex; flex: none; } .ticker-pista span { padding: 11px 28px; white-space: nowrap; font-weight: 600; font-size: .9375rem; } .ticker-pista span::before { content: '•'; margin-right: 28px; color: var(--verde); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-pista { animation: none; width: auto; flex-wrap: wrap; } .ticker-pista > div[aria-hidden] { display: none; } }
@media (max-width: 759px) {
  .enc-fila { flex-wrap: wrap; gap: 8px 8px; padding: 10px 16px 4px; }
  .marca { order: 1; flex: none; } .marca span { display: none; } .marca img { width: 42px; height: 42px; }
  .buscador { order: 2; flex: 1 1 0; min-width: 0; } .buscador input { height: 46px; font-size: .9375rem; padding-right: 50px; } .buscador svg { height: 46px; width: 46px; padding: 12px; }
  .acciones-enc { order: 3; } .carrito-btn { order: 4; }
  .fila-zona { order: 5; flex-basis: 100%; margin: 0; } .zona-btn { border: 0; background: transparent; min-height: 40px; padding: 0 2px; } .zona-btn span { display: flex; gap: 6px; align-items: baseline; } .zona-btn small { font-size: .875rem; } .zona-btn b { font-size: .875rem; }
  .mi-pedido { font-size: .8125rem; }
}
@media (max-width: 759px) { .zona-btn small { white-space: nowrap; } .zona-btn span { flex-wrap: nowrap; } .zona-btn b { min-width: 0; } }

/* Logo horizontal (por ejemplo «JR SUPER»): sin círculo, con su proporción y sin repetir el nombre */
img[data-logo][data-ancho] { border-radius: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; width: auto !important; height: 48px; max-width: 200px; object-fit: contain; }
.nb-marca:has(img[data-ancho]) > span, .pie-logo:has(img[data-ancho]) > b, .marca:has(img[data-ancho]) > span:not(.marca-txt) { display: none; }
