/* ==========================================================================
   El Potrero Asado — Estilos
   1. Tokens  2. Base  3. Utilidades  4. Componentes  5. Secciones
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #111111;
  --bg-alt: #161616;
  --bg-deep: #0a0a0a;
  --card: #1a1a1a;
  --card-hover: #202020;
  --border: #2a2a2a;
  --line: #333333;

  --text: #f5f5dc;          /* crema */
  --text-strong: #ffffff;
  --text-muted: #a3a3a3;    /* 7.4:1 sobre --card */
  --text-faint: #8c8c8c;    /* 5.2:1 sobre --card */

  --accent: #e23d28;        /* rojo brasa (decorativo, bordes, íconos) */
  --accent-text: #f0533d;   /* rojo para texto chico: 5.4:1 sobre --bg */
  --accent-btn: #d13420;    /* fondo de botón: texto blanco 5:1 */
  --accent-btn-hover: #b82b19;
  --accent-soft: rgba(226, 61, 40, 0.12);
  --accent-ring: rgba(226, 61, 40, 0.5);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-pill: 999px;

  --gutter: 1rem;
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.has-order { padding-bottom: 10rem; }
@media (min-width: 640px) { body.has-order { padding-bottom: 6rem; } }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; color: var(--text-strong); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

/* Tocar rápido un botón (ej. + + en cantidad) no hace zoom en el celular; el zoom con dos dedos sigue andando */
button, a, summary, label, [role='button'] { touch-action: manipulation; }
::selection { background: var(--accent); color: #fff; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-color: var(--line) var(--bg); }

/* 3. Utilidades ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--md { max-width: 72rem; }
.container--sm { max-width: 48rem; }

.accent { color: var(--accent-text); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 1.75rem; height: 1.75rem; }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 4. Componentes ----------------------------------------------------------- */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn--primary {
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.btn--primary:hover { background: var(--accent-btn-hover); }
.btn--primary:active { transform: scale(0.97); }
.btn--lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand__logo { height: 3rem; width: auto; }
.brand__logo--muted { height: 2.5rem; filter: grayscale(1); opacity: 0.7; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-strong);
}
.brand__name--lg { font-size: 1.75rem; }
@media (min-width: 640px) {
  .brand__logo { height: 3.5rem; }
  .brand__name { font-size: 1.5rem; }
}

/* 5. Secciones ------------------------------------------------------------- */

/* Navegación */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding-block: 0.75rem;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(17, 17, 17, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.8);
}

.nav__links { display: none; }
.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--accent-text); }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  color: #d4d4d4;
}
.nav__toggle:hover { color: #fff; }

.nav__panel {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 0.25rem var(--gutter) 1.25rem;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.8);
}
.nav__panel a {
  display: block;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #222;
  font-weight: 500;
  color: #d4d4d4;
}
.nav__panel a:hover { color: #fff; background: #222; }

@media (min-width: 768px) {
  .nav__links { display: flex; gap: 2rem; }
  .nav__toggle, .nav__panel { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90vh;
  min-height: 90svh;
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.5) 50%, var(--bg));
}
.hero__content {
  max-width: 56rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  text-align: center;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero__title em { color: var(--accent-text); font-style: italic; }
.hero__lead {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: #d4d4d4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d4d4d4;
}
.hero__meta .icon { width: 1rem; height: 1rem; color: var(--accent-text); }

/* Características */
.features {
  background: var(--bg-alt);
  border-block: 1px solid #222;
}
.features__list {
  display: grid;
  grid-template-columns: 1fr;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #222;
}
.feature:last-child { border-bottom: 0; }
.feature__icon { width: 2rem; height: 2rem; color: var(--accent); margin-top: 0.125rem; }
.feature__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.feature p { font-size: 0.875rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .features__list { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 2rem 1.5rem; border-bottom: 0; }
  .feature:nth-child(odd) { padding-left: 0; }
}
@media (min-width: 1024px) {
  .features__list { grid-template-columns: repeat(4, 1fr); }
  .feature { padding: 2.5rem 1.5rem; }
  .feature + .feature { border-left: 1px solid #222; }
  .feature:first-child { padding-left: 0; }
}

/* Secciones genéricas */
.section { padding-block: 5rem; background: var(--bg); }
.section--alt { background: var(--bg-alt); border-block: 1px solid #222; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}
.section__title::after {
  content: '';
  display: block;
  width: 4rem;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: var(--accent);
}
.section__lead {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Menú */
.menu { display: grid; gap: 4rem; }
.menu__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  color: var(--accent-text);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .menu__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.dish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background-color 0.3s;
}
.dish:hover { border-color: var(--accent-ring); }
.dish.is-selected { border-color: var(--accent); background: var(--card-hover); }

.dish__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}
.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.dish:hover .dish__media img { transform: scale(1.06); }
.dish__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent 45%);
  pointer-events: none;
}

