/* Ascua Brava — Plan Profesional.
   Identidad: carbón, crema y brasa. Tipografía gruesa (Bricolage Grotesque) e ilustraciones planas. */

:root {
  --carbon: #1c1512;
  --carbon-2: #2a201b;
  --crema: #fbf3e6;
  --crema-2: #f6e3c6;
  --papel: #fffaf2;
  --texto: #1c1512;
  --suave: #5e4f45;
  --linea: #ead9bf;
  --brasa: #c2410c;
  --brasa-honda: #9a3209;
  --brasa-viva: #e4572e;
  --mostaza: #f4b400;
  --verde: #1d7a45;
  --rojo: #b42318;
  --wa: #157a46;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radio: 20px;
  --gutter: 16px;
  --sombra: 0 1px 0 rgba(28, 21, 18, 0.04), 0 10px 30px -18px rgba(28, 21, 18, 0.35);
  --resorte: cubic-bezier(0.3, 1.4, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font: 400 1rem/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
body.tiene-pedido { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 2px; border-radius: 6px; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--carbon); color: var(--crema); border-radius: 10px;
}
.saltar:focus { top: 12px; }
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--resorte), box-shadow 0.2s;
}
.btn svg { flex: none; }
.btn:active { transform: scale(0.97); }
.btn--grande { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn--bloque { width: 100%; }
.btn--brasa { background: var(--brasa); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 65, 12, 0.8); }
.btn--brasa:hover { background: var(--brasa-honda); }
.btn--claro { background: rgba(255, 250, 242, 0.1); color: var(--crema); box-shadow: inset 0 0 0 1.5px rgba(255, 250, 242, 0.35); }
.btn--claro:hover { background: rgba(255, 250, 242, 0.18); }
.btn--linea { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn--linea:hover { box-shadow: inset 0 0 0 1.5px var(--suave); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0f6238; }
.btn__total { margin-left: auto; flex: none; }
.enlace { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brasa); text-underline-offset: 3px; }

/* ---------- Franja de demo ---------- */
.franja {
  margin: 0; padding: 9px var(--gutter);
  background: #0f0b09; color: #eadcc8;
  font-size: 0.75rem; letter-spacing: 0.04em; text-align: center;
}
.franja a { color: var(--mostaza); text-underline-offset: 2px; }

/* ---------- Portada ---------- */
.portada {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 70%, rgba(228, 87, 46, 0.45), transparent 60%),
    radial-gradient(60% 50% at 10% 0%, rgba(244, 180, 0, 0.12), transparent 70%),
    var(--carbon);
  color: var(--crema);
  padding: 14px var(--gutter) 0;
}
.portada__barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; }
.marca { display: flex; align-items: center; gap: 10px; margin: 0; }
.marca__icono { flex: none; }
.marca__texto { font: 800 1.15rem/1 var(--display); letter-spacing: -0.01em; }

