:root {
  /* Rojo del logo (#FE0000) llevado a #D50000 para que el texto blanco
     sobre rojo y el rojo sobre papel pasen contraste AA (5.5 y 5.1). */
  --rojo: #D50000;
  --rojo-osc: #A00000;
  --rojo-suave: #FFEBE8;
  --negro: #0B0B0B;
  --tinta: #211A16;
  --gris: #6B5F57;
  --papel: #FBF7F1;
  --kraft: #F0E6D6;
  --linea: #E3D7C5;
  --blanco: #FFFFFF;
  --mostaza: #E2A11B;
  --wa: #1DA851;

  --titulo: "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, sans-serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r: 14px;
  --sombra: 0 1px 2px rgba(33, 26, 22, .06), 0 6px 20px rgba(33, 26, 22, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(128px + var(--franja-alto, 0px)); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 16px/1.4 var(--texto);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(96px + var(--seguro-abajo));
}
body.bloqueado { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rojo) 55%, transparent); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px;
  max-width: 640px; margin: 0 auto;
}
.top__marca { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.top__txt { min-width: 0; }
.logo {
  width: 52px; height: 52px; flex: none; display: block; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
body.con-franja .top { padding-top: 12px; }

/* ---------- Anuncio de la promo (jueves a martes) ---------- */
.franja {
  position: sticky; top: 0; z-index: 25; width: 100%; border: 0; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 14px 9px;
  background: var(--negro); color: var(--blanco); text-align: left;
  font-size: 14px; line-height: 1.3; box-shadow: inset 0 -3px 0 var(--rojo);
}
.franja__txt { max-width: 560px; }
.franja__txt strong { color: #FF4D4D; font-family: var(--titulo); font-weight: 800; letter-spacing: .03em; }
.franja__cuando {
  white-space: nowrap; font-weight: 800; background: var(--rojo); color: var(--blanco);
  padding: 2px 7px; border-radius: 999px; margin-left: 2px;
}
.franja__ver { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); }
.franja__ver svg { transform: rotate(180deg); width: 18px; height: 18px; }
.franja:active { background: #1E1E1E; }

/* ---------- 15 % por pedir en la web ---------- */
.dcto-web {
  max-width: 608px; margin: 2px auto 8px; margin-inline: 16px; padding: 9px 12px;
  display: flex; align-items: center; gap: 10px; border-radius: 12px;
  background: var(--rojo-suave); border: 1px dashed #F2A39B; font-size: 14px; line-height: 1.3;
}
@media (min-width: 640px) { .dcto-web { margin-inline: auto; } }
.dcto-web__sello {
  flex: none; font: 800 17px/1 var(--titulo); color: var(--blanco); background: var(--rojo);
  padding: 7px 8px 6px; border-radius: 8px; transform: rotate(-4deg);
}
.dcto-web small { display: block; color: var(--gris); font-size: 12px; }
.tachado { text-decoration: line-through; color: var(--gris); font-weight: 500; }
.precio-web { color: var(--rojo); font-weight: 800; }
.top__lugar { margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__estado { margin: 2px 0 0; font-size: 13px; color: var(--gris); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--gris); display: inline-block; }
.punto--on { background: var(--wa); }
.top__estado--cerrado { color: var(--rojo); font-weight: 600; }
.top__estado--cerrado .punto { background: var(--rojo); }

.icono-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea);
  background: var(--blanco); display: grid; place-items: center; flex: none;
  transition: transform .15s var(--ease), background .15s;
}
.icono-btn:active { transform: scale(.92); background: var(--kraft); }

/* ---------- Promo del miércoles ---------- */
.promo {
  max-width: 640px; margin: 6px auto 4px; padding: 16px 0 16px 16px;
  background: var(--tinta); color: var(--blanco); border-radius: 0;
}
@media (min-width: 660px) { .promo { border-radius: 18px; } }
.promo__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-right: 16px; }
.sello {
  display: inline-block; font: 800 12px/1 var(--titulo); text-transform: uppercase; letter-spacing: .08em;
  background: var(--mostaza); color: var(--tinta); padding: 5px 8px 4px; border-radius: 4px; transform: rotate(-2deg);
}
.promo__titulo { margin: 8px 0 0; font: 800 26px/1 var(--titulo); text-transform: uppercase; letter-spacing: .01em; }
.promo__reloj { text-align: right; }
.promo__reloj-et { display: block; font-size: 12px; color: #CDBFB3; }
.promo__reloj-num { font: 700 22px/1.1 var(--texto); font-variant-numeric: tabular-nums; }
.promo__combos {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 2px 0; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promo__combos::-webkit-scrollbar { display: none; }
.combo {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; background: #2E2520; border-radius: var(--r);
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; align-items: center;
}
.combo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.combo h3 { margin: 0; font-size: 16px; }
.combo p { margin: 2px 0 8px; font-size: 13px; color: #D9CCBF; line-height: 1.3; }
.combo__fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.combo__precio { font-weight: 800; font-size: 18px; }
.combo .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- Buscador y chips ---------- */
.barra {
  position: sticky; top: var(--franja-alto, 0px); z-index: 20; background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  padding: 10px 0 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.barra.con-borde { border-bottom-color: var(--linea); }
.buscador {
  display: flex; align-items: center; gap: 8px; margin: 0 auto; max-width: 608px;
  margin-inline: 16px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: 0 6px 0 12px;
  min-height: 46px;
}
@media (min-width: 640px) { .buscador { margin-inline: auto; } }
.buscador:focus-within { border-color: var(--tinta); }
.buscador__ic { color: var(--gris); display: grid; }
.buscador input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 44px; font-size: 16px; }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador__x { border: 0; background: transparent; width: 36px; height: 36px; display: grid; place-items: center; color: var(--gris); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 10px; max-width: 640px; margin: 0 auto;
  scrollbar-width: none; scroll-behavior: smooth;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta);
  border-radius: 999px; padding: 0 16px; min-height: 38px; font-size: 14px; font-weight: 600;
  transition: background .2s var(--ease), color .2s, border-color .2s;
}
.chip[aria-current="true"] { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }

/* ---------- Carta ---------- */
.carta { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.seccion { padding-top: 14px; }
.seccion__titulo { font: 800 22px/1.1 var(--titulo); text-transform: uppercase; margin: 6px 0 2px; letter-spacing: .01em; }
.seccion__nota { margin: 0 0 6px; color: var(--gris); font-size: 13px; }
.item {
  width: 100%; text-align: left; border: 0; background: transparent; padding: 14px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  border-bottom: 1px solid var(--linea); transition: background .15s;
}
.item:active { background: color-mix(in srgb, var(--kraft) 55%, transparent); }
.item__nombre { font-weight: 700; font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etq { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rojo); background: var(--rojo-suave); padding: 3px 6px; border-radius: 4px; }
.item__ing {
  margin: 4px 0 8px; color: var(--gris); font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item__precio { font-weight: 700; font-size: 15px; }
.item__precio small { font-weight: 500; color: var(--gris); font-size: 13px; }
.item__precio .tachado { font-size: 13px; margin-right: 4px; }

/* Tarjeta de la promo al inicio de la carta (jueves a martes) */
.promo-tarj {
  width: 100%; margin: 14px 0 2px; padding: 14px; border: 0; border-radius: 16px; text-align: left;
  display: grid; grid-template-columns: 1fr 92px; gap: 12px; align-items: center;
  background: var(--negro); color: var(--blanco); box-shadow: inset 0 0 0 2px var(--rojo);
}
.promo-tarj:active { transform: scale(.99); }
.promo-tarj__tit { display: block; margin: 9px 0 4px; font: 800 24px/1 var(--titulo); text-transform: uppercase; color: #FF4D4D; }
.promo-tarj__txt { display: block; font-size: 14px; line-height: 1.35; color: #E6DCD3; }
.promo-tarj__pie { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.promo-tarj__ver { font-weight: 800; font-size: 14px; color: var(--blanco); text-decoration: underline; text-underline-offset: 3px; }
.promo-tarj img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rojo); }
.sello--rojo { background: var(--rojo); color: var(--blanco); }

/* Vista previa de los combos (no se piden hasta el miércoles) */
.vista-promo h2 { font: 800 28px/1 var(--titulo); text-transform: uppercase; margin: 10px 48px 6px 0; }
.vista-promo > p { margin: 0 0 4px; color: var(--gris); font-size: 14px; }
.vista-promo .combo { background: var(--negro); color: var(--blanco); max-width: none; margin-top: 10px; }
.combo__cuando { font-size: 12px; font-weight: 700; color: var(--negro); background: var(--mostaza); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.btn--ancho { flex: 1; }
.item__foto { position: relative; width: 104px; height: 104px; }
.item__foto img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--kraft); display: block;
}
.item__mas {
  position: absolute; right: -4px; bottom: -4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blanco); color: var(--rojo); display: grid; place-items: center;
  box-shadow: var(--sombra); border: 1px solid var(--linea);
}
.item__mas--solo { position: static; }
.vacio { text-align: center; color: var(--gris); padding: 40px 24px; max-width: 640px; margin: 0 auto; }

.pie { max-width: 640px; margin: 28px auto 0; padding: 0 16px; color: var(--gris); font-size: 14px; text-align: center; }
.pie a { color: var(--tinta); }
.pie__redes { display: flex; justify-content: center; gap: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 14px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--primario { background: var(--rojo); color: var(--blanco); }
.btn--primario:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sec { background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); }
.btn--claro { background: var(--blanco); color: var(--tinta); }
.btn--wa { background: var(--wa); color: var(--blanco); }
.btn--flex { flex: 1; justify-content: space-between; }
.btn.hecho { background: var(--tinta); }

/* ---------- Carrito flotante ---------- */
.carrito-flot {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + var(--seguro-abajo));
  max-width: 616px; margin: 0 auto; min-height: 58px; border: 0; border-radius: 16px;
  background: var(--rojo); color: var(--blanco); display: flex; align-items: center; gap: 12px; padding: 0 18px 0 14px;
  box-shadow: 0 10px 30px rgba(213, 0, 0, .32); font-weight: 700;
  animation: subir .35s var(--ease);
}
.carrito-flot__ic { position: relative; display: grid; }
.carrito-flot__txt { flex: 1; text-align: left; }
.carrito-flot__total { font-variant-numeric: tabular-nums; }
.badge {
  position: absolute; top: -9px; right: -11px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--blanco); color: var(--rojo); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.rebota { animation: rebote .5s var(--ease); }
@keyframes rebote { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 55% { transform: scale(.9); } 80% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes subir { from { transform: translateY(120%); } to { transform: translateY(0); } }
.vuela {
  position: fixed; z-index: 60; border-radius: 50%; object-fit: cover; pointer-events: none;
  transition: transform .6s cubic-bezier(.5, -0.3, .7, 1), opacity .6s ease-in;
}

/* ---------- Hojas inferiores ---------- */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 10, .45); opacity: 0; transition: opacity .25s; }
.velo.abierto { opacity: 1; }
.hoja {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--papel); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.hoja.abierta { transform: translateY(0); }
.hoja--alta { height: 92vh; height: 92dvh; }
.hoja__asa { height: 22px; flex: none; display: grid; place-items: center; touch-action: none; }
.hoja__asa::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--linea); }
.hoja__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: var(--sombra); }
.hoja__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 16px; flex: 1; }
.hoja__pie {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + var(--seguro-abajo));
  border-top: 1px solid var(--linea); background: var(--papel);
}
.hoja__pie--col { flex-direction: column; align-items: stretch; gap: 10px; }

