/* Carta QR · Nahuel Sushi & Pizzas. Colores medidos de sus dos logos (ver FUENTES.md). */
@font-face { font-family: "Lobster"; src: url("fonts/lobster-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --negro: #050404;
  --carbon: #131110;
  --carbon-2: #1C1917;
  --crema: #F1E6D7;
  --crema-suave: rgba(241, 230, 215, .76);
  --linea: rgba(241, 230, 215, .16);
  --rojo: #C31A2D;
  --rojo-hondo: #8E1020;
  --amarillo: #FEAD06;
  --sobre-rojo: #FFF8EE;
  --verde: #62D48A;
  --marca: "Lobster", "Brush Script MT", cursive;
  --texto: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.con-hoja { overflow: hidden; }
body { margin: 0; background: var(--negro); color: var(--crema); font: 400 16px/1.5 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }

.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--crema); color: var(--negro); padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.saltar:focus { top: 12px; }

/* ---------- Portada ---------- */
.portada { position: relative; overflow: hidden; background: #020202; padding: 16px 20px 26px; text-align: center; isolation: isolate; }
.portada::before { content: ""; position: absolute; inset: auto -30% -34% -30%; height: 62%; background: radial-gradient(closest-side, rgba(195, 26, 45, .36), rgba(195, 26, 45, 0)); z-index: -1; }
.portada__mancha { display: none; position: absolute; z-index: -1; fill: var(--rojo); opacity: .12; }
.portada__caja { max-width: var(--ancho); margin: 0 auto; }
.estado { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: rgba(241, 230, 215, .08); border: 1px solid var(--linea); font-size: 14px; line-height: 1.2; }
.estado i { width: 9px; height: 9px; border-radius: 50%; background: var(--crema-suave); flex: none; }
.estado.es-abierto i { background: var(--verde); box-shadow: 0 0 0 4px rgba(98, 212, 138, .2); }
.estado.es-cerrado i { background: var(--amarillo); }
.estado strong { font-weight: 600; }
.estado span { color: var(--crema-suave); }
.portada__logo { width: 184px; margin: 10px auto 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
.portada h1 { font: 400 44px/1.02 var(--marca); letter-spacing: .2px; position: relative; display: inline-block; padding-bottom: 14px; }
.portada h1::after { content: ""; position: absolute; left: 8%; right: 4%; bottom: 0; height: 9px; background: var(--rojo); border-radius: 60% 40% 70% 30% / 100% 100% 60% 60%; transform: rotate(-1.4deg); }
.portada__lema { margin-top: 14px; font-size: 16px; font-weight: 500; }
.portada__lema span { color: var(--amarillo); font-weight: 600; white-space: nowrap; }
.portada__lema span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--amarillo); margin: 0 9px 3px 7px; }
.portada__bajada { margin: 10px auto 0; max-width: 34ch; color: var(--crema-suave); font-size: 15.5px; }

/* ---------- Cómo pedir ---------- */
.pasos { margin: 18px 16px 6px; padding: 20px 18px 18px; background: var(--carbon); border: 1px solid var(--linea); border-radius: 22px; max-width: var(--ancho); }
.pasos h2 { font: 400 27px/1.1 var(--marca); margin-bottom: 14px; }
.pasos ol { display: grid; gap: 14px; }
.pasos li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.pasos li b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: var(--negro); font: 400 22px/1 var(--marca); padding-top: 1px; }
.pasos li:last-child b { background: var(--rojo); color: var(--sobre-rojo); }
.pasos li strong { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.pasos li span { display: block; color: var(--crema-suave); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.pasos__aviso { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(254, 173, 6, .1); border: 1px solid rgba(254, 173, 6, .32); font-size: 14.5px; color: var(--crema); display: flex; gap: 10px; align-items: center; }
.pasos__aviso::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); flex: none; }