.dish__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1rem;
}
.dish__name { font-size: 1.1875rem; font-weight: 700; margin-bottom: 0.375rem; }
.dish__desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.dish__price {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 700;
}
.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.dish__hint {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
}

@media (min-width: 640px) {
  .dish { flex-direction: row; }
  .dish__media { aspect-ratio: auto; flex: 0 0 40%; min-height: 12rem; }
  .dish__media::after { background: linear-gradient(to left, var(--card), transparent 40%); }
  .dish__body { padding: 1.5rem; }
}

/* Selector de cantidad */
.stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
}
.stepper__btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  transition: background-color 0.2s, transform 0.15s;
}
.stepper__btn .icon { width: 1rem; height: 1rem; }
.stepper__btn:hover:not(:disabled) { background: #3a3a3a; }
.stepper__btn:active:not(:disabled) { transform: scale(0.9); }
.stepper__btn:disabled { background: transparent; color: #5c5c5c; cursor: not-allowed; }
.stepper__btn--add { background: var(--accent-btn); box-shadow: 0 3px 8px -3px rgba(0, 0, 0, 0.7); }
.stepper__btn--add:hover:not(:disabled) { background: var(--accent-btn-hover); }
.stepper__value {
  min-width: 3.75rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.notice {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.notice a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Cómo funciona */
.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem;
  max-width: 36rem;
  margin-inline: auto;
  position: relative;
}
.steps::before {               /* línea que une los pasos */
  content: '';
  position: absolute;
  top: 1.25rem; bottom: 1.25rem;
  left: 1.25rem;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.75rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-alt);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0.375rem 0 0.375rem;
}
.step p { color: var(--text-muted); }

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: none;
  }
  .steps::before {
    top: 1.25rem; bottom: auto;
    left: 10%; right: 10%;
    width: auto; height: 2px;
    transform: translateY(-50%);
  }
  .step { padding-left: 0; padding-top: 4rem; text-align: center; }
  .step__title { font-size: 1.25rem; }
  .step::before { left: 50%; transform: translateX(-50%); }
  .step__title { margin-top: 0; }
  .step p { font-size: 0.9375rem; }
}