/* Ficha de producto */
.hp-foto { margin: 0 -18px 14px; height: 200px; overflow: hidden; background: var(--kraft); position: relative; display: grid; place-items: center; }
.hp-foto__fondo { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.2); opacity: .55; }
.hp-foto img { position: relative; width: 172px; height: 172px; object-fit: cover; border-radius: 50%; box-shadow: 0 12px 30px rgba(33, 26, 22, .28); }
.hp-foto--nada { height: 12px; background: transparent; }
.hp-nombre { font: 800 28px/1.05 var(--titulo); text-transform: uppercase; margin: 0 0 6px; padding-right: 48px; }
.hp-ing { color: var(--gris); margin: 0 0 6px; font-size: 15px; }
.grupo { margin: 18px 0 0; border: 0; padding: 0; }
.grupo legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; display: flex; gap: 8px; align-items: center; }
.grupo legend small { font-weight: 500; color: var(--gris); }
.opcion {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; margin-bottom: 8px;
  background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opcion:has(input:checked) { border-color: var(--tinta); background: color-mix(in srgb, var(--kraft) 35%, var(--blanco)); }
.opcion input { appearance: none; width: 20px; height: 20px; border: 2px solid var(--linea); border-radius: 50%; margin: 0; flex: none; display: grid; place-items: center; }
.opcion input[type=checkbox] { border-radius: 6px; }
.opcion input:checked { border-color: var(--rojo); background: var(--rojo); box-shadow: inset 0 0 0 3px var(--blanco); }
.opcion input[type=checkbox]:checked { box-shadow: none; background: var(--rojo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.opcion__txt { flex: 1; }
.opcion__precio { font-weight: 700; font-variant-numeric: tabular-nums; }
.chips-quitar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-q { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); font-size: 14px; font-weight: 600; }
.chip-q[aria-pressed="true"] { border-color: var(--rojo); color: var(--rojo); background: var(--rojo-suave); text-decoration: line-through; }
.aviso { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--kraft); font-size: 14px; color: var(--tinta); }
.aviso--cerrado { margin: 0 0 14px; background: var(--rojo-suave); border: 1px solid #F2A39B; }
.billetera { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--linea); }
.billetera p { margin: 0; min-width: 0; }
.billetera span { display: block; font-size: 13px; color: var(--gris); }
.billetera strong { display: block; font-size: 22px; letter-spacing: .02em; }
.billetera small { display: block; font-size: 13px; color: var(--gris); }
.billetera .btn { flex: none; min-height: 44px; padding: 0 14px; }

.cantidad { display: flex; align-items: center; border: 1px solid var(--linea); border-radius: 14px; background: var(--blanco); height: 52px; }
.cantidad button { width: 46px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--tinta); }
.cantidad button:disabled { color: var(--linea); }
.cantidad output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cantidad--mini { height: 40px; border-radius: 12px; }
.cantidad--mini button { width: 40px; }