/* ---------- Navegación por secciones ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 4, 4, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); margin-top: 12px; }
.nav__lista { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: var(--ancho); margin: 0 auto; }
.nav__lista::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--linea); text-decoration: none; font-weight: 500; font-size: 15px; color: var(--crema); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.nav a.activo { background: var(--crema); color: var(--negro); border-color: var(--crema); font-weight: 600; }
.nav a small { font-size: 12px; font-weight: 600; color: var(--amarillo); }
.nav a.activo small { color: #6B4700; }

/* ---------- Carta ---------- */
main { max-width: var(--ancho); margin: 0 auto; outline: none; }
.cargando, .falla { padding: 40px 20px; text-align: center; color: var(--crema-suave); }
.seccion { padding: 30px 16px 6px; scroll-margin-top: 66px; }
.seccion__cabeza { margin-bottom: 16px; }
.seccion__cabeza::before { content: ""; display: block; width: 46px; height: 7px; background: var(--rojo); border-radius: 60% 40% 70% 30% / 100% 100% 60% 60%; transform: rotate(-3deg); margin-bottom: 10px; }
.seccion__cabeza h2 { font: 400 35px/1.05 var(--marca); }
.seccion__cabeza p { margin-top: 6px; color: var(--crema-suave); font-size: 15px; max-width: 58ch; }
.rejilla { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }

