/* =========================================================
   Savoria Meals · Estilos
   Estructura y ritmo copiados de factor75.com: blanco con
   bloques off-white y arena, negro para acciones, tarjetas
   redondeadas. El cliente pidió off-white, negro, blanco y dorado.
   ========================================================= */

:root {
  /* Paleta */
  --black: #121212;
  --ink: #242424;
  --ink-soft: #5c5a56;
  --muted: #77736c;
  --white: #ffffff;
  --offwhite: #f2f0eb;      /* hero y bloques claros */
  --sand: #ede5d8;          /* panel de "comida de verdad" */
  --stone: #e4ded3;         /* secciones con plato grande */
  --line: #e2ddd4;
  --gold: #af8410;          /* dorado del logo Savoria Meals */
  --gold-soft: #dcc27e;
  --gold-deep: #7a5c0c;     /* dorado legible sobre claro */
  --error: #b42318;
  --whatsapp: #128c4a;

  /* Tipografía (las mismas familias que Factor) */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Escala */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -12px rgb(0 0 0 / 0.25);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 76px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--black); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.press { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.press:active { transform: scale(0.97); }

/* ---------- Botones (Factor: negro, mayúsculas, esquinas casi rectas) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-xs);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--black); color: #fff; }
.btn-ghost { background: var(--white); color: var(--black); border-color: var(--black); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.7); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:not(:disabled):hover { background: #333; }
  .btn-ghost:not(:disabled):hover { background: var(--offwhite); }
  .btn-gold:hover { background: var(--gold-soft); }
  .btn-outline-light:hover { background: rgb(255 255 255 / 0.12); }
  .btn-whatsapp:not(:disabled):hover { background: #0e7a40; }
}
.fine { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
/* Logo Savoria Meals: versión compacta (gorro + nombre); en celulares angostos, solo el gorro */
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand-logo img { display: block; width: auto; }
.brand-logo-full { height: 44px; }
.brand-logo .brand-logo-mark { display: none; }
.main-nav { display: none; gap: 2px; }
.main-nav a { padding: 8px 12px; text-decoration: none; font-size: 0.95rem; color: var(--ink); border-bottom: 2px solid transparent; transition: border-color 180ms ease; }
.main-nav a.is-active { border-bottom-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { border-bottom-color: var(--ink); } }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-count:empty, .cart-count[data-zero] { display: none; }
.cart-count.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); } }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius-xs);
  background: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
}
.account-btn svg { display: none; }
.account-btn[data-state="in"] { padding: 0 14px 0 4px; }
@media (hover: hover) and (pointer: fine) { .account-btn:hover { background: var(--offwhite); } }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--black);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.8rem;
}
@media (min-width: 1040px) { .main-nav { display: flex; } }
@media (max-width: 520px) {
  .brand-logo-full { height: 30px; }
}
@media (max-width: 430px) {
  .brand-logo-full { height: 24px; }
}
@media (max-width: 380px) {
  .brand-logo .brand-logo-full { display: none; }
  .brand-logo .brand-logo-mark { display: block; height: 38px; }
}
@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .header-tools { gap: 6px; }
  .account-btn { padding: 0 12px; }
  .account-btn[data-state="in"] .account-name { display: none; }
  .account-btn[data-state="in"] { padding: 0 4px; border-color: transparent; }
}

.promo-bar { background: var(--black); color: #fff; text-align: center; font-size: 0.85rem; font-weight: 600; padding: 7px var(--gutter); }
.promo-bar a { color: var(--gold-soft); font-weight: 700; text-underline-offset: 3px; }

.lang-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-switch button { min-width: 34px; min-height: 32px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-soft); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--black); color: #fff; }

