/* ==========================================================================
   RB — Realmente Buenísimos · estilos (v2: identidad cálida)
   Paleta: naranja #F58220 (principal) · crema #FFF4E2 / #FFFBF4 · negro #0B0B0B (texto y contraste)
   Acento amarillo #FFC928 solo sobre negro. Sin rojo.
   Contrastes: negro sobre naranja ≈ 8:1 · texto #1B140E sobre crema ≈ 15:1 · #B84F00 sobre crema ≈ 4.6:1
   ========================================================================== */

@font-face { font-family: 'Oswald'; src: url('../assets/fonts/oswald-latin-wght-normal.woff2') format('woff2'); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../assets/fonts/playfair-display-latin-wght-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --black: #0B0B0B;
  --orange: #F58220;
  --orange-light: #FF9A3C;
  --orange-deep: #B84F00;
  --yellow: #FFC928;
  --gold: #D4AF37;
  --cream: #FFF4E2;
  --cream-2: #FFFBF4;
  --sand: #FBE6C6;
  --photo-bg: #17110C;

  /* tema claro (por defecto): crema con texto negro cálido */
  --bg: var(--cream);
  --fg: #1B140E;
  --muted: #5E4E3E;
  --accent-text: var(--orange-deep);
  --surface: var(--cream-2);
  --field-bg: #FFFFFF;
  --line: rgba(60, 35, 10, .16);
  --line-strong: rgba(60, 35, 10, .38);
  --btn-line: rgba(11, 11, 11, .6);
  --focus: #0B0B0B;
  --err: #9A3F00;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
  --radius: 22px;
  --shadow-card: 0 14px 34px -22px rgba(90, 45, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* tema naranja (hero y "Nosotros"): texto negro */
.hero, #nosotros {
  --bg: var(--orange);
  --fg: #0B0B0B;
  --muted: #2E1C0A;
  --accent-text: #0B0B0B;
  --line: rgba(11, 11, 11, .25);
  --line-strong: rgba(11, 11, 11, .55);
  --btn-line: #0B0B0B;
  --focus: #0B0B0B;
}
/* tema oscuro (detalles de contraste): encabezado, cinta, tarjeta del Club, ubicación, pie, barra móvil */
.site-header, .ticker, .loyalty, .place, .site-footer, .mobile-bar, .lightbox {
  --bg: #0B0B0B;
  --fg: #FFF4E2;
  --muted: #D2C6B4;
  --accent-text: var(--yellow);
  --field-bg: #FFF8EC;
  --line: rgba(255, 201, 40, .25);
  --line-strong: rgba(255, 201, 40, .5);
  --btn-line: rgba(255, 244, 226, .6);
  --focus: var(--yellow);
  --err: #FFB366;
}
/* tarjetas claras dentro de secciones oscuras/naranjas */
.card-info, .diff {
  --fg: #1B140E;
  --muted: #5E4E3E;
  --accent-text: var(--orange-deep);
  --line: rgba(60, 35, 10, .16);
  --line-strong: rgba(60, 35, 10, .38);
  --btn-line: rgba(11, 11, 11, .6);
  --focus: #0B0B0B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--cream); color: var(--fg);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.icon { width: 1.35em; height: 1.35em; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--black); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; outline-color: var(--yellow); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

/* ---------- tipografía ---------- */
.gold-text, .section__title em, .sheet__title em {
  font-family: var(--font-accent); font-style: italic; font-weight: 700; text-transform: none; letter-spacing: 0;
  color: var(--accent-text); padding-right: .06em;
}
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--accent-text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section__head { margin-bottom: 28px; }
.section__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.1rem, 8.4vw, 3.6rem); line-height: 1.02; letter-spacing: .01em; margin-top: 6px; color: var(--fg); }
.section__lead { color: var(--muted); max-width: 54ch; margin-top: 12px; font-size: 1.02rem; }
.fineprint { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 22px; line-height: 1.45; }
.fineprint--left { text-align: left; margin-top: 10px; }
.badge { font-family: var(--font-body); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--line-strong); color: var(--accent-text); padding: 3px 10px; border-radius: 999px; }
.badge--solid { background: var(--black); color: var(--yellow); border-color: var(--black); }
.loyalty .badge--solid { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ---------- botones ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .98rem; text-decoration: none; transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; -webkit-tap-highlight-color: transparent; }
.btn--primary { background: linear-gradient(180deg, var(--orange-light), var(--orange)); color: var(--black); border-color: #D96C0C; box-shadow: 0 10px 22px -12px rgba(150, 70, 0, .8); }
.btn--primary:hover { transform: translateY(-2px); background: var(--orange-light); box-shadow: 0 16px 28px -12px rgba(150, 70, 0, .75); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--btn-line); }
.btn--ghost:hover { background: var(--fg); color: var(--bg, #fff); border-color: var(--fg); transform: translateY(-2px); }
.card-info .btn--ghost:hover, .sheet .btn--ghost:hover { background: #0B0B0B; color: var(--cream); border-color: #0B0B0B; }
.loyalty .btn--ghost:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
/* sobre fondo naranja el principal es negro */
.hero .btn--primary { background: #0B0B0B; color: var(--cream); border-color: #0B0B0B; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .7); }
.hero .btn--primary:hover { background: #26180D; color: var(--yellow); }
.hero .btn--ghost:hover { background: #0B0B0B; color: var(--cream); border-color: #0B0B0B; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 14px 0 4px; width: 100%; font-size: .9rem; }
.link-btn:hover { color: var(--accent-text); }

.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 244, 226, .08); border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.sheet .icon-btn { background: #0B0B0B; border-color: #0B0B0B; color: var(--cream); }
.sheet .icon-btn:hover { color: var(--yellow); }
.icon-btn--sm { width: 38px; height: 38px; }

/* ---------- encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(11, 11, 11, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 3px solid var(--orange); color: var(--fg); }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.brand__txt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; line-height: 1.1; display: none; }
.brand__txt em { display: block; font-family: var(--font-accent); text-transform: none; letter-spacing: 0; color: var(--orange); font-size: 1.05rem; }
.nav { display: none; gap: 26px; }
.nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .88rem; text-decoration: none; color: var(--muted); padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--orange); border-color: var(--orange); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--black); border: 0; }
.cart-btn__count, .mobile-bar b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; display: none; place-items: center; border-radius: 999px; background: var(--black); color: var(--yellow); border: 2px solid var(--yellow); font-size: .72rem; font-weight: 700; font-style: normal; }
[data-cart-count].is-on { display: inline-grid; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 24px 0 40px; isolation: isolate; background: var(--orange); color: var(--fg); }
.hero__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 60% at 75% 40%, rgba(255, 214, 120, .55), transparent 70%),
  radial-gradient(40% 40% at 8% 0%, rgba(255, 244, 226, .28), transparent 70%),
  linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(120, 50, 0, .1)); }
.hero__grid { display: grid; gap: 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #0B0B0B; color: var(--cream); font-size: .82rem; line-height: 1.25; max-width: 100%; }
.status-pill__dot { width: 10px; height: 10px; border-radius: 50%; background: #9A8F80; flex: none; }
.status-pill[data-state="open"] .status-pill__dot, .status-pill[data-state="closing"] .status-pill__dot { background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 201, 40, .6); animation: pulse 2s infinite; }
.status-pill[data-state="closing"] .status-pill__dot { background: var(--orange); }
.hero__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .98; font-size: clamp(2.3rem, 10.6vw, 6.2rem); margin-top: 18px; color: #0B0B0B; }
.hero__line { display: block; }
.hero__line--accent { width: fit-content; margin-top: .12em; padding: .04em .3em .1em; border-radius: .3em; background: #0B0B0B; color: var(--yellow); font-family: var(--font-accent); font-style: italic; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.02em; line-height: 1.1; transform: rotate(-1.5deg); }
.hero__sub { margin-top: 18px; font-size: clamp(1.02rem, 3.9vw, 1.25rem); color: #1B0E02; max-width: 34ch; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__cta .btn { flex: 1 1 150px; padding: 0 14px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 24px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero__facts li { padding: 0 16px; border-left: 1px solid var(--line-strong); line-height: 1.25; }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts strong { display: block; color: #0B0B0B; font-family: var(--font-display); letter-spacing: .04em; font-size: 1.35rem; font-weight: 700; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 450px); padding-bottom: 40px; }
/* la foto se muestra completa (misma proporción que el archivo), sin recortes */
.hero__plate { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--photo-bg); border: 6px solid var(--cream); box-shadow: 0 30px 50px -28px rgba(70, 30, 0, .85); transform: rotate(1.5deg); }
.hero__taco { width: 100%; height: 100%; object-fit: contain; border-radius: 22px; animation: float 7s ease-in-out infinite; }
.hero__logo { position: absolute; left: -14px; bottom: -22px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--cream); box-shadow: 0 12px 26px rgba(70, 30, 0, .55); transform: rotate(-1.5deg); }
.ruler { position: absolute; left: 14%; right: 6%; bottom: 0; color: #0B0B0B; height: 36px; }
.ruler svg { width: 100%; height: 100%; }
.ruler__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #0B0B0B; padding: 2px 14px; font-family: var(--font-display); letter-spacing: .14em; font-size: .95rem; color: var(--yellow); border-radius: 999px; }
.hero__note { margin-top: 10px; font-size: .74rem; color: var(--muted); text-align: right; }

.js .hero__copy > *, .js .hero__visual { opacity: 0; animation: rise .9s var(--ease) forwards; }
.js .hero__copy > :nth-child(1) { animation-delay: .05s; }
.js .hero__copy > :nth-child(2) { animation-delay: .15s; }
.js .hero__copy > :nth-child(3) { animation-delay: .28s; }
.js .hero__copy > :nth-child(4) { animation-delay: .4s; }
.js .hero__copy > :nth-child(5) { animation-delay: .5s; }
.js .hero__visual { animation-delay: .3s; }

/* ---------- cinta ---------- */
.ticker { background: var(--black); color: var(--fg); overflow: hidden; white-space: nowrap; padding: 13px 0; }
.ticker__track { display: inline-flex; gap: 26px; animation: ticker 32s linear infinite; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .88rem; color: var(--cream); }
.ticker i { color: var(--orange); font-style: normal; }

/* ---------- secciones ---------- */
.section { padding: 64px 0; position: relative; background: var(--bg); color: var(--fg); }
#menu { background: var(--cream); }
.section--alt { background: var(--sand); }
#nosotros { background: var(--orange); }

/* ---------- menú ---------- */
.tabs-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 244, 226, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--cream-2); color: var(--fg); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; transition: all .2s; }
.tab:hover { border-color: #0B0B0B; }
.tab[aria-selected="true"] { background: var(--orange); color: var(--black); border-color: #0B0B0B; font-weight: 700; box-shadow: 0 2px 0 #0B0B0B; }
.menu-intro { color: var(--fg); background: rgba(245, 130, 32, .16); border: 1px solid rgba(184, 79, 0, .35); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.menu-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card { display: flex; flex-direction: column; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(150, 70, 0, .6); }
/* marco oscuro: la foto se ve completa (contain), sin recortar el producto ni estirar la imagen */
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, #2A1D12, var(--photo-bg)); border-bottom: 3px solid var(--orange); }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.03); }
.card__art { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--orange-deep); background: radial-gradient(60% 80% at 50% 40%, #FFE9C9, var(--sand)); border-bottom: 3px solid var(--orange); }
.art { width: 84px; height: 84px; opacity: .95; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name { font-family: var(--font-display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; color: var(--fg); }
.card__desc { color: var(--muted); font-size: .92rem; }
.card__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.btn--add { flex: 1; min-height: 50px; padding: 0 14px; font-size: .95rem; }
.btn--add.is-done { background: #0B0B0B; color: var(--yellow); border-color: #0B0B0B; box-shadow: 0 0 0 4px rgba(245, 130, 32, .4); }

.field { display: grid; gap: 6px; }
.field--tight { gap: 4px; }
.field label, .sizes legend, .fulfil legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); font-weight: 700; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
input:not([type]), input[type="text"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--field-bg); color: #1B140E; font-size: 1rem; -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #8A7A68; }
textarea { resize: vertical; min-height: 70px; }
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B84F00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange-deep); box-shadow: 0 0 0 3px rgba(245, 130, 32, .4); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--orange-deep); border-width: 2px; }
.field__err { color: var(--err); font-size: .85rem; font-weight: 700; }
.field__err::before { content: '! '; font-weight: 800; }

.sizes { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sizes legend { width: 100%; padding: 0; margin-bottom: 6px; }
.size { position: relative; flex: 1 1 0; min-width: 96px; }
.size input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size__name, .size__price { display: block; text-align: center; pointer-events: none; }
.size { display: grid; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; transition: all .2s; }
.size__name { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.size__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--fg); line-height: 1.2; }
.size:has(input:checked) { border-color: #0B0B0B; background: #FFE1B8; box-shadow: inset 0 0 0 1px #0B0B0B; }
.size:has(input:checked) .size__name { color: #0B0B0B; }
.size:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; flex: none; }
.qty__btn { width: 44px; height: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--orange-deep); border-radius: 999px; }
.qty__btn:hover { background: rgba(245, 130, 32, .18); }
.qty__val { min-width: 26px; text-align: center; font-family: var(--font-display); font-size: 1.15rem; color: var(--fg); }
.qty--sm .qty__btn { width: 36px; height: 36px; }

/* ---------- diferenciadores ---------- */
.diff-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.diff { padding: 26px 22px; border-radius: var(--radius); border: 1px solid rgba(11, 11, 11, .12); background: var(--cream-2); color: var(--fg); box-shadow: 0 16px 30px -22px rgba(70, 30, 0, .8); transition: transform .3s var(--ease); }
.diff:hover { transform: translateY(-4px); }
.diff__ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #0B0B0B; color: var(--yellow); margin-bottom: 16px; }
.diff__ico .icon { width: 28px; height: 28px; }
.diff h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; line-height: 1.1; }
.diff p { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.diff--tif { border: 2px dashed #0B0B0B; }
button.diff--tif { display: block; width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.diff--tif:hover { box-shadow: 0 20px 36px -20px rgba(70, 30, 0, .9); }
button.diff--tif:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.diff__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; min-height: 32px; font-weight: 700; font-size: .9rem; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.diff__more .icon { width: 16px; height: 16px; }
.tif-dialog.sheet { background: radial-gradient(90% 50% at 85% 0%, rgba(212, 175, 55, .22), transparent 70%), linear-gradient(180deg, #1c150d, #0B0B0B); color: var(--cream); border-top-color: var(--gold); }
.tif-dialog .icon-btn { background: #0B0B0B; border-color: var(--gold); color: var(--gold); }
.tif-dialog__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 16px; border: 1.5px solid var(--gold); color: var(--gold); background: rgba(212, 175, 55, .1); }
.tif-dialog__ico .icon { width: 30px; height: 30px; }
.tif-dialog .sheet__title { color: var(--gold); }
.tif-dialog__body { display: grid; gap: 12px; font-size: 1rem; line-height: 1.6; color: rgba(255, 244, 226, .92); }
.tif-dialog__kicker { font-family: var(--font-accent); font-style: italic; font-size: 1.2rem; color: var(--yellow); }
.tif-dialog__body h3 { margin-top: 6px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--gold); }
.tif-dialog__closing { padding-top: 12px; border-top: 1px solid rgba(212, 175, 55, .35); font-weight: 600; color: var(--yellow); }
#tif-dialog .btn { width: 100%; margin-top: 20px; }

/* ---------- Club RB ---------- */
.club__grid { display: grid; gap: 22px; }
.loyalty { padding: 22px; border-radius: 28px; border: 1px solid #2B2218; background: radial-gradient(90% 60% at 80% 0%, rgba(245, 130, 32, .22), transparent 70%), linear-gradient(180deg, #1c150d, #0B0B0B); color: var(--fg); box-shadow: 0 30px 50px -30px rgba(70, 30, 0, .9); }
.loyalty__top { display: flex; align-items: center; gap: 14px; }
.loyalty__top img { border-radius: 50%; }
.loyalty__top > div { flex: 1; min-width: 0; }
.loyalty__top h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; line-height: 1.1; }
.loyalty__id { color: var(--muted); font-size: .8rem; }
.loyalty__number { display: block; margin: 4px 0 6px; color: var(--yellow); font-family: var(--font-display); font-size: clamp(2.8rem, 12vw, 3.6rem); line-height: 1; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 18px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255, 201, 40, .5); color: var(--yellow); font-family: var(--font-display); font-size: 1.2rem; background: rgba(255, 244, 226, .03); }
.stamp .icon { width: 44%; height: 44%; }
.stamp__num { opacity: .6; }
.stamp.is-on { border: 2px solid var(--yellow); background: linear-gradient(135deg, #FFE27A, var(--orange)); color: var(--black); box-shadow: 0 6px 18px -6px rgba(245, 130, 32, .7), inset 0 0 0 4px rgba(11, 11, 11, .12); }
.stamp__mark { font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; transform: rotate(-8deg); }
.stamp.is-new { animation: stampIn .7s var(--ease); }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 244, 226, .14); overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 999px; transition: width .6s var(--ease); }
.loyalty__count { margin-top: 10px; font-size: .92rem; color: var(--fg); font-weight: 600; }
.loyalty__reward { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 201, 40, .14); border: 1px solid var(--yellow); color: var(--yellow); font-weight: 600; }
.loyalty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.loyalty h3 { color: var(--fg); }
.club__login { margin-top: 18px; }
.club__login summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.club__backup { margin-bottom: 18px; padding: 16px; border-radius: 18px; border: 1px solid var(--yellow); background: rgba(255, 201, 40, .1); }
.club__backup h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--yellow); }
.club__backup p { margin-top: 6px; font-size: .9rem; }
.club__backup .club__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.3rem, 6vw, 1.7rem); letter-spacing: .08em; color: var(--yellow); user-select: all; overflow-wrap: anywhere; }
.app-cta { display: grid; grid-template-columns: 56px 1fr; gap: 12px 14px; align-items: center; margin-bottom: 26px; padding: 18px; border-radius: var(--radius); background: #0B0B0B; color: var(--cream); border: 2px solid var(--orange); box-shadow: var(--shadow-card); }
.app-cta img { border-radius: 14px; }
.app-cta strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; color: var(--yellow); }
.app-cta p { font-size: .9rem; margin-top: 2px; color: rgba(255, 244, 226, .85); }
.app-cta .btn { grid-column: 1 / -1; width: 100%; }
.app-steps { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; }
.app-share { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.2em; color: #007AFF; }
#app-dialog .btn { width: 100%; margin-top: 10px; }
.club__app-claim { margin-bottom: 18px; padding: 16px; border-radius: 18px; border: 1px solid var(--yellow); background: rgba(255, 201, 40, .1); }
.club__app-claim h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--yellow); }
.club__app-claim p { margin: 6px 0 12px; font-size: .9rem; }
.club__app-claim .btn { width: 100%; }
html.is-app .app-cta { display: none; }
.club__side h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.4rem; margin-bottom: 14px; }
.rules { display: grid; gap: 12px; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding-left: 44px; color: var(--fg); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); border: 1.5px solid #0B0B0B; color: var(--black); font-family: var(--font-display); font-weight: 700; }
.reward-box { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border: 2px dashed var(--orange-deep); border-radius: 18px; color: var(--orange-deep); background: rgba(245, 130, 32, .08); }
.reward-box .icon { width: 34px; height: 34px; }
.reward-box strong { display: block; color: var(--fg); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.reward-box p { color: var(--muted); font-size: .92rem; }
.rewards { margin-top: 26px; }
.rewards h3 em { font-family: var(--font-accent); font-style: italic; text-transform: none; color: var(--accent-text); }
.rewards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reward-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 10px 10px 14px; border-radius: 20px; background: linear-gradient(180deg, #1c150d, #0B0B0B); border: 1px solid #2B2218; box-shadow: var(--shadow-card); color: var(--cream); text-align: center; }
.reward-card img, .reward-card__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.reward-card__art { display: grid; place-content: center; background: radial-gradient(80% 70% at 50% 30%, rgba(245, 130, 32, .35), transparent 70%), #17110C; border: 2px dashed rgba(255, 201, 40, .5); }
.reward-card__art span { font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.2rem); line-height: 1; color: var(--yellow); }
.reward-card__art small { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--cream); font-size: .8rem; }
.reward-card strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; line-height: 1.15; color: var(--yellow); }
.reward-card__tag { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--black); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; }
.rewards__note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.prod-note { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.prod-note summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.prod-note ul { margin-top: 10px; display: grid; gap: 8px; list-style: disc; padding-left: 18px; }

/* ---------- galería (mosaico: cada foto conserva su proporción, sin recortes) ---------- */
.gallery { columns: 2; column-gap: 10px; }
.gallery__item { position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 3px solid #fff; border-radius: 18px; overflow: hidden; background: var(--photo-bg); break-inside: avoid; box-shadow: var(--shadow-card); }
.gallery__item img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; text-align: left; color: #FFF4E2; background: linear-gradient(0deg, rgba(11, 11, 11, .88), transparent); }
.gallery-note { margin-top: 6px; }

/* ---------- ubicación ---------- */
.place { overflow: hidden; isolation: isolate; background: var(--black); }
.place__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 11, .9) 0%, rgba(11, 11, 11, .72) 45%, rgba(11, 11, 11, .92) 100%), url('../assets/img/local-madera.webp') center / cover; }
.place__grid { display: grid; gap: 18px; }
.card-info { padding: 26px 22px; border-radius: var(--radius); border: 1px solid rgba(255, 244, 226, .3); border-top: 5px solid var(--orange); background: var(--cream); color: var(--fg); box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .9); }
.card-info h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.45rem; margin-bottom: 14px; }
.card-info > p { color: var(--muted); }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; color: var(--fg); }
.info-row .icon { color: var(--orange-deep); margin-top: 3px; }