.estado {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  margin: 0; padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.08);
  font-size: 0.82rem;
}
.estado__punto { width: 9px; height: 9px; border-radius: 50%; background: #9b8f86; flex: none; }
.estado__titulo { font-weight: 700; }
.estado__detalle { opacity: 0.85; }
.estado.es-abierto .estado__punto { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: latido 2.2s infinite; }
.estado.es-cerrado .estado__punto { background: #f87171; }
@keyframes latido { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.portada .estado__detalle { display: none; }

.portada__cuerpo { max-width: 1180px; margin: 0 auto; display: grid; gap: 4px; }
.portada__texto { padding-top: 34px; }
.portada__kicker {
  margin: 0 0 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mostaza);
}
.portada__titulo {
  margin: 0;
  font: 800 clamp(2.7rem, 12vw, 5rem)/0.92 var(--display);
  letter-spacing: -0.035em;
}
.portada__titulo span { color: var(--mostaza); }
.portada__frase { max-width: 34ch; margin: 16px 0 0; font-size: 1.05rem; color: #eadcc8; }
.portada__datos { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.portada__datos li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.22);
  font-size: 0.88rem;
}
.portada__datos svg { flex: none; color: var(--mostaza); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.portada__arte { position: relative; height: 230px; margin: 8px -8px 0; }
.portada__sol {
  position: absolute; left: 50%; bottom: -120px; width: 330px; height: 330px; margin-left: -165px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f08a3c, var(--brasa-viva) 45%, #8f2a0c 100%);
  box-shadow: 0 0 80px 10px rgba(228, 87, 46, 0.35);
}
.portada__plato { position: absolute; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); }
.portada__plato--1 { width: 150px; height: 150px; left: calc(50% - 75px); bottom: 34px; z-index: 2; }
.portada__plato--2 { width: 110px; height: 110px; left: calc(50% - 168px); bottom: 20px; animation-delay: -1.2s; }
.portada__plato--3 { width: 110px; height: 110px; left: calc(50% + 62px); bottom: 26px; animation-delay: -2.4s; }
.portada__plato--4 { width: 66px; height: 66px; left: calc(50% + 92px); bottom: 132px; animation-delay: -0.6s; }
@media (prefers-reduced-motion: no-preference) {
  .portada__plato { animation: flotar 5s ease-in-out infinite; }
}
@keyframes flotar { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* ---------- Categorías ---------- */
.categorias {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--crema) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linea);
}
.categorias__lista {
  display: flex; gap: 6px;
  max-width: 1180px; margin: 0 auto;
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.categorias__lista::-webkit-scrollbar { display: none; }
.categoria {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; white-space: nowrap; text-decoration: none;
  color: var(--suave);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.categoria:hover { color: var(--texto); }
.categoria.es-activa { background: var(--carbon); color: var(--crema); box-shadow: none; }

/* ---------- Carta ---------- */
.contenido { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.carta:focus { outline: none; }
.carta__nojs { padding: 40px 0; text-align: center; }
.seccion { padding-top: 34px; scroll-margin-top: 72px; }
.seccion__titulo { margin: 0; font: 800 1.75rem/1.05 var(--display); letter-spacing: -0.02em; }
.seccion__nota { margin: 6px 0 0; max-width: 56ch; color: var(--suave); font-size: 0.93rem; }
.seccion__grid { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }

.plato {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start;
  width: 100%; min-height: 120px;
  padding: 12px 56px 12px 12px;
  border: 0; border-radius: var(--radio);
  background: var(--papel);
  box-shadow: inset 0 0 0 1px var(--linea), var(--sombra);
  text-align: left; cursor: pointer;
  transition: transform 0.25s var(--resorte), box-shadow 0.25s;
}
.plato:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #dcc4a0, 0 16px 34px -20px rgba(28, 21, 18, 0.5); }
.plato:active { transform: scale(0.985); }
.plato__arte {
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 16px;
  background: var(--crema-2);
}
.plato__arte svg { width: 84px; height: 84px; transition: transform 0.35s var(--resorte); }
.plato:hover .plato__arte svg { transform: scale(1.08) rotate(-3deg); }
.plato__textos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plato__etiqueta {
  align-self: flex-start;
  padding: 3px 9px; border-radius: 999px;
  background: var(--mostaza); color: var(--carbon);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.plato__nombre { font: 800 1.12rem/1.2 var(--display); letter-spacing: -0.01em; }
.plato__desc { color: var(--suave); font-size: 0.88rem; line-height: 1.4; }
.plato__precio { margin-top: 4px; font-weight: 700; font-size: 1.02rem; color: var(--brasa); }
.plato__desde { font-weight: 500; font-size: 0.8rem; color: var(--suave); }
.plato__mas {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brasa); color: #fff;
  transition: transform 0.25s var(--resorte), background-color 0.2s;
}
.plato:hover .plato__mas { transform: rotate(90deg); background: var(--brasa-honda); }
.plato__cuenta {
  position: absolute; left: 4px; top: 4px;
  min-width: 26px; height: 26px; padding: 0 7px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--carbon); color: var(--mostaza);
  font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 0 0 3px var(--papel);
}
.plato.en-pedido { box-shadow: inset 0 0 0 2px var(--brasa), var(--sombra); }

/* ---------- Panel lateral (computador) ---------- */
.lateral { display: none; }

/* ---------- Información ---------- */
.info { max-width: 1180px; margin: 56px auto 0; padding: 0 var(--gutter); }
.info__kicker { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brasa); }
.info__titulo { margin: 6px 0 0; font: 800 1.9rem/1.05 var(--display); letter-spacing: -0.02em; }
.info__grid { display: grid; gap: 12px; margin-top: 18px; }
.info__bloque { padding: 18px; border-radius: var(--radio); background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea); }
.info__sub { margin: 0 0 8px; font: 800 1.15rem/1.2 var(--display); }
.estado--claro { background: var(--crema-2); color: var(--texto); }
.estado--claro.es-abierto .estado__punto { background: var(--verde); animation: none; }
.estado--claro.es-cerrado .estado__punto { background: var(--rojo); }
.horario { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.93rem; }
.horario th { text-align: left; font-weight: 500; text-transform: capitalize; color: var(--suave); padding: 7px 0; }
.horario td { text-align: right; font-weight: 500; padding: 7px 0; white-space: nowrap; }
.horario tr + tr { border-top: 1px dashed var(--linea); }
.horario tr.es-hoy th, .horario tr.es-hoy td { color: var(--texto); font-weight: 700; }
.horario tr.es-hoy th::after { content: " · hoy"; color: var(--brasa); }
.pasos { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.95rem; }
.pasos li::marker { font-weight: 700; color: var(--brasa); }
.info__pagos { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--linea); font-size: 0.88rem; color: var(--suave); }
.qr-bloque { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center; }
.qr { width: 116px; aspect-ratio: 1; border-radius: 14px; background: var(--mostaza); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-bloque__url { margin: 0 0 8px; font-size: 0.85rem; color: var(--suave); word-break: break-all; }
.qr-bloque__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

/* ---------- Pie ---------- */
.pie { margin-top: 48px; padding: 32px var(--gutter) 28px; background: var(--carbon); color: #eadcc8; text-align: center; }
.pie__marca { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 800 1.3rem/1 var(--display); color: var(--crema); }
.pie__nota { margin: 10px auto 0; max-width: 46ch; font-size: 0.85rem; }
.pie__firma { margin: 14px 0 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pie__firma a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mostaza); text-underline-offset: 3px; }

/* ---------- Barra del carrito (celular) ---------- */
.flotante {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.barra-carrito {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 520px; min-height: 60px; margin: 0 auto;
  padding: 0 20px 0 10px;
  border: 0; border-radius: 999px;
  background: var(--carbon); color: var(--crema);
  font-weight: 700; cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(28, 21, 18, 0.75);
  animation: subir 0.45s var(--resorte);
}
.barra-carrito[hidden] { display: none; }
.barra-carrito__cant {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px;
  background: var(--mostaza); color: var(--carbon); font-weight: 800;
}
.barra-carrito__texto { flex: 1; text-align: left; }
.barra-carrito__total { font-size: 1.05rem; }
@keyframes subir { from { transform: translateY(120%); } }

/* ---------- Hojas (diálogos) ---------- */
.hoja {
  width: 100%; max-width: 100%; max-height: 92svh; max-height: 92vh;
  margin: auto 0 0; padding: 0;
  border: 0; border-radius: 26px 26px 0 0;
  background: var(--papel); color: var(--texto);
  overflow: hidden;
}
@supports (height: 1svh) { .hoja { max-height: 92svh; } }
.hoja::backdrop { background: rgba(20, 14, 11, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hoja[open] { animation: hoja-sube 0.38s var(--resorte); }
@keyframes hoja-sube { from { transform: translateY(40%); opacity: 0; } }
.hoja__form { display: flex; flex-direction: column; max-height: inherit; }
.hoja__cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 8px; }
.hoja__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--linea); }
.hoja__titulo { margin: 0; font: 800 1.45rem/1.1 var(--display); letter-spacing: -0.02em; }
.hoja__desc { margin: 6px 0 0; color: var(--suave); }
.hoja__arte { position: relative; display: grid; place-items: center; height: 170px; background: var(--crema-2); flex: none; }
.hoja__arte svg { filter: drop-shadow(0 10px 12px rgba(28, 21, 18, 0.2)); }
.hoja[open] .hoja__arte svg { animation: entra-plato 0.5s var(--resorte) 0.05s both; }
@keyframes entra-plato { from { transform: scale(0.6) rotate(-10deg); opacity: 0; } }
.btn-cerrar {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--papel); color: var(--texto); cursor: pointer;
  box-shadow: var(--sombra);
}
.btn-cerrar--plano { position: static; background: var(--crema-2); box-shadow: none; flex: none; }
.hoja__pie {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: var(--papel);
}
.hoja__agregar { flex: 1; justify-content: space-between; }