/* Pedido */
.pedido__cab { display: flex; align-items: center; gap: 10px; padding: 0 12px 4px; }
.pedido__cab h2 { flex: 1; margin: 0; font: 800 22px/1 var(--titulo); text-transform: uppercase; text-align: center; }
.pedido__cab .icono-btn[aria-hidden="true"] { visibility: hidden; }
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 18px 12px; margin: 0; counter-reset: p; }
.pasos li { font-size: 12px; color: var(--gris); text-align: center; position: relative; padding-top: 10px; }
.pasos li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--linea); transition: background .3s; }
.pasos li.hecho::before, .pasos li.actual::before { background: var(--rojo); }
.pasos li.actual { color: var(--tinta); font-weight: 700; }

.linea { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); align-items: start; animation: entra .25s var(--ease); }
.linea.sale { animation: sale .25s var(--ease) forwards; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
@keyframes sale { to { opacity: 0; transform: translateX(-30px); height: 0; padding: 0; } }
.linea img, .linea .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--kraft); }
.ph { display: grid; place-items: center; color: var(--gris); }
.linea__tit { font-weight: 700; margin: 0; }
.linea__det { margin: 2px 0 8px; color: var(--gris); font-size: 13px; }
.linea__fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.linea__monto { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.linea__monto .tachado { display: block; font-size: 12px; }
.res-fila--dcto, .res-fila--dcto b { color: var(--rojo); font-weight: 700; }
.btn__monto .tachado { color: rgba(255,255,255,.75); font-size: 13px; margin-right: 6px; }
.borrar { border: 0; background: transparent; color: var(--gris); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.borrar:active { color: var(--rojo); background: var(--rojo-suave); }

.interruptor { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; cursor: pointer; }
.interruptor__txt { flex: 1; }
.interruptor__txt small { display: block; color: var(--gris); font-size: 13px; }
.interruptor input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--linea); position: relative; transition: background .2s; margin: 0; flex: none; }
.interruptor input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.interruptor input:checked { background: var(--rojo); }
.interruptor input:checked::after { transform: translateX(20px); }
.interruptor input:disabled { opacity: .7; }