/* FAQ */
.faq { display: grid; gap: 1rem; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: #3a3a3a; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__chevron { color: var(--accent); transition: transform 0.3s var(--ease-out); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Tarjeta de sellos */
.loyalty { background: var(--bg-deep); border-block: 1px solid #222; overflow: hidden; }
.loyalty__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .loyalty__grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.loyalty__title { font-family: var(--font-serif); font-size: clamp(2.25rem, 5.5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
.loyalty__lead { max-width: 34rem; margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-muted); }
.loyalty__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 2rem 0; max-width: 32rem; }
.loyalty__perks li { padding: 1rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-align: center; }
.loyalty__perks strong { display: block; font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.1; color: var(--text-strong); }
.loyalty__perks span { font-size: 0.8125rem; color: var(--text-muted); }
.loyalty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.loyalty__link { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.loyalty__link:hover { color: #fff; }
.loyalty__fine { margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-faint); }

.loyalty__card {
  justify-self: center;
  width: min(100%, 24rem);
  padding: 1.5rem;
  border: 1px solid #2b2b2b;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), transparent 40%), linear-gradient(180deg, #161616, #0e0e0e);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg);
}
.loyalty__card-head { display: flex; justify-content: space-between; align-items: baseline; }
.loyalty__card-name { font-family: var(--font-serif); font-size: 1.375rem; color: var(--text-strong); }
.loyalty__card-count { font-family: var(--font-serif); font-size: 2.5rem; color: var(--text-strong); line-height: 1; }
.loyalty__card-count small { font-size: 1rem; color: var(--text-muted); }
.loyalty__embers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.loyalty__embers li {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #2b2b2b;
  background: radial-gradient(circle at 35% 30%, #262626, #121212 70%);
}
.loyalty__embers li.is-goal { border-style: dashed; border-color: #444; }
.loyalty__embers li.is-lit { border: 1px solid rgba(255, 122, 47, 0.45); }
.loyalty__embers li.is-lit::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #ffd8a8 0%, #ff7a2f 35%, #c2321b 70%, transparent 74%);
}
.loyalty__card-foot { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8125rem; color: var(--text-muted); }

/* Botón "Mi tarjeta" del menú */
.nav__links a.nav__tarjeta {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  color: var(--text-strong);
}
.nav__links a.nav__tarjeta::after { display: none; }
.nav__links a.nav__tarjeta:hover { border-color: var(--accent); color: var(--text-strong); }
.nav__panel a.nav__tarjeta { color: var(--accent-text); font-weight: 600; }

/* Texto corrido ("Dónde conseguir asado") */
.prose { display: grid; gap: 1.125rem; max-width: 42rem; margin-inline: auto; }
.prose p { font-size: 1.0625rem; line-height: 1.75; color: var(--text-muted); }

/* Imágenes con versión WebP */
.dish__media picture { display: contents; }
.brand picture { display: contents; }

/* Ubicación y mapa en el pie */
.footer__address { font-style: normal; }
.footer__list a span { text-decoration: none; }
.footer__map {
  overflow: hidden;
  margin: -1rem 0 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  height: 16rem;
}
@media (min-width: 768px) { .footer__map { height: 20rem; } }
.footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* Pie */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid #222;
  padding: 5rem 0 2.5rem;
}
.footer__grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__quote {
  max-width: 24rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}
.footer__title {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__list { display: grid; gap: 0.75rem; }
.footer__list li,
.footer__list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}
.footer__list a { padding-block: 0.25rem; transition: color 0.2s; }
.footer__list a:hover { color: #fff; }
.footer__list .icon { color: var(--accent); margin-top: 0.15rem; }
.footer__legal {
  padding-top: 2rem;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.footer__legales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin-top: 0.5rem;
}
.footer__legales a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
@media (hover: hover) {
  .footer__legales a:hover { color: var(--text); text-decoration-color: currentColor; }
}
.footer__credito { margin-top: 0.25rem; font-size: 0.8125rem; }
.footer__credito a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  font-variant-numeric: tabular-nums;
}

/* Barra de pedido */
.checkout {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px -8px rgba(0, 0, 0, 0.8);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out), visibility 0s 0.5s;
  visibility: hidden;
}
.checkout.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.5s var(--ease-out), visibility 0s;
}
.checkout__bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
}
.checkout__count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}
.checkout__field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: #fff;
  font-size: 1rem;           /* evita el zoom automático en iPhone */
  caret-color: var(--accent);
  transition: border-color 0.2s;
}
.checkout__field input::placeholder { color: #8c8c8c; }
.checkout__field input:focus { outline: none; border-color: var(--accent); }
.checkout .btn { width: 100%; }

@media (min-width: 640px) {
  .checkout__bar { grid-template-columns: auto minmax(0, 24rem) 1fr auto; align-items: center; gap: 1rem; }
  .checkout .btn { width: auto; grid-column: 4; }
}

/* 6. Movimiento -------------------------------------------------------------
   Idea: "el fuego se enciende". Los estados por defecto son visibles; las
   entradas solo corren si hay JS (.js) y el sistema no pide reducir movimiento.
   ------------------------------------------------------------------------- */

/* Navegación: se esconde al bajar, link activo subrayado */
.nav { transition: background-color 0.3s, box-shadow 0.3s, transform 0.45s var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }

/* Menú del celular: baja suave desde la barra y se desvanece al cerrar */
.nav__panel { transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out); }
@starting-style {
  .nav__panel { opacity: 0; transform: translateY(-8px); }
}
.nav__panel.is-closing { opacity: 0; transform: translateY(-6px); transition-duration: 0.15s; transition-timing-function: ease; }
.nav__links a { position: relative; padding-block: 0.375rem; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--text-strong); }
.nav__panel a.is-active { color: #fff; box-shadow: inset 3px 0 0 var(--accent); }

/* Portada: líneas del título (recorte para la entrada) */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__line > * { display: inline-block; }

/* Brillo de brasa en la base de la portada */
.hero__shade::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(226, 61, 40, 0.22), transparent 70%);
  pointer-events: none;
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease-out;
}
.hero__embers.is-lit { opacity: 1; }

