/* El Novillo · Pasaporte Gastronómico — estilo steakhouse nocturno. Mobile-first. */

:root {
  --bg: #0F0D0C;
  --surface: #1A1715;
  --line: #2E2924;
  --line-strong: #3A332C;
  --border-btn: #4A423A;
  --text: #F2ECE3;
  --text-muted: #A89F94;
  --brass: #C9A77C;
  --red: #B5121B;
  --red-hover: #8E0E15;
  --logo-red: #F70303;
  --error: #F08A84;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --tap: 44px;
  --gutter: 20px;
  --tabbar-h: 64px;
  --column: 480px; /* ancho máximo de la columna: contenido, encabezado y barra inferior */
}

body:has(.page--narrow) { --column: 420px; }
body.landing { --column: 960px; }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* `hidden` siempre oculta, aunque la clase defina display (p. ej. .btn). */
[hidden] { display: none !important; }

a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  padding: 10px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--brass);
  z-index: 100;
}
.skip-link:focus { top: 8px; }

/* Aviso del modo demo (DEMO_MODE=True): visible en todas las pantallas. */
.demo-banner {
  margin: 0;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--brass);
  color: var(--brass);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Tipografía ---------- */

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}
.label--small { font-size: 10px; letter-spacing: 0.22em; }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Todos los números van en Manrope (en Bodoni el "1" se confunde con una "I").
   Bodoni Moda queda solo para títulos. */
.num,
.movement__value,
.movement__date,
.step__number,
.trip-date,
.progress__count,
.destination__number,
.destination-tile__number,
.gift-card__amount,
.gift-card__code {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.num { font-weight: 500; letter-spacing: -0.02em; }
.muted { color: var(--text-muted); }
.accent { color: var(--brass); font-weight: 600; }

/* ---------- Estructura ---------- */

.topbar {
  max-width: var(--column);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap);
  color: var(--text); text-decoration: none;
  font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em;
}
.brand img { width: 40px; height: auto; }

.topbar__link {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 20px;
}
/* .page--narrow: el ancho lo fija --column (420px) en body. */

.has-tabbar .page { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }

.page-head { display: flex; flex-direction: column; gap: 8px; }

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: var(--tap); margin: -12px 0 -8px -6px; align-self: flex-start;
  color: var(--text-muted); text-decoration: none; font-size: 14px;
}
.back-link .icon { width: 20px; height: 20px; }

/* ---------- Mensajes ---------- */

.messages { display: flex; flex-direction: column; gap: 8px; }
.message {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--brass);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 14px;
}
.message--error { border-left-color: var(--red); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--red); color: var(--text); }
.btn--primary:hover { background: var(--red-hover); color: var(--text); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-btn); }
.btn--secondary:hover { border-color: var(--brass); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); }

.text-link {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: 13px; font-weight: 600; text-decoration: none;
}

/* ---------- Formularios ---------- */

.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text); }

.field__control {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.field__control:focus-within { border-color: var(--brass); }
.has-error .field__control { border-color: var(--error); }

.field__control input {
  flex: 1; min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 0; outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans); font-size: 16px; /* 16px evita el zoom en iOS */
}
.field__control input::placeholder { color: #7A7168; }

/* Autocompletado de Chrome/Safari: sin el fondo azulado ni el texto oscuro del navegador.
   El fondo no se puede cambiar directamente: se tapa con una sombra interior del color del diseño. */
.field__control input:-webkit-autofill,
.field__control input:-webkit-autofill:hover,
.field__control input:-webkit-autofill:focus,
.field__control input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 9999s ease-out 0s;
  font-family: var(--sans);
  font-size: 16px;
}
.field__control input:autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface) inset;
}

.field__prefix {
  display: flex; align-items: center;
  padding: 0 0 0 14px;
  color: var(--text-muted); font-size: 16px;
}
.has-prefix input { padding-left: 8px; }

