/* =========================================================
   Dani's Market · Comida de la semana
   Un mostrador de carnicería de Hialeah: toldo a rayas,
   banderita de precio, menú impreso y letrero en slab.
   Paleta tomada del logo: rojo carnicería, dorado y crema.
   ========================================================= */

:root {
  /* Marca */
  --red: #b3121f;
  --red-strong: #9e101b;
  --red-deep: #6e0a12;
  --gold: #c99a3e;
  --gold-soft: #e8c873;
  --gold-text: #7d5a14;           /* dorado legible sobre crema */
  --navy: #1f2a44;

  /* Superficies */
  --cream: #fbf5ea;
  --cream-2: #f3e7d2;
  --paper: #fffdf8;
  --ink: #2a1410;
  --ink-soft: #5c463c;
  --line: #e2cfb0;
  --rule: #2a1410;
  --whatsapp: #128c4a;

  /* Tipografía: letrero + slab de menú + texto */
  --font-sign: "Ultra", "Rockwell Extra Bold", Georgia, serif;
  --font-display: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Escala */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(42 20 16 / 0.08);
  --shadow: 0 2px 4px rgb(42 20 16 / 0.06), 0 10px 24px -12px rgb(42 20 16 / 0.28);
  --shadow-lg: 0 4px 10px rgb(42 20 16 / 0.08), 0 24px 48px -24px rgb(42 20 16 / 0.45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -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: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Iconos de trazo ---------- */
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;
}

/* ---------- Feedback al presionar ---------- */
.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 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-gold { background: var(--gold-soft); color: var(--red-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.6); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--red-strong); }
  .btn-ghost:hover { background: var(--ink); color: var(--cream); }
  .btn-gold:hover { background: #f0d68d; }
  .btn-outline-light:hover { background: rgb(255 255 255 / 0.1); border-color: #fff; }
  .btn-whatsapp:not(:disabled):hover { background: #0e7a40; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.3rem; color: var(--red); }
.brand-sub { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }

.main-nav { display: none; margin-left: auto; gap: 4px; }
.main-nav a {
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.main-nav a.is-active { color: var(--red); border-bottom-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--ink); }
}

.cart-btn,
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
}
.cart-btn { padding: 0 8px 0 16px; }
.account-btn { margin-left: auto; padding: 0 14px 0 10px; }
.account-btn[data-state="in"] { padding-left: 4px; }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .account-btn { margin-left: 8px; }
}
@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover, .account-btn:hover { border-color: var(--ink); }
}
@media (max-width: 520px) {
  .cart-label, .brand-sub, .account-btn .account-name { display: none; }
  .cart-btn { padding: 0 8px; }
  .account-btn { padding: 0 10px; }
  .account-btn[data-state="in"] { padding: 0 4px; }
}
.cart-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump {
  40% { transform: scale(1.25); }
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ---------- HERO: carrusel a pantalla completa ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.slider-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(600px, calc(100svh - var(--header-h)), 820px);
  touch-action: pan-y;
  cursor: grab;
}
.slider-viewport.is-dragging { cursor: grabbing; }
.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.slider-track.is-animating { transition: transform 900ms var(--ease-in-out); }

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.slide picture, .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide img {
  object-fit: cover;
  object-position: 70% 50%;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.06);
  transition: transform 1600ms var(--ease-out);
}
.slide.is-active img { transform: scale(1); }

/* Velo para que el texto se lea sobre la foto */
.slide-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(26 10 6 / 0.88) 0%, rgb(26 10 6 / 0.7) 34%, rgb(26 10 6 / 0.15) 62%, transparent 78%),
    linear-gradient(0deg, rgb(26 10 6 / 0.55) 0%, transparent 30%);
}