/* ---------- pie ---------- */
.site-footer { border-top: 4px solid var(--orange); background: var(--black); color: var(--fg); padding: 40px 0 28px; }
.site-footer__in { display: grid; gap: 22px; justify-items: start; }
.site-footer img { border-radius: 50%; }
.site-footer__cols { display: grid; gap: 20px; width: 100%; }
.site-footer h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: var(--orange); margin-bottom: 6px; }
.site-footer p { color: var(--muted); font-size: .92rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__legal { font-size: .78rem !important; border-top: 1px solid var(--line); padding-top: 18px; width: 100%; }

/* ---------- barra móvil ---------- */
.mobile-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 11, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 3px solid var(--orange); }
.mobile-bar__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 244, 226, .55); background: transparent; color: var(--cream); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mobile-bar__btn--cart { flex: 1; background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 700; }
.mobile-bar__btn--cart b { top: -6px; right: auto; left: calc(50% - 74px); }
.mobile-bar__total { font-weight: 700; padding-left: 8px; border-left: 2px solid rgba(11, 11, 11, .4); }
.mobile-bar__btn--wa { width: 52px; padding: 0; }
.mobile-bar__btn--wa .icon { width: 26px; height: 26px; color: var(--yellow); }

/* ---------- diálogos / hojas ---------- */
dialog { color: var(--fg); padding: 0; border: 0; }
dialog::backdrop { background: rgba(20, 10, 0, .72); backdrop-filter: blur(3px); }
.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; background: var(--cream); border-top: 5px solid var(--orange); box-shadow: 0 -30px 80px rgba(0, 0, 0, .5); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheetUp .38s var(--ease); }
.sheet__close { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 12px 14px 0; height: 0; }
.sheet__body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet__title { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; letter-spacing: .03em; line-height: 1.05; margin-bottom: 14px; padding-right: 50px; }
.status-note { padding: 10px 14px; border-radius: 14px; background: #FFE1B8; border: 1px solid var(--orange-deep); color: #4A2400; font-size: .88rem; margin-bottom: 14px; }
.cart-empty { padding: 24px 0 10px; display: grid; gap: 16px; justify-items: start; color: var(--muted); }
.cart-list { display: grid; gap: 4px; }
.line { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__name { font-weight: 600; line-height: 1.3; }
.line__meta { color: var(--muted); font-size: .84rem; }
.line__side { display: flex; align-items: center; gap: 10px; }
.line__total { margin-left: auto; font-family: var(--font-display); font-size: 1.2rem; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.cart-subtotal strong { font-size: 1.9rem; color: var(--fg); }
.order-form { display: grid; gap: 14px; margin-top: 14px; }
.fulfil { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fulfil legend { margin-bottom: 8px; padding: 0; }
.radio-card { position: relative; display: block; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-card span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; transition: all .2s; }
.radio-card span::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--orange-deep); flex: none; transition: all .2s; }
.radio-card input:checked + span { border-color: #0B0B0B; background: #FFE1B8; }
.radio-card input:checked + span::before { background: radial-gradient(circle, #0B0B0B 45%, transparent 50%); border-color: #0B0B0B; }
.radio-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--fg); }
.check input { width: 22px; height: 22px; accent-color: var(--orange-deep); flex: none; margin-top: 2px; }
.mini-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-size: 1rem; margin: 26px 0 10px; }
.activity { display: grid; gap: 10px; font-size: .9rem; }
.activity li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 244, 226, .08); border: 1px solid var(--line); }
.activity span { color: var(--muted); font-size: .8rem; }
.activity__empty { color: var(--muted); }