.field__toggle {
  min-width: var(--tap); padding: 0 14px;
  border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--brass);
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
}

.field__help, .field__help li { font-size: 13px; color: var(--text-muted); }
.field__help ul, ul.field__help { margin: 0; padding-left: 18px; }
.field__error { font-size: 13px; color: var(--error); }

.form-alert {
  padding: 12px 14px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--text); font-size: 14px;
}

.check {
  display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start;
  font-size: 14px; color: var(--text-muted);
}
.check input {
  width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--red);
}
.check label { padding: 2px 0; }
.check .field__error { grid-column: 2; }

.form-note, .form-switch { font-size: 14px; color: var(--text-muted); text-align: center; }
.form-switch a { font-weight: 600; }

/* ---------- Tarjetas ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}

/* ---------- Secciones y listas ---------- */

.section { display: flex; flex-direction: column; gap: 12px; }
.section--tight { gap: 4px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }

.empty {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 14px;
}

.movements { list-style: none; margin: 0; padding: 0; }
.movement {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.movement:last-child { border-bottom: 1px solid var(--line); }
.movement__main { min-width: 0; }
.movement__title { font-size: 15px; font-weight: 500; }
.movement__meta { font-size: 13px; color: var(--text-muted); }
.movement__note { font-size: 13px; color: var(--brass); margin-top: 2px; }
.movement__value {
  flex: none; text-align: right;
  font-size: 20px; font-weight: 500; line-height: 1.1; color: var(--text);
}
.movement__value small {
  display: block;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.movement__value--reward { color: var(--brass); }
.movement.is-voided .movement__title,
.movement.is-voided .movement__value { color: var(--text-muted); }
.movement.is-voided .movement__value { text-decoration: line-through; }

.tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border: 1px solid var(--border-btn); border-radius: var(--radius);
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); vertical-align: 2px;
}

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager__info { font-size: 13px; color: var(--text-muted); }

/* Perfil */
.details { margin: 0; padding: 4px 20px; }
.details div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.details div:first-child { border-top: 0; }
.details dt { font-size: 13px; color: var(--text-muted); }
.details dd { margin: 0; font-size: 14px; text-align: right; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 15px;
}
.link-list li:last-child a { border-bottom: 1px solid var(--line); }
.link-list .icon { width: 20px; height: 20px; color: var(--text-muted); }

/* Texto largo */
.prose { display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); font-size: 15px; }
.prose h2 { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--text); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Pasaporte ---------- */

.stack { display: flex; flex-direction: column; gap: 10px; }