.slide-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 72px; /* espacio para los controles */
}
.slide-copy { max-width: 600px; }
.kicker { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--gold-text); }
.slide-copy .kicker { color: var(--gold-soft); margin-bottom: 16px; }
.slide-title {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: #fff;
  text-wrap: balance;
}
.slide-title span { color: var(--gold-soft); }
.slide-lead {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #f3e3cc;
}
.slide .hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.slide .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.7); }
@media (hover: hover) and (pointer: fine) {
  .slide .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
}
.slide .hero-fine { margin-top: 18px; font-size: 0.92rem; color: #dcc8ab; max-width: 46ch; }

/* El texto del slide activo entra en cascada cuando el slide llega */
.slide-copy > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 700ms var(--ease-out);
}
.slide.is-active .slide-copy > * { opacity: 1; transform: none; }
.slide.is-active .slide-copy > :nth-child(1) { transition-delay: 350ms; }
.slide.is-active .slide-copy > :nth-child(2) { transition-delay: 420ms; }
.slide.is-active .slide-copy > :nth-child(3) { transition-delay: 490ms; }
.slide.is-active .slide-copy > :nth-child(4) { transition-delay: 560ms; }
.slide.is-active .slide-copy > :nth-child(5) { transition-delay: 630ms; }

/* Banderita de precio clavada en el plato (viaja con su slide) */
.price-flag {
  position: absolute;
  top: 12%;
  right: clamp(24px, 12vw, 200px);
  display: grid;
  justify-items: center;
  min-width: 140px;
  padding: 10px 16px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 10px 20px -10px rgb(0 0 0 / 0.6);
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(-36px) rotate(-8deg);
  transition: opacity 300ms ease, transform 800ms var(--ease-out);
}
.slide.is-active .price-flag {
  opacity: 1;
  transform: rotate(5deg);
  transition-delay: 600ms;
}
.price-flag::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 4px;
  height: 110px;
  margin-left: -2px;
  background: linear-gradient(90deg, #c9ab73, #e9d4a6 50%, #b8955a);
  border-radius: 0 0 2px 2px;
  z-index: -1;
}
.flag-label { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.flag-price {
  font-family: var(--font-sign);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.flag-price small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); margin-right: 3px; vertical-align: 0.9em; }
.flag-price sup { font-size: 0.5em; vertical-align: 0.8em; margin-left: 1px; }

/* Controles sobre la foto */
.slider-controls { position: absolute; left: 0; right: 0; bottom: 22px; pointer-events: none; }
.slider-controls-inner { display: flex; align-items: center; gap: 6px; }
.slider-controls-inner > * { pointer-events: auto; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.carousel-dot span {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.4);
  overflow: hidden;
  transition: background-color 200ms ease;
}
.carousel-dot[aria-current="true"] span { width: 30px; background: rgb(255 255 255 / 0.25); }
.carousel-dot[aria-current="true"] span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-soft);
  transform-origin: left;
  animation: dot-progress var(--interval, 7s) linear forwards;
}
.hero.is-paused .carousel-dot[aria-current="true"] span::after { animation: none; transform: none; }
@keyframes dot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) {
  .carousel-dot:hover span { background: rgb(255 255 255 / 0.8); }
}
.carousel-count {
  margin-left: auto;
  padding-right: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f3e3cc;
  font-variant-numeric: tabular-nums;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.55);
  background: rgb(26 10 6 / 0.35);
  color: #fff;
}
.carousel-btn svg[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
}

