/* =====================================================================
   Flat Station · identidad visual (tokens tomados de flatstation.mx)
   ===================================================================== */
@font-face {
  font-family: 'Playing Display';
  src: url('/static/fonts/Playing-Display.otf') format('opentype'), url('/static/fonts/Playing-Display.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Acumin Variable';
  src: url('/static/fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --crema: #faf7f0;
  --crema-2: #f0ece2;
  --durazno: #fce8d8;      /* fondo del menú impreso */
  --verde: #1f5129;
  --verde-deep: #143318;
  --verde-claro: #7ba05b;
  --dorado: #ffbf3f;
  --amarillo: #f5c544;
  --cafe: #6b3a2a;
  --ink: #0d0d0d;
  --gris: #4a4a4a;
  --borde: #e6e1d3;
  --blanco: #ffffff;
  --rojo: #b3261e;
  --ok: #2e7d32;

  --font-display: 'Playing Display', 'Alfa Slab One', Georgia, serif;
  --font-sans: 'Acumin Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.06), 0 2px 8px rgba(31, 81, 41, 0.06);
  --shadow: 0 6px 24px rgba(31, 81, 41, 0.12);
  --shadow-lg: 0 18px 48px rgba(31, 81, 41, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--verde); }
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
  color: var(--verde);
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 8vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.display-dorado { color: var(--dorado); -webkit-text-stroke: 0; }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 600;
}
.muted { color: var(--gris); }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, background 0.15s, opacity 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--verde); color: var(--crema); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--verde-deep); }
.btn-gold { background: var(--dorado); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--amarillo); }
.btn-outline { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-outline:hover { background: rgba(31, 81, 41, 0.06); }
.btn-ghost { background: transparent; color: var(--verde); }
.btn-danger { background: var(--rojo); color: #fff; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---- Tarjetas, chips, badges ---- */
.card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1rem 1.1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip[aria-pressed="true"], .chip.active { background: var(--verde); border-color: var(--verde); color: var(--crema); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--crema-2);
  color: var(--verde);
}
.badge-gold { background: var(--dorado); color: var(--ink); }
.badge-green { background: var(--verde); color: var(--crema); }
.badge-red { background: #fde7e5; color: var(--rojo); }

/* ---- Formularios ---- */
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--borde);
  background: var(--blanco);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(31, 81, 41, 0.15); }

/* ---- Utilidades ---- */
.container { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 1rem; }
.container-wide { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; align-items: center; gap: 0.75rem; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 0.75rem; }
.grow { flex: 1; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mascot { width: 64px; height: 64px; object-fit: contain; }
.mascot-sm { width: 40px; height: 40px; }
.mascot-lg { width: 120px; height: 120px; }
.logo { height: 28px; width: auto; }

/* Fondo tipo "menú impreso" */
.paper { background: var(--durazno); }

/* Animaciones base */
@keyframes fs-pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fs-rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.anim-pop { animation: fs-pop 0.35s var(--ease-bounce) both; }
.anim-rise { animation: fs-rise 0.45s var(--ease-out) both; }
.anim-float { animation: fs-float 3s ease-in-out infinite; }

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