/* La Take — base compartida por las cuatro páginas */

:root {
  /* Paleta tomada del logo de La Take */
  --ink: #2a1c10;          /* café oscuro, del "BGA" */
  --ink-2: #5a4836;
  --ink-3: #75634f;
  --paper: #ffffff;
  --paper-2: #fbf4e2;      /* mostaza muy clara */
  --line: #efe3c4;
  --line-strong: #dcc794;

  --mustard: #e7bb3c;      /* el fondo del logo */
  --mustard-deep: #c9971a; /* los dibujos sobre el fondo */
  --mustard-tint: #fbf0cf;
  --red: #d83539;          /* letras y chiles */
  --red-press: #b5262b;
  --red-tint: #fbe5e3;
  --lime: #65b656;         /* contorno verde de las letras */
  --lime-tint: #e5f3e0;
  --lime-ink: #2e6a24;
  --blue: #05a3db;         /* el sombrero */
  --blue-tint: #dff3fb;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-2: 0 2px 6px rgb(42 28 16 / 0.1), 0 18px 40px rgb(42 28 16 / 0.16);

  color-scheme: light;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}

::selection { background: var(--red); color: #fff; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

html { scrollbar-color: var(--mustard-deep) transparent; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Display: Archivo condensada, en mayúsculas */
.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}

.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-press); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #45301d; }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-photo { background: transparent; border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn-on-photo:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s, background-color 0.18s;
}
.btn-icon:hover { border-color: var(--ink); }
.btn-icon[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Chips (filtros) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"],
.chip[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip .count { font-variant-numeric: tabular-nums; opacity: 0.6; font-weight: 400; }

/* ---------- Campos ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(231 187 60 / 0.45); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { padding-block: 12px; min-height: 84px; resize: vertical; line-height: 1.45; }

/* ---------- Etiquetas de plato ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.tag .icon { width: 14px; height: 14px; }
.tag-veg { background: var(--lime-tint); color: var(--lime-ink); }
.tag-gf { background: var(--paper-2); color: var(--ink-2); }

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge-special { background: var(--red); color: #fff; }
.badge-best { background: var(--blue); color: var(--ink); }

.heat { display: inline-flex; align-items: center; gap: 1px; color: var(--red); }
.heat .icon { width: 16px; height: 16px; }
.heat .off { color: var(--line-strong); }

/* ---------- Navegación pública ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-nav.is-solid,
.site-nav[data-solid] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.brand span { font-stretch: 75%; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }

.site-nav nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
}
.nav-links a:hover { text-decoration: underline; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.site-nav .btn { min-height: 44px; }
.nav-toggle { display: none; color: inherit; background: transparent; border-color: currentColor; }

@media (max-width: 860px) {
  .site-nav nav, .site-nav .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--mustard);
  color: var(--ink);
  padding: 20px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.nav-sheet.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease-out); }
.nav-sheet-head { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.nav-sheet .btn-icon { background: transparent; color: var(--ink); border-color: var(--ink); }
.nav-sheet ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.nav-sheet ul a {
  display: block;
  padding: 8px 0;
  font-size: 2.75rem;
  text-decoration: none;
}
.nav-sheet-foot { margin-top: auto; display: grid; gap: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.nav-sheet-foot a { color: var(--ink); font-weight: 600; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.74); padding: 72px 0 40px; font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr; }
.footer-grid h3 { color: var(--mustard); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 12px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.footer-base details summary { cursor: pointer; color: #fff; }
.footer-base details[open] { flex-basis: 100%; }
.credits { margin: 12px 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 32px; }
.credits li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Aviso de datos de ejemplo ---------- */
.preview-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-size: 0.875rem;
  line-height: 1.45;
}
.preview-note strong { color: var(--mustard); }
.preview-note button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 6px; background: rgb(255 255 255 / 0.1); color: #fff; display: grid; place-items: center; }
.preview-note button:hover { background: rgb(255 255 255 / 0.2); }
.preview-note[hidden] { display: none; }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
  font-weight: 500;
  animation: toast-in 0.35s var(--ease-out);
}
.toast button { margin-left: auto; min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: rgb(255 255 255 / 0.14); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.toast button:hover { background: rgb(255 255 255 / 0.24); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.link-arrow:hover { text-decoration-thickness: 2px; }

/* Datos de ejemplo pendientes de confirmar (site-info.js → datosDeEjemplo) */
[data-pendiente]::after {
  content: "\00a0·\00a0" attr(data-pendiente);
  font-weight: 500;
  font-style: italic;
  opacity: 0.72;
}