.passport-summary { display: flex; flex-direction: column; gap: 6px; }
.trip-date { font-size: 44px; line-height: 1.05; color: var(--text); letter-spacing: 0.02em; }
.passport-meta { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.passport-meta div { padding: 12px 0 2px; }
.passport-meta div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.passport-meta__wide { grid-column: 1 / -1; }
.passport-meta .passport-meta__wide + div { padding-left: 0; border-left: 0; }
.passport-meta .passport-meta__wide dd { font-size: 15px; }
.passport-meta dt { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.passport-meta dd { margin: 4px 0 0; font-size: 18px; color: var(--text); }

.progress { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.progress__line { font-size: 15px; color: var(--text-muted); }
.progress__count { font-size: 28px; color: var(--brass); vertical-align: -2px; }
.progress-bar { height: 4px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--brass); }

.gift-banner {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 14px 16px;
  border: 1px solid var(--brass); border-radius: var(--radius);
  background: var(--surface);
  color: var(--text); text-decoration: none;
}
.gift-banner > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gift-banner__title { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.gift-banner__hint { font-size: 13px; color: var(--text-muted); }
.gift-banner .icon { color: var(--brass); flex: none; }
.gift-banner:hover { border-color: var(--text); color: var(--text); }

.destinations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.destination { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.destination.is-complete { border-color: var(--brass); }
.destination details > summary { list-style: none; }
.destination details > summary::-webkit-details-marker { display: none; }
.destination__head {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px;
  cursor: pointer;
}
.destination__number { flex: none; width: 34px; font-size: 18px; color: var(--brass); }
.destination__titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.destination__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--text); }
.destination__tagline { font-size: 13px; color: var(--text-muted); }
.destination__count { flex: none; font-size: 15px; color: var(--text-muted); }
.destination__done { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.destination__reward { margin: 0 16px; padding: 12px 0 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--brass); }

.dishes { list-style: none; margin: 0; padding: 0 16px 4px; }
.dish {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 0;
  border-top: 1px solid var(--line);
}
.dish__mark { width: 28px; height: 28px; border: 1px dashed var(--border-btn); border-radius: 50%; display: grid; place-items: center; }
.dish__mark .icon { width: 28px; height: 28px; }
.dish.is-stamped .dish__mark { border: 0; color: var(--brass); }
.dish__name { font-size: 15px; color: var(--text); }
.dish__name small { display: block; font-size: 12px; color: var(--text-muted); }
.dish__meta { font-size: 13px; color: var(--text-muted); text-align: right; }
.dish.is-stamped .dish__meta { color: var(--brass); }
.dish.is-unavailable .dish__name { color: var(--text-muted); }

/* Gift cards */
.gift-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gift-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.gift-card.is-available { border-color: var(--brass); }
.gift-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gift-card__status { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.gift-card.is-available .gift-card__status { color: var(--brass); }
.gift-card__amount { font-size: 40px; line-height: 1.1; color: var(--text); }
.gift-card__code { font-size: 22px; font-weight: 600; letter-spacing: 0.14em; color: var(--text); }
.gift-card__meta { font-size: 13px; color: var(--text-muted); }
.gift-card.is-applied .gift-card__amount,
.gift-card.is-expired .gift-card__amount,
.gift-card.is-voided .gift-card__amount,
.gift-card.is-applied .gift-card__code,
.gift-card.is-expired .gift-card__code,
.gift-card.is-voided .gift-card__code { color: var(--text-muted); }
.gift-card.is-voided .gift-card__code { text-decoration: line-through; }

.movement__date { flex: none; text-align: right; font-size: 13px; color: var(--text-muted); }
.movement__date small { display: block; font-size: 12px; }

/* ---------- Barra inferior ---------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: var(--column); margin: 0 auto; /* centrada, al ancho de la columna */
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: var(--tabbar-h);
  color: var(--text-muted); text-decoration: none;
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  border-top: 1px solid transparent; margin-top: -1px;
}
.tabbar__item.is-active { color: var(--brass); border-top-color: var(--brass); }
.tabbar__item:hover { color: var(--text); }

/* ---------- Inicio ---------- */

.landing-main { width: 100%; }
.landing-main > .messages { max-width: 480px; margin: 16px auto 0; padding: 0 var(--gutter); }

.hero {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px var(--gutter) 44px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero__logo { width: 112px; margin-bottom: 8px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 44px; line-height: 1.05; letter-spacing: 0.01em;
}
.hero__lead { max-width: 32ch; color: var(--text-muted); font-size: 16px; }
.hero__actions {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 360px; margin-top: 12px;
}

.landing-main .section {
  max-width: 960px; margin: 0 auto;
  padding: 36px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.step__number {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--brass); border-radius: 50%;
  font-size: 17px; font-weight: 500; color: var(--brass);
}
.step__title { font-family: var(--serif); font-weight: 400; font-size: 21px; margin-bottom: 4px; }
.step .muted { font-size: 15px; }

.branches { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.branch {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.branch__name { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.branch__line { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.branch__line .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--brass); }
.branch__phone a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; text-decoration: none; }

.site-footer {
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 4px;
}
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); }

.sample-badge {
  display: inline-block; padding: 2px 8px;
  border: 1px dashed var(--brass); border-radius: var(--radius);
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); vertical-align: 2px;
}

.team { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.person__photo { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.person__name { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.person__role { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }

.purpose { display: grid; gap: 28px; }
.purpose__item { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.purpose__text { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--text); }

.destination-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.destination-tile {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 112px; padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.destination-tile__number { font-size: 14px; color: var(--brass); }
.destination-tile__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.destination-tile__tagline { font-size: 13px; color: var(--text-muted); }

.section--cta { align-items: center; }

/* ---------- Pantallas más anchas ---------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px var(--gutter) 64px; }
  .hero__title { font-size: 64px; }
  .hero__lead { font-size: 18px; }
  .hero__actions { flex-direction: row; max-width: 460px; }
  .landing-main .section { padding: 56px var(--gutter); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .branches { grid-template-columns: repeat(2, 1fr); }
  .purpose { grid-template-columns: 1fr 1fr; gap: 40px; }
  .destination-grid { grid-template-columns: repeat(4, 1fr); }
  .title { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Caja ---------- */

.small { font-size: 14px; }

.topbar__button {
  background: transparent; border: 0; cursor: pointer;
  color: var(--brass); font-family: var(--sans);
}
.topbar__button:hover { color: var(--text); }

.customer-card { display: flex; flex-direction: column; gap: 6px; }
.customer-card__name { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.customer-card__meta { font-size: 13px; letter-spacing: 0.08em; color: var(--text-muted); }
.customer-card__progress { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.customer-card__progress .card__head { margin-bottom: 12px; }
.customer-card__next {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text);
}

.notice {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-left: 2px solid var(--brass);
  border-radius: var(--radius);
  font-size: 14px;
}
.notice--warning { border-color: var(--red); border-left-color: var(--red); color: var(--text); }

/* Caja: sellar */
.stamp-form { display: flex; flex-direction: column; gap: 12px; }
.stamp-group {
  margin: 0; padding: 0 16px 6px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.stamp-group.is-complete { border-color: var(--brass); }
.stamp-group__head {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 0 10px; float: left; /* float: el legend ocupa todo el ancho */
}
.stamp-group__head + * { clear: both; }
.stamp-group .destination__name { flex: 1; font-size: 20px; }
.dish-options { list-style: none; margin: 0; padding: 0; }
.dish-option {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.dish-option input { width: 22px; height: 22px; accent-color: var(--brass); margin: 0; }
.dish-option__name { font-size: 15px; color: var(--text); }
.dish-option__meta { font-size: 13px; color: var(--text-muted); text-align: right; }
.dish-option.is-locked { cursor: default; }
.dish-option.is-locked .dish-option__name { color: var(--text-muted); }
.dish-option.is-locked .dish-option__meta { color: var(--brass); }
.stamp-form__footer {
  position: sticky; bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.form--inline { display: flex; gap: 8px; margin-top: 8px; }
.form--inline input {
  flex: 1; min-width: 0; min-height: var(--tap); padding: 0 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-btn); border-radius: var(--radius);
  font: inherit;
}

.confirm-list { list-style: none; margin: 8px 0 0; padding: 0; }
.confirm-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 16px;
}
.confirm-list .muted { font-size: 13px; text-align: right; }
.confirm-invoice { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-muted); }
.confirm-invoice strong { color: var(--text); font-weight: 600; }

/* ---------- Actualización en vivo ---------- */

.live-root { display: flex; flex-direction: column; gap: 20px; }
.live-root.is-updated .passport-summary { animation: live-flash 1.6s ease-out; }
@keyframes live-flash {
  from { border-color: var(--brass); }
  to { border-color: var(--line); }
}

/* ---------- Encabezado del personal de caja ---------- */

.staffbar { gap: 12px; }
.staffbar .brand { flex: none; }
.staffbar__who { flex: 1; min-width: 0; }
.staffbar__name {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staffbar__branch {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staffbar__logout { min-height: var(--tap); padding: 0 12px; font-size: 11px; letter-spacing: 0.14em; }
