
:root {
  --verde: #06463f;
  --tinta: #172d26;
  --muted: #496052;
  --crema: #f8f6ef;
  --borde: #dbe1d6;
  --calido: #f5c477;
  --ancho: 70rem;
  color: var(--tinta);
  background: var(--crema);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}
body { min-width: 0; }
button, input, select, textarea { border-radius: .85rem; }
button { background: #fff; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a74a22;
  outline-offset: 3px;
}
button:disabled { opacity: .61; }
svg { width: 1.4rem; height: 1.4rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.04; margin: .55rem 0 1.15rem; letter-spacing: -.055em; color: var(--verde); }
h2 { font-size: clamp(1.25rem, 4.3vw, 1.75rem); letter-spacing: -.035em; }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
small { color: var(--muted); }
main, .barra > div { width: min(100% - 2rem, var(--ancho)); }
main { min-height: 70vh; padding: .65rem 0 calc(10.5rem + env(safe-area-inset-bottom)); }
main section:not(:empty) { border: 0; background: transparent; margin: 0; padding: 0; border-radius: 0; }
main .panel:not(:empty), .panel {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 1.15rem;
  padding: 1rem;
  margin: 0 0 .85rem;
}
.barra { background: transparent; color: var(--verde); padding: .55rem 0 0; }
.marca { display: inline-block; padding-bottom: .15rem; text-decoration: none; font-size: 2.65rem; line-height: 1.03; letter-spacing: -.11em; font-weight: 900; }
.marca span { color: #aa4c26; }
.franja-demo { z-index: 25; background: #f6dfac; }
#reiniciar:not(:empty) { margin-top: .7rem; }
#mensaje { position: fixed; z-index: 20; inset: auto 0 calc(7.8rem + env(safe-area-inset-bottom)); width: min(100% - 2rem, 29rem); margin: auto;
  color: #16443b; background: #e5efe9; border: 1px solid #8cad9c; box-shadow: 0 4px 18px #132a262c; }
#actualizar {
  position: fixed;
  z-index: 22;
  right: max(.75rem, (100vw - var(--ancho)) / 2);
  top: .75rem;
  box-shadow: 0 5px 20px #132a2630;
  background: #f5c477;
  color: #302312;
  border-color: #93591d;
}
.con-franja-demo #actualizar { top: 2.5rem; }
.encabezado-carta { display: flex; justify-content: space-between; align-items: center; gap: .35rem; }
.destino { display: flex; align-items: center; text-align: left; gap: .65rem; min-width: 0; padding: .4rem 0; background: transparent; border: 0; }
.destino svg { padding: .45rem; width: 2.55rem; height: 2.55rem; border-radius: 50%; background: #dceadf; }
.destino > span { display: grid; min-width: 0; }
.destino strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.horarios { position: relative; flex: none; }
.horarios details { margin: 0; }
.horarios summary { font-size: .73rem; padding-top: .85rem; }
.horarios .horario { position: absolute; right: 0; z-index: 4; min-width: 14rem; background: white; padding: .65rem; box-shadow: 0 8px 24px #172d2625; border-radius: .75rem; }
.buscador { position: relative; margin: .65rem 0 .9rem; }
.buscador svg { position: absolute; top: .85rem; left: .9rem; color: var(--verde); pointer-events: none; }
.buscador input { height: 3.15rem; padding-left: 2.8rem; border-color: #aebfb3; background: #fff; }
.buscador input::placeholder { color: #53665b; opacity: 1; }
.carrusel-marco { overflow: hidden; border-radius: 1.3rem; touch-action: pan-y; }
.promo { position: relative; isolation: isolate; overflow: hidden; min-height: 12rem; border-radius: 1.3rem; display: flex; align-items: center; background: #f6d69a; color: #2e2719; }
.promo-texto { position: relative; z-index: 1; padding: 1.1rem 1rem; width: 65%; }
.promo h2 { color: inherit; font-size: clamp(1.7rem, 6vw, 3rem); line-height: 1; margin: 0; letter-spacing: -.06em; }
.promo p { margin: .45rem 0 .65rem; line-height: 1.25; font-size: .88rem; }
.promo-accion { background: #fff9ea; border: 0; color: #2d3324; font-size: .85rem; padding-inline: .85rem; }
.promo img { position: absolute; right: -5%; top: 0; height: 100%; width: 58%; object-fit: cover; }
.promo-menu::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f6d69a 38%, transparent 75%); }
.promo-racha { background: #06463f; color: #fff9ea; }
.promo-cumple { background: #efd9cc; color: #4d2619; }
.promo > svg { position: absolute; right: 6%; width: 26%; height: auto; opacity: .67; transform: rotate(-12deg); }
.puntos { display: flex; justify-content: center; }
.punto { min-width: 2rem; min-height: 2.75rem; display: grid; place-items: center; background: transparent; border: 0; padding: 0; }
.punto::before { content: ""; border-radius: 1rem; background: #7a8f7f; width: .45rem; height: .45rem; }
.punto[aria-current]::before { background: var(--verde); width: 1.1rem; }
.categorias { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: thin; padding: .25rem .15rem .65rem; }
.categorias button { flex: 1 0 4.45rem; border: 0; padding: .25rem .1rem; background: transparent; font-size: .74rem; line-height: 1.12; }
.categorias button span { display: grid; place-items: center; gap: .45rem; }
.categorias i { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; border-radius: 1rem; background: #e8ede2; }
.categorias [aria-pressed="true"] i { color: white; background: var(--verde); }
.catalogo { display: grid; gap: 1.45rem; padding-top: .75rem; }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.tarjeta { position: relative; border-radius: 1.15rem; min-width: 0; background: #fff; box-shadow: 0 2px 5px #1935270c; }
.abrir-plato { position: relative; display: block; color: var(--tinta); text-align: left; width: 100%; height: 100%; border: 1px solid var(--borde); border-radius: inherit; overflow: hidden; padding: 0; }
.abrir-plato img, .foto-detalle { display: block; width: 100%; height: auto; aspect-ratio: 4/3; background: #e8ede2; object-fit: cover; }
.abrir-plato > span, .datos-plato { display: block; }
.datos-plato { padding: .62rem .65rem .55rem; }
.datos-plato strong { display: block; min-height: 2.4em; font-size: .95rem; line-height: 1.18; }
.datos-plato b { font-size: .94rem; color: var(--verde); }
.datos-plato i { color: var(--verde); background: #e7f0e5; border-radius: 50%; font-size: 1.2rem; font-style: normal; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; }
.etiqueta { position: absolute; top: .55rem; left: .45rem; border-radius: 1rem; padding: .3rem .45rem; background: #ffdfaa; color: #452913; font-size: .69rem; font-weight: 750; }
.icono { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; padding: 0; background: #fff9ef; color: var(--verde); border-radius: 50%; }
.corazon { position: absolute; top: .34rem; right: .34rem; box-shadow: 0 2px 6px #19292033; }
.icono[aria-pressed="true"] { color: #a13a22; }
.icono[aria-pressed="true"] svg { fill: currentColor; }
.skeleton { min-height: 10rem; aspect-ratio: 4/3; background: #e0e8dc; border-radius: 1.15rem; animation: pulso 1.3s ease-in-out infinite alternate; }
@keyframes pulso { to { background-color: #edf1e9; } }
.aparecer, .pantalla:not([hidden]), .promo { animation: aparecer .25s ease-out both; }
@keyframes aparecer { from { opacity: .58; transform: translateY(5px); } }
.promos-lista { display: grid; gap: .85rem; }
#navegacion { position: fixed; z-index: 10; inset: auto 0 0; display: flex; justify-content: center;
  background: #fffdf8; border-top: 1px solid var(--borde); box-shadow: 0 -6px 30px #1b3a2810;
  padding: .32rem .2rem calc(.32rem + env(safe-area-inset-bottom)); }
#navegacion a { width: min(20%, 8.25rem); min-height: 3.25rem; display: grid; place-content: center;
  justify-items: center; gap: .15rem; text-decoration: none; color: #3d554a; font-size: .72rem; font-weight: 650; border-radius: .8rem; }
#navegacion [aria-current] { color: var(--verde); font-weight: 800; }
#navegacion [aria-current] svg { background: #e1efe2; box-sizing: content-box; padding: .23rem .55rem; border-radius: 2rem; }
#ver-pedido { position: fixed; z-index: 11; display: flex; align-items: center; justify-content: center; gap: .6rem;
  bottom: calc(4.05rem + env(safe-area-inset-bottom)); left: 0; right: 0; width: min(100% - 2rem, 29rem); margin: auto;
  min-height: 3.25rem; border-radius: 1rem; box-shadow: 0 6px 18px #062d283a; }
.hoja { position: fixed; inset: auto 0 0; margin: 0 auto; border: 0; padding: 0; width: min(100%, 36rem); max-width: none;
  max-height: min(90dvh, 54rem); color: var(--tinta); background: transparent; overflow: auto; border-radius: 1.5rem 1.5rem 0 0; }
.hoja[open] { animation: subir .25s ease-out; }
.hoja::backdrop { background: #061e1ab5; }
.hoja-interior { background: #fffdf8; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); }
.asa { height: 1.55rem; display: grid; place-items: center; touch-action: none; cursor: grab; }
.asa::before { content: ""; width: 2.7rem; height: .24rem; border-radius: 1rem; background: #83968c; }
.hoja-titulo { margin-bottom: .45rem; }
.actualizar-hoja { position: sticky; top: 0; z-index: 1; width: 100%; margin-bottom: .45rem; background: #f5c477; color: #302312; }
.hoja .foto-detalle { max-height: 17rem; border-radius: 1rem; }
@keyframes subir { from { transform: translateY(35px); opacity: .65; } }
.detalle-plato, .selector-destino { display: grid; gap: .8rem; }
.extras { border: 1px solid var(--borde); padding: .5rem .85rem; border-radius: .85rem; }
.extras legend { color: var(--verde); font-weight: 750; }
.extras .casilla { min-height: 2.75rem; }
.compra-plato .principal { flex-grow: 1; }
.error-plato:empty { display: none; }
.regresar { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; }
.lineas li { gap: .45rem; }
.lineas li:last-child { border: 0; }
.lineas li small, .lineas li b, .lista-simple li small { display: block; }
.controles { gap: .42rem; }
.controles button { min-width: 2.75rem; }
.estimado { border-top: 1px solid var(--borde); padding-top: .75rem; }
.pasos { display: flex; gap: .35rem; padding: 0; list-style: none; flex-wrap: wrap; }
.pasos li { background: #e7ede3; border-radius: 2rem; font-size: .8rem; padding: .45rem .65rem; }
.pasos [aria-current] { background: var(--verde); color: white; font-weight: 700; }
.checkout-paso { display: grid; gap: .65rem; }
.checkout-paso .principal { margin-left: auto; }
#pedidos .pedido { background: white; border: 1px solid var(--palo); border-radius: 1.1rem; padding: .9rem 1rem; margin-bottom: .8rem; }
.carrusel[hidden] { display: none; }
.pedido-acciones { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lista-simple { margin: 0; padding: 0; list-style: none; }
.lista-simple li { padding: .4rem 0; overflow-wrap: anywhere; }
.lista-simple li + li { border-top: 1px solid var(--borde); }
.enlaces-perfil > a { display: block; width: fit-content; padding-block: .55rem; }
.racha-tarjeta { position: relative; border-radius: 1.3rem; padding: 1.25rem; margin-bottom: 1rem; color: #fff9ea; background: var(--verde); }
.racha-tarjeta h2 { color: inherit; margin: .65rem 0; }
.racha-tarjeta > svg { width: 2.3rem; height: 2.3rem; color: #ffd78b; }
.medidor { height: .75rem; margin-block: 1rem; background: #366761; border-radius: 1rem; overflow: hidden; }
.medidor > div { height: 100%; width: 0; border-radius: inherit; background: #ffd78b; transition: width .55s ease-out; }
.confeti { position: absolute; pointer-events: none; top: 35%; left: 50%; }
.confeti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; }
.linea-tiempo { list-style: none; margin: .8rem 0 0; padding: 0; }
.linea-tiempo li { border-left: 2px solid #ced9cd; position: relative; margin-left: .4rem; padding: .35rem 0 1.15rem 1.25rem; }
.linea-tiempo li:last-child { border-left-color: transparent; padding-bottom: .35rem; }
.linea-tiempo li::before { position: absolute; top: .5rem; left: -.5rem; content: ""; width: .75rem; height: .75rem;
  border: 2px solid #607f6d; border-radius: 50%; background: white; }
.linea-tiempo .completo::before, .linea-tiempo .actual::before { background: var(--verde); border-color: var(--verde); }
.linea-tiempo .completo { border-left-color: var(--verde); }
.linea-tiempo .actual::before { animation: onda 1.7s ease-out 3; box-shadow: 0 0 0 4px #d0e5d6; }
.linea-tiempo small { display: block; }
@keyframes onda { from { box-shadow: 0 0 0 1px #9dc7b3; } to { box-shadow: 0 0 0 8px #9dc7b300; } }
.mapa-direccion { border-radius: .85rem; overflow: hidden; max-height: 55dvh; }
@media (min-width: 46rem) {
  .promo { min-height: 15rem; }
  .promo-texto { padding-left: 2.15rem; }
  .promo img { width: 48%; right: 0; }
  .promo-menu::after { background: linear-gradient(90deg, #f6d69a 50%, transparent 77%); }
  .promo p { font-size: 1rem; }
  .categorias { overflow: visible; }
  .categorias button { font-size: .9rem; }
  .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .pantalla { max-width: 46rem; margin-inline: auto !important; }
  #promos { max-width: none; }
  .promos-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promos-lista .promo-texto { width: 80%; padding-left: 1.05rem; }
  .promos-lista h2 { font-size: clamp(1.3rem, 2.7vw, 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