.lightbox { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: rgba(15, 8, 0, .95); color: var(--fg); display: none; place-items: center; }
.lightbox[open] { display: grid; animation: fade .3s; }
.lightbox__fig { display: grid; gap: 12px; justify-items: center; max-width: 94vw; }
.lightbox__fig img { max-width: 94vw; max-height: 76dvh; width: auto; height: auto; border-radius: 16px; object-fit: contain; border: 4px solid var(--cream); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.lightbox__fig figcaption { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--cream); text-align: center; }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(11, 11, 11, .75); color: var(--cream); }
.lightbox__nav:hover { color: var(--yellow); border-color: var(--yellow); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 300; max-width: min(92vw, 420px); padding: 12px 20px; border-radius: 999px; background: #0B0B0B; color: var(--cream); border: 2px solid var(--orange); font-weight: 600; font-size: .92rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 16px 20px; background: var(--orange); color: var(--black); text-align: center; font-weight: 600; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 40, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 201, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 40, 0); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stampIn { 0% { transform: scale(2.2) rotate(-24deg); opacity: 0; } 60% { transform: scale(.92) rotate(4deg); opacity: 1; } 100% { transform: none; } }

/* ---------- ≥ 600 px ---------- */
@media (min-width: 600px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; column-gap: 12px; }
  .gallery__item { margin-bottom: 12px; }
  .brand__txt { display: block; }
}