.grupo { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.grupo[hidden] { display: none; }
.grupo__titulo { padding: 0; margin-bottom: 8px; font-weight: 700; }
.grupo__req { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--carbon); color: var(--crema); font-size: 0.7rem; font-weight: 700; vertical-align: 2px; }
.grupo__opc { font-weight: 400; font-size: 0.85rem; color: var(--suave); }
.opciones { display: grid; gap: 8px; }
.opcion {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 14px;
  border-radius: 14px; background: var(--crema); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transition: box-shadow 0.15s, background-color 0.15s;
}
.opcion input { width: 20px; height: 20px; margin: 0; accent-color: var(--brasa); }
.opcion:has(input:checked) { background: #fff1e4; box-shadow: inset 0 0 0 2px var(--brasa); }
.opcion__precio { font-weight: 700; }
.campo { display: grid; gap: 6px; margin-top: 14px; }
.campo label { font-weight: 700; font-size: 0.95rem; }
.campo input, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: 12px; background: var(--crema);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  font-size: 1rem;
}
.campo input:focus, .campo textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brasa); }
.campo textarea { resize: vertical; }

.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--crema-2); flex: none; }
.stepper button {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; font-size: 1.4rem; font-weight: 700; cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.stepper--sm button { width: 44px; height: 44px; font-size: 1.2rem; }

/* Pedido */
.hoja--pedido .hoja__cuerpo { padding-top: 8px; }
.aviso { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #fde8e4; color: #7a1a10; font-size: 0.92rem; }
.aviso p { margin: 0; }
.aviso p + p { margin-top: 4px; }
.pedido-vacio { display: grid; justify-items: center; gap: 6px; padding: 26px 0; text-align: center; color: var(--suave); }
.pedido-vacio p { margin: 0 0 8px; }
.lineas { margin: 0; padding: 0; list-style: none; }
.linea { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.linea__arte { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--crema-2); }
.linea__arte svg { width: 44px; height: 44px; }
.linea__info p { margin: 0; }
.linea__nombre { font-weight: 700; line-height: 1.3; }
.linea__detalle { font-size: 0.88rem; color: var(--suave); }
.linea__nota { font-style: italic; }
.linea__unit { font-size: 0.8rem; color: var(--suave); margin-top: 2px !important; }
.linea__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.linea__total { margin: 0; font-weight: 800; }
.linea--compacta { grid-template-columns: 1fr; gap: 8px; }
.linea--compacta .linea__lado { flex-direction: row; justify-content: space-between; align-items: center; }

.sugerencia { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--crema-2); }
.sugerencia__titulo { margin: 0 0 10px; font-weight: 700; }
.sugerencia__lista { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-bebida {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px 0 8px;
  border: 0; border-radius: 999px; background: var(--papel); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--linea);
  font-size: 0.9rem;
}
.chip-bebida svg { flex: none; }
.chip-bebida:hover { box-shadow: inset 0 0 0 1.5px var(--brasa); }

.bloque { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.bloque__titulo { padding: 0; margin-bottom: 10px; font: 800 1.1rem/1.2 var(--display); }
.tarjetas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tarjetas--pago { grid-template-columns: repeat(3, 1fr); }
#opciones-entrega > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.tarjeta-opcion { position: relative; cursor: pointer; }
.tarjeta-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tarjeta-opcion__cuerpo {
  display: grid; gap: 2px; justify-items: start;
  height: 100%; min-height: 92px; padding: 12px;
  border-radius: 14px; background: var(--crema);
  box-shadow: inset 0 0 0 1.5px var(--linea);
  transition: box-shadow 0.15s, background-color 0.15s, transform 0.2s var(--resorte);
}
.tarjeta-opcion__cuerpo svg { color: var(--brasa); margin-bottom: 4px; }
.tarjeta-opcion__nombre { font-weight: 700; line-height: 1.2; }
.tarjeta-opcion__sub { font-size: 0.8rem; color: var(--suave); line-height: 1.25; }
.tarjeta-opcion input:checked + .tarjeta-opcion__cuerpo { background: #fff1e4; box-shadow: inset 0 0 0 2px var(--brasa); }
.tarjeta-opcion input:focus-visible + .tarjeta-opcion__cuerpo { outline: 3px solid var(--mostaza); outline-offset: 2px; }
.tarjeta-opcion:active .tarjeta-opcion__cuerpo { transform: scale(0.97); }
.subcampos[hidden] { display: none; }
.cambio { margin: 8px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--verde); }
.cambio:empty { display: none; }
.cambio--error { color: var(--rojo); }
.transferencia { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--crema); box-shadow: inset 0 0 0 1.5px var(--linea); }
.transferencia__ejemplo {
  margin: 0 0 10px; padding: 6px 10px; border-radius: 10px;
  border: 1.5px dashed #b07d00; background: #fff4cf; color: #5c4100;
  font-size: 0.8rem; font-weight: 700;
}
.transferencia__datos { display: grid; gap: 8px; margin: 0; }
.transferencia__datos div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.transferencia__datos dt { color: var(--suave); font-size: 0.88rem; }
.transferencia__datos dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; text-align: right; }
.btn-copiar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--carbon); color: var(--crema); font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.transferencia__nota { margin: 10px 0 0; font-size: 0.85rem; color: var(--suave); }
.resumen { margin: 22px 0 10px; padding: 14px; border-radius: 14px; background: var(--crema-2); }
.resumen__fila { display: flex; justify-content: space-between; padding: 3px 0; }
.resumen__fila[hidden] { display: none; }
.resumen__total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #d8bf98; font-size: 1.15rem; }
.hoja__pie--pedido[hidden] { display: none; }