/* ---------- Secciones comunes ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.2vw, 2rem); line-height: 1.25; margin-bottom: 28px; }
.section-title.big { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 12px; }
.section-kicker { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; }
.section-lead { text-align: center; max-width: 620px; margin: 0 auto 32px; color: var(--ink-soft); font-size: 1.05rem; }
.cta-stack { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }

/* ---------- Hero dividido ---------- */
.hero { display: grid; background: var(--offwhite); }
.hero-copy { display: flex; align-items: center; padding: 40px var(--gutter); order: 2; }
.hero-copy-inner { max-width: 420px; display: grid; gap: 20px; justify-items: start; }
.hero-logo { width: clamp(200px, 24vw, 280px); height: auto; margin: 0 0 4px -6px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 2.6rem); line-height: 1.2; color: #343434; }
.hero-copy p:not(.fine) { color: var(--ink); font-size: 1.05rem; }
.hero-copy .fine { margin-top: -8px; }
.hero { overflow: hidden; }
.hero-media { order: 1; position: relative; will-change: transform; }
.hero-media img, .hero-video { display: block; width: 100%; height: 100%; max-height: 62vh; object-fit: cover; background: var(--offwhite); }
@media (max-width: 899px) { .hero-video { aspect-ratio: 4 / 3; height: auto; } } /* todos los videos con la misma altura en celular */
.video-toggle { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(18 18 18 / 0.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle svg[hidden] { display: none; } /* svg es display:block en general y le ganaba a [hidden] */
@media (hover: hover) and (pointer: fine) { .video-toggle:hover { background: rgb(18 18 18 / 0.8); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .hero-copy { order: 0; justify-content: flex-end; padding: 56px 72px 56px var(--gutter); }
  .hero-copy-inner { width: 420px; }
  .hero-media { order: 0; }
  .hero-media img, .hero-video { max-height: 600px; }
  .hero-media { min-height: 520px; }
}

/* ---------- Franja de confianza ---------- */
.trust { border-bottom: 1px solid var(--line); padding: 36px 0; }
.trust-grid { display: grid; gap: 24px; text-align: center; }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--black); text-transform: uppercase; }
.trust p { font-style: italic; color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Foto + panel arena ---------- */
.split-card { display: grid; border-radius: var(--radius); overflow: hidden; max-width: 904px; margin: 0 auto; }
.split-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.split-card-copy { background: var(--sand); padding: 36px 32px; display: grid; gap: 20px; align-content: center; }
.split-card-copy h3 { font-size: 1.05rem; }
.split-card-copy p { color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 800px) { .split-card { grid-template-columns: 1fr 1fr; } .split-card-copy { padding: 48px 46px; } }

/* ---------- Carrusel del menú ---------- */
.rail { margin-top: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 12px; }
.rail-card {
  position: relative;
  flex: 0 0 min(76vw, 278px);
  aspect-ratio: 278 / 352;
  border-radius: var(--radius-sm);
  overflow: hidden;
  scroll-snap-align: start;
  background: #2a2826; /* fondo oscuro si la foto no carga: el título blanco sigue legible */
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.rail-card::before { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(rgb(0 0 0 / 0.6), transparent); z-index: 1; }
.rail-card h3 { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.rail-card .rail-price { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--black); font-weight: 700; font-size: 0.85rem; }
@media (hover: hover) and (pointer: fine) { .rail-card:hover img { transform: scale(1.04); } }
.rail-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--black); background: var(--white); display: grid; place-items: center; }
.round-btn:disabled { border-color: var(--line); color: var(--line); cursor: default; }

/* ---------- Cómo funciona ---------- */
.how-grid { display: grid; gap: 32px; max-width: 904px; margin: 0 auto; text-align: center; }
.how-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.how-grid h3 { font-size: 1rem; }
.how-grid p { color: var(--ink-soft); font-size: 0.97rem; max-width: 280px; margin: 2px auto 0; }
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ---------- Así se ve comer bien ---------- */
.well { background: var(--stone); padding: 56px 0 64px; overflow: hidden; }
.well-stage { position: relative; max-width: 820px; margin: 0 auto; }
.well-stage img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 40px 60px -40px rgb(0 0 0 / 0.5); }
.pill { position: absolute; padding: 10px 20px; border-radius: 14px; background: var(--black); color: #fff; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.pill.p1 { left: -2%; top: 10%; }
.pill.p2 { right: -2%; top: 4%; }
.pill.p3 { left: 4%; bottom: 8%; }
.pill.p4 { right: 2%; bottom: 14%; }
@media (max-width: 720px) {
  .well-stage { display: grid; gap: 8px; }
  .pill { position: static; justify-self: center; font-size: 0.85rem; }
  .well-stage img { margin-bottom: 8px; }
}

/* ---------- Únete ---------- */
.join { background: var(--stone); display: grid; justify-items: center; gap: 24px; padding: 56px var(--gutter); overflow: hidden; }
.join-copy { text-align: center; display: grid; gap: 22px; justify-items: center; max-width: 380px; }
.join-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; }
.join-copy ul { display: grid; gap: 6px; font-size: 1.05rem; }
.join-copy li::before { content: "✓ "; color: var(--gold-deep); font-weight: 700; }
.join-plate { width: min(420px, 80%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 40px 50px -30px rgb(0 0 0 / 0.55); }
.join-plate.right { display: none; }
@media (min-width: 1000px) {
  .join { grid-template-columns: 1fr auto 1fr; align-items: center; padding: 64px 0; }
  .join-plate { width: 380px; }
  .join-plate.left { justify-self: end; margin-left: -60px; }
  .join-plate.right { display: block; justify-self: start; margin-right: -60px; }
}

/* ---------- Planes (momentos) ---------- */
.moments { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 904px; margin: 0 auto; }
.moment { display: grid; gap: 6px; justify-items: center; align-content: start; text-align: center; text-decoration: none; }
.moment img { width: 100%; aspect-ratio: 206 / 252; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px; transition: transform 400ms var(--ease-out); }
.moment h3 { font-size: 1rem; }
.moment p { color: var(--ink-soft); font-size: 0.95rem; max-width: 190px; }
.moment .moment-price { color: var(--gold-deep); font-weight: 700; font-size: 0.92rem; }
@media (hover: hover) and (pointer: fine) { .moment:hover img { transform: translateY(-4px); } }
/* 6 menús: 3 por fila en escritorio (2 filas parejas) */
@media (min-width: 800px) { .moments { grid-template-columns: repeat(3, 1fr); max-width: 780px; } }

/* ---------- Cifras ---------- */
.stats { padding: 64px 0; background: linear-gradient(115deg, var(--offwhite), #f4efe2); }
.stats-grid { display: grid; gap: 20px; max-width: 940px; margin: 0 auto; }
.stat { background: var(--white); border-radius: var(--radius-sm); padding: 28px 26px 22px; }
.stat-k { color: var(--gold-deep); font-weight: 600; }
.stat-n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1.3; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1.5px solid #9a968e; }
.stat-d { font-size: 0.85rem; color: var(--ink-soft); }
.stats-note { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Carta (menú completo) ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--black); border-color: var(--black); color: #fff; }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { border-color: var(--black); } }
.carta-head { display: grid; gap: 18px; align-items: center; background: var(--offwhite); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.carta-head img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
.carta-head-copy { padding: 8px 24px 28px; display: grid; gap: 10px; justify-items: start; }
.carta-head-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.01em; }
.carta-head-copy .tagline { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700; color: var(--gold-deep); }
.carta-head-copy p { color: var(--ink-soft); }
.carta-price { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.carta-price small { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); margin-left: 6px; }
@media (min-width: 800px) { .carta-head { grid-template-columns: 1fr 1fr; } .carta-head-copy { padding: 36px 40px; } }
.dish-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dish {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-body { padding: 16px; display: grid; gap: 6px; grid-template-rows: auto 1fr auto; }
.dish h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.dish p { font-size: 0.92rem; color: var(--ink-soft); }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.dish .btn { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.dish.is-blocked { opacity: 0.5; }
.dish-tag { font-size: 0.75rem; font-weight: 700; color: var(--error); }
.carta-note { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--gold-soft); border-radius: var(--radius-sm); background: #fbf7ef; font-style: italic; color: var(--ink-soft); text-align: center; }
.size-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 20px; }
.size-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--white); }
.size-card strong { display: block; font-family: var(--font-display); }
.size-card span { font-size: 0.9rem; color: var(--ink-soft); }
.sides-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.sides-list li { padding: 6px 12px; border-radius: 999px; background: var(--offwhite); font-size: 0.9rem; font-weight: 600; }
.pending-note { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--gold-deep); font-weight: 600; }

/* ---------- Dentro / Fuera ---------- */
.purpose { position: relative; display: grid; place-items: center; padding: 48px var(--gutter); min-height: 560px; overflow: hidden; }
.purpose > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.purpose-card { position: relative; background: var(--white); border-radius: var(--radius); padding: 36px 32px; width: min(360px, 100%); text-align: center; }
.purpose-card h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 22px; }
.purpose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.purpose-cols > div { border-radius: var(--radius); padding: 18px 10px; }
.purpose-cols .in { background: var(--offwhite); }
.purpose-cols .out { background: var(--black); color: #fff; }
.purpose-cols .out h3 { color: #fff; }
.purpose-cols h3 { font-size: 1.15rem; margin-bottom: 12px; }
.purpose-cols li { font-size: 0.85rem; padding: 34px 2px 14px; position: relative; }
.purpose-cols li::before { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.purpose-cols .in li::before { content: "✓"; background: var(--black); color: #fff; }
.purpose-cols .out li::before { content: "✕"; color: var(--gold-soft); font-size: 1.1rem; }

/* ---------- Pilares negros ---------- */
.pillars { padding-top: 28px; border-bottom: 1px solid var(--line); }
.pillars-grid { display: grid; gap: 16px; max-width: 920px; }
.pillars-grid > div { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; display: grid; gap: 14px; align-content: center; min-height: 240px; }
.pillars-grid h3 { color: #fff; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.2; }
.pillars-grid p { font-size: 0.95rem; color: #e6e2da; }
@media (min-width: 800px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* ---------- Catering ---------- */
.leads-grid { display: grid; gap: 40px; align-items: start; }
.leads-copy { display: grid; gap: 16px; }
.leads-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; }
.leads-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.checks { display: grid; gap: 8px; }
.checks li::before { content: "✓ "; color: var(--gold-deep); font-weight: 700; }
.lead-form { display: grid; gap: 16px; background: var(--offwhite); border-radius: var(--radius); padding: 28px; }
.lead-kind { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.lead-kind label { position: relative; }
.lead-kind input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lead-kind span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 0.9rem; }
.lead-kind input:checked + span { background: var(--black); color: #fff; border-color: var(--black); }
.lead-kind input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.lead-done { font-weight: 700; color: var(--whatsapp); }
@media (min-width: 900px) { .leads-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* ---------- Cierre dividido ---------- */
.final { display: grid; background: var(--offwhite); }
.final-copy { display: flex; align-items: center; padding: 48px var(--gutter); }
.final-copy-inner { display: grid; gap: 18px; justify-items: start; max-width: 380px; }
.final h2 { font-size: clamp(1.9rem, 3.4vw, 2.3rem); line-height: 1.2; color: var(--black); }
.final-copy p:not(.fine) { font-size: 1.1rem; }
.final-copy .fine { margin-top: -6px; }
.final > img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
@media (min-width: 900px) {
  .final { grid-template-columns: 1fr 1fr; }
  .final-copy { justify-content: flex-end; padding: 56px 80px 56px var(--gutter); }
  .final > img { max-height: 460px; }
}

.brand-band { background: var(--black); color: #fff; padding: 22px 0; overflow: hidden; white-space: nowrap; }
.brand-track { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 3.4rem); letter-spacing: 0.32em; animation: marquee 38s linear infinite; }
.band-logo { height: clamp(46px, 6.5vw, 84px); width: auto; flex-shrink: 0; }
.band-sep { color: var(--gold); font-size: 0.5em; margin: 0 0.6em; }
.band-text { font-size: 0.42em; letter-spacing: 0.24em; font-weight: 600; color: #d9d4ca; }

/* ---------- Preguntas ---------- */
.faq { background: #f7f6f2; padding: 56px 0 64px; }
.faq .section-title { margin-bottom: 32px; }
.faq-list { max-width: 920px; margin: 0 auto; display: grid; gap: 6px; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold-deep); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; transition: transform 220ms var(--ease-out); }
.faq-chev svg { width: 16px; height: 16px; stroke-width: 2.2; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 4px 0 14px 40px; color: var(--ink-soft); }
.faq-body a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 110px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.site-footer h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { font-size: 0.9rem; text-underline-offset: 3px; }
.footer-visit p { font-size: 0.9rem; margin-bottom: 10px; }
.footer-visit a { text-decoration: none; }
.footer-brand { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: clamp(220px, 30vw, 300px); height: auto; display: block; }
.footer-brand p { max-width: 420px; color: var(--ink-soft); font-size: 0.95rem; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }
.footer-bottom strong { color: var(--ink); }
@media (min-width: 820px) { .site-footer { padding-bottom: 48px; } }

/* ---------- Barra móvil ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line); transition: transform 300ms var(--ease-out); }
.mobile-bar .btn { width: 100%; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 820px) { .mobile-bar { display: none; } }

/* =========================================================
   Pedido: drawer, hoja de plato y toast (shop.js)
   ========================================================= */
.drawer-scrim, .modal-scrim { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 260ms ease; }
.drawer-scrim.is-open, .modal-scrim.is-open { opacity: 1; }
.modal-scrim { z-index: 140; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
}
.drawer.is-open { transform: translateX(0); visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 16px; overscroll-behavior: contain; }
.drawer-plan { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--offwhite); font-size: 0.9rem; font-weight: 600; }
.drawer-plan[hidden] { display: none; }
.cart-list { display: grid; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@starting-style { .cart-item { opacity: 0; transform: translateY(8px); } }
.cart-item.is-leaving { opacity: 0; transform: translateX(16px); }
.cart-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item h3 { font-size: 0.95rem; line-height: 1.3; }
.cart-item p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }
.cart-item-side { display: grid; justify-items: end; gap: 2px; }
.cart-item-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-remove { border: 0; background: none; padding: 6px 0; min-height: 32px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { display: grid; justify-items: center; gap: 14px; padding: 48px 0; text-align: center; color: var(--ink-soft); }
.cart-empty[hidden] { display: none; }
.drawer-foot { padding: 16px 22px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer-total span { font-weight: 600; color: var(--ink-soft); }
.drawer-total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; }
.price-swap { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.price-swap.is-swapping { filter: blur(3px); opacity: 0.4; }

/* Hoja para escoger un plato */
.sheet {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 0;
  width: min(560px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translate(-50%, 100%);
  transition: transform 380ms var(--ease-drawer);
}
.sheet.is-open { transform: translate(-50%, 0); }
@media (min-width: 720px) {
  .sheet { top: 50%; bottom: auto; border-radius: var(--radius-lg); max-height: 88dvh; transform: translate(-50%, -46%); opacity: 0; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-media { position: relative; flex-shrink: 0; }
.sheet-media img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sheet-media .icon-btn { position: absolute; top: 12px; right: 12px; }
.sheet-body { overflow-y: auto; padding: 20px 24px; display: grid; gap: 18px; overscroll-behavior: contain; }
.sheet-body h2 { font-size: 1.5rem; }
.sheet-tag { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--gold-deep); }
.sheet-desc { color: var(--ink-soft); }
.sheet-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sheet-group legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.sheet-group legend small { font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.sheet-foot { padding: 14px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sheet-hint { font-size: 0.85rem; color: var(--ink-soft); text-align: center; min-height: 1.2em; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 50%; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Segmentos (tamaños / platos por semana) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
/* Tamaños en la hoja de plato: en celular pasan a 2 columnas para que no se monte el texto */
@media (max-width: 480px) { .sheet .seg[data-seg=size] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
.seg button {
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  line-height: 1.15;
}
.seg button small { display: block; font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.seg button[aria-pressed="true"] small { color: var(--gold-soft); }

/* Chips de selección */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
  touch-action: manipulation;
}
.chip:active { transform: scale(0.97); }
.chip-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--offwhite)); box-shadow: inset 0 -2px 5px rgb(0 0 0 / 0.15); flex-shrink: 0; display: grid; place-items: center; }
.chip-dot svg { width: 14px; height: 14px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 180ms ease, transform 240ms var(--ease-out); }
.chip-price { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { border-color: var(--black); background: var(--offwhite); box-shadow: inset 0 0 0 1px var(--black); }
.chip[aria-pressed="true"] .chip-dot svg { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.6)); }
.chip:disabled { cursor: not-allowed; opacity: 0.45; }
.chip:disabled span:last-child { text-decoration: line-through; }
@media (hover: hover) and (pointer: fine) { .chip:not(:disabled):hover { border-color: var(--ink-soft); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
  max-width: calc(100% - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--gold-soft); stroke-width: 2.6; }
@media (min-width: 820px) { .toast { bottom: 32px; } }

/* =========================================================
   Cuentas (modal de auth.js) y campos
   ========================================================= */
.auth-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 150;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 28px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out);
}
.auth-modal.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.auth-close { position: absolute; top: 14px; right: 14px; }
.auth-logo { display: block; width: 120px; height: auto; margin: 0 auto 12px; }
.auth-modal h2 { font-size: 1.7rem; }
.auth-sub { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.auth-reason { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--offwhite); font-weight: 600; font-size: 0.92rem; }
.auth-reason[hidden] { display: none; }
.auth-tabs { margin: 20px 0 18px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--black); }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-error { color: var(--error); font-weight: 600; font-size: 0.92rem; }
.auth-error:empty { display: none; }
.auth-step { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--gold-deep); margin-bottom: 6px; }
.auth-step[hidden] { display: none; }
.link-btn { justify-self: center; background: none; border: 0; padding: 4px; font: inherit; font-size: 0.9rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn[hidden] { display: none; }
.prefs-view { text-align: left; }
.prefs-view > .auth-step, .prefs-view > h2, .prefs-view > .auth-sub { text-align: center; }
.prefs-view h2:focus { outline: none; }
.prefs-mount { display: grid; gap: 22px; margin: 24px 0 20px; }
.auth-modal[data-current-view="prefs"] { width: min(560px, calc(100% - 32px)); }

.field { display: grid; gap: 6px; align-content: start; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid #c9c4ba;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a62; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgb(180 138 74 / 0.3); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input:disabled { background: var(--offwhite); color: var(--ink-soft); }
.field-help { font-size: 0.85rem; color: var(--ink-soft); }
.field-error { font-size: 0.86rem; color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 92px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-xs); background: var(--offwhite); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.pref-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.pref-group legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 0; }
.pref-group .field-help { margin: 2px 0 12px; }

/* =========================================================
   Página de perfil
   ========================================================= */
.profile-page .site-header .header-inner { gap: 12px; }
.back-btn { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.back-btn svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .back-btn span { display: none; } .back-btn { width: 40px; padding: 0; } }
.profile-hero { background: var(--black); color: #fff; padding-bottom: 96px; }
.profile-hero-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 36px; }
.profile-hero .avatar { width: 80px; height: 80px; font-size: 1.8rem; box-shadow: inset 0 0 0 2px var(--gold); }
.profile-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; }
.profile-hero p { color: #d9d4ca; }
.profile-hero .btn { margin-left: auto; }
.profile-stats { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 8px; font-size: 0.92rem; font-weight: 700; color: var(--gold-soft) !important; }
.profile-main { margin-top: -56px; padding-bottom: 80px; position: relative; }
.profile-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 16px 20px; background: var(--white); border: 1.5px solid var(--gold); border-radius: var(--radius); font-weight: 600; }
.profile-alert[hidden] { display: none; }
.profile-tabs { display: flex; gap: 4px; padding: 0 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.profile-tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--gold); }
.tab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--offwhite); color: var(--ink); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.panel { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: clamp(22px, 4vw, 40px); }
.panel[hidden] { display: none; }
.panel.is-entering { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; } }
.panel h2 { font-size: 1.6rem; }
.panel-lead { margin-top: 6px; color: var(--ink-soft); }
.panel-form { margin-top: 24px; display: grid; gap: 18px; max-width: 760px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.save-status { font-size: 0.92rem; font-weight: 700; color: var(--whatsapp); opacity: 0; transition: opacity 200ms ease; }
.save-status.is-visible { opacity: 1; }
.meal-grid { margin-top: 24px; display: grid; }
.meal-card { display: grid; grid-template-columns: 64px 1fr; gap: 8px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@media (min-width: 720px) { .meal-card { grid-template-columns: 64px 1fr auto; } .meal-card .meal-actions { grid-column: auto; } }
.meal-card.is-leaving { opacity: 0; transform: translateX(12px); }
.meal-swatch { position: relative; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #2a2a2a 0 55%, #121212 100%); }
.meal-swatch::before { content: ""; position: absolute; inset: 12px 24px 22px 10px; border-radius: 50%; background: var(--c); }
.meal-swatch::after { content: ""; position: absolute; width: 18px; height: 18px; right: 10px; bottom: 14px; border-radius: 50%; background: var(--c2, #5f9a43); }
.meal-card h3 { font-size: 1.05rem; line-height: 1.3; }
.meal-card p { font-size: 0.9rem; color: var(--ink-soft); }
.meal-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meal-actions .btn { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }
.link-danger { border: 0; background: none; color: var(--error); font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 8px; }
.order-list { margin: 24px 0 0; display: grid; }
.order-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.order-head strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-date { font-weight: 700; }
.order-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }
.order-status { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border: 1px solid currentColor; color: var(--gold-deep); }
.order-status[data-status="lista"] { color: #2f5418; }
.order-status[data-status="entregada"] { color: var(--ink-soft); }
.order-status[data-status="cancelada"] { color: var(--error); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order-items { margin: 8px 0 14px; padding-left: 18px; list-style: disc; color: var(--ink-soft); font-size: 0.94rem; }
.reset-form { width: min(100%, 380px); margin-top: 8px; }
.empty-state { margin-top: 24px; display: grid; justify-items: start; gap: 12px; padding: 28px 0; color: var(--ink-soft); }
.empty-state svg { display: none; }
.empty-state[hidden] { display: none; }
.signed-out { max-width: 520px; margin: 80px auto; text-align: center; display: grid; gap: 16px; justify-items: center; }
.signed-out[hidden] { display: none; }
.signed-out .seal-logo { display: block; width: 190px; height: auto; margin: 0 auto 8px; }
.signed-out p { color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* =========================================================
   Encuesta "Empezar" (empezar.html · quiz.js) — como factor75.com/plans
   ========================================================= */
.quiz-page { background: var(--white); }
.quiz-top { position: sticky; top: 0; z-index: 40; background: var(--white); }
.quiz-top-inner { height: 64px; display: flex; align-items: center; gap: 20px; }
.quiz-mark { display: grid; place-items: center; flex-shrink: 0; line-height: 0; }
.quiz-mark img { height: 40px; width: auto; }
.stepper { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.stepper ol { display: grid; grid-template-columns: repeat(3, 1fr); }
.stepper li { position: relative; padding-top: 14px; font-size: 0.72rem; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: #cfcac0; }
.stepper li::after { content: ""; position: absolute; top: 1px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #9a968e; }
.stepper li:last-child { text-align: right; }
.stepper li:last-child::after { left: auto; right: 0; }
.stepper li:nth-child(2) { text-align: center; }
.stepper li:nth-child(2)::after { left: 50%; transform: translateX(-50%); }
.stepper .bar { position: absolute; top: 4px; left: 0; height: 2px; width: var(--p, 0%); background: var(--black); transition: width 400ms var(--ease-out); z-index: 1; }
.stepper li.is-current { color: var(--black); font-weight: 700; }
.stepper li.is-current::after, .stepper li.is-done::after { background: var(--black); }
.stepper li.is-done::before { background: var(--black); }
.quiz-lang { margin-left: auto; }
.quiz-banner { background: var(--gold-soft); color: var(--black); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 9px var(--gutter); }

.quiz-main { min-height: calc(100dvh - 64px - 38px - 76px); padding: 28px 0 120px; }
.q-step { display: grid; gap: 28px; align-items: start; }
.q-step[hidden] { display: none; }
.q-step.is-entering { animation: q-in 320ms var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } }
.q-step.has-media { grid-template-columns: 1fr; }
@media (min-width: 880px) { .q-step.has-media { grid-template-columns: minmax(0, 430px) minmax(0, 460px); justify-content: center; gap: 44px; } }
.q-head h1 { font-size: clamp(1.6rem, 3vw, 1.85rem); line-height: 1.25; }
.q-step h1:focus { outline: none; }
.q-head p { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.q-body { display: grid; gap: 22px; }
.q-media img { width: 100%; aspect-ratio: 460 / 520; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 879px) { .q-media { display: none; } }
.q-tip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--offwhite); border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; }
.q-tip span { font-size: 1.5rem; }
.q-wide { max-width: 900px; margin: 0 auto; width: 100%; }

.opt-list { display: grid; gap: 10px; }
.opt-list.two { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative;
  min-height: 52px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #cfcac0;
  border-radius: var(--radius-xs);
  background: var(--white);
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.opt[aria-pressed="true"]::after, .opt[aria-checked="true"]::after { content: "✓"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--black); color: #fff; font-size: 0.7rem; display: grid; place-items: center; }
.opt .opt-icon { margin-right: 8px; }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--ink); } }

.tile-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tile {
  position: relative;
  min-height: 100px;
  padding: 14px;
  border: 1px solid #cfcac0;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 10px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.tile .tile-icon { font-size: 1.7rem; line-height: 1; }
.tile[aria-pressed="true"] { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.tile[aria-pressed="true"] .tile-icon { filter: grayscale(1); opacity: 0.55; }
.tile[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--black); color: #fff; font-size: 0.7rem; display: grid; place-items: center; }
.tile.avoid[aria-pressed="true"] .tile-icon { position: relative; }
.tile.avoid[aria-pressed="true"]::before { content: ""; position: absolute; left: 12px; top: 26px; width: 34px; height: 2px; background: var(--black); transform: rotate(-35deg); }

.thumb-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.thumb-card { display: grid; gap: 10px; justify-items: start; }
.thumb-card .tile-icon { font-size: 2rem; }
.thumb-card strong { font-size: 0.95rem; }
.thumbs { display: flex; gap: 8px; }
.thumbs button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--offwhite); font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.thumbs button[aria-pressed="true"] { background: var(--black); border-color: var(--black); }
.thumbs button[aria-pressed="true"] span { filter: grayscale(1) brightness(3); }
.thumbs button:active { transform: scale(0.92); }

.q-why { display: grid; gap: 22px; }
.q-why li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.q-why .why-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--offwhite); display: grid; place-items: center; font-size: 1.3rem; }
.q-why strong { display: block; }
.q-why p { font-size: 0.9rem; color: var(--ink-soft); }

.q-inter { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--offwhite); border-radius: var(--radius); padding: 40px 20px; }
.q-inter h1 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 420px; margin: 0 auto; }
.q-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; margin: 26px auto 0; }
.q-pills span { padding: 8px 14px; border-radius: 10px; background: var(--gold-soft); font-weight: 700; font-size: 0.85rem; opacity: 0; transform: translateY(8px); animation: pill-in 420ms var(--ease-out) forwards; }
@keyframes pill-in { to { opacity: 1; transform: none; } }
.q-inter img { width: min(340px, 80%); margin: 28px auto 0; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 40px -24px rgb(0 0 0 / 0.5); }

.zip-field { position: relative; }
.zip-field input { padding-left: 40px; }
.zip-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.zip-ok { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #2f6b2b; }
.zip-ok.is-far { color: var(--gold-deep); font-weight: 600; }
.zip-ok[hidden] { display: none; }

.plan-box { display: grid; gap: 14px; }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-row h2 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
.plan-total { font-weight: 700; }
.plan-total s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.plan-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.badge { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--gold); color: var(--black); font-size: 0.72rem; font-weight: 700; }
.plan-each { font-size: 0.85rem; color: var(--ink-soft); }
.plan-flex { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--offwhite); border-radius: var(--radius-sm); }
.plan-flex span { font-size: 1.6rem; }
.plan-flex strong { display: block; font-size: 0.9rem; }
.plan-flex p { font-size: 0.85rem; color: var(--ink-soft); }
.plan-note { font-size: 0.82rem; color: var(--ink-soft); }

.q-account { max-width: 440px; margin: 0 auto; display: grid; gap: 18px; }
.q-account h1 { text-align: center; }
.q-account .q-head p { text-align: center; }
.q-switch { text-align: center; font-size: 0.92rem; color: var(--ink-soft); }
.q-switch button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.q-signed { text-align: center; padding: 32px 20px; background: var(--offwhite); border-radius: var(--radius); display: grid; gap: 6px; justify-items: center; }
.q-signed .avatar { width: 56px; height: 56px; font-size: 1.2rem; margin-bottom: 6px; }

.q-pick-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.q-pick-head h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.q-pick-count { font-weight: 700; }
.q-pick-count b { color: var(--gold-deep); }

.quiz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); box-shadow: 0 -1px 0 var(--line); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); }
.quiz-bar-inner { max-width: 440px; margin: 0 auto; display: flex; gap: 10px; }
.quiz-bar .btn-ghost { flex: 0 0 auto; min-width: 72px; padding: 0 16px; text-transform: none; }
.quiz-bar .btn-primary { flex: 1; text-transform: none; font-size: 1rem; }
.quiz-bar [hidden] { display: none; }
.quiz-error { text-align: center; color: var(--error); font-weight: 600; font-size: 0.9rem; min-height: 1.2em; margin-top: 4px; }
.quiz-error:empty { display: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .sheet, .mobile-bar, .toast, .cart-item { transition-property: opacity, visibility; }
  .drawer { transform: none; opacity: 0; }
  .drawer.is-open { opacity: 1; }
  .sheet, .sheet.is-open { transform: translate(-50%, 0); }
  @media (min-width: 720px) { .sheet, .sheet.is-open { transform: translate(-50%, -50%); } }
  .auth-modal, .auth-modal.is-open { transform: translate(-50%, -50%); }
  .press:active, .chip:active { transform: none; }
  .panel.is-entering, .q-step.is-entering { animation: none; }
  .q-pills span { animation: none; opacity: 1; transform: none; }
  .rail-card img, .moment img { transition: none; }
}

/* =========================================================
   Movimiento (motion.js)
   ========================================================= */
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cinta de platos bajo el hero */
.ticker { background: var(--black); color: #fff; overflow: hidden; white-space: nowrap; padding: 12px 0; border-top: 1px solid #2a2a2a; }
.ticker-track { display: inline-flex; animation: marquee 60s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; padding: 0 22px; position: relative; }
.ticker-track span::after { content: "✦"; position: absolute; right: -6px; color: var(--gold); font-size: 0.7em; top: 50%; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track, .brand-band:hover .brand-track { animation-play-state: paused; } }

/* Mensajes que rotan en la barra promo */
.promo-msg { display: inline-block; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.promo-msg.is-out { opacity: 0; transform: translateY(-6px); }

/* Entrada del hero al cargar */
.hero-copy-inner > * { animation: rise 800ms var(--ease-out) both; }
.hero-copy-inner > *:nth-child(2) { animation-delay: 120ms; }
.hero-copy-inner > *:nth-child(3) { animation-delay: 240ms; }
.hero-copy-inner > *:nth-child(4) { animation-delay: 340ms; }
.hero-copy-inner > *:nth-child(5) { animation-delay: 420ms; }
.hero-media { animation: fade-in 1200ms ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Etiquetas del plato que flotan */
.pill { animation: bob 4.5s ease-in-out infinite; }
.pill.p2 { animation-delay: -1.2s; }
.pill.p3 { animation-delay: -2.4s; }
.pill.p4 { animation-delay: -3.3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 720px) { .pill { animation: none; } }

.well-stage img, .join-plate, .purpose > img { will-change: transform; transition: transform 120ms linear; }

/* Tarjetas que responden al pasar el mouse */
@media (hover: hover) and (pointer: fine) {
  .dish { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
  .dish img { transition: transform 600ms var(--ease-out); }
  .dish:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgb(0 0 0 / 0.35); }
  .dish:hover img { transform: scale(1.05); }
  .how-grid img, .split-card img { transition: transform 700ms var(--ease-out); }
  .how-grid li:hover img { transform: scale(1.03); }
  .pillars-grid > div { transition: transform 300ms var(--ease-out), background-color 300ms ease; }
  .pillars-grid > div:hover { transform: translateY(-6px); background: #1f1f1f; }
  .stat { transition: transform 300ms var(--ease-out); }
  .stat:hover { transform: translateY(-4px); }
  .btn-primary:not(:disabled):hover { transform: translateY(-1px); }
}

/* Header con sombra al bajar */
.site-header { transition: box-shadow 250ms ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgb(0 0 0 / 0.3); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .brand-track, .pill, .hero-copy-inner > *, .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-track { justify-content: center; }
}

/* =========================================================
   Páginas legales (privacidad.html, terminos.html)
   ========================================================= */
.legal { max-width: 760px; padding-block: 48px 72px; }
.legal-kicker { font-family: var(--font-display, inherit); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 8px 0 6px; }
.legal-date { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; margin: 10px 0; list-style: disc; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-also { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-footer { padding-block: 0 32px; }
.legal-footer .footer-bottom a { color: var(--ink-soft); }
.lead-form .fine a, .q-body .fine a, .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