/* Botón principal: brasa que se aviva al pasar el mouse */
.btn--primary {
  background-image: radial-gradient(120% 140% at var(--mx, 50%) 120%, rgba(255, 150, 80, 0.45), transparent 55%);
  background-size: 100% 220%;
  background-position: 50% 0%;
  transition: background-color 0.2s, background-position 0.5s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn--primary:hover { background-position: 50% 100%; }

/* Sello de cantidad sobre la foto del producto */
.dish__badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--accent-btn);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.dish.is-selected .dish__badge { opacity: 1; transform: scale(1); }
.dish__media img { transition: transform 0.9s var(--ease-out), filter 0.6s; }
.dish:hover .dish__media img,
.dish.is-selected .dish__media img { filter: saturate(1.12) brightness(1.04); }
.stepper__value { display: inline-block; }

/* Brasa que vuela al pedido */
.fly-ember {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0%, #ffb36b 35%, #e23d28 70%, transparent 72%);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Barra del pedido: destello único al aparecer por primera vez */
.checkout .btn { position: relative; overflow: hidden; }
.checkout.is-fresh .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 1s 0.45s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes shine { to { transform: translateX(120%); } }

/* FAQ: apertura suave (navegadores que lo soportan; el resto abre igual) */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}
.faq__item p { transition: opacity 0.4s 0.05s; }
.faq__item:not([open]) p { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Encendido de la portada */
  .js .hero__shade { animation: lights-up 1.8s 0.1s ease-out both; }
  .js .hero__line > * { animation: line-in 1s var(--ease-out) both; }
  .js .hero__line:nth-child(1) > * { animation-delay: 0.25s; }
  .js .hero__line:nth-child(2) > * { animation-delay: 0.4s; }
  .js .hero__title em { animation: line-in 1s 0.4s var(--ease-out) both, cool-down 1.8s 0.6s ease-out both; }
  .js .hero__lead { animation: rise-in 0.8s 0.75s var(--ease-out) both; }
  .js .hero .btn { animation: rise-in 0.8s 0.88s var(--ease-out) both; }
  .js .hero__meta { animation: rise-in 0.8s 1s var(--ease-out) both; }
  .hero__shade::after { animation: ember-breathe 5s 1.5s ease-in-out infinite alternate; }

  @keyframes lights-up {
    from { background-color: rgba(10, 10, 10, 0.92); }
    to { background-color: rgba(10, 10, 10, 0); }
  }
  @keyframes line-in {
    from { transform: translateY(105%); filter: blur(6px); }
    to { transform: none; filter: blur(0); }
  }
  @keyframes cool-down {               /* de rojo blanco a rojo brasa */
    from { color: #ffe2b0; text-shadow: 0 4px 30px rgba(255, 140, 60, 0.45); }
    to { color: var(--accent-text); text-shadow: 0 4px 30px rgba(255, 140, 60, 0); }
  }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
  @keyframes ember-breathe {
    from { opacity: 0.55; }
    to { opacity: 1; }
  }

  /* Productos: cascada corta al llegar a cada categoría */
  .reveal-group .menu__title,
  .reveal-group .dish {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  .reveal-group.is-in .menu__title,
  .reveal-group.is-in .dish {
    opacity: 1;
    transform: none;
    filter: blur(0);
    transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s var(--ease-out),
      border-color 0.3s, background-color 0.3s;
    transition-delay: calc(var(--i, 0) * 70ms + 80ms), calc(var(--i, 0) * 70ms + 80ms), calc(var(--i, 0) * 70ms + 80ms), 0s, 0s;
  }
  .reveal-group.is-in .menu__title { transition-delay: 0s; }

  /* Cómo funciona: la línea se dibuja y cada paso se enciende en orden */
  .reveal-steps::before { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  .reveal-steps .step::before { border-color: var(--line); color: var(--text-faint); }
  .reveal-steps .step > * { opacity: 0; transform: translateY(10px); }
  .reveal-steps.is-in::before {
    transform: translateX(-50%) scaleY(1);
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .reveal-steps.is-in .step::before {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(226, 61, 40, 0);
    transition: border-color 0.4s, color 0.4s;
    transition-delay: calc(var(--i) * 260ms + 100ms);
    animation: step-ignite 0.7s calc(var(--i) * 260ms + 100ms) var(--ease-out);
  }
  .reveal-steps.is-in .step > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i) * 260ms + 180ms);
  }
  @keyframes step-ignite {
    0% { transform: scale(0.85); }
    50% { transform: scale(1.12); background-color: #3a1510; }
    100% { transform: scale(1); }
  }

  @media (min-width: 1024px) {
    .reveal-steps::before { transform: translateY(-50%) scaleX(0); transform-origin: left; }
    .reveal-steps.is-in::before { transform: translateY(-50%) scaleX(1); }
    @keyframes step-ignite {
      0% { transform: translateX(-50%) scale(0.85); }
      50% { transform: translateX(-50%) scale(1.12); background-color: #3a1510; }
      100% { transform: translateX(-50%) scale(1); }
    }
  }
}

/* Movimiento reducido: sin desplazamientos, se conservan los cambios de color */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__embers { display: none; }
  .nav.is-hidden { transform: none; }
  .nav__panel { transition: opacity 0.15s; }
  @starting-style {
    .nav__panel { transform: none; }
  }
  .nav__panel.is-closing { transform: none; }
  .dish:hover .dish__media img { transform: none; }
  .checkout,
  .checkout.is-visible { transform: none; transition: opacity 0.3s, visibility 0s 0.3s; opacity: 0; }
  .checkout.is-visible { opacity: 1; transition: opacity 0.3s, visibility 0s; }
  .checkout.is-fresh .btn::after { display: none; }
  .btn:hover .btn__arrow { transform: none; }
}

/* Recién salido de la parrilla: galería curva de videos ----------------------- */
.parrilla { overflow: hidden; }
.parrilla .section__head { margin-bottom: 1.5rem; }
.parrilla__lead { margin-top: 1rem; color: var(--text-muted); }

.galeria { position: relative; --alto: clamp(24rem, 64vh, 40rem); }

/* Base (sin JavaScript o con "reducir movimiento"): tira que se desliza de costado */
.galeria__lista {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.galeria__item { flex: 0 0 min(70vw, 280px); scroll-snap-align: center; }
.galeria__item figure { margin: 0; }
.galeria__item video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--card);
}
.galeria__item figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
@media (min-width: 1024px) {
  .galeria__lista { justify-content: center; }
}

/* Versión 3D: el lienzo dibuja los videos; la lista queda debajo, invisible pero
   presente (para lectores de pantalla y para que el celular deje reproducir) */
.galeria--3d { padding-top: var(--alto); }
.galeria--3d .galeria__lista {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--alto);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.galeria__lienzo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--alto);
  cursor: grab;
  touch-action: pan-y;          /* el dedo hacia arriba/abajo sigue bajando la página */
}
.galeria__lienzo.is-arrastrando { cursor: grabbing; }