.tarjeta { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--carbon); border: 1px solid var(--linea); border-radius: 20px; transition: border-color .2s, background .2s; }
.tarjeta.en-pedido { border-color: rgba(195, 26, 45, .9); background: linear-gradient(180deg, #1A1112, var(--carbon)); }
.tarjeta__medio { width: 96px; height: 96px; border-radius: 15px; overflow: hidden; background: radial-gradient(circle at 28% 22%, #33181B, #170F0F 72%); align-self: start; }
.tarjeta__medio svg { width: 100%; height: 100%; }
.tarjeta__medio.con-foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__texto { display: flex; flex-direction: column; min-width: 0; }
.tarjeta__etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.etiqueta { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; color: var(--amarillo); background: rgba(254, 173, 6, .13); }
.tarjeta h3 { font-weight: 600; font-size: 17.5px; line-height: 1.22; }
.tarjeta p { margin-top: 4px; color: var(--crema-suave); font-size: 14.5px; line-height: 1.42; }
.tarjeta__pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.tarjeta__precio strong { display: block; font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: -.2px; }
.piezas { display: block; font-size: 13.5px; color: var(--crema-suave); margin-top: 2px; }
.tarjeta__accion { margin-left: auto; }

.sumar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 13px; border-radius: 22px; background: var(--rojo); color: var(--sobre-rojo); font-weight: 600; font-size: 15.5px; transition: transform .12s, background .2s; }
.sumar svg { width: 18px; height: 18px; }
.sumar:active { transform: scale(.95); background: var(--rojo-hondo); }
.contador { display: inline-flex; align-items: center; height: 44px; border-radius: 22px; background: var(--crema); color: var(--negro); }
.contador button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--negro); }
.contador button svg { width: 18px; height: 18px; }
.contador button:active { background: rgba(0, 0, 0, .1); }
.contador output { min-width: 22px; text-align: center; font-weight: 700; font-size: 17px; }
.agotado { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px dashed rgba(241, 230, 215, .4); color: var(--crema-suave); font-size: 14px; font-weight: 500; }
.tarjeta.es-agotado .tarjeta__medio { filter: grayscale(1); opacity: .45; }
.tarjeta.es-agotado h3, .tarjeta.es-agotado .tarjeta__precio strong { color: var(--crema-suave); }

/* ---------- Pizzas y hot dogs: muy pronto ---------- */
.seccion--pronto { margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--linea); }
.seccion--pronto .seccion__cabeza::before { background: var(--amarillo); }
.seccion--pronto h2 { color: var(--amarillo); }
.sello-pronto { display: inline-block; background: var(--amarillo); color: #1D1C1C; font-weight: 700; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; margin-bottom: 8px; }
.pronto__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-bottom: 12px; }
.pronto__fotos img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.pronto__espacios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.espacio { min-height: 132px; border: 1.5px dashed rgba(254, 173, 6, .45); border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.espacio svg { width: 40px; height: 40px; color: var(--amarillo); }
.espacio strong { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.espacio span { font-size: 13px; color: var(--crema-suave); }

.aviso-datos { max-width: var(--ancho); margin: 22px auto 0; padding: 0 16px; font-size: 13.5px; color: var(--crema-suave); }

/* ---------- El local ---------- */
.local { max-width: var(--ancho); margin: 28px auto 0; padding: 0 16px; }
.local h2 { font: 400 31px/1.1 var(--marca); margin-bottom: 14px; }
.local__rejilla { display: grid; gap: 12px; }
.local__dato { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; background: var(--carbon); border: 1px solid var(--linea); border-radius: 20px; }
.local__icono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(195, 26, 45, .2); color: var(--crema); }
.local__icono svg { width: 22px; height: 22px; }
.local__dato h3 { font-weight: 600; font-size: 17px; }
.local__dato p { color: var(--crema-suave); font-size: 15px; margin-top: 2px; }
.local__dato #direccion { color: var(--crema); font-size: 16px; }
.por-confirmar { font-size: 13.5px !important; }
.enlace { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.horario { border-collapse: collapse; width: 100%; max-width: 280px; margin-top: 4px; font-size: 15px; }
.horario th { text-align: left; font-weight: 400; color: var(--crema-suave); padding: 3px 0; }
.horario td { text-align: right; padding: 3px 0; font-variant-numeric: tabular-nums; }
.horario .hoy th, .horario .hoy td { color: var(--crema); font-weight: 600; }
.horario .hoy th span { font-size: 12px; font-weight: 700; color: #1D1C1C; background: var(--amarillo); padding: 2px 7px; border-radius: 999px; margin-left: 6px; }

/* ---------- Pie ---------- */
.pie { text-align: center; padding: 40px 20px calc(120px + env(safe-area-inset-bottom)); color: var(--crema-suave); font-size: 14.5px; }
.pie img { width: 150px; margin: 0 auto 14px; border-radius: 18px; }
.pie__lema { font: 400 25px/1.1 var(--marca); color: var(--crema); margin-bottom: 4px; }
.pie__demo { margin-top: 16px; font-size: 13.5px; max-width: 36ch; margin-left: auto; margin-right: auto; }

/* ---------- Botón fijo del pedido ---------- */
.barra { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 62px; padding: 8px 20px 8px 10px; border-radius: 31px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; background: var(--carbon-2); color: var(--crema); border: 1px solid rgba(241, 230, 215, .34); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); transition: background .25s, border-color .25s; }
.barra.tiene { background: var(--rojo); color: var(--sobre-rojo); border-color: rgba(255, 255, 255, .18); }
.barra__icono { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .22); }
.barra__icono svg { width: 22px; height: 22px; }
.barra__icono b { position: absolute; top: -3px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--amarillo); color: #1D1C1C; font-size: 12.5px; font-weight: 700; line-height: 21px; text-align: center; }
.barra__texto strong { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.2; }
.barra__texto small { display: block; font-size: 13.5px; line-height: 1.25; opacity: .88; }
.barra__total { font-weight: 700; font-size: 18px; white-space: nowrap; }
.barra.salto { animation: salto .28s ease; }
@keyframes salto { 40% { transform: scale(1.035); } }

/* ---------- Hoja del pedido ---------- */
.hoja { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: #0F0D0C; color: var(--crema); overflow: hidden; }
.hoja::backdrop { background: rgba(0, 0, 0, .66); }
.hoja[open] { display: flex; animation: sube .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.hoja__caja { display: flex; flex-direction: column; width: 100%; max-height: 92vh; max-height: 92dvh; }
.hoja__cabeza { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 20px; border-bottom: 1px solid var(--linea); flex: none; }
.hoja__cabeza h2 { font: 400 29px/1 var(--marca); }
.hoja__cerrar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(241, 230, 215, .1); }
.hoja__cerrar svg { width: 20px; height: 20px; }
.hoja__cuerpo { padding: 6px 20px 18px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
#hoja-vacia { padding: 26px 20px 28px; text-align: center; }
.vacia__titulo { font-weight: 600; font-size: 19px; margin-bottom: 6px; }
#hoja-vacia p { color: var(--crema-suave); }
#hoja-vacia .vacia__titulo { color: var(--crema); }
#hoja-vacia .boton { margin-top: 18px; }

.lineas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.linea__texto strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.linea__texto span { font-size: 13.5px; color: var(--crema-suave); }
.linea__total { grid-column: 1 / -1; font-weight: 700; font-size: 15.5px; }
.contador--chico { height: 44px; }
.vaciar { min-height: 44px; padding: 0 2px; color: var(--crema-suave); font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; }

.entrega { border: 0; margin-top: 8px; }
.entrega legend, .campo label { font-weight: 600; font-size: 15.5px; margin-bottom: 8px; padding: 0; display: block; }
.campo label span { font-weight: 400; color: var(--crema-suave); }
.entrega__opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entrega__opciones label { position: relative; display: block; }
.entrega__opciones input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.entrega__opciones span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 76px; padding: 10px 8px; border-radius: 16px; border: 1.5px solid rgba(241, 230, 215, .3); text-align: center; font-weight: 600; font-size: 14.5px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.entrega__opciones span svg { width: 24px; height: 24px; }
.entrega__opciones input:checked + span { background: var(--crema); color: var(--negro); border-color: var(--crema); }
.entrega__opciones input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.nota { margin-top: 10px; font-size: 14px; color: var(--crema-suave); }
.campo { margin-top: 16px; }
.campo input, .campo textarea { width: 100%; min-height: 50px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid rgba(241, 230, 215, .32); background: #1A1716; color: var(--crema); font-size: 16px; line-height: 1.35; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(241, 230, 215, .6); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--amarillo); box-shadow: 0 0 0 3px rgba(254, 173, 6, .25); }
.campo.con-error input { border-color: #FF9B9B; }
.campo__error { color: #FFB1B1; font-size: 14px; margin-top: 6px; }
.campo__error:empty { display: none; }

.resumen { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--linea); }
.resumen div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--crema-suave); font-size: 15px; }
.resumen .resumen__total { color: var(--crema); font-weight: 700; font-size: 21px; padding-top: 8px; }
.aviso-cerrado { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(254, 173, 6, .12); border: 1px solid rgba(254, 173, 6, .5); font-size: 14.5px; }

.hoja__pie { flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: #0F0D0C; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 28px; font-weight: 600; font-size: 17px; width: 100%; text-decoration: none; }
.boton--principal { background: var(--rojo); color: var(--sobre-rojo); }
.boton--principal:active { background: var(--rojo-hondo); }
.boton svg { width: 22px; height: 22px; flex: none; }
.hoja__nota, .enviado { text-align: center; font-size: 13.5px; color: var(--crema-suave); margin-top: 8px; }
.enviado a { color: var(--crema); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 720px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pasos { margin: 22px auto 6px; width: calc(100% - 48px); padding: 24px 28px; }
  .pasos ol { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .seccion, .local, .aviso-datos { padding-left: 24px; padding-right: 24px; }
  .nav__lista { padding-left: 24px; padding-right: 24px; }
  .local__rejilla { grid-template-columns: repeat(3, 1fr); }
  .pronto__fotos { grid-template-columns: repeat(2, 220px); }
  .pronto__espacios { max-width: 640px; }
  .hoja { inset: 0; margin: auto; width: 540px; max-height: 88vh; border-radius: 24px; }
  .hoja__caja { max-height: 88vh; }
  .barra { left: auto; right: 24px; bottom: 24px; width: 420px; }
}
@media (min-width: 980px) {
  .portada { padding: 34px 32px 44px; text-align: left; }
  .portada__caja { display: grid; grid-template-columns: 320px 1fr; grid-template-rows: auto 1fr; column-gap: 48px; align-items: center; }
  .portada__logo { grid-row: 1 / 3; grid-column: 1; width: 320px; margin: 0; }
  .estado { grid-column: 2; justify-self: start; align-self: end; }
  .portada__texto { grid-column: 2; align-self: start; margin-top: 14px; }
  .portada h1 { font-size: 76px; }
  .portada__lema { font-size: 19px; }
  .portada__bajada { margin-left: 0; font-size: 18px; max-width: 40ch; }
  .portada__mancha { display: block; width: 62%; left: 46%; top: 4%; height: 92%; }
  .portada::before { inset: auto -10% -60% 30%; height: 110%; }
  .seccion__cabeza h2 { font-size: 44px; }
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tarjeta { grid-template-columns: 104px minmax(0, 1fr); padding: 14px; }
  .tarjeta__medio { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .barra, .nav, .hoja { display: none !important; }
  body { background: #fff; color: #000; }
}