.btn-vaciar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 12px auto 0; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--suave); font-size: 0.88rem; font-weight: 700; cursor: pointer;
  transition: color 0.2s;
}
.btn-vaciar:hover { color: var(--rojo); }

/* ---------- Avisos y vuelo ---------- */
.toast {
  position: fixed; inset: auto; margin: 0; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60;
  border: 0; overflow: visible;
  display: flex; align-items: center; gap: 6px;
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--carbon); color: var(--crema); font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--resorte);
}
.toast.es-visible { opacity: 1; transform: translate(-50%, 0); }
.toast:not(:popover-open):not(.en-dialogo) { display: none; }
.toast__accion {
  flex: none; min-height: 44px; padding: 0 8px;
  border: 0; background: transparent;
  color: var(--mostaza); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; pointer-events: auto;
}
.vuelo { position: fixed; z-index: 70; width: 72px; height: 72px; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.vuelo svg { display: block; }

/* ---------- Tamaños ---------- */
@media (min-width: 400px) {
  .portada__arte { height: 250px; }
  .portada__plato--4 { width: 76px; height: 76px; left: calc(50% + 110px); }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .seccion__grid { grid-template-columns: repeat(2, 1fr); }
  .info__grid { grid-template-columns: repeat(2, 1fr); }
  .qr-bloque { grid-column: 1 / -1; }
  .hoja {
    width: min(520px, calc(100% - 32px)); margin: auto;
    border-radius: 26px;
    max-height: min(86vh, 820px);
  }
  .toast { bottom: 100px; }
}

@media (min-width: 900px) {
  .portada { padding-bottom: 0; }
  .portada__cuerpo { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .portada__texto { padding: 56px 0 56px; }
  .portada__arte { height: 380px; margin: 0; }
  .portada__sol { width: 440px; height: 440px; margin-left: -220px; bottom: -150px; }
  .portada__plato--1 { width: 210px; height: 210px; left: calc(50% - 105px); bottom: 60px; }
  .portada__plato--2 { width: 150px; height: 150px; left: calc(50% - 230px); bottom: 36px; }
  .portada__plato--3 { width: 150px; height: 150px; left: calc(50% + 80px); bottom: 40px; }
  .portada__plato--4 { width: 100px; height: 100px; left: calc(50% + 150px); bottom: 190px; }
  .portada .estado__detalle { display: inline; }
  .categorias__lista { justify-content: flex-start; }
  .info__grid { grid-template-columns: repeat(3, 1fr); }
  .qr-bloque { grid-column: auto; grid-template-columns: 1fr; justify-items: start; }
  .qr { width: 132px; }
}

@media (min-width: 1000px) {
  .contenido { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
  .lateral { display: block; position: sticky; top: 84px; padding-top: 34px; }
  .lateral__caja { padding: 20px; border-radius: var(--radio); background: var(--papel); box-shadow: inset 0 0 0 1px var(--linea), var(--sombra); }
  .lateral__titulo { margin: 0 0 6px; font: 800 1.35rem/1.1 var(--display); }
  .lateral__vacio { display: grid; justify-items: center; gap: 4px; padding: 18px 0 8px; text-align: center; color: var(--suave); font-size: 0.92rem; }
  .lateral__vacio[hidden] { display: none; }
  .lateral__vacio p { margin: 0; }
  .lateral__lista { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; }
  .lateral__lista .linea { padding: 12px 0; }
  .lateral__pie { padding-top: 14px; }
  .lateral__total { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 1.1rem; }
  .flotante { display: none; }
  body.tiene-pedido { padding-bottom: 0; }
  .toast { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