/* Debajo: flechas a los costados y, al medio, el corte que está al frente */
.galeria__controles {
  display: grid;
  grid-template-columns: auto minmax(0, 17rem) auto;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-inline: var(--gutter);
}
.galeria__info { text-align: center; }
.galeria__nombre {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--text-strong);
}
.galeria__nombre.is-cambio { animation: galeria-nombre 0.45s var(--ease-out); }
@keyframes galeria-nombre {
  from { opacity: 0; transform: translateY(0.35rem); filter: blur(3px); }
}
.galeria__pedir {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}
.galeria__pedir .icon { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) {
  .galeria__pedir:hover { text-decoration-color: currentColor; }
  .galeria__pedir:hover .icon { transform: translateX(3px); }
}

.galeria__flecha,
.galeria__pausa {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out);
}
.galeria__atras { transform: rotate(180deg); }
@media (hover: hover) {
  .galeria__flecha:hover,
  .galeria__pausa:hover { background: var(--card-hover); border-color: var(--accent); }
}
.galeria__flecha:active,
.galeria__pausa:active { transform: scale(0.94); }

/* Pausa: arriba a la derecha de la galería, como en un reproductor */
.galeria__pausa {
  position: absolute;
  top: 0.5rem;
  right: var(--gutter);
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(17, 17, 17, 0.72);
}
.galeria__icono-play,
.galeria__pausa[aria-pressed='true'] .galeria__icono-pausa { display: none; }
.galeria__pausa[aria-pressed='true'] .galeria__icono-play { display: block; }