/* Celular: foto vertical arriba, texto abajo sobre un velo inferior */
@media (max-width: 700px) {
  .slider-viewport { height: clamp(620px, calc(100svh - var(--header-h)), 760px); }
  .slide img { object-position: 50% 40%; }
  .slide-scrim {
    background: linear-gradient(0deg, rgb(26 10 6 / 0.95) 0%, rgb(26 10 6 / 0.82) 42%, rgb(26 10 6 / 0.2) 70%, transparent 85%);
  }
  .slide-inner { align-items: flex-end; padding-bottom: 84px; }
  .slide-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .slide-lead { margin-top: 12px; font-size: 1rem; }
  .slide .hero-ctas { margin-top: 18px; }
  .slide .hero-ctas .btn { flex: 1 1 auto; }
  .slide .hero-fine { display: none; }
  .price-flag { top: 18px; right: 16px; min-width: 112px; padding: 8px 12px 10px; }
  .price-flag::after { height: 64px; }
  .flag-price { font-size: 1.9rem; }
  .slider-controls { bottom: 14px; }
  .carousel-count { display: none; }
  .carousel-dots { margin-right: auto; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- Así funciona ---------- */
.how { padding-top: clamp(56px, 8vw, 96px); }
.how-grid {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 2px no-repeat;
}
@media (min-width: 960px) { .how-grid { grid-template-columns: 260px 1fr; gap: 48px; } }
.how h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.how-line {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .how-line { grid-template-columns: repeat(2, 1fr); gap: 28px 0; } }
@media (min-width: 1100px) { .how-line { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.how-line li { display: grid; gap: 6px; position: relative; }
@media (min-width: 760px) {
  .how-line li { padding: 0 24px; border-left: 1px solid var(--line); }
  .how-line li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1100px) {
  .how-line li:nth-child(odd) { padding-left: 24px; border-left: 1px solid var(--line); }
  .how-line li:first-child { padding-left: 0; border-left: 0; }
}
.how-line strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
}
.how-line span { color: var(--ink-soft); }

/* ---------- Menú de la semana ---------- */
.plans { background: var(--paper); border-block: 1px solid var(--line); }
.menu-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 4px double var(--rule);
}
.menu-head img { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; }
.menu-head p { margin-top: 8px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 520px) { .menu-head img { display: none; } }

.menu { display: grid; }
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.menu-row:last-child { border-bottom: 4px double var(--rule); }
@media (min-width: 900px) {
  .menu-row { grid-template-columns: 168px minmax(0, 1fr) 300px; align-items: start; }
}
.menu-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
@media (max-width: 899px) { .menu-photo { aspect-ratio: 16 / 9; } }

.menu-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.menu-line h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); white-space: nowrap; }
.menu-leader { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--ink-soft); transform: translateY(-6px); }
.menu-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.menu-price strong {
  font-family: var(--font-sign);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.menu-price sup { font-size: 0.5em; vertical-align: 0.75em; }
.menu-price small { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.menu-note {
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-text);
}
.menu-desc { margin-top: 12px; max-width: 52ch; }
.menu-includes { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); max-width: 60ch; }

