/* Estética de "Nuestra Carta" de Pura Vida Mae: papel blanco, títulos negros gruesos,
   líneas rojas, pincelada roja y los dibujos del flaco de barba. */
[hidden] { display: none !important; }
:root {
  --fondo: #ffffff; --tarjeta: #ffffff; --texto: #111111; --suave: #55504a; --borde: #e6e1da;
  --regla: #f0a9a5; --rojo: #e5383b; --acento: #111111; --acento-texto: #ffffff; --ok: #2b8a3e; --mp: #009ee3;
  --titulo: "Bagel Fat One", "Arial Black", system-ui, sans-serif;
  --angosta: "Archivo Narrow", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo);
  color: var(--texto); line-height: 1.35; overflow-x: hidden; }
button { font: inherit; cursor: pointer; border: 0; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.contenedor { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.dibujo { mix-blend-mode: multiply; filter: brightness(1.1) contrast(1.15); } /* los dibujos vienen sobre blanco/gris claro */

/* ---------- cabecera (chica, para que se vea la carta enseguida) ---------- */
.cabecera { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; padding: 14px 16px 6px; }
.cabecera .marca { height: 62px; width: auto; }
.cabecera .lado { margin-left: auto; text-align: right; }
.cabecera .mesa { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--rojo); color: #fff;
  font-family: var(--angosta); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.cabecera .horario { font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: .72rem; color: var(--suave);
  letter-spacing: .04em; margin-top: 4px; }

/* ---------- categorías ---------- */
.categorias { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: var(--fondo); scrollbar-width: none; border-bottom: 3px solid var(--texto); }
.categorias::-webkit-scrollbar { display: none; }
.categorias a { flex: none; padding: 8px 16px; border-radius: 99px; border: 2px solid var(--texto); color: var(--texto);
  text-decoration: none; font-family: var(--angosta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.categorias a.activa { background: var(--texto); color: #fff; }
@media (min-width: 680px) { .categorias { justify-content: center; } }

/* ---------- carta ---------- */
.titulo-cat { display: flex; align-items: flex-end; gap: 10px; margin: 28px 0 2px; scroll-margin-top: 66px; }
h2.categoria { font-family: var(--titulo); font-weight: 400; font-size: 2.3rem; line-height: .95; margin: 0; letter-spacing: -.01em; }
.titulo-cat .skater { height: 64px; margin-left: auto; }
.producto { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 2px solid var(--regla); }
.producto .info { flex: 1; min-width: 0; }
.nombre { font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: 1.12rem; letter-spacing: .01em; line-height: 1.1; }
.desc { font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: .74rem; color: var(--suave); margin-top: 2px; line-height: 1.2; }
.producto .precio { margin-top: 3px; font-family: var(--angosta); font-weight: 700; font-size: 1.05rem; color: var(--rojo); }

.agregar { min-width: 108px; height: 46px; padding: 0 14px; border-radius: 99px; background: var(--texto); color: #fff;
  font-family: var(--angosta); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.cantidad { display: flex; align-items: center; min-width: 108px; height: 46px; border-radius: 99px; border: 2.5px solid var(--texto); }
.cantidad button { width: 40px; height: 100%; background: none; color: var(--texto); font-size: 1.5rem; font-weight: 700; }
.cantidad span { flex: 1; text-align: center; font-weight: 800; font-size: 1.1rem; }

/* ---------- info del bar (después de la carta) ---------- */
.info-bar { display: grid; grid-template-columns: 140px 1fr; gap: 6px 18px; align-items: center; margin-top: 56px; padding-top: 26px;
  border-top: 3px solid var(--texto); }
.info-bar .hombre { grid-row: span 2; width: 140px; }
.info-bar h2 { font-family: var(--titulo); font-weight: 400; font-size: 2rem; line-height: .95; margin: 0; }
.info-bar .sub { font-family: var(--angosta); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rojo); font-size: .85rem; }
.datos-bar { margin-top: 16px; }
.dato { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 2px solid var(--regla); text-decoration: none; color: inherit; }
.dato .ico { font-size: 1.3rem; width: 28px; text-align: center; }
.dato b { display: block; font-family: var(--angosta); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }
.dato span { color: var(--suave); font-size: .92rem; }
.dato .flecha { margin-left: auto; align-self: center; font-weight: 800; }
.recuadro { margin: 22px 0 0; border: 3px solid var(--texto); border-radius: 14px; padding: 16px 18px; text-align: center; }
.recuadro .grande { font-family: var(--titulo); font-size: 1.9rem; color: var(--rojo); line-height: 1; }
.recuadro .chico { font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; }
.pie { text-align: center; color: var(--suave); font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: .85rem;
  letter-spacing: .05em; padding: 26px 0 0; }
.pie a { color: var(--texto); }

/* ---------- barra de abajo y botones ---------- */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255,255,255,0), #fff 30%); }
.boton-grande { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 608px;
  margin: 0 auto; min-height: 60px; padding: 12px 20px; border-radius: 16px; background: var(--rojo); color: #fff;
  font-family: var(--angosta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.boton-grande.mp { background: var(--mp); }
.boton-grande.secundario { background: #fff; color: var(--texto); border: 2.5px solid var(--texto); box-shadow: none; }
.boton-grande:disabled { opacity: .55; }
.espacio-barra { height: 110px; }

/* ---------- hoja del carrito / datos ---------- */
.hoja-fondo { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.45); display: none; }
.hoja-fondo.abierta { display: block; }
.hoja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: #fff;
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); }
.hoja .contenido { max-width: 608px; margin: 0 auto; }
.hoja .tirador { width: 44px; height: 5px; border-radius: 3px; background: var(--borde); margin: 4px auto 12px; }
.hoja h3 { font-family: var(--titulo); font-weight: 400; font-size: 1.8rem; margin: 4px 0 14px; line-height: 1; }
.cerrar { float: right; background: none; color: var(--suave); font-size: 1rem; padding: 6px; }
.linea { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--regla); }
.linea .info { flex: 1; }
.linea .cantidad { min-width: 100px; height: 42px; }
.total { display: flex; justify-content: space-between; font-family: var(--titulo); font-size: 1.6rem; margin: 16px 0; }
label { display: block; margin: 14px 0 6px; font-weight: 700; }
.campo { width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 12px; border: 2px solid #cfc8bd; background: #fff; font-size: 1.1rem; }
.campo:focus { outline: none; border-color: var(--texto); }
textarea.campo { min-height: 70px; font-size: 1rem; }
.telefono { display: flex; gap: 8px; }
.telefono .area { width: 34%; }
.ayuda { color: var(--suave); font-size: .85rem; margin-top: 6px; }
.error { color: #d6336c; font-weight: 700; margin: 10px 0; min-height: 1.2em; }
.aviso-prueba { background: #fff3bf; color: #5c4400; border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: .9rem; }
.enlace { background: none; color: var(--texto); text-decoration: underline; padding: 8px 0; font-size: .95rem; }
.vacio { text-align: center; color: var(--suave); padding: 30px 0; }

/* ---------- estado del pedido ---------- */
.marca-chica { display: block; height: 54px; margin: 16px auto 0; }
.estado { text-align: center; padding: 18px 0 10px; }
.estado .icono { font-size: 3.6rem; }
.estado h1 { font-family: var(--titulo); font-weight: 400; font-size: 2.1rem; margin: 8px 0 6px; line-height: 1; }
.estado p { color: var(--suave); margin: 0; }
.numero { display: inline-block; margin: 16px 0; padding: 8px 26px; border-radius: 14px; background: var(--rojo); color: #fff;
  font-family: var(--titulo); font-size: 2.4rem; }
.pasos { display: flex; justify-content: space-between; gap: 6px; margin: 18px 0; }
.pasos div { flex: 1; text-align: center; font-family: var(--angosta); font-weight: 700; text-transform: uppercase; font-size: .8rem;
  color: var(--suave); padding-top: 10px; border-top: 5px solid var(--borde); }
.pasos div.hecho { border-color: var(--texto); color: var(--texto); }