/* ---------- ≥ 900 px ---------- */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav { display: flex; }
  .hero { padding: 56px 0 76px; }
  .hero__title { font-size: clamp(3.4rem, 5.3vw, 5rem); }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero__logo { width: 112px; height: 112px; left: -24px; }
  .section { padding: 96px 0; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .club__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .gallery { columns: 4; column-gap: 14px; }
  .gallery__item { margin-bottom: 14px; }
  .place__grid { grid-template-columns: 1.2fr 1fr; }
  .site-footer__in { grid-template-columns: auto 1fr; align-items: start; gap: 40px; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .site-footer__legal { grid-column: 1 / -1; }
  .toast { bottom: 28px; }

  /* carrito como panel lateral */
  #cart-dialog.sheet { inset: 0 0 0 auto; width: 460px; max-height: 100dvh; height: 100dvh; border-radius: 0; border-top: 0; border-left: 5px solid var(--orange); }
  #cart-dialog[open] { animation: slideIn .38s var(--ease); }
  .sheet--modal { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(520px, 92vw); max-height: 90dvh; border-radius: 26px; border: 1px solid var(--line-strong); }
  .sheet--modal[open] { animation: fade .3s; }
  .line { grid-template-columns: 1fr auto; align-items: center; }
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .js .reveal, .js .hero__copy > *, .js .hero__visual { opacity: 1; transform: none; }
}

/* ---------- Comer en restaurante: mesa, revisión y confirmación ---------- */
.radio-card .radio-card__text { display: grid; gap: 1px; min-height: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; }
.radio-card .radio-card__text::before { content: none; }
.radio-card input:checked + span .radio-card__text { background: none; }
.radio-card__hint { display: block; font-size: .78rem; color: var(--muted); }
.tables { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tables legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); font-weight: 700; padding: 0; margin-bottom: 8px; }
.tables legend .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.tables__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.table-pick { position: relative; display: block; }
.table-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.table-pick span { display: grid; place-items: center; min-height: 58px; padding: 6px 2px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; line-height: 1.1; transition: all .2s; pointer-events: none; }
.table-pick b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--fg); letter-spacing: 0; }
.table-pick input:checked + span { background: #0B0B0B; border-color: #0B0B0B; color: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 130, 32, .45); }
.table-pick input:checked + span b { color: var(--yellow); }
.table-pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tables.is-invalid .table-pick span { border-color: var(--orange-deep); border-width: 2px; }
.dine { display: grid; gap: 12px; }
.dine__table { justify-self: start; padding: 8px 18px; border-radius: 14px; background: #0B0B0B; color: var(--yellow); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.9rem; line-height: 1.1; border: 2px solid var(--orange); }
.dine__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; }
.dine__list { display: grid; gap: 2px; }
.dine__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dine__qty { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-text); }
.dine__list small { color: var(--muted); }
.dine__notes { padding: 10px 14px; border-radius: 12px; background: var(--cream-2); border: 1px dashed var(--line-strong); font-size: .92rem; overflow-wrap: anywhere; }
.dine--done { justify-items: center; text-align: center; padding: 18px 0 6px; }
.dine__ok { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #0B0B0B; color: var(--yellow); border: 3px solid var(--orange); }
.dine__ok .icon { width: 40px; height: 40px; }
.dine--done .dine__title { font-size: 2rem; outline: none; }
.dine__msg { font-size: 1.1rem; font-weight: 600; }
.dine__folio { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) { .tables__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Organizar por platillos (comer en restaurante) ---------- */
.plates-field { display: grid; gap: 12px; }
.plates-toggle { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #0B0B0B; color: #FFF4E2; cursor: pointer; }
.plates-toggle input { width: 26px; height: 26px; flex: none; accent-color: var(--orange); }
.plates-toggle strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--yellow); }
.plates-toggle small { display: block; font-size: .8rem; color: #E8DCC8; line-height: 1.35; }
.plates { display: grid; gap: 12px; }
.plate { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line-strong); border-top: 6px solid var(--yellow); }
.plate.is-active { border-color: #0B0B0B; border-top-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 130, 32, .3); }
.plate.is-empty { border-style: dashed; border-top-style: solid; }
.plate__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plate__num { padding: 4px 12px; border-radius: 10px; background: #0B0B0B; color: var(--yellow); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; }
.plate__here { font-size: .75rem; font-weight: 700; color: var(--orange-deep); text-transform: uppercase; letter-spacing: .06em; }
.plate__pick { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--orange-deep); background: transparent; color: var(--orange-deep); font-weight: 700; font-size: .82rem; cursor: pointer; }
.plate__head .icon-btn { margin-left: auto; }
.plate input.plate__label, .plate input.plate__notes { min-height: 44px; font-size: 16px; }
.plate input.plate__label { font-weight: 600; }
.plate__rows { display: grid; gap: 2px; }
.plate__row { display: grid; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plate__item { line-height: 1.3; }
.plate__item b { font-family: var(--font-display); color: var(--orange-deep); font-size: 1.1rem; }
.plate__item small { color: var(--muted); }
.plate__ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plate__move { flex: 1 1 140px; }
.plate__move select { min-height: 40px; padding: 6px 36px 6px 10px; font-size: 16px; border-radius: 10px; }
.plate__none { color: var(--muted); font-size: .88rem; }
.plate__add summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px dashed var(--orange-deep); color: var(--orange-deep); font-weight: 700; cursor: pointer; list-style: none; }
.plate__add summary::-webkit-details-marker { display: none; }
.plate__add[open] summary { border-style: solid; background: #FFE1B8; }
.plate__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.plate__chip { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--cream-2); color: var(--fg); font-size: .85rem; cursor: pointer; text-align: left; }
.plate__chip--menu { border-color: var(--orange-deep); color: var(--orange-deep); font-weight: 700; }
.plate__new { min-height: 56px; }
.plates__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.plates__total strong { font-size: 1.6rem; color: var(--fg); }
.dine__list .dine__plate { display: block; padding: 10px 0 6px; border-bottom: 2px solid var(--line-strong); }
.dine__plate-name { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 8px; background: #0B0B0B; color: var(--yellow); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.dine__plate ul { display: grid; gap: 2px; }
.dine__plate li { border-bottom: 0; padding: 6px 0; }
.dine__plate-notes { font-size: .88rem; font-weight: 600; color: var(--orange-deep); overflow-wrap: anywhere; }
.plates .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