.menu-order {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--cream);
  border-radius: var(--radius);
}
.menu-qty-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.menu-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu-total span { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.menu-total strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Fila especial: cortes premium, en tabla oscura como pizarra de carnicería */
.menu-row.is-premium {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: var(--ink);
  color: #f5e6cc;
  border-bottom-color: var(--ink);
}
.is-premium .menu-line h3 { color: var(--gold-soft); }
.is-premium .menu-leader { border-bottom-color: #8a7360; }
.is-premium .menu-price strong { color: var(--gold-soft); }
.is-premium .menu-price small,
.is-premium .menu-includes { color: #cdb795; }
.is-premium .menu-note { color: var(--gold-soft); }
.is-premium .menu-order { background: rgb(255 255 255 / 0.06); }
.is-premium .menu-qty-label,
.is-premium .menu-total span { color: #cdb795; }
.is-premium .menu-total strong { color: #fff; }
.is-premium .seg { background: rgb(255 255 255 / 0.08); }
.is-premium .seg button { color: #cdb795; }
.is-premium .seg button[aria-pressed="true"] { color: var(--ink); }
.is-premium .seg-thumb { background: var(--gold-soft); }

/* Control segmentado */
.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  isolation: isolate;
}
.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  z-index: -1;
  transition: transform 240ms var(--ease-out);
}
.seg button {
  min-height: 40px;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
  touch-action: manipulation;
}
.seg button[aria-pressed="true"] { color: var(--ink); }

.plans-note { margin-top: 28px; color: var(--ink-soft); font-weight: 600; }

/* Cambio de precio con blur */
.price-swap { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.price-swap.is-swapping { filter: blur(3px); opacity: 0.4; }

/* ---------- Arma tu plato ---------- */
.builder-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.builder-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.08rem; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .builder-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
  .plate-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

.b-step { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.b-step legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 14px;
  padding: 0;
}
.b-step legend small {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.b-step legend small.is-done { color: var(--whatsapp); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  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: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c, var(--cream-2));
  box-shadow: inset 0 -3px 6px rgb(0 0 0 / 0.16);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.chip-dot svg {
  width: 16px;
  height: 16px;
  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.85rem; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: #fff3ea; }
.chip[aria-pressed="true"] .chip-dot svg { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .chip:not(:disabled):hover { border-color: var(--ink-soft); }
}

.plate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.plate-stage { display: grid; place-items: center; padding: 8px 0 22px; }
.plate {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 58%, #f3ece0 70%, #e6dccb 100%);
  box-shadow: 0 20px 34px -18px rgb(42 20 16 / 0.5), inset 0 -6px 14px rgb(0 0 0 / 0.06);
}
.plate-rim { position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid rgb(201 154 62 / 0.55); }
.plate-slot {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 50%;
  background: var(--c, transparent);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
  box-shadow: inset 0 -6px 12px rgb(0 0 0 / 0.2), inset 0 4px 8px rgb(255 255 255 / 0.22);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 240ms var(--ease-out), transform 340ms var(--ease-out), background-color 240ms ease;
}
.plate-slot.is-filled { opacity: 1; transform: scale(1); }
.plate-slot.is-empty-hint {
  opacity: 1;
  transform: scale(1);
  background: transparent;
  border: 2px dashed #d8c7a8;
  box-shadow: none;
  color: #8f7b62;
  text-shadow: none;
  font-weight: 700;
}
.slot-protein { width: 48%; height: 48%; left: 10%; top: 22%; padding: 0 9%; font-size: 0.9rem; }
.slot-side-a { width: 32%; height: 32%; right: 10%; top: 12%; }
.slot-side-b { width: 32%; height: 32%; right: 14%; bottom: 10%; }
.plate-sauce {
  position: absolute;
  width: 18%;
  height: 18%;
  left: 14%;
  bottom: 10%;
  border-radius: 50%;
  background: var(--c, transparent);
  border: 3px solid #fff;
  box-shadow: 0 6px 12px -4px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 240ms var(--ease-out), transform 340ms var(--ease-out), background-color 240ms ease;
}
.plate-sauce.is-filled { opacity: 1; transform: scale(1); }

.plate-lines { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 0.95rem; }
.plate-lines li { display: flex; justify-content: space-between; gap: 12px; }
.plate-lines span:first-child { color: var(--ink-soft); }
.plate-lines span:last-child { font-weight: 700; text-align: right; }

.plate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  margin-bottom: 16px;
}
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.qty-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream-2); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.qty output { min-width: 44px; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .qty-btn:hover { background: var(--line); } }
.plate-total { text-align: right; display: grid; }
.plate-each { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.plate-total strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plate-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.plate-actions .btn { padding: 0 18px; }
@media (max-width: 440px) {
  .plate-card { padding: 20px; }
  .plate-actions { grid-template-columns: 1fr; }
}
.save-meal svg { width: 18px; height: 18px; }
.plate-hint { margin-top: 10px; min-height: 1.4em; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

/* ---------- Primero somos carnicería ---------- */
.why { background: var(--ink); color: #f5e6cc; }
.why-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1.1fr; } }
.why-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why h2 { font-family: var(--font-sign); font-weight: 400; color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.why-quote {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: #f0dcb8;
  max-width: 46ch;
}
.why-list { margin: 32px 0 0; display: grid; }
.why-list > div {
  display: grid;
  gap: 2px 24px;
  padding: 14px 0;
  border-top: 1px solid rgb(232 200 115 / 0.25);
}
@media (min-width: 600px) { .why-list > div { grid-template-columns: 220px 1fr; } }
.why-list dt { font-weight: 800; color: var(--gold-soft); }
.why-list dd { margin: 0; color: #d9c4a2; }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 300px 1fr; gap: 64px; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.faq-side p { margin-top: 12px; color: var(--ink-soft); }
.faq-side a { color: var(--red); font-weight: 700; white-space: nowrap; }
.faq-list { border-top: 2px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  min-height: 64px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; transition: transform 240ms var(--ease-out); }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%);
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-body { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--red); }
}

/* ---------- Cierre ---------- */
.final-cta { background: var(--red); color: #fff; text-align: center; padding-bottom: clamp(72px, 10vw, 120px); }
.final-inner { display: grid; justify-items: center; gap: 18px; padding-top: clamp(56px, 8vw, 96px); }
.final-cta h2 { font-family: var(--font-sign); font-weight: 400; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.final-cta p { color: #f8dccd; font-size: 1.12rem; max-width: 44ch; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e7d6bf; padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) {
  .site-footer { padding-bottom: 48px; }
  .footer-grid { grid-template-columns: auto 1fr; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 80px; height: 80px; border-radius: 14px; }
.footer-brand p { font-family: var(--font-display); font-weight: 700; color: var(--gold-soft); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; justify-self: start; }
@media (min-width: 820px) { .footer-contact { justify-self: end; } }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { color: var(--gold-soft); }
.footer-contact a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-legal { padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.85rem; color: #b5a18b; }

/* ---------- Barra móvil ---------- */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.mobile-bar .btn { flex: 1; min-height: 50px; padding: 0 18px; }
.mobile-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mobile-cart {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.mobile-cart .cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; font-size: 0.72rem; padding: 0 5px; }
@media (min-width: 820px) { .mobile-bar { display: none; } }

/* ---------- Drawer del pedido ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(26 10 6 / 0.5);
  opacity: 0;
  transition: opacity 300ms ease;
}
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -20px 0 60px -20px rgb(0 0 0 / 0.4);
  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: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.8rem; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; overscroll-behavior: contain; }
.cart-list { list-style: none; padding: 0; margin: 0; 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: 8px; object-fit: cover; }
.cart-item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 800; letter-spacing: 0; 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: 4px; }
.cart-item-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-remove {
  border: 0;
  background: none;
  padding: 6px 0;
  min-height: 32px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  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: 18px 22px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 14px; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer-total span { font-weight: 700; color: var(--ink-soft); }
.drawer-total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.drawer-note { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  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 de usuario (MVP)
   ========================================================= */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgb(26 10 6 / 0.55);
  opacity: 0;
  transition: opacity 200ms ease;
}
.modal-scrim.is-open { opacity: 1; }
.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(--cream);
  border-radius: var(--radius-lg);
  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 { width: 64px; height: 64px; border-radius: 12px; margin: 0 auto 14px; }
.auth-modal h2 { font-size: 2rem; }
.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(--cream-2);
  font-weight: 700;
  font-size: 0.92rem;
}
.auth-reason[hidden] { display: none; }
.auth-tabs {
  margin: 20px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--line);
}
.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.auth-tabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-error { color: var(--red); font-weight: 700; font-size: 0.92rem; }
.auth-error:empty { display: none; }
.auth-demo {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.auth-demo svg { width: 16px; height: 16px; color: var(--gold-text); }

/* Campos de formulario */
.field { display: grid; gap: 6px; align-content: start; }
.field[hidden] { display: none; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  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: #8f7b6c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(201 154 62 / 0.3); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field input:disabled { background: var(--cream-2); color: var(--ink-soft); }
.field-help { font-size: 0.85rem; color: var(--ink-soft); }
.field-error { font-size: 0.86rem; color: var(--red); font-weight: 700; }
.field-error:empty { display: none; }
.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: 6px;
  background: var(--cream-2);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* =========================================================
   Página de perfil
   ========================================================= */
.back-btn { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.back-btn svg { width: 18px; height: 18px; }
@media (min-width: 960px) { .back-btn { margin-left: 8px; } }
@media (max-width: 520px) {
  .back-btn span { display: none; }
  .back-btn { width: 44px; padding: 0; }
}

.profile-hero { background: var(--red); 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: 84px; height: 84px; font-size: 1.9rem; background: var(--red-deep); box-shadow: inset 0 0 0 3px var(--gold); }
.profile-hero h1 { font-family: var(--font-sign); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); color: #fff; }
.profile-hero p { color: #f8dccd; }
.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); }

.profile-main { margin-top: -56px; padding-bottom: 80px; position: relative; }
.profile-tabs {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  background: var(--paper);
  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: 3px solid transparent;
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}
.profile-tabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .profile-tabs button[aria-selected="false"]:hover { color: var(--ink); }
}
.tab-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.panel {
  background: var(--paper);
  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.9rem; }
.panel-lead { margin-top: 6px; color: var(--ink-soft); }
.panel-form { margin-top: 24px; display: grid; gap: 18px; max-width: 760px; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.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; }

.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.25rem; padding: 0; }
.pref-group .field-help { margin: 2px 0 12px; }

.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%, #fff 0 55%, #efe5d3 100%);
  box-shadow: 0 6px 12px -6px rgb(42 20 16 / 0.45);
}
.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-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.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: 44px; padding: 0 16px; font-size: 0.92rem; }
.link-danger {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 0 8px;
}

.order-list { list-style: none; padding: 0; 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.5rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.order-date { font-weight: 800; }
.order-items { margin: 8px 0 14px; padding-left: 18px; color: var(--ink-soft); font-size: 0.94rem; }

.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 img { width: 96px; height: 96px; border-radius: 16px; }
.signed-out h1 { font-family: var(--font-sign); font-weight: 400; }
.signed-out p { color: var(--ink-soft); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-track.is-animating { transition: none; }
  .slide img, .slide.is-active img { transform: none; transition: none; }
  .slide-copy > *, .slide.is-active .slide-copy > * { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  .price-flag, .slide.is-active .price-flag { transition: opacity 200ms ease; transition-delay: 0ms; }
  .slide.is-active .price-flag { transform: rotate(5deg); }
  .drawer, .mobile-bar, .toast, .cart-item { transition-property: opacity, visibility; }
  .drawer { transform: none; opacity: 0; }
  .drawer.is-open { opacity: 1; }
  .auth-modal, .auth-modal.is-open { transform: translate(-50%, -50%); }
  .press:active, .chip:active { transform: none; }
  .panel.is-entering { animation: none; }
}

.signed-out .hero-ctas { justify-content: center; margin-top: 8px; }

/* =========================================================
   Idioma, pasos del registro y perfil de comida
   ========================================================= */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.main-nav + .lang-switch { margin-left: 8px; }
.lang-switch button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch button[aria-pressed="false"]:hover { color: var(--ink); }
}
.lang-switch + .account-btn { margin-left: 8px; }
.profile-page .lang-switch { margin-left: auto; }
.profile-page .lang-switch + .back-btn { margin-left: 8px; }
@media (max-width: 959px) {
  .site-header .lang-switch:first-of-type { margin-left: auto; }
  .lang-switch + .account-btn { margin-left: 0; }
}
@media (max-width: 440px) {
  .brand-text { display: none; }
  .header-inner { gap: 8px; }
  .lang-switch button { min-width: 34px; padding: 0 6px; }
}

/* Paso 1 de 2 / Paso 2 de 2 */
.auth-step {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--gold-text);
  margin-bottom: 4px;
}
.auth-step[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)); }

/* Etiquetas de gusto en "Arma tu plato" */
.chip-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(18 140 74 / 0.12);
  color: #0d6b38;
  font-size: 0.75rem;
  font-weight: 800;
}
.chip-tag.is-blocked { background: var(--cream-2); color: var(--ink-soft); }
.chip:disabled { cursor: not-allowed; opacity: 0.6; }
.chip:disabled .chip-name { text-decoration: line-through; }
.builder-profile-hint {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-weight: 600;
  color: var(--ink);
}
.builder-profile-hint[hidden] { display: none; }

/* Aviso de perfil incompleto */
.profile-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1.5px solid var(--red);
  border-radius: var(--radius);
  font-weight: 700;
}
.profile-alert[hidden] { display: none; }