.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmento label { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1.5px solid var(--linea); border-radius: 14px; background: var(--blanco); cursor: pointer; transition: border-color .15s; }
.segmento label:has(input:checked) { border-color: var(--rojo); background: var(--rojo-suave); }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento strong { display: flex; gap: 8px; align-items: center; }
.segmento small { color: var(--gris); font-size: 13px; }

.campo { display: block; margin-top: 14px; }
.campo span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.campo span small { font-weight: 500; color: var(--gris); }
.campo input, .campo textarea {
  width: 100%; min-height: 50px; border: 1.5px solid var(--linea); border-radius: 12px; padding: 12px 14px;
  background: var(--blanco); font-size: 16px; outline: 0; transition: border-color .15s;
}
.campo textarea { min-height: 76px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); }
.campo.error input, .campo.error textarea { border-color: var(--rojo); }
.campo__err { color: var(--rojo); font-size: 13px; margin-top: 4px; display: block; }

.res-bloque { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 4px 14px; margin-top: 12px; }
.res-bloque h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 12px 0 4px; }
.res-fila { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--linea); font-size: 15px; }
.res-fila:last-child { border-bottom: 0; }
.res-fila small { display: block; color: var(--gris); font-size: 13px; }
.res-fila b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-fila--total { font-size: 18px; font-weight: 800; }
.editar { border: 0; background: transparent; color: var(--rojo); font-weight: 700; font-size: 14px; padding: 8px 0; }

.pd-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.pd-total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pd-total small { color: var(--gris); display: block; font-size: 12px; }

.enviado { text-align: center; padding: 24px 8px; }
.enviado .ic-grande { width: 64px; height: 64px; border-radius: 50%; background: var(--rojo-suave); color: var(--rojo); display: grid; place-items: center; margin: 0 auto 12px; }

/* Info */
.info h2 { font: 800 26px/1 var(--titulo); text-transform: uppercase; margin: 6px 0 12px; }
.info-fila { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.info-fila p { margin: 0; }
.info-fila small { color: var(--gris); display: block; }
.info-fila a { color: var(--tinta); font-weight: 700; }

/* Toast */
.toast {
  text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  position: fixed; z-index: 70; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -16px);
  background: var(--tinta); color: var(--blanco); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Los montos nunca se parten («S/» arriba y el número abajo) */
.monto-final, .tachado, .btn__monto, .pd-total b, .linea__monto, .opcion__precio, .res-fila b { white-space: nowrap; }
.btn__monto { flex: none; }
.pd-total > span { min-width: 0; }