/* El plato al que lleva "Pedir este corte" se enciende un momento */
.dish.is-senalado { animation: dish-senalado 1.8s var(--ease-out); }
@keyframes dish-senalado {
  0%, 35% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring), 0 12px 32px -12px rgba(226, 61, 40, 0.5); }
}

/* Páginas legales (/terminos/ y /privacidad/) ------------------------------- */
.legal-pagina {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}
.legal-pagina__marca {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
}
.legal-pagina__marca img { width: 2.75rem; height: auto; }
.legal-pagina__head {
  margin: 3rem 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-pagina__head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
}
.legal-pagina__fecha { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9375rem; }

.legal-pagina__texto { color: var(--text); }
.legal-pagina__texto > * + * { margin-top: 1rem; }
.legal-pagina__texto h2 {
  margin-top: 2.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.legal-pagina__texto h2 + * { margin-top: 0.75rem; }
.legal-pagina__texto ul { display: grid; gap: 0.6rem; }
.legal-pagina__texto li { position: relative; padding-left: 1.25rem; }
.legal-pagina__texto li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}
.legal-pagina__texto a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal-pagina__texto strong { color: var(--text-strong); }

/* Etiqueta de privacidad: la tabla en escritorio, fichas apiladas en el celular */
.etiqueta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  font-size: 0.9375rem;
}
.etiqueta__tabla { width: 100%; border-collapse: collapse; }
.etiqueta__tabla th,
.etiqueta__tabla td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.etiqueta__tabla thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.etiqueta__tabla tbody th { font-weight: 600; color: var(--text-strong); }
.etiqueta__tabla td { color: var(--text-muted); }
@media (max-width: 639px) {
  .etiqueta__tabla thead { display: none; }
  .etiqueta__tabla tr { display: block; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
  .etiqueta__tabla th,
  .etiqueta__tabla td { display: block; padding: 0; border: 0; }
  .etiqueta__tabla td { margin-top: 0.15rem; }
  .etiqueta__tabla td:last-child { font-size: 0.8125rem; color: var(--text-faint); }
}
.etiqueta__datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 1rem;
}
.etiqueta__datos div { display: flex; justify-content: space-between; gap: 1rem; }
.etiqueta__datos dt { color: var(--text-muted); }
.etiqueta__datos dd { margin: 0; font-weight: 600; color: var(--text-strong); }

.legal-pagina__pie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-pagina__pie a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (hover: hover) {
  .legal-pagina__pie a:hover { color: var(--text); }
}
