/* YogiBear · landing premium · v3 */

/* ---- pulido pro: foco accesible + scrollbar de marca ---- */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
  border-radius: 6px;
}
* { scrollbar-color: var(--brand) transparent; }
::selection { background: var(--brand); color: var(--on-brand); }
/* splash de carga */
.yb-splash { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; gap: 22px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 70%, var(--brand-deep) 100%);
  transition: opacity .5s var(--ease), visibility .5s; }
.yb-splash.gone { opacity: 0; visibility: hidden; }
.yb-splash img { height: clamp(120px, 26vw, 200px); filter: drop-shadow(0 10px 30px oklch(0.2 0.06 40 / .5)); animation: splashPulse 1.2s var(--ease) infinite alternate; }
@keyframes splashPulse { from { transform: scale(0.96); } to { transform: scale(1.04); } }
.yb-splash-bar { width: 160px; height: 5px; border-radius: 999px; background: oklch(1 0 0 / 0.25); overflow: hidden; }
.yb-splash-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: #fff; animation: splashBar 1s ease-in-out infinite; }
@keyframes splashBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.yb-confetti-cv { position: fixed; inset: 0; z-index: 100001; pointer-events: none; }
.btn-primary.yb-mag { transition: transform 0.18s var(--ease-back), box-shadow var(--t-base), background var(--t-base); }

/* aparición al hacer scroll (premium, lo activa reveal.js) */
@media (prefers-reduced-motion: no-preference) {
  .yb-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
  .yb-reveal.yb-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  section.bloc, .dishes-section, .ratings-strip { scroll-margin-top: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1280px, 92vw); margin-inline: auto; }
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 0.9;
  text-transform: uppercase;
}

/* =========================================================
   PATRONES — cuadrícula intercalada (5 íconos, ninguno
   se toca con uno igual). Las celdas las llena pattern.js
   ========================================================= */
.pattern-grid {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--pg-opacity, 0.07);
}
.pattern-grid .pg-row { display: flex; }
.pattern-grid .pg-row.odd { margin-left: -42px; }   /* efecto muro */
.pattern-grid i {
  flex: 0 0 84px;
  height: 84px;
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}
.pattern-grid.subtle { --pg-opacity: 0.05; }
.pattern-grid.dense  { --pg-opacity: 0.10; }

.bloc-dark   .pattern-grid i,
.tiktok-section .pattern-grid i,
.site-footer .pattern-grid i { filter: brightness(2.4) saturate(0.5); }
.bloc-dark   .pattern-grid { --pg-opacity: 0.08; }
.tiktok-section .pattern-grid { --pg-opacity: 0.09; }
.site-footer .pattern-grid { --pg-opacity: 0.09; }
.bloc-orange .pattern-grid i { filter: brightness(1.7); mix-blend-mode: overlay; }
.bloc-orange .pattern-grid { --pg-opacity: 0.14; }

/* =========================================================
   HEADER — siempre naranja, logomini + wordmark
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--s-5);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-bottom: 1px solid oklch(1 0 0 / 0.10);
  color: var(--on-brand);
  box-shadow: 0 4px 18px -6px oklch(0.30 0.10 45 / 0.35);
  isolation: isolate;
}
.brand-mark {
  display: flex; align-items: center; gap: var(--s-3);
}
.brand-mark .brand-logo { height: 64px; width: auto; display: block; }
@media (max-width: 920px) { .brand-mark .brand-logo { height: 48px; } }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--on-brand);
  letter-spacing: 0.03em;
  position: relative;
  transition: background var(--t-fast) var(--ease-out);
}
.site-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px;
  height: 2px; border-radius: 2px; background: var(--on-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: oklch(1 0 0 / 0.12); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

.header-actions { display: flex; gap: var(--s-2); align-items: center; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.25);
  background: oklch(1 0 0 / 0.10);
  color: var(--on-brand);
  display: inline-grid; place-items: center;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: oklch(1 0 0 / 0.22); border-color: oklch(1 0 0 / 0.5); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 2px solid var(--brand-strong);
}
.menu-burger { display: none; }
.open-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  background: oklch(1 0 0 / 0.15); color: var(--on-brand);
}
.open-pill.is-open { color: oklch(0.92 0.18 150); }
.open-pill.is-closed { color: oklch(0.85 0.10 30); }
.open-pill .open-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.open-pill.is-open .open-dot { animation: openDotPulse 1.6s ease-in-out infinite; }
@keyframes openDotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 520px) { .open-pill { display: none; } }

/* Icono llama (calificaciones) */

@media (max-width: 920px) {
  .site-nav { display: none; position: fixed; inset: 64px 0 0; flex-direction: column; padding: var(--s-5); background: var(--brand-strong); gap: var(--s-2); z-index: 49; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: var(--fs-lg); padding: var(--s-3) var(--s-4); width: 100%; }
  .menu-burger { display: inline-grid; }
  .brand-mark img { height: 36px; }
  .brand-mark .wordmark { font-size: 1.25rem; }
}

/* =========================================================
   HERO · logo gigante de fondo + título + imagen cuadrada limpia
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-strong) 70%, var(--brand-deep) 100%);
  color: var(--on-brand);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 58vw, 760px);
}
.hero .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 60%);
  align-items: stretch;
  min-height: clamp(520px, 58vw, 760px);
  width: 100%; max-width: none;
  padding-left: clamp(var(--s-4), 4vw, 64px);
  padding-right: 0;
  gap: 0;
}
@media (max-width: 920px) {
  .hero .container.hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-left: 0; }
}
/* Logo gigante en proporción natural, watermark */
/* Garra justo detrás del título ¿Aceptas el reto? */
.hero-title-wrap { position: relative; display: inline-block; }
.hero-title-wrap h1 { position: relative; z-index: 1; }
.hero-watermark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(135%, 560px);
  height: auto;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
  object-fit: contain;
}

.hero .container { position: relative; z-index: 2; }
.hero-text {
  display: flex; flex-direction: column; gap: var(--s-4);
  position: relative;
  align-items: flex-start;
  text-align: left;
  align-self: center;
  padding: var(--s-7) var(--s-4) var(--s-7) 0;
}
.hero-text > *:not(.hero-watermark) { position: relative; z-index: 1; }
.hero-toplogo {
  width: 100%;
  max-width: 720px;
  height: auto;
  align-self: center;
  margin-bottom: var(--s-2);
  object-fit: contain;
  filter: drop-shadow(0 8px 22px oklch(0.15 0.05 40 / 0.45));
}
@media (max-width: 1024px) { .hero-toplogo { max-width: 560px; } }
@media (max-width: 640px)  { .hero-toplogo { max-width: 360px; } }
.hero-cta { justify-content: flex-start; }
@media (max-width: 920px) {
  .hero-text { align-items: center; text-align: center; }
  .hero-toplogo { align-self: center; }
  .hero-cta { justify-content: center; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 4px 22px oklch(0.20 0.06 40 / 0.45);
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--brand-soft); display: block; }
.hero .lead {
  font-size: var(--fs-lg);
  max-width: 38ch;
  color: oklch(0.98 0.01 75);
  font-weight: 500;
  margin: 0;
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }

/* IMAGEN HERO — cuadrada, pegada arriba/derecha/abajo, sin redondear */
.hero-image {
  position: relative;
  height: 100%;
  min-height: clamp(520px, 58vw, 760px);
  border-radius: 0;
  overflow: hidden;
  background: oklch(0.30 0.06 45);
}
.hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;   /* llena el área tocando todos los bordes */
  opacity: 0;
  transition: opacity 1100ms var(--ease);
}
.hero-image img.active { opacity: 1; }

@media (max-width: 920px) {
  .hero-image { min-height: 0; aspect-ratio: 1/1; }
  .hero-text { padding: var(--s-7) var(--s-5) var(--s-6); align-items: center; text-align: center; }
}

/* =========================================================
   HERO DISHES · platillos deslizándose izquierda→derecha
   ========================================================= */
/* Sección de platillos full-bleed (borde a borde) */
.dishes-section {
  padding: var(--s-8) 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.dishes-section .pattern-grid { --pg-opacity: 0.07; }
.dishes-section .dishes-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.dishes-section .dishes-head h2 {
  font-family: var(--font-display); text-transform: uppercase;
  color: var(--ink); margin: 0; font-size: var(--fs-2xl);
}
.dishes-section .dishes-head .btn-outline { color: var(--brand); }
.dishes-track {
  display: flex; gap: var(--s-4);
  width: max-content;
  animation: dishesScroll 45s linear infinite;
}
.dishes-track:hover { animation-play-state: paused; }
@keyframes dishesScroll {
  /* izquierda → derecha */
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.dish-card {
  flex: 0 0 auto;
  width: 200px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 28px -12px oklch(0.15 0.05 40 / 0.5);
}
.dish-card .img {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
  background-size: cover; background-position: center;
  position: relative;
}
.dish-card .img.no-photo::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/45% no-repeat;
  opacity: 0.4; filter: brightness(0) invert(1);
}
.dish-card .body { padding: var(--s-3) var(--s-4); }
.dish-card h4 { margin: 0 0 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); line-height: 1.2; }
.dish-card .row2 { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.dish-card .price { font-family: var(--font-mono); font-weight: 700; color: var(--brand); }
.dish-card .add-btn {
  background: var(--brand); color: var(--on-brand); border: 0;
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  font-size: 20px; font-weight: 700; display: grid; place-items: center;
  transition: transform var(--t-fast), background var(--t-fast);
}
.dish-card .add-btn:hover { background: var(--brand-strong); transform: scale(1.1); }
.dish-card .add-btn.added { background: oklch(0.65 0.18 145); }

/* =========================================================
   FOOD MARQUEE · tira amarillo→rojo bajo el header
   ========================================================= */
.food-marquee {
  background: linear-gradient(90deg,
    oklch(0.88 0.18 95) 0%,
    oklch(0.80 0.20 70) 50%,
    oklch(0.62 0.22 28) 100%);
  color: oklch(0.20 0.05 40);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid oklch(0.25 0.10 40 / 0.35);
  position: relative;
  z-index: 49;
}
.food-marquee .track {
  display: flex;
  gap: var(--s-5);
  white-space: nowrap;
  width: max-content;
  padding: 6px 0;
  animation: foodScroll 32s linear infinite;
}
.food-marquee .track span {
  display: inline-flex; align-items: center; gap: var(--s-4);
}
.food-marquee .track span::after {
  content: '•';
  font-size: 0.9em;
  opacity: 0.55;
}
@keyframes foodScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   RATINGS MARQUEE
   ========================================================= */
.ratings-strip {
  padding: var(--s-7) 0;
  background: var(--brand-cream);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.ratings-strip .pattern-tile { --tile-opacity: 0.08; }
.ratings-strip .strip-head { text-align: center; margin-bottom: var(--s-5); padding: 0 var(--s-5); }
.ratings-track {
  display: flex; gap: var(--s-4);
  width: max-content;
  animation: ratingsScroll 50s linear infinite;
}
@keyframes ratingsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 26px;
  font-weight: 700;
  font-size: var(--fs-md);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
/* feedback de presión: la UI "escucha" al usuario (Emil) */
.btn:active { transform: scale(0.97); }
.icon-btn:active, .add-btn:active, .menu-tabs button:active, .pos-card:active, .dish-card .add-btn:active { transform: scale(0.94); }
.btn-primary {
  background: var(--on-brand);
  color: var(--brand-strong);
  box-shadow: 0 6px 14px -6px oklch(0.20 0.10 45 / 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px oklch(0.20 0.10 45 / 0.5); }
.bloc:not(.bloc-orange):not(.bloc-dark) .btn-primary { background: var(--brand); color: var(--on-brand); }
.bloc:not(.bloc-orange):not(.bloc-dark) .btn-primary:hover { background: var(--brand-strong); }
.btn-ghost {
  background: oklch(1 0 0 / 0.10);
  border-color: oklch(1 0 0 / 0.40);
  color: var(--on-brand);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.18); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--brand-danger); color: var(--on-brand); }

/* =========================================================
   SECTIONS
   ========================================================= */
section.bloc { padding: var(--s-9) 0; position: relative; isolation: isolate; }
.bloc-cream { background: var(--brand-cream); }
.bloc-dark  { background: oklch(0.18 0.025 50); color: var(--on-brand); }
.bloc-dark .section-eyebrow { color: var(--brand-soft); }
.bloc-orange {
  background: linear-gradient(160deg, var(--brand-strong) 0%, var(--brand-deep) 100%);
  color: var(--on-brand);
}
.bloc-orange .section-eyebrow { color: oklch(0.95 0.05 75); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.92;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.section-lead { text-wrap: pretty; }
.hero h1 { text-wrap: balance; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-4);
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 3px; border-radius: 999px;
  background: var(--brand);
  display: inline-block;
}
.section-lead {
  max-width: 62ch;
  color: inherit;
  opacity: 0.86;
  margin: 0 0 var(--s-7);
  font-size: var(--fs-lg);
}

/* =========================================================
   RETOS
   ========================================================= */
.retos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--s-5);
}
.reto-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-md);
}
.reto-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow-brand); }
.reto-card .reto-index {
  position: absolute; top: -6px; right: 10px; z-index: 3;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: var(--brand); opacity: 0.16;
  pointer-events: none; transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.reto-card:hover .reto-index { opacity: 0.34; transform: translateY(-3px); }

.reto-card .img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-deep) 100%);
}
/* placeholder visual cuando no hay imagen: fuego de marca */
.reto-card .img.no-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/fuego2.png') center/86px no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px oklch(0.15 0.06 40 / 0.5));
}
.reto-card .img.has-photo {
  background-size: cover;
  background-position: center;
}

.reto-card .badge {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: var(--on-brand);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.reto-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.reto-card h3 { font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; margin: 0; line-height: 1; }
.reto-card .stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reto-card .stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.reto-card .stat.prize strong { color: var(--brand); }
.reto-card .stat.penalty strong { color: var(--brand-danger); }
.reto-card .body .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   CONCURSOS
   ========================================================= */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-5);
}
.contest-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease);
}
.contest-card:hover { transform: translateY(-6px); }
.contest-card .cc-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)) center/cover no-repeat;
  position: relative;
}
.contest-card .cc-img.no-photo::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/30% no-repeat;
  opacity: 0.4; filter: brightness(0) invert(1);
}
.contest-card .cc-prize {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: var(--on-brand); color: var(--brand-strong);
  font-weight: 800; font-size: var(--fs-sm); padding: 6px 14px; border-radius: 999px;
}
.contest-card .cc-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.contest-card h3 { font-family: var(--font-display); text-transform: uppercase; margin: 0; font-size: var(--fs-xl); }
.contest-card .cc-desc { color: var(--ink-muted); font-size: var(--fs-sm); flex: 1; }
.contest-card .cc-includes { color: oklch(0.55 0.16 145); font-weight: 700; font-size: var(--fs-sm); margin: 0; }
.contest-card .cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-3); }
.contest-card .cc-price { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-2xl); color: var(--brand); }

/* =========================================================
   ACEPTAS · banner secundario (no es hero ya)
   ========================================================= */
.acceptas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-10) 0;
  color: var(--on-brand);
}
.acceptas::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background: url('/assets/images/garra.png') center/cover no-repeat;
  filter: saturate(1.2) contrast(1.05);
}
.acceptas::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(70% 80% at 50% 50%, oklch(0.35 0.20 48 / 0.55), oklch(0.12 0.06 40 / 0.95) 90%);
}
.acceptas .container { text-align: center; max-width: 800px; }
.acceptas h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  text-shadow: 0 4px 28px oklch(0.10 0.05 40 / 0.7);
}
.acceptas h2 .accent { color: var(--brand-soft); }
.acceptas p {
  max-width: 56ch;
  margin: 0 auto var(--s-6);
  font-size: var(--fs-lg);
  color: oklch(0.96 0.015 75);
  font-weight: 500;
}

/* reseñas con foto */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-4); }
.review-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.review-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.review-card figcaption { padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 4px; }
.review-card .rc-stars { font-size: var(--fs-sm); }
.review-card p { margin: 2px 0 0; font-style: italic; color: var(--ink-muted); font-size: var(--fs-sm); }

/* sección de reserva: intro + tarjeta */
.reserve-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 980px){ .reserve-wrap { grid-template-columns: 1fr; gap: var(--s-5); max-width: 560px; } }
/* dentro del editor (iframe angosto) siempre una columna */
.yb-editing .reserve-wrap { grid-template-columns: 1fr; max-width: 560px; }
/* la tarjeta de reserva nunca debe quedar invisible por la animación */
.reserve-card, .reserve-card * { opacity: 1 !important; }
/* la sección de reserva nunca queda atrapada por la animación de aparición */
#reservar .yb-reveal { opacity: 1 !important; transform: none !important; }
.reserve-card input, .reserve-card select { height: 46px; box-sizing: border-box; }
.reserve-card select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.reserve-perks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.reserve-perks li { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.reserve-perks li::before { content: '✓'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: oklch(1 0 0 / 0.2); display: grid; place-items: center; font-weight: 800; }
.reserve-card { background: var(--bg); border-radius: var(--radius-lg); padding: var(--s-6); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--s-3); color: var(--ink); }
.reserve-card .form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.rv-field { display: flex; flex-direction: column; gap: 5px; }
.rv-field label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.reserve-card input, .reserve-card select, .reserve-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: var(--fs-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.reserve-card input:focus, .reserve-card select:focus, .reserve-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.80 0.16 70 / 0.25); }
.reserve-card textarea { min-height: 64px; resize: vertical; }
@media (max-width: 520px){ .reserve-card .form-row2 { grid-template-columns: 1fr; } }

/* franja de números */
.stats-strip { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: var(--on-brand); padding: var(--s-6) 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); text-align: center; }
@media (max-width: 600px){ .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
.stat-num span { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; }
.stat-num small { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.9; }

/* =========================================================
   MURO DE GANADORES
   ========================================================= */
.winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.winner-card { border-radius: var(--radius-lg); overflow: hidden; background: oklch(0.24 0.02 50); box-shadow: var(--shadow-md); }
.winner-card video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; display: block; cursor: pointer; }
.winner-card .wc-body { padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.winner-card .wc-body strong { color: var(--brand-soft); }
.winner-card .wc-body span { font-size: var(--fs-xs); color: oklch(0.8 0.02 70); }

/* =========================================================
   TIKTOK
   ========================================================= */
.tiktok-section {
  padding: var(--s-9) 0;
  position: relative;
  isolation: isolate;
  background: oklch(0.18 0.025 50);
  color: var(--on-brand);
  overflow: hidden;
}
.tiktok-section .pattern-collage { --collage-opacity: 0.14; }
.tiktok-section .container { position: relative; z-index: 1; }
.tiktok-section .section-eyebrow { color: var(--brand-soft); }
.marquee-wrap { margin-top: var(--s-6); position: relative; z-index: 1; }
.marquee-wrap.marquee-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.marquee-wrap.marquee-scroll::-webkit-scrollbar { display: none; }
.marquee-wrap.marquee-scroll .tiktok-card { user-select: none; -webkit-user-drag: none; }
.marquee-wrap.marquee-scroll .tiktok-card video { pointer-events: none; }
.marquee {
  display: flex; gap: var(--s-4);
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tiktok-card {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 9/16;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(0.25 0.03 50);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 12px 32px -10px oklch(0.05 0.02 50 / 0.7);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.tiktok-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -12px oklch(0.50 0.20 42 / 0.6); }
.tiktok-card video { width: 100%; height: 100%; object-fit: cover; }
.tiktok-card .play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(160deg, oklch(0.10 0.03 45 / 0.10), oklch(0.10 0.03 45 / 0.42));
  transition: opacity var(--t-base) var(--ease);
  z-index: 2;
}
.tiktok-card.playing .play-overlay { opacity: 0; }
.play-overlay svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 18px oklch(0.10 0 0 / 0.7)); }
.sound-btn {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 36px; height: 36px;
  border-radius: 999px;
  background: oklch(0.10 0 0 / 0.55);
  color: var(--on-brand);
  border: 0; cursor: pointer;
  display: none; place-items: center; z-index: 3;
}
.tiktok-card:hover .sound-btn { display: grid; }

/* TIKTOK modal */
.tiktok-modal {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(0.05 0.01 50 / 0.98);
  display: none;
}
.tiktok-modal.open { display: block; }
.tiktok-modal .scroller {
  height: 100vh; height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tiktok-modal .scroller::-webkit-scrollbar { display: none; }
.tiktok-modal .slide {
  height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;   /* obliga a parar en cada video */
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 0;
}
.tiktok-modal video {
  max-height: 100dvh;
  max-width: 100vw;
  width: auto; height: auto;
  object-fit: contain;
  background: oklch(0.05 0 0);
  margin: auto;
}
.tiktok-modal .controls {
  position: absolute;
  right: max(var(--s-3), env(safe-area-inset-right));
  bottom: 18%;
  display: flex; flex-direction: column; gap: var(--s-5); z-index: 3;
}
.tiktok-modal .ctrl {
  width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--on-brand); font-size: var(--fs-sm); font-weight: 700;
}
.tiktok-modal .ctrl img { width: 48px; height: 48px; transition: transform var(--t-fast) var(--ease); filter: drop-shadow(0 2px 8px oklch(0.05 0 0 / 0.6)); }
.tiktok-modal .ctrl.liked img { animation: pop 360ms var(--ease-back); }
@keyframes pop { 0% { transform: scale(1) } 40% { transform: scale(1.4) rotate(-8deg) } 100% { transform: scale(1) } }
.tiktok-modal .ctrl svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 8px oklch(0.05 0 0 / 0.6)); }
.tiktok-modal .info {
  position: absolute; left: var(--s-5); right: 90px; bottom: var(--s-7);
  color: var(--on-brand); z-index: 3;
  text-shadow: 0 1px 12px oklch(0.05 0 0 / 0.8);
}
.tiktok-modal .close {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px;
  background: oklch(0.10 0 0 / 0.5); color: var(--on-brand);
  border: 0; cursor: pointer; font-size: 22px;
}
.comments-panel {
  position: absolute; inset: auto 0 0 0;
  height: 65vh;
  background: var(--bg); color: var(--ink);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease);
  z-index: 6;
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px -10px oklch(0.05 0 0 / 0.5);
}
.comments-panel.open { transform: translateY(0); }
.comments-panel .cp-head {
  flex-shrink: 0;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.comments-panel .cp-head h4 { margin: 0; font-weight: 700; font-size: var(--fs-md); }
.comments-panel .cp-head h4 span { color: var(--ink-muted); font-weight: 500; }
.comments-panel .cp-close { background: transparent; border: 0; cursor: pointer; font-size: 22px; color: var(--ink-muted); line-height: 1; }
.comments-panel .cp-grabber {
  width: 40px; height: 4px; border-radius: 999px; background: var(--border);
  margin: 8px auto 0;
}
.comments-panel .list {
  flex: 1; overflow-y: auto;
  padding: var(--s-3) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.comments-panel .comment {
  display: flex; gap: var(--s-3); align-items: flex-start;
}
.comments-panel .comment .avatar {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  display: grid; place-items: center;
  font-weight: 800; font-size: var(--fs-sm);
  text-transform: uppercase;
}
.comments-panel .comment .c-body { flex: 1; }
.comments-panel .comment .author { font-weight: 700; font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; }
.comments-panel .comment .author .time { color: var(--ink-muted); font-weight: 400; font-size: var(--fs-xs); }
.comments-panel .comment .text { color: var(--ink); font-size: var(--fs-sm); margin-top: 2px; line-height: 1.45; }
.comments-panel .cp-empty { text-align: center; color: var(--ink-muted); padding: var(--s-7) var(--s-5); }
.comments-panel .form {
  flex-shrink: 0;
  display: flex; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-bottom: max(var(--s-3), env(safe-area-inset-bottom));
}
.comments-panel .form input {
  flex: 1; padding: 12px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: var(--fs-sm);
}
.comments-panel .form input:focus { outline: none; border-color: var(--brand); }
.comments-panel .form button {
  background: var(--brand); color: var(--on-brand);
  border: 0; border-radius: 999px;
  width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
  flex-shrink: 0;
}

/* =========================================================
   SUCURSALES
   ========================================================= */
.branches-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6);
}
@media (max-width: 880px) { .branches-grid { grid-template-columns: 1fr; } }
.branch { display: flex; flex-direction: column; gap: var(--s-3); }
.branch iframe {
  width: 100%; height: 360px;
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  /* tinte café/naranja de marca, sigue siendo funcional */
  filter: sepia(0.75) saturate(1.8) hue-rotate(-18deg) contrast(0.95) brightness(1.0);
  transition: filter var(--t-base) var(--ease);
}
.branch iframe:hover { filter: none; }
[data-theme="dark"] .branch iframe {
  filter: invert(0.9) hue-rotate(160deg) sepia(0.4) saturate(1.6) hue-rotate(-20deg);
}
[data-theme="dark"] .branch iframe:hover { filter: invert(0.9) hue-rotate(180deg); }
.branch h3 { font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; margin: 0; }
.branch dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0; font-size: var(--fs-sm); }
.branch dt { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-xs); }

/* =========================================================
   MENU (página separada con grid de productos)
   ========================================================= */
.menu-search {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--bg);
  border: 2px solid var(--border); border-radius: 999px;
  padding: 7px 8px 7px var(--s-3); margin: 0 auto var(--s-6); max-width: 540px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.menu-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px oklch(0.80 0.16 70 / 0.28), var(--shadow-lg); transform: translateY(-1px); }
.menu-search .ms-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: var(--on-brand);
  display: grid; place-items: center;
}
.menu-search input { flex: 1; border: 0; background: transparent; padding: 13px 4px; color: var(--ink); font-size: var(--fs-md); outline: none; font-weight: 600; }
.menu-search input::placeholder { color: var(--ink-muted); font-weight: 500; }
.menu-tabs {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.menu-tabs button {
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--t-fast) var(--ease);
}
.menu-tabs button.active {
  background: var(--brand); color: var(--on-brand); border-color: var(--brand);
  box-shadow: 0 4px 12px -4px oklch(0.50 0.20 42 / 0.5);
}
.menu-tabs button:not(.active):hover { border-color: var(--brand); color: var(--brand); }

/* Móvil y app: tira horizontal pegajosa (patrón app de comida) */
@media (max-width: 768px) {
  .menu-tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    position: sticky; top: 58px; z-index: 40;
    margin: 0 calc(-4vw) var(--s-5); padding: 10px 4vw;
    background: linear-gradient(180deg, var(--bg) 78%, transparent);
    -webkit-overflow-scrolling: touch;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tabs button { flex: 0 0 auto; }
}
.is-native-app .menu-tabs { top: calc(52px + env(safe-area-inset-top)); }

.menu-category { margin-bottom: var(--s-8); }
.menu-cat-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--fs-2xl);
  color: var(--brand-strong);
  margin: 0 0 var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 3px solid var(--brand);
  display: flex; align-items: center; gap: var(--s-3);
}
.menu-cat-title::before {
  content: '';
  width: 28px; height: 28px;
  background: url('/assets/images/logomini.png') center/contain no-repeat;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}
/* Portada del menú */
.menu-cover {
  position: relative; isolation: isolate;
  padding: var(--s-10) 0;
  color: var(--on-brand);
  display: flex; align-items: center;
  min-height: 320px;
}
.menu-cover::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--cover, url('/assets/images/inicio5.jpeg')) center/cover no-repeat;
}
.menu-cover::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, oklch(0.20 0.06 45 / 0.45), oklch(0.14 0.06 40 / 0.85));
}
.menu-cover h2 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: var(--fs-4xl); line-height: 0.9; margin: 0;
  text-shadow: 0 4px 26px oklch(0.10 0.04 40 / 0.6);
}
.menu-cover .section-eyebrow { color: var(--brand-soft); }

/* Menú estilo carta: renglones con guía punteada */
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-7); }
@media (max-width: 760px) { .menu-list { grid-template-columns: 1fr; } }
.menu-row {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.menu-row:hover .mr-info h4 { color: var(--brand); }
.mr-thumb {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)) center/cover no-repeat;
  position: relative; overflow: hidden;
}
.mr-thumb .promo-badge {
  position: absolute; top: -6px; left: -6px;
  background: var(--brand); color: var(--on-brand);
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em; z-index: 2;
}
.mr-thumb { position: relative; }
.mr-thumb.no-photo::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/52% no-repeat;
  opacity: 0.45; filter: brightness(0) invert(1);
}
.mr-info { flex: 1; min-width: 0; }
.mr-top { display: flex; align-items: baseline; gap: var(--s-2); }
.mr-top h4 { margin: 0; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; }
.mr-leader { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-3px); min-width: 16px; }
.mr-top .price { font-family: var(--font-mono); font-weight: 700; color: var(--brand); white-space: nowrap; }
.mr-info .desc { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-row .add-btn {
  flex: 0 0 auto;
  background: var(--brand); color: var(--on-brand);
  border: 0; border-radius: 999px; width: 38px; height: 38px;
  display: grid; place-items: center; cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
}
.menu-row .add-btn:hover { background: var(--brand-strong); transform: scale(1.08); }
.menu-row .add-btn.added { background: oklch(0.65 0.18 145); }
.menu-product {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base);
}
.menu-product:hover { transform: translateY(-4px); border-color: var(--brand); }
.menu-product .img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-deep) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}
.menu-product .img.no-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/44% no-repeat;
  opacity: 0.4;
  filter: brightness(0) invert(1);
}
.menu-product .body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.menu-product h4 { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); text-transform: uppercase; line-height: 1.05; }
.menu-product .desc { color: var(--ink-muted); font-size: var(--fs-sm); flex: 1; }
.menu-product .price-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  margin-top: var(--s-2);
}
.menu-product .price { font-family: var(--font-mono); font-weight: 700; color: var(--brand); font-size: var(--fs-xl); }
.menu-product .add-btn {
  background: var(--brand); color: var(--on-brand);
  border: 0; border-radius: 999px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  cursor: pointer; font-size: 22px; font-weight: 700;
  transition: transform var(--t-fast), background var(--t-fast);
}
.menu-product .add-btn:hover { background: var(--brand-strong); transform: scale(1.08); }
.menu-product .add-btn.added { background: oklch(0.65 0.18 145); animation: pop 380ms var(--ease-back); }

/* =========================================================
   CART panel
   ========================================================= */
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  z-index: 95;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px -16px oklch(0.10 0 0 / 0.25);
}
.cart-panel { transition: transform var(--t-slow) var(--ease-drawer); }
.cart-panel.open { transform: translateX(0); }
.cart-backdrop {
  position: fixed; inset: 0; z-index: 94;
  background: oklch(0.10 0.02 50 / 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-head {
  flex-shrink: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--brand);
  color: var(--on-brand);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-head h3 { font-family: var(--font-display); margin: 0; text-transform: uppercase; font-size: var(--fs-xl); }
.cart-head button { background: transparent; border: 0; color: var(--on-brand); cursor: pointer; font-size: 26px; }
/* items + checkout en UN solo scroll para que nunca se corte */
.cart-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}
/* ===== Carrito: interior tipo BLOC DE NOTAS ===== */
.cart-panel { background: oklch(0.99 0.012 95); }
.cart-head {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
}
.cart-body {
  /* renglones que se desplazan CON el contenido (background-attachment: local) */
  background-color: oklch(0.99 0.012 95);
  background-image:
    repeating-linear-gradient(transparent 0 33px, oklch(0.62 0.10 250 / 0.30) 33px 34px);
  background-attachment: local;
  background-position-y: 52px;
  color: oklch(0.24 0.03 50);
  position: relative;
}
/* margen rojo del bloc (fijo, no scrollea) */
.cart-body::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px;
  background: oklch(0.62 0.20 25 / 0.5); z-index: 0; pointer-events: none;
}
.cart-body > * { position: relative; z-index: 1; }
[data-theme="dark"] .cart-panel,
[data-theme="dark"] .cart-body { background-color: oklch(0.22 0.02 60); color: oklch(0.92 0.02 75); }
.cart-ticket-head {
  text-align: center; padding: var(--s-4) var(--s-5) var(--s-2);
  color: oklch(0.45 0.05 50); font-size: var(--fs-xs);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.cart-ticket-head .biz {
  font-family: var(--font-display); font-size: var(--fs-xl); color: oklch(0.30 0.06 45);
  letter-spacing: 0; margin-bottom: 2px;
}
[data-theme="dark"] .cart-ticket-head .biz { color: var(--brand-soft); }
.cart-items { padding: var(--s-3) var(--s-5) 0 56px; }
.cart-item { border-bottom: 0; padding: 5px 0; }
.cart-item .name { font-weight: 700; }
.cart-item .price { color: var(--brand-deep); font-family: var(--font-mono); }
.cart-item .qty-row button { background: oklch(0.96 0.02 95); border-color: oklch(0.6 0.05 60 / 0.4); color: oklch(0.3 0.05 50); }
.cart-coupon { display: flex; gap: 6px; margin-bottom: 4px; }
.cart-coupon input { flex: 1; padding: 9px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-sm); text-transform: uppercase; }
.cart-breakdown { margin-bottom: var(--s-3); }
.cart-breakdown .cbrow {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: var(--fs-sm);
  color: var(--ink-muted); padding: 2px 0;
}
.cart-breakdown .cbrow small { font-size: var(--fs-xs); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  border-top: 2px dashed oklch(0.45 0.05 55); padding-top: var(--s-3); margin-top: var(--s-2);
}
.cart-total .total { font-size: var(--fs-2xl); color: var(--brand); font-weight: 700; }
.cart-foot { background: oklch(0.96 0.02 95); }
[data-theme="dark"] .cart-foot { background: oklch(0.26 0.02 60); }
.cart-empty { padding: var(--s-7); text-align: center; color: var(--ink-muted); }
.cart-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.cart-item .ci-thumb {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)) center/cover no-repeat;
  position: relative; overflow: hidden;
}
.cart-item .ci-thumb.np::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/56% no-repeat;
  opacity: 0.5; filter: brightness(0) invert(1);
}
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 700; }
.cart-item .qty-row { display: flex; align-items: center; gap: var(--s-2); margin-top: 6px; }
.cart-item .qty-row button {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  width: 28px; height: 28px; cursor: pointer; font-weight: 700; color: var(--ink);
}
.cart-item .qty-row .qty { font-family: var(--font-mono); font-weight: 700; min-width: 24px; text-align: center; }
.cart-item .price { font-family: var(--font-mono); font-weight: 700; color: var(--brand); }
.cart-foot {
  padding: var(--s-5);
  margin-top: var(--s-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative; z-index: 1;
}
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.cart-total .label { font-weight: 700; }
.cart-total .total { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-2xl); color: var(--brand); }
.cart-foot .field {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-2);
}
.cart-foot .field label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-foot .field input, .cart-foot .field textarea, .cart-foot .field select {
  padding: 10px 12px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit;
}
.cart-foot textarea { min-height: 60px; resize: vertical; }
.cart-foot .submit { width: 100%; justify-content: center; margin-top: var(--s-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: oklch(0.16 0.025 50);
  color: oklch(0.92 0.012 70);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.site-footer .pattern-collage { --collage-opacity: 0.10; }
.site-footer .pattern-collage span { filter: brightness(1.6); }
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 var(--s-3); font-size: var(--fs-md); color: var(--on-brand); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: oklch(0.84 0.015 70); }
.footer-grid a:hover { color: var(--brand); }
.socials { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: 999px;
  color: var(--on-brand);
  transition: all var(--t-fast) var(--ease);
}
.socials a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer-bot {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid oklch(1 0 0 / 0.10);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  color: oklch(0.72 0.015 70); font-size: var(--fs-xs);
  flex-wrap: wrap;
}

/* =========================================================
   RETO MODAL & CÁMARA
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.10 0.02 50 / 0.78);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: var(--s-5);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  padding: var(--s-7);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.modal h3 { font-family: var(--font-display); font-size: var(--fs-2xl); text-transform: uppercase; margin: 0 0 var(--s-3); }
.modal .stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-3); margin: var(--s-4) 0; }
.modal .stat-box { padding: var(--s-3) var(--s-2); background: var(--surface); border-radius: var(--radius); text-align: center; }
.modal .stat-box .label { font-size: var(--fs-xs); text-transform: uppercase; color: var(--ink-muted); letter-spacing: 0.08em; }
.modal .stat-box .v { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-lg); }
.modal .stat-box.prize .v { color: var(--brand); }
.modal .stat-box.penalty .v { color: var(--brand-danger); }
.modal .actions { display: flex; gap: var(--s-3); margin-top: var(--s-5); }

.cam-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: oklch(0.05 0.01 50 / 0.98);
  display: none; flex-direction: column; color: var(--on-brand);
}
.cam-overlay.open { display: flex; }
.cam-top {
  padding: var(--s-4) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  background: linear-gradient(180deg, oklch(0.08 0.02 50 / 0.95), oklch(0.08 0.02 50 / 0.4) 70%, transparent);
  z-index: 2;
}
.cam-topbar { display: flex; align-items: center; gap: var(--s-3); }
.rec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-danger); color: var(--on-brand);
  font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 999px;
}
.rec-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--on-brand); animation: recBlink 1s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: 0.2; } }
.cam-challenge { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-lg); color: var(--on-brand); }
.cam-time {
  font-family: var(--font-mono); font-size: clamp(2.8rem, 9vw, 5rem); font-weight: 700;
  letter-spacing: -0.02em; text-align: center;
  text-shadow: 0 2px 20px oklch(0.05 0 0 / 0.6);
}
.cam-progress {
  position: relative; height: 28px; border-radius: 999px;
  background: oklch(0.24 0.02 50);
  overflow: visible;
  box-shadow: inset 0 2px 5px oklch(0 0 0 / 0.55), 0 0 0 1px oklch(1 0 0 / 0.08);
}
.cam-progress .fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, oklch(0.90 0.19 100), oklch(0.80 0.22 65) 45%, oklch(0.62 0.25 32) 78%, oklch(0.55 0.24 25));
  background-size: 200% 100%;
  box-shadow: 0 0 18px -2px oklch(0.72 0.22 45 / 0.7);
  transition: width 0.5s linear;
  position: relative;
  overflow: hidden;
}
/* rayas animadas dentro de la barra */
.cam-progress .fill::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(45deg, oklch(1 0 0 / 0.18) 25%, transparent 25%, transparent 50%, oklch(1 0 0 / 0.18) 50%, oklch(1 0 0 / 0.18) 75%, transparent 75%);
  background-size: 22px 22px;
  animation: barStripes 0.7s linear infinite;
}
@keyframes barStripes { from { background-position: 0 0; } to { background-position: 22px 0; } }
.cam-progress .fuego {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  left: 0%; height: 58px;
  filter: drop-shadow(0 0 16px oklch(0.85 0.22 50));
  transition: left 0.5s linear;
  z-index: 2;
}
.cam-stage { flex: 1; position: relative; overflow: hidden; background: #000; }
.cam-stage video { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.cam-stage .watermark {
  position: absolute; bottom: 18px; right: 18px; height: 56px; opacity: 0.6;
  filter: drop-shadow(0 2px 8px oklch(0 0 0 / 0.6));
}
.cam-bottom {
  padding: var(--s-5);
  display: flex; gap: var(--s-3); justify-content: center;
  background: linear-gradient(0deg, oklch(0.08 0.02 50 / 0.95), transparent);
  padding-bottom: max(var(--s-5), env(safe-area-inset-bottom));
}
.cam-bottom .btn { font-size: var(--fs-lg); padding: 16px 28px; }

/* utils */
.muted { color: var(--ink-muted); }
.row { display: flex; gap: var(--s-3); align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; }

/* =========================================================
   PRODUCT detail modal
   ========================================================= */
.product-modal {
  position: fixed; inset: 0; z-index: 96;
  display: none; align-items: center; justify-content: center;
  padding: var(--s-5);
  background: oklch(0.10 0.02 50 / 0.7);
  backdrop-filter: blur(6px);
}
.product-modal.open { display: flex; }
.product-modal .pm-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 1100px; width: 100%;
  max-height: 94vh; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr;
  box-shadow: var(--shadow-md);
  animation: resultPop 360ms var(--ease-back);
}
.product-modal .pm-img { min-height: 420px; }
@media (max-width: 680px) {
  .product-modal .pm-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
}
.product-modal .pm-img {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
  background-size: cover; background-position: center;
  position: relative; min-height: 280px;
}
.product-modal .pm-img.no-photo {
  background:
    linear-gradient(135deg, var(--brand-strong), var(--brand-deep)),
    url('/assets/images/logomini.png');
}
.product-modal .pm-img.no-photo::after {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/logomini.png') center/40% no-repeat;
  opacity: 0.35; filter: brightness(0) invert(1);
}
.product-modal .pm-body { padding: var(--s-6); display: flex; flex-direction: column; }
.product-modal .pm-cat { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); font-weight: 800; margin-bottom: var(--s-2); }
.product-modal .pm-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-2xl); margin: 0 0 var(--s-3); line-height: 1; }
.product-modal .pm-desc { color: var(--ink-muted); font-size: var(--fs-md); line-height: 1.6; flex: 1; }
.product-modal .pm-price { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-2xl); color: var(--brand); margin: var(--s-4) 0; }
.product-modal .pm-actions { display: flex; gap: var(--s-3); }
.product-modal .pm-close {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2;
  width: 38px; height: 38px; border-radius: 999px;
  background: oklch(0.10 0 0 / 0.4); color: var(--on-brand);
  border: 0; cursor: pointer; font-size: 20px;
}
.product-modal .pm-qty { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.product-modal .pm-qty button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); }
.product-modal .pm-qty .q { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-lg); min-width: 28px; text-align: center; }

/* =========================================================
   RESULT screen del reto
   ========================================================= */
.result-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: var(--s-5);
  background: oklch(0.10 0.02 50 / 0.85);
  backdrop-filter: blur(8px);
}
.result-overlay.open { display: flex; }
.result-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 460px; width: 100%;
  padding: var(--s-8) var(--s-6);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: resultPop 420ms var(--ease-back);
}
@keyframes resultPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-card .emoji { display: flex; justify-content: center; line-height: 1; margin-bottom: var(--s-3); }
.result-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-2xl); margin: 0 0 var(--s-2); }
.result-card.won h3 { color: var(--brand); }
.result-card.lost h3, .result-card.gave_up h3 { color: var(--brand-danger); }
.result-card p { color: var(--ink-muted); margin: 0 0 var(--s-5); }
.result-card .amount { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-xl); }

/* =========================================================
   SHARE sheet (compartir TikTok por varios medios)
   ========================================================= */
.share-sheet { position: fixed; inset: 0; z-index: 130; display: none; }
.share-sheet.open { display: block; }
.share-sheet .ss-backdrop { position: absolute; inset: 0; background: oklch(0.08 0.02 50 / 0.6); }
.share-sheet .ss-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(460px, 100%);
  background: var(--bg); color: var(--ink);
  border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-5) var(--s-6);
  animation: sheetUp 280ms var(--ease);
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.share-sheet .ss-grabber { width: 40px; height: 4px; border-radius: 999px; background: var(--border); margin: 0 auto var(--s-4); }
.share-sheet h4 { margin: 0 0 var(--s-4); font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-lg); }
.share-sheet .ss-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
@media (max-width: 380px) { .share-sheet .ss-options { grid-template-columns: repeat(3, 1fr); } }
.share-sheet .ss-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.share-sheet .ss-icon { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; }
.share-sheet .ss-cancel { width: 100%; margin-top: var(--s-5); padding: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); font-weight: 700; cursor: pointer; color: var(--ink); }

/* =========================================================
   FLOATING contacto (WhatsApp + llamar)
   ========================================================= */
.float-contact {
  position: fixed;
  right: max(var(--s-4), env(safe-area-inset-right));
  bottom: max(var(--s-5), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s-3);
  z-index: 80;
}
.fc-btn {
  width: 58px; height: 58px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--on-brand);
  box-shadow: 0 10px 26px -8px oklch(0.20 0.08 45 / 0.55);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.fc-btn:hover { transform: translateY(-3px) scale(1.05); }
.fc-wa { background: #25D366; }
.fc-call { background: var(--brand); width: 50px; height: 50px; align-self: center; }

/* =========================================================
   EDITOR VISUAL (page builder) dentro del iframe
   ========================================================= */
.yb-editing *:hover { outline: 1px dashed oklch(0.70 0.19 50 / 0.55); outline-offset: 1px; }
.yb-editing [contenteditable="true"] { outline: 2px solid var(--brand) !important; background: oklch(1 0 0 / 0.12); cursor: text; }
.yb-selected { outline: 2px solid var(--brand) !important; outline-offset: 2px; }
.yb-moving { opacity: 0.85; cursor: grabbing !important; }
.yb-seltools {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100000; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center;
  max-width: 94vw;
  background: oklch(0.18 0.02 50 / 0.97); color: #fff;
  padding: 6px 8px; border-radius: 999px;
  box-shadow: 0 10px 30px -8px oklch(0.1 0 0 / 0.5);
  font-family: var(--font-body); font-size: 13px;
}
.yb-seltools .yb-seltag { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--brand-soft); padding: 0 6px; }
.yb-seltools button {
  background: oklch(1 0 0 / 0.14); color: #fff; border: 0; border-radius: 999px;
  padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: 12px;
}
.yb-seltools button:hover { background: var(--brand); }
.yb-seltools .yb-sep { width: 1px; height: 22px; background: oklch(1 0 0 / 0.2); margin: 0 2px; }
.yb-edit-badge {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 13px; padding: 6px 16px; border-radius: 999px;
  z-index: 99999; box-shadow: var(--shadow-brand); font-family: var(--font-body);
}

/* skeleton loaders (perceived performance — Emil) */
.sk {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-lg);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-reto { height: 360px; }
.sk-dish { flex: 0 0 auto; width: 200px; height: 280px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* =========================================================
   POLISH DE MOVIMIENTO (Emil Kowalski)
   ========================================================= */
/* Modales: entran desde scale(0.96)+opacity, nunca desde 0; origin center */
@media (prefers-reduced-motion: no-preference) {
  .modal-backdrop.open .modal,
  .product-modal.open .pm-card,
  .tiktok-modal.open,
  #confirmOverlay.open .box { animation: ybModalIn 220ms var(--ease-out) both; }
  @keyframes ybModalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
  .modal-backdrop, .product-modal, #confirmOverlay { transition: opacity 180ms var(--ease-out); }
}
/* Hover de elevación SOLO en dispositivos con puntero fino (Emil) */
@media (hover: none) {
  .reto-card:hover, .menu-product:hover, .dish-card:hover, .tiktok-card:hover,
  .winner-card:hover, .stat-card:hover, .review-card:hover { transform: none; }
}
/* curvas fuertes en cards que ya elevaban */
.reto-card, .menu-product, .tiktok-card, .dish-card { transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--brand);
  color: var(--on-brand);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-brand);
  z-index: 120;
  transition: transform var(--t-base) var(--ease-back);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   CARRUSEL DE IMÁGENES bajo videos
   ============================================================ */
/* CARRUSEL COVERFLOW */
.cf-section { position: relative; max-width: 1280px; margin: 0 auto var(--s-7); padding: 0 var(--s-4); }
.cf-stage { position: relative; height: clamp(280px, 42vw, 460px); perspective: 1400px; touch-action: pan-y; user-select: none; }
.cf-card { position: absolute; top: 50%; left: 50%; width: clamp(240px, 36vw, 420px); aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: oklch(0.16 0.02 50); margin: calc(-1 * clamp(240px, 36vw, 420px) / 2) 0 0 calc(-1 * clamp(240px, 36vw, 420px) / 2); transition: transform 0.65s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.5s ease; transform-style: preserve-3d; cursor: pointer; box-shadow: 0 22px 50px -18px oklch(0 0 0 / 0.55), 0 0 0 1px oklch(1 0 0 / 0.04); }
.cf-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); cursor: pointer; color: var(--brand); box-shadow: 0 6px 16px oklch(0 0 0 / 0.2); display: grid; place-items: center; z-index: 5; transition: transform var(--t-fast) var(--ease-out), background var(--t-fast); }
.cf-nav:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-50%) scale(1.08); }
.cf-nav:active { transform: translateY(-50%) scale(0.92); }
.cf-nav.prev { left: 8px; }
.cf-nav.next { right: 8px; }
.cf-dots { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.cf-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: all var(--t-fast) var(--ease-out); }
.cf-dots button.on { background: var(--brand); width: 26px; }
@media (max-width: 640px) { .cf-nav { width: 40px; height: 40px; } .cf-card { border-radius: 16px; } }

/* ============================================================
   CÁMARA DE RETOS — pantalla completa, contador overlay arriba
   ============================================================ */
.cam-overlay { background: #000; }
.cam-stage { position: absolute !important; inset: 0; flex: none; width: 100vw; height: 100vh; z-index: 1; }
.cam-stage video { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 14px 16px env(safe-area-inset-top, 14px); background: linear-gradient(180deg, oklch(0 0 0 / 0.78) 0%, oklch(0 0 0 / 0.5) 70%, transparent 100%); color: #fff; }
.cam-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cam-topbar .cam-name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-topbar .cam-time { font-family: var(--font-mono); font-size: 26px; font-weight: 700; padding: 4px 12px; border-radius: 8px; background: oklch(0 0 0 / 0.5); }
.cam-topbar .cam-rec { color: #ff3030; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; animation: camRec 1s ease-in-out infinite; }
@keyframes camRec { 50% { opacity: 0.35; } }
.cam-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; padding: 18px 16px calc(env(safe-area-inset-bottom, 18px) + 14px); background: linear-gradient(0deg, oklch(0 0 0 / 0.82) 0%, oklch(0 0 0 / 0.5) 70%, transparent 100%); display: flex; gap: 12px; justify-content: center; }
.cam-bottom .btn { min-width: 160px; justify-content: center; backdrop-filter: blur(8px); }

/* ============================================================
   ANIMACIONES DE MARCA — pizzas/osos flotantes sutiles
   ============================================================ */
@keyframes ybFloat { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 6deg)); } }
@keyframes ybSpinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes ybDriftLR { 0% { transform: translateX(-60px) translateY(0); } 50% { transform: translateX(60px) translateY(-20px); } 100% { transform: translateX(-60px) translateY(0); } }
.yb-paw, .yb-pizza { position: absolute; pointer-events: none; user-select: none; z-index: 0; opacity: 0.14; }
.yb-paw { width: 100px; height: 100px; background: url('/assets/images/garra.png') center/contain no-repeat; }
.yb-pizza { width: 80px; height: 80px; background: url('/assets/images/logomini.png') center/contain no-repeat; animation: ybSpinSlow 24s linear infinite; }
section .yb-paw, section .yb-pizza { z-index: 0; }
.bloc, .tiktok-section, .img-carousel-section, .ratings-strip { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .yb-paw, .yb-pizza { animation: none !important; } }

/* ============================================================
   DRAWER MI CUENTA
   ============================================================ */
#accountBtn { position: relative; }
.acct-backdrop { position: fixed; inset: 0; background: oklch(0 0 0 / 0.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease-out), visibility 0.3s; z-index: 998; }
.acct-backdrop.open { opacity: 1; visibility: visible; }
.acct-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg); z-index: 999; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); overflow-y: auto; box-shadow: -8px 0 40px oklch(0 0 0 / 0.3); }
.acct-drawer.open { transform: translateX(0); }
.acct-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; background: var(--surface); border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); z-index: 2; }
.acct-body { padding: var(--s-7) var(--s-5) var(--s-6); }
.acct-hero { text-align: center; padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); margin-bottom: var(--s-5); }
.acct-hero img { height: 64px; margin: 0 auto var(--s-3); display: block; }
.acct-hero h2 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-2xl); margin: 0 0 6px; }
.acct-hero p { color: var(--ink-muted); margin: 0; }
.acct-avatar { width: 96px; height: 96px; border-radius: 999px; background: var(--surface); border: 3px solid var(--brand); margin: 0 auto var(--s-3); display: grid; place-items: center; color: var(--brand); overflow: hidden; position: relative; }
.acct-avatar.guest { color: var(--ink-muted); border-color: var(--border); }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar.editable { cursor: pointer; }
.acct-avatar-edit { position: absolute; bottom: -2px; right: -2px; background: var(--brand); color: var(--on-brand); width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; box-shadow: 0 3px 10px oklch(0 0 0 / 0.3); border: 3px solid var(--bg); }
.acct-avatar-edit svg { width: 16px; height: 16px; display: block; }
/* botón vaciar en header del carrito */
.cart-head-btn { background: transparent; border: 0; color: oklch(1 0 0 / 0.85); cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); margin-right: 4px; transition: background var(--t-fast) var(--ease-out), color var(--t-fast); }
.cart-head-btn:hover { background: oklch(1 0 0 / 0.18); color: #fff; }
.cart-head-btn:active { transform: scale(0.9); }
.acct-title { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-2xl); margin: 0 0 var(--s-2); }
.acct-actions { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.acct-actions .btn { justify-content: center; }
.acct-form { display: grid; gap: var(--s-3); }
.acct-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.acct-form input { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: var(--fs-md); font-family: inherit; font-weight: 500; }
.acct-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.80 0.16 70 / 0.25); }
.acct-form .btn { justify-content: center; }
.acct-muted { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: var(--s-4); text-align: center; }
.acct-section { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.acct-section h3 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-md); margin: 0 0 var(--s-3); }
.acct-empty { color: var(--ink-muted); font-size: var(--fs-sm); text-align: center; margin: var(--s-3) 0; }
.acct-favs { display: grid; gap: 10px; }
.acct-fav { display: flex; align-items: center; gap: var(--s-3); padding: 10px; background: var(--surface); border-radius: var(--radius-sm); }
.acct-fav img, .acct-fav-no { width: 54px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.acct-fav-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-fav-info strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-fav-info span { color: var(--brand); font-weight: 700; font-size: var(--fs-sm); }
.acct-fav button { background: transparent; border: 0; color: var(--brand-danger); font-size: 16px; cursor: pointer; padding: 6px; }
.acct-upgrade-card { background: linear-gradient(135deg, oklch(0.98 0.04 78), oklch(0.94 0.07 76)); border: 1.5px dashed var(--brand); border-radius: var(--radius); padding: var(--s-4); margin-bottom: var(--s-5); }
.acct-upgrade-card strong { font-family: var(--font-display); text-transform: uppercase; color: var(--brand); display: block; font-size: var(--fs-md); }
.acct-upgrade-card p { font-size: var(--fs-sm); color: var(--ink); margin: 4px 0 var(--s-3); }
.acct-claim { display: flex; gap: 8px; margin-bottom: 4px; }
.acct-claim input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.acct-coupons { display: grid; gap: 8px; margin-top: var(--s-3); }
.acct-coupon { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; background: var(--brand-cream); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.acct-coupon strong { font-family: var(--font-mono); }
.acct-coupon span { color: var(--ink-muted); font-size: var(--fs-sm); flex: 1; }
.acct-coupon.used { opacity: 0.5; }
.acct-coupon small { color: var(--brand-danger); font-weight: 700; text-transform: uppercase; font-size: 10px; }
.acct-logout { margin-top: var(--s-5); width: 100%; justify-content: center; color: var(--ink-muted); }

/* Botón de favorito en thumbnail del menú */
.menu-row .mr-thumb { position: relative; }
.fav-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 999px; background: oklch(1 0 0 / 0.95); border: 0; cursor: pointer; display: grid; place-items: center; transition: transform var(--t-fast) var(--ease-out), background var(--t-fast); z-index: 3; box-shadow: 0 2px 6px oklch(0 0 0 / 0.25); }
.fav-btn:hover { background: #fff; transform: scale(1.08); }
.fav-btn:active { transform: scale(0.88); }
.fav-btn svg { width: 14px; height: 14px; stroke: var(--brand-danger); stroke-width: 2.2; fill: none; transition: fill 0.2s; }
.fav-btn.on svg { fill: var(--brand-danger); animation: favPop 0.4s var(--ease-back); }
@keyframes favPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ============================================================
   COMBOS GUARDADOS
   ============================================================ */
.acct-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.acct-section-head h3 { margin: 0; }
.btn-sm { padding: 6px 12px; font-size: var(--fs-xs); }
.acct-combos { display: grid; gap: var(--s-3); }
.acct-combo { background: var(--surface); border-radius: var(--radius); padding: var(--s-3); border: 1px solid var(--border); }
.acct-combo .combo-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; }
.acct-combo .combo-head strong { font-size: var(--fs-md); }
.acct-combo .combo-total { color: var(--brand); font-weight: 800; font-family: var(--font-mono); }
.acct-combo .combo-items { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.combo-item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-muted); }
.combo-item img, .combo-item-no { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.acct-combo .combo-actions { display: flex; gap: 6px; }
.acct-combo .combo-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; }
.acct-combo .combo-actions .btn-ghost { flex: 0 0 auto; color: var(--brand-danger); }

/* Modal armar combo */
.combo-modal-backdrop { position: fixed; inset: 0; background: oklch(0 0 0 / 0.6); backdrop-filter: blur(4px); z-index: 1000; display: grid; place-items: center; padding: var(--s-4); animation: cmFade 0.25s var(--ease-out) both; }
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
.combo-modal { width: min(560px, 100%); max-height: 90vh; background: var(--bg); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: cmIn 0.3s var(--ease-out) both; }
@keyframes cmIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.combo-modal header { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--border); }
.combo-modal header h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; }
.cm-close { width: 36px; height: 36px; border-radius: 999px; background: var(--surface); border: 0; cursor: pointer; font-size: 22px; color: var(--ink); }
.cm-body { padding: var(--s-4); flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-3); }
.cm-search { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; }
.cm-search:focus { outline: none; border-color: var(--brand); }
.cm-list { display: flex; flex-direction: column; gap: 8px; }
.cm-item { display: flex; align-items: center; gap: var(--s-3); background: var(--surface); border-radius: var(--radius-sm); padding: 8px 12px; }
.cm-thumb { width: 42px; height: 42px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)) center/cover no-repeat; flex-shrink: 0; }
.cm-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cm-info strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-info span { color: var(--brand); font-weight: 700; font-size: var(--fs-xs); }
.cm-qty { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 4px 6px; }
.cm-qty button { width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: var(--on-brand); border: 0; cursor: pointer; font-weight: 800; }
.cm-qty span { font-weight: 800; font-family: var(--font-mono); min-width: 18px; text-align: center; }
.combo-modal footer { padding: var(--s-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s-3); }
.cm-name { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.cm-name:focus { outline: none; border-color: var(--brand); }
.cm-foot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cm-foot-row strong { font-family: var(--font-mono); color: var(--brand); font-size: var(--fs-lg); }

/* ============================================================
   RECORTADOR DE IMAGEN
   ============================================================ */
.yb-crop-backdrop { position: fixed; inset: 0; background: oklch(0 0 0 / 0.7); backdrop-filter: blur(4px); z-index: 10000; display: grid; place-items: center; padding: var(--s-4); animation: cmFade 0.25s var(--ease-out) both; }
.yb-crop-modal { width: min(560px, 100%); max-height: 92vh; background: var(--bg); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: cmIn 0.3s var(--ease-out) both; }
.yb-crop-modal header { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--border); }
.yb-crop-modal header h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-lg); }
.yb-crop-hint { margin: 0; padding: 10px var(--s-4); font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; border-bottom: 1px solid var(--border); }
.yb-crop-x { width: 36px; height: 36px; border-radius: 999px; background: var(--surface); border: 0; cursor: pointer; font-size: 22px; color: var(--ink); }
.yb-crop-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 60vh; background: #000; overflow: hidden; touch-action: none; user-select: none; }
.yb-crop-stage img { position: absolute; pointer-events: none; -webkit-user-drag: none; }
.yb-crop-mask { position: absolute; inset: 0; background: oklch(0 0 0 / 0.55); pointer-events: none; }
.yb-crop-frame { position: absolute; border: 2px solid #fff; border-radius: 3px; cursor: move; box-shadow: 0 4px 14px oklch(0 0 0 / 0.5); box-sizing: border-box; }
.yb-crop-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(oklch(1 0 0 / 0.35) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / 0.35) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; }
.yb-crop-handle { position: absolute; width: 18px; height: 18px; background: var(--brand); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px oklch(0 0 0 / 0.4); }
.yb-crop-handle.nw { top: -10px;  left: -10px;  cursor: nwse-resize; }
.yb-crop-handle.ne { top: -10px;  right: -10px; cursor: nesw-resize; }
.yb-crop-handle.sw { bottom: -10px; left: -10px; cursor: nesw-resize; }
.yb-crop-handle.se { bottom: -10px; right: -10px; cursor: nwse-resize; }
.yb-crop-modal footer { display: flex; gap: 10px; padding: var(--s-4); border-top: 1px solid var(--border); }
.yb-crop-modal footer .btn { flex: 1; justify-content: center; }

/* Mis retos */
.acct-challenges { display: grid; gap: 10px; }
.acct-chall { display: flex; align-items: center; gap: var(--s-3); padding: 8px; background: var(--surface); border-radius: var(--radius-sm); border-left: 4px solid var(--ink-muted); }
.acct-chall.won { border-left-color: var(--brand); background: linear-gradient(90deg, oklch(0.97 0.05 78), var(--surface)); }
.acct-chall.gave_up, .acct-chall.lost { border-left-color: var(--brand-danger); }
.acct-chall video, .acct-chall-no { width: 54px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; display: grid; place-items: center; font-size: 22px; }
.acct-chall-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-chall-info strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chall-info span { font-size: var(--fs-xs); font-weight: 700; }
.acct-chall-info small { color: var(--ink-muted); font-size: 11px; }
.acct-chall-prize { color: var(--brand); font-family: var(--font-mono); font-weight: 800; font-size: var(--fs-md); }

/* Mini-mapa de zona en el carrito */
.zone-hint { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 6px; font-weight: 600; }
.zone-status { font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 8px; text-align: center; line-height: 1.5; }
.zone-status:empty { display: none; }
.zone-status.ok { background: oklch(0.95 0.1 145); color: oklch(0.35 0.18 145); border: 1px solid oklch(0.6 0.15 145); }
.zone-status.warn { background: oklch(0.97 0.07 50); color: var(--brand-deep); border: 1px solid var(--brand); }
.zone-status .btn { display: inline-flex; }

/* Upgrade mini (botón discreto) */
.acct-upgrade-mini { border: 1px dashed var(--border); border-radius: var(--radius); padding: 0; margin: var(--s-3) 0 var(--s-4); overflow: hidden; background: transparent; }
.acct-upgrade-mini summary { list-style: none; cursor: pointer; padding: 12px var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink-muted); font-size: var(--fs-sm); }
.acct-upgrade-mini summary::-webkit-details-marker { display: none; }
.acct-upgrade-mini summary::after { content: '+'; font-size: 18px; font-weight: 800; color: var(--brand); }
.acct-upgrade-mini[open] summary::after { content: '−'; }
.acct-upgrade-mini[open] { border-color: var(--brand); }
.acct-upgrade-mini[open] summary { background: oklch(0.97 0.04 78); color: var(--brand-deep); }
.acct-upgrade-mini > .acct-form { padding: 0 var(--s-3) var(--s-3); }

/* ============================================================
   PASADA RESPONSIVE GLOBAL — móvil, tablet, desktop
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  :root { --s-7: 40px; --s-6: 32px; }
  .container { padding-left: var(--s-4); padding-right: var(--s-4); }
  .hero-grid { gap: var(--s-5); }
  .reviews-grid, .winners-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Móvil (≤ 768px) */
@media (max-width: 768px) {
  :root { --fs-3xl: clamp(2rem, 9vw, 3rem); --fs-2xl: clamp(1.5rem, 7vw, 2.2rem); --s-7: 32px; --s-6: 24px; --s-5: 18px; }
  .container { padding-left: 16px; padding-right: 16px; }
  /* Hero: hereda; logo más razonable */
  .hero { padding-top: var(--s-5); padding-bottom: var(--s-5); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero-image { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; }
  /* Carrusel coverflow más compacto */
  .cf-stage { height: clamp(220px, 60vw, 320px); }
  .cf-card { width: 70vw; margin: -35vw 0 0 -35vw; }
  .cf-nav { width: 38px; height: 38px; }
  /* Carrito */
  .cart-panel { width: 100%; max-width: 100%; }
  .cart-foot .field input, .cart-foot .field select, .cart-foot .field textarea { font-size: 16px; } /* evita zoom iOS */
  /* Buscador menú */
  .menu-search { padding: 5px 6px 5px var(--s-3); }
  .menu-search .ms-ico { width: 34px; height: 34px; }
  .menu-search input { padding: 11px 4px; font-size: 16px; }
  /* Sucursales */
  .branches-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  /* Reserva: ya colapsa, los inputs no se ven cortados */
  .reserve-card { padding: var(--s-4); }
  .reserve-card .form-row2 { grid-template-columns: 1fr; gap: var(--s-2); }
  .reserve-card input, .reserve-card select, .reserve-card textarea { font-size: 16px; }
  /* Reto cards */
  .retos-grid { grid-template-columns: 1fr; }
  /* Drawer cuenta full width */
  .acct-drawer { width: 100%; max-width: 100%; }
  /* Botones flotantes contacto */
  .float-contact { right: 12px; bottom: 12px; }
  .fc-btn { width: 50px; height: 50px; }
  /* Header: nav oculta si hay burger */
  .site-header { padding: 8px 12px; }
  .brand-mark .brand-logo { height: 42px; }
  .site-nav { font-size: 0; }
  /* Menu rows con thumb más pequeño */
  .mr-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  /* Stats strip 2 columnas */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  /* Footer columnas a 1 */
  .footer-grid { grid-template-columns: 1fr !important; gap: var(--s-4) !important; text-align: center; }
  /* Reseñas y ganadores */
  .reviews-grid, .winners-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Móvil chico (≤ 420px) */
@media (max-width: 420px) {
  .cart-foot { padding: 14px; }
  .cart-head h3 { font-size: 16px; }
  .btn { padding: 12px 18px; }
  .section-eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .hero-cta { gap: 8px; }
  .hero-toplogo { max-width: 280px; }
}

/* Toques: foco más grueso para accesibilidad */
@media (hover: none) {
  .btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--brand-soft); outline-offset: 2px;
  }
}

/* Cumpleaños en la cuenta */
.acct-bday { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 var(--s-4); font-size: var(--fs-sm); font-weight: 600; }
.acct-bday input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--bg); color: var(--ink); font-family: inherit; }
.acct-bday-gift { background: linear-gradient(135deg, oklch(0.7 0.18 50), oklch(0.62 0.2 30)); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: var(--s-4); font-size: var(--fs-sm); line-height: 1.5; text-align: center; }
.acct-bday-gift code { background: oklch(1 0 0 / 0.25); padding: 2px 8px; border-radius: 4px; font-weight: 800; font-family: var(--font-mono); }

/* ============================================================
   EDICIONES PREMIUM MOBILE-FIRST & APP NATIVA YOGIBEAR
   ============================================================ */

/* Animación de spring para el carrito */
@keyframes cartSpring {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.badge-spring {
  animation: cartSpring 0.4s var(--ease-back) both;
}

/* Transiciones fluidas en tarjetas al interactuar */
.dish-card, .reto-card, .contest-card {
  transition: transform var(--t-base) var(--ease), border-color var(--t-base), box-shadow var(--t-base);
}
.dish-card:active, .reto-card:active, .contest-card:active {
  transform: scale(0.97) translateY(0px) !important;
}

/* Cajones como Bottom Sheets en móviles (≤ 768px) */
@media (max-width: 768px) {
  .cart-panel, .acct-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: 85vh !important;
    top: auto !important;
    bottom: 0 !important;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
    transform: translateY(100%) !important;
    transition: transform var(--t-slow) var(--ease-drawer) !important;
    box-shadow: 0 -10px 40px oklch(0 0 0 / 0.25) !important;
  }
  .cart-panel.open, .acct-drawer.open {
    transform: translateY(0) !important;
  }
  
  /* Tirador/Grabber visual superior para los cajones estilo app nativa */
  .cart-panel::before, .acct-drawer::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: oklch(1 0 0 / 0.3);
    border-radius: 999px;
    z-index: 10;
  }
  
  .cart-head, .acct-close {
    padding-top: 20px !important;
  }
  
  /* Esconder la navegación superior tradicional del header en móvil */
  .site-header .site-nav, .site-header .menu-burger {
    display: none !important;
  }
  
  /* Barra inferior móvil */
  .mobile-tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: oklch(var(--bg) / 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 80;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px oklch(0 0 0 / 0.05);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  
  .mobile-tab-bar .tab-item {
    background: transparent;
    border: 0;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 64px;
    padding: 0;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transition: color var(--t-fast) var(--ease);
  }
  
  .mobile-tab-bar .tab-item svg {
    width: 22px;
    height: 22px;
    transition: transform var(--t-press) var(--ease-back);
  }
  
  .mobile-tab-bar .tab-item:active svg {
    transform: scale(0.85);
  }
  
  .mobile-tab-bar .tab-item.active {
    color: var(--brand);
  }
  
  .mobile-tab-bar .tab-item .cart-icon-wrap {
    position: relative;
    display: inline-block;
  }
  
  .mobile-tab-bar .tab-item .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    border: 2px solid oklch(var(--bg));
  }
  
  /* Ajuste de scroll y paddings de página para no tapar contenido con la barra inferior */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .float-contact {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Modo App Nativa (is-native-app) */
.is-native-app .site-header {
  display: none !important;
}
.is-native-app body {
  padding-top: 0 !important;
}
.is-native-app .site-footer {
  display: none !important;
}
.is-native-app .float-contact {
  display: none !important;
}
/* Barra inferior tipo app — SOLO dentro de la app nativa */
.app-tabbar { display: none; }
.is-native-app .app-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: oklch(0.18 0.02 40 / 0.92);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.app-tabbar a, .app-tabbar button {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px 8px; color: var(--ink-muted); text-decoration: none;
  font-size: 10.5px; font-weight: 700; position: relative;
  transition: color .15s;
}
.app-tabbar a.active, .app-tabbar button.active { color: var(--brand); }
.app-tabbar a:active, .app-tabbar button:active { color: var(--brand-soft); }
.app-tabbar .tab-badge {
  display: none; position: absolute; top: 4px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-size: 10px; font-weight: 800;
  place-items: center; line-height: 1;
}
/* Dejar espacio para que el contenido no quede tapado por la barra */
.is-native-app body { padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important; }
.is-native-app .to-top { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
.is-native-app .cart-drawer, .is-native-app .acct-drawer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

/* Home enfocado a conversión (app): fuera secciones de marketing / redundantes.
   Retos vive en su propia pestaña; ganadores/reseñas/reservar son web. */
.is-native-app #retos,
.is-native-app #winners,
.is-native-app #ratingsSection,
.is-native-app #reviews,
.is-native-app #reservar { display: none !important; }

/* ============================================================
   COMUNICADO · cambio de sucursal
   ============================================================ */
.announce { padding: var(--s-6) 0; }
.announce-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, oklch(0.32 0.09 45), oklch(0.26 0.07 35));
  border: 1px solid oklch(0.55 0.15 50 / 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.announce-card::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/images/garra.png') right -40px bottom -40px / 260px no-repeat;
  opacity: 0.06; pointer-events: none;
}
.announce-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at center, oklch(0.7 0.19 55 / 0.35), transparent 70%);
  filter: blur(30px); z-index: 0;
}
.announce-card > *:not(.announce-glow) { position: relative; z-index: 1; }
.announce-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 800; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em;
  padding: 7px 16px; border-radius: 999px; margin-bottom: var(--s-4);
  box-shadow: 0 6px 20px -6px oklch(0.6 0.2 45 / 0.7);
  animation: announcePulse 2.4s ease-in-out infinite;
}
@keyframes announcePulse {
  0%, 100% { box-shadow: 0 6px 20px -6px oklch(0.6 0.2 45 / 0.7); }
  50% { box-shadow: 0 6px 28px -4px oklch(0.65 0.22 45 / 0.95); }
}
.announce-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem); line-height: 0.95; color: #fff;
  margin: 0 0 var(--s-3); text-wrap: balance;
}
.announce-title .accent {
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.announce-lead { color: oklch(0.9 0.02 70); max-width: 62ch; margin: 0 auto var(--s-5); line-height: 1.6; }
.announce-lead strong { color: var(--brand-soft); }
.announce-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: stretch; }
.announce-loc {
  background: oklch(1 0 0 / 0.05); border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: var(--radius); padding: var(--s-5) var(--s-4); text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.announce-loc.new {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 16px 40px -14px oklch(0.6 0.18 45 / 0.65);
  background: oklch(0.6 0.15 50 / 0.14);
}
.announce-tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-muted); padding: 4px 10px; border-radius: 999px;
  background: oklch(1 0 0 / 0.06);
}
.announce-loc.new .announce-tag { color: var(--on-brand); background: var(--brand); }
.announce-loc strong { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-lg); color: #fff; }
.announce-loc p { margin: 0; color: oklch(0.85 0.02 70); font-size: var(--fs-sm); line-height: 1.5; }
.announce-loc small { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: var(--fs-xs); }
.announce-loc small svg { flex-shrink: 0; }
.announce-loc .announce-perk { color: var(--brand-soft); font-weight: 700; }
.announce-loc.bye { opacity: 0.88; }
.announce-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.announce-arrow { display: grid; place-items: center; color: var(--brand); }
@media (max-width: 720px) {
  .announce-grid { grid-template-columns: 1fr; }
  .announce-arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ============================================================
   PULIDO ESTÉTICO Y UX (tema oscuro)
   ============================================================ */
html { scroll-behavior: smooth; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Header: glass + blur al hacer scroll */
.site-header { transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease, padding .3s ease; }
.site-header.scrolled {
  background: linear-gradient(180deg, oklch(0.58 0.17 48 / 0.88), oklch(0.52 0.16 42 / 0.82));
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 4px 24px -8px oklch(0.4 0.14 45 / 0.55);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}

/* Botón volver arriba (abajo-izquierda, para no tapar llamadas/WhatsApp) */
.to-top {
  position: fixed; left: max(var(--s-4), env(safe-area-inset-left));
  bottom: max(var(--s-5), env(safe-area-inset-bottom)); z-index: 80;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--surface); color: var(--brand); border: 1px solid var(--border); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px -6px oklch(0 0 0 / 0.5);
  opacity: 0; transform: translateY(16px) scale(0.8); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-back), background var(--t-fast);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-3px); }
.to-top:active { transform: scale(0.9); }
@media (max-width: 720px) { .to-top { left: 12px; bottom: 12px; } }

/* Cards: elevación consistente al hover (solo puntero fino) */
@media (hover: hover) and (pointer: fine) {
  .menu-row:hover, .review-card:hover, .winner-card:hover { transform: translateY(-3px); }
  .menu-row, .review-card, .winner-card { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
}

/* Imágenes: carga suave */
img { transition: opacity .3s ease; }

/* Links del footer con subrayado animado */
.site-footer a { position: relative; transition: color .2s; }
.site-footer a:hover { color: var(--brand-soft) !important; }

/* Botones primarios con brillo sutil */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, oklch(1 0 0 / 0.25), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* Scrollbar de marca */
* { scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* Anclas: que el header sticky no tape la sección */
section[id], [id="top"], [id="retos"], [id="videos"], [id="sucursales"], [id="reservar"] { scroll-margin-top: 90px; }

/* ============================================================
   DIÁLOGOS PROPIOS (confirm/alert de la página)
   ============================================================ */
.yb-dialog-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px;
  background: oklch(0 0 0 / 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.yb-dialog-backdrop.show { opacity: 1; }
.yb-dialog { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6); max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(8px); transition: transform .25s var(--ease-back); }
.yb-dialog-backdrop.show .yb-dialog { transform: none; }
.yb-dialog h3 { font-family: var(--font-display); text-transform: uppercase; margin: 0 0 var(--s-2); color: var(--brand); }
.yb-dialog p { margin: 0 0 var(--s-5); color: var(--ink); line-height: 1.5; }
.yb-dialog-actions { display: flex; gap: 10px; justify-content: center; }
.yb-dlg-btn { padding: 11px 22px; border-radius: var(--radius); font-weight: 700; cursor: pointer; border: 1px solid transparent; font-size: var(--fs-md); transition: transform .12s var(--ease-out), background .15s; }
.yb-dlg-btn:active { transform: scale(0.96); }
.yb-dlg-btn.ok { background: var(--brand); color: var(--on-brand); }
.yb-dlg-btn.ok:hover { background: var(--brand-strong); }
.yb-dlg-btn.ok.danger { background: var(--brand-danger); }
.yb-dlg-btn.cancel { background: transparent; color: var(--ink); border-color: var(--border); }
.yb-dlg-btn.cancel:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   RETO · elección de grabación + preview
   ============================================================ */
.reto-record-choice { margin: var(--s-4) 0; }
.rrc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); padding: 4px; border-radius: 999px; margin-bottom: var(--s-3); }
.rrc-tab { border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-muted); cursor: pointer; transition: all .15s; }
.rrc-tab.active { background: var(--brand); color: var(--on-brand); }
.rrc-preview { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: #000; }
.rrc-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.rrc-preview-hint { position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center; font-size: var(--fs-xs); color: #fff; background: oklch(0 0 0 / 0.6); padding: 5px 10px; border-radius: 999px; }
.rrc-noperm { padding: 24px; text-align: center; color: var(--ink-muted); font-size: var(--fs-sm); }
.rrc-note { font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; margin: var(--s-2) 0 0; }

/* Cronómetro grande (modo sin grabar) */
.timer-overlay { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(160deg, var(--brand-deep), oklch(0.14 0.03 40)); display: none; place-items: center; padding: 24px; }
.timer-overlay.open { display: grid; }
.timer-inner { text-align: center; width: min(560px, 100%); }
.timer-logo {
  display: block; margin: 0 auto var(--s-5);
  width: min(280px, 62%); height: auto;
  filter: drop-shadow(0 10px 30px oklch(0 0 0 / 0.5));
}
@media (max-height: 700px) { .timer-logo { width: min(200px, 46%); margin-bottom: var(--s-3); } }
.timer-reto { font-family: var(--font-display); text-transform: uppercase; color: oklch(0.9 0.05 70); font-size: var(--fs-lg); margin-bottom: var(--s-3); letter-spacing: 0.04em; }
.timer-big { font-family: var(--font-mono); font-weight: 800; color: #fff; font-size: clamp(4rem, 22vw, 11rem); line-height: 1; letter-spacing: -0.02em; text-shadow: 0 8px 40px oklch(0.7 0.2 45 / 0.5); }
.timer-bar { height: 10px; border-radius: 999px; background: oklch(1 0 0 / 0.15); overflow: hidden; margin: var(--s-5) 0; }
.timer-fill { height: 100%; width: 0; background: linear-gradient(90deg, oklch(0.85 0.19 100), oklch(0.6 0.24 30)); transition: width .25s linear; }
.timer-actions { display: flex; gap: 12px; justify-content: center; }
.timer-actions .btn { min-width: 150px; justify-content: center; font-size: var(--fs-lg); }

/* ============================================================
   PULIDO TÁCTIL GLOBAL (web + app)
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
.btn, .icon-btn, .rrc-tab, .sound-btn, .app-tabbar a, .app-tabbar button { touch-action: manipulation; }
.btn:active, .icon-btn:active { transform: scale(0.96); }
@keyframes badgePop { 0% { transform: scale(0.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.app-tabbar .tab-badge.pop { animation: badgePop 0.35s var(--ease-back); }

/* ============================================================
   MODO APP · refinamiento nativo
   ============================================================ */
.app-topbar { display: none; }
.is-native-app .app-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1150;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  background: oklch(0.16 0.012 50 / 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid oklch(1 0 0 / 0.07);
}
.app-topbar-logo { height: 28px; width: auto; }
.app-topbar-slot { display: inline-flex; align-items: center; }
.is-native-app .app-topbar .open-pill { display: inline-flex !important; background: oklch(1 0 0 / 0.08); }
.is-native-app body { padding-top: calc(58px + env(safe-area-inset-top)) !important; }

/* Piezas del sitio que en la app sobran (las barras las reemplazan) */
.is-native-app .hero-toplogo { display: none; }
.is-native-app .to-top { display: none !important; }

/* Sensación nativa: sin rebote raro, sin selección accidental del chrome */
html.is-native-app { overscroll-behavior: none; }
.is-native-app body { overscroll-behavior: none; }
.app-tabbar, .app-topbar { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.app-tabbar a, .app-tabbar button { transition: color 0.15s, transform 0.12s var(--ease-out); }
.app-tabbar a:active, .app-tabbar button:active { transform: scale(0.92); }
.app-tabbar a.active { color: var(--brand); }
.app-tabbar a.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}

/* Entrada suave al abrir la app */
.is-native-app body { animation: appEnter 0.4s var(--ease-out); }
@keyframes appEnter { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .is-native-app body { animation: none; }
  .announce-badge, .open-pill .open-dot, .app-tabbar .tab-badge.pop { animation: none !important; }
}

/* ============================================================
   ESQUELETOS DE CARGA · las secciones nunca se ven en blanco
   ============================================================ */
@keyframes ybShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.dishes-track:empty, #marquee:empty, .retos-grid:empty, #menuList:empty {
  display: flex; gap: var(--s-4); overflow: hidden; min-height: 200px;
}
.dishes-track:empty::before, .dishes-track:empty::after,
#marquee:empty::before, #marquee:empty::after,
.retos-grid:empty::before, .retos-grid:empty::after,
#menuList:empty::before, #menuList:empty::after {
  content: ''; flex: 1 0 240px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: ybShimmer 1.4s linear infinite;
}
#marquee:empty::before, #marquee:empty::after { flex-basis: 200px; min-height: 320px; border-radius: 14px; }
#menuList:empty { flex-direction: column; min-height: 300px; }
#menuList:empty::before, #menuList:empty::after { flex: 0 0 84px; }
@media (prefers-reduced-motion: reduce) {
  .dishes-track:empty::before, .dishes-track:empty::after,
  #marquee:empty::before, #marquee:empty::after,
  .retos-grid:empty::before, .retos-grid:empty::after,
  #menuList:empty::before, #menuList:empty::after { animation: none; }
}

/* Condiciones del reto en el modal */
.reto-rules {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4); margin-top: var(--s-4); text-align: left;
}
.reto-rules-head {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); margin-bottom: 6px;
}
.reto-rules-head .reto-format {
  margin-left: auto; background: oklch(1 0 0 / 0.08); color: var(--ink-muted);
  padding: 2px 10px; border-radius: 999px; letter-spacing: 0.04em;
}
.reto-rules p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }

/* Menú en pantallas angostas: nombres completos, sin cortes */
@media (max-width: 560px) {
  .mr-top { flex-wrap: wrap; }
  .mr-top h4 { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
  .mr-leader { display: none; }
  .mr-top .price { margin-left: auto; padding-left: 10px; }
  .mr-info .desc { -webkit-line-clamp: 3; }
  .menu-row { gap: var(--s-3); }
}

/* ============================================================
   PÁGINA DEDICADA DE RETOS
   ============================================================ */
.retos-cover {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 12vw, 96px) 0 clamp(40px, 9vw, 72px);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, oklch(0.42 0.14 45 / 0.55), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.retos-cover-claw {
  position: absolute; z-index: -1; right: -8%; bottom: -14%;
  width: min(46%, 420px); opacity: 0.07; pointer-events: none;
  transform: rotate(-8deg);
}
.retos-cover .section-eyebrow { color: var(--brand-soft); }
.retos-cover h1 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 6rem); line-height: 0.88; margin: var(--s-2) 0 var(--s-3);
  color: #fff; text-wrap: balance;
}
.retos-cover h1 .accent {
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.retos-cover-lead {
  max-width: 54ch; margin: 0 auto; color: var(--ink-muted);
  font-size: var(--fs-md); line-height: 1.6;
}
.retos-empty { text-align: center; color: var(--ink-muted); padding: var(--s-8) 0; }

/* ============================================================
   CÁMARA DE RETOS — barra fina arriba, sin tapar el video
   ============================================================ */
.cam-progress {
  position: absolute; top: 0; left: 0; right: 0; z-index: 7;
  height: 6px; border-radius: 0;
  background: oklch(1 0 0 / 0.14);
  overflow: visible;
  box-shadow: none;
}
.cam-progress .fill {
  height: 100%; width: 0%; border-radius: 0;
  box-shadow: 0 0 12px -2px oklch(0.72 0.22 45 / 0.9);
}
.cam-progress .fuego { height: 30px; opacity: 0.95; filter: drop-shadow(0 0 10px oklch(0.85 0.22 50)); }

/* La franja superior queda compacta: REC + nombre + tiempo en una sola línea */
.cam-top { padding-top: calc(6px + env(safe-area-inset-top, 10px)); }
.cam-topbar { margin-bottom: 0; }
.cam-overlay .cam-challenge {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-md);
}
.cam-overlay .cam-time {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -0.01em;
  padding: 4px 12px; border-radius: 10px;
  background: oklch(0 0 0 / 0.55);
  text-align: right; text-shadow: none;
  flex-shrink: 0;
}

/* ============================================================
   AVATAR DEL CLIENTE EN EL HEADER
   ============================================================ */
#accountAvatar {
  display: none;
  position: absolute; inset: 3px;
  width: calc(100% - 6px); height: calc(100% - 6px);
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--brand);
}
.icon-btn.has-avatar #accountAvatar { display: block; }
.icon-btn.has-avatar > svg { visibility: hidden; }

/* El botón de cambiar foto ya no se recorta contra el círculo */
.acct-avatar { overflow: visible; }
.acct-avatar img { border-radius: 50%; }
.acct-avatar-edit {
  bottom: 0; right: 0;
  transform: translate(18%, 18%);
  width: 32px; height: 32px;
}

/* ============================================================
   CARRITO — aviso de recoger en sucursal
   ============================================================ */
.pickup-note {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-3); padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-size: var(--fs-sm); font-weight: 700;
}
.pickup-note svg { flex-shrink: 0; color: var(--brand); }

/* Botón de quitar del carrito: no debe heredar el tamaño de los de cantidad */
.cart-item .qty-row button.ci-del {
  width: auto; height: auto; border-radius: var(--radius-sm);
  margin-left: auto; padding: 5px 9px;
  background: transparent; border: 0;
  color: var(--brand-danger); cursor: pointer;
  font-family: inherit; font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1.2; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.cart-item .qty-row button.ci-del:hover { background: oklch(0.58 0.22 25 / 0.14); }

/* ============================================================
   MENÚ SECRETO
   ============================================================ */
.secret-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: oklch(0.86 0.09 75); font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid oklch(0.86 0.09 75 / 0.35);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.secret-link:hover { background: oklch(0.86 0.09 75 / 0.16); border-color: oklch(0.86 0.09 75 / 0.7); }

.secret-cover {
  position: relative; overflow: hidden;
  padding: calc(var(--s-9) + 40px) 0 var(--s-8);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, oklch(0.42 0.14 45 / 0.5), transparent 65%),
    linear-gradient(170deg, oklch(0.16 0.035 45), oklch(0.10 0.015 50));
  color: oklch(0.96 0.01 80);
}
.secret-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand-soft);
  border: 1.5px solid oklch(0.88 0.10 70 / 0.4);
  border-radius: 999px; padding: 5px 14px; margin-bottom: var(--s-4);
}
.secret-cover h1 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.6rem, 10vw, 5rem); line-height: 0.95; margin: 0 0 var(--s-4);
}
.secret-cover h1 .accent { color: var(--brand); }
.secret-cover p { max-width: 46ch; margin: 0 auto; color: oklch(0.78 0.02 80); line-height: 1.6; }


/* ============================================================
   RESERVA — fecha y hora con los colores de la marca
   ============================================================ */
.rv-datetime { display: grid; gap: var(--s-3); }
.rv-datetime .rv-field { min-width: 0; }
.rv-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-quick .rv-chip { flex: 0 1 auto; min-width: 0; }
.rv-chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 7px 14px;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.rv-chip:hover { border-color: var(--brand); }
.rv-chip:active { transform: scale(0.96); }
.rv-chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.rv-picker { position: relative; display: flex; align-items: center; }
.rv-picker > svg {
  position: absolute; left: 13px; pointer-events: none;
  color: var(--brand); flex-shrink: 0;
}
.reserve-card .rv-picker input { padding-left: 40px; cursor: pointer; font-weight: 600; }
.reserve-card .rv-picker input::-webkit-calendar-picker-indicator {
  opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
}
.rv-picker::after {
  content: ''; position: absolute; right: 14px; pointer-events: none;
  width: 8px; height: 8px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: translateY(-2px) rotate(45deg); border-radius: 1px;
}
.rv-people { display: flex; align-items: center; gap: 0; }
.rv-people button {
  width: 42px; height: 44px; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--brand);
  font-size: var(--fs-lg); font-weight: 800; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.rv-people button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rv-people button:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rv-people button:hover { background: var(--brand); color: var(--on-brand); }
.reserve-card .rv-people input {
  width: 100%; text-align: center; border-radius: 0;
  border-left: 0; border-right: 0; font-weight: 700;
  -moz-appearance: textfield;
}
.reserve-card .rv-people input::-webkit-outer-spin-button,
.reserve-card .rv-people input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================================================
   RETOS — reglas de la casa (aplican a todos)
   ============================================================ */
.reto-house-rules {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border-radius: var(--radius);
  background: oklch(0.58 0.22 25 / 0.08);
  border: 1.5px solid oklch(0.58 0.22 25 / 0.35);
}
.rhr-head {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: var(--fs-sm);
  color: var(--brand-danger);
  margin-bottom: var(--s-3);
}
.reto-house-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.reto-house-rules li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: var(--fs-sm); line-height: 1.5; color: var(--ink);
}
.reto-house-rules li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-danger); }
.reto-house-rules li strong { color: var(--brand-danger); }

/* ============================================================
   CARRITO — resumen de datos cuando hay cuenta
   ============================================================ */
.cart-identity { margin-bottom: var(--s-3); }
.cki-row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--border);
}
.cki-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cki-info strong { font-size: var(--fs-sm); color: var(--ink); }
.cki-info span {
  font-size: var(--fs-xs); color: var(--ink-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cki-edit {
  flex-shrink: 0; background: transparent; border: 0; cursor: pointer;
  color: var(--brand); font-family: inherit; font-size: var(--fs-xs);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 6px; border-radius: var(--radius-sm);
}
.cki-edit:hover { background: oklch(0.80 0.16 70 / 0.16); }

/* Enlace dentro de un mensaje del drawer de cuenta */
.acct-inline-link {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--brand); font-family: inherit; font-size: inherit;
  font-weight: 800; text-decoration: underline;
}

/* Tres botones de la portada de cuenta */
.acct-actions .btn { width: 100%; justify-content: center; }

/* ============================================================
   ESTADO EN VIVO DE LAS SUCURSALES
   ============================================================ */
.live-status { padding: var(--s-6) 0; background: var(--surface); border-block: 1px solid var(--border); }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.ls-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted);
}
.ls-pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 0 0 oklch(0.70 0.19 50 / 0.6);
  animation: lsPulse 2s ease-out infinite;
}
@keyframes lsPulse {
  70%  { box-shadow: 0 0 0 9px oklch(0.70 0.19 50 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.70 0.19 50 / 0); }
}
.ls-clock { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-muted); }

.ls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); }
.ls-card {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-sm);
}
.ls-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--ink-muted);
}
.ls-card.is-open::before   { background: oklch(0.65 0.19 145); }
.ls-card.is-closed::before { background: var(--brand-danger); }
.ls-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); flex-wrap: wrap; }
.ls-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 11px; border-radius: 999px;
}
.ls-card.is-open   .ls-pill { background: oklch(0.65 0.19 145 / 0.16); color: oklch(0.62 0.19 145); }
.ls-card.is-closed .ls-pill { background: oklch(0.58 0.22 25 / 0.14);  color: var(--brand-danger); }
.ls-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.ls-card.is-open .ls-dot { animation: lsBlink 1.8s ease-in-out infinite; }
@keyframes lsBlink { 50% { opacity: 0.35; } }
.ls-hours { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-muted); }
.ls-card h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: var(--fs-lg); line-height: 1.1; margin: 0 0 4px;
}
.ls-detail { margin: 0; font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 600; }
.ls-call {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3);
  font-size: var(--fs-sm); font-weight: 700; color: var(--brand);
}
.ls-call:hover { text-decoration: underline; }

/* ============================================================
   SELECTOR DE FECHA Y HORA PROPIO (sin el calendario blanco del navegador)
   ============================================================ */
.yb-pop {
  position: absolute; z-index: 200;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--s-4);
  color: var(--ink);
  animation: ybPopIn 0.16s var(--ease-back) both;
}
@keyframes ybPopIn { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.yb-pop-cal  { width: 306px; }
.yb-pop-time { width: 250px; }

.yb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.yb-pop-head.simple { justify-content: center; }
.yb-pop-head strong {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: var(--fs-md);
}
.yb-pop-nav {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--brand); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.yb-pop-nav:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.yb-pop-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.yb-cal-dias {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 4px;
}
.yb-cal-dias span {
  text-align: center; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted);
  padding: 4px 0;
}
.yb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.yb-cal-hueco { aspect-ratio: 1; }
.yb-cal-dia {
  aspect-ratio: 1; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-press);
}
.yb-cal-dia:hover:not(.pasado) { background: var(--surface-2); }
.yb-cal-dia:active:not(.pasado) { transform: scale(0.9); }
.yb-cal-dia.pasado { color: var(--ink-muted); opacity: 0.35; cursor: not-allowed; }
.yb-cal-dia.hoy { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.yb-cal-dia.sel { background: var(--brand); color: var(--on-brand); box-shadow: none; }

.yb-pop-pie { display: flex; gap: 6px; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.yb-pop-chip {
  flex: 1; padding: 8px 10px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.yb-pop-chip:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }


/* El campo mientras su selector está abierto */
.reserve-card input.yb-pick-activo { border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.80 0.16 70 / 0.25); }
.reserve-card .rv-picker input[readonly] { cursor: pointer; background: var(--surface); }

@media (max-width: 400px) {
  .yb-pop-cal { width: calc(100vw - 32px); }
  .yb-pop-time { width: calc(100vw - 32px); }
}

/* ============================================================
   HORA EXACTA dentro del selector
   ============================================================ */
.yb-time-exact { padding: 0; margin: 0; }


/* Campo de hora del carrito con el selector propio */
.cart-foot .field input[readonly].yb-pick-activo { border-color: var(--brand); }
.cart-foot .field input[readonly][data-yb-picker] { cursor: pointer; }

/* ============================================================
   MENÚ SECRETO — tarjetas de sección especial (solo colores de marca)
   ============================================================ */
.secret-cover { border-bottom: 1px solid oklch(0.88 0.10 70 / 0.18); }
.secret-cover::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.5;
}

.sec-grupo + .sec-grupo { margin-top: var(--s-7); }
.sec-grupo-titulo {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: var(--fs-lg); letter-spacing: 0.06em;
  margin: 0 0 var(--s-4); color: var(--brand-soft);
  display: flex; align-items: center; gap: var(--s-3);
}
.sec-grupo-titulo::after { content: ''; flex: 1; height: 1px; background: oklch(0.88 0.10 70 / 0.22); }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }

.sec-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, oklch(0.24 0.045 55), oklch(0.17 0.025 50) 60%);
  border: 1px solid oklch(0.88 0.10 70 / 0.20);
  box-shadow: 0 10px 30px -14px oklch(0 0 0 / 0.7);
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-base);
}
.sec-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.88 0.10 70 / 0.5);
  box-shadow: 0 20px 44px -16px oklch(0 0 0 / 0.8), 0 0 0 1px oklch(0.80 0.16 70 / 0.22);
}
/* filo dorado superior, marca de "especial" */
.sec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--brand-soft), var(--brand), transparent);
  opacity: 0.75;
}

.sec-media {
  aspect-ratio: 1; width: 100%;
  background-size: cover; background-position: center;
  border-bottom: 1px solid oklch(0.88 0.10 70 / 0.14);
}
.sec-media.sin-foto {
  display: grid; place-items: center;
  color: oklch(0.88 0.10 70 / 0.30);
  background:
    repeating-linear-gradient(135deg, oklch(0.88 0.10 70 / 0.04) 0 10px, transparent 10px 20px),
    linear-gradient(150deg, oklch(0.28 0.06 50), oklch(0.20 0.03 50));
}

.sec-body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; gap: 6px; }
.sec-body h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: var(--fs-lg); line-height: 1.05; margin: 0;
  color: oklch(0.97 0.02 80);
}
.sec-desc { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: oklch(0.76 0.02 75); }
.sec-pie {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-top: auto; padding-top: var(--s-3);
  border-top: 1px dashed oklch(0.88 0.10 70 / 0.18);
}
.sec-precio { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; color: var(--brand); }
.sec-precio.consultar { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; color: var(--brand-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.sec-add {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 8px 13px; border-radius: 999px;
  border: 1.5px solid oklch(0.88 0.10 70 / 0.4);
  background: transparent; color: var(--brand-soft);
  font-family: inherit; font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-press);
}
.sec-add:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.sec-add:active { transform: scale(0.94); }
.sec-add.added { background: oklch(0.65 0.19 145); border-color: oklch(0.65 0.19 145); color: #fff; }

@media (max-width: 520px) {
  .sec-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .sec-body { padding: var(--s-3); }
  .sec-body h3 { font-size: var(--fs-md); }
  .sec-desc { display: none; }
  .sec-pie { flex-direction: column; align-items: stretch; gap: 8px; }
  .sec-add { justify-content: center; }
}

/* ============================================================
   DIÁLOGOS DEL CARRITO (ofrecer cuenta, pedir contraseña)
   ============================================================ */
.yb-ask-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: oklch(0 0 0 / 0.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: var(--s-4);
  animation: ybAskFade 0.18s var(--ease-out) both;
}
@keyframes ybAskFade { from { opacity: 0; } to { opacity: 1; } }
.yb-ask {
  width: min(400px, 100%);
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  text-align: center; box-shadow: var(--shadow-lg);
  animation: ybAskIn 0.24s var(--ease-back) both;
}
@keyframes ybAskIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.yb-ask-logo { height: 46px; margin: 0 auto var(--s-3); display: block; }
.yb-ask h3 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: var(--fs-xl); line-height: 1.1; margin: 0 0 var(--s-2);
}
.yb-ask p { margin: 0 0 var(--s-4); font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.5; }
.yb-ask-input {
  width: 100%; padding: 12px 14px; margin-bottom: var(--s-2);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: var(--fs-md);
}
.yb-ask-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(0.80 0.16 70 / 0.25); }
.yb-ask-error:empty { display: none; }
.yb-ask-error { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 700; color: var(--brand-danger); }
.yb-ask-acciones { display: grid; gap: var(--s-2); }
.yb-ask-acciones .btn { width: 100%; justify-content: center; }

/* Selector de hora exacta: columnas de hora y minutos con flechas grandes */
.yb-te-campos { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.yb-te-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.yb-te-step {
  width: 44px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--brand);
  font-size: 11px; line-height: 1; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.yb-te-step:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.yb-te-step:active { transform: scale(0.92); }
.yb-te-num {
  width: 44px; padding: 7px 2px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700;
  text-align: center; -moz-appearance: textfield;
}
.yb-te-num:focus { outline: none; border-color: var(--brand); color: var(--brand); }
.yb-te-num::-webkit-outer-spin-button, .yb-te-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.yb-te-etiqueta { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }
.yb-te-sep {
  font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700;
  color: var(--ink-muted); align-self: center; margin-top: 4px;
}
.yb-te-ampm { display: flex; flex-direction: column; gap: 3px; align-self: center; margin-top: 4px; }
.yb-te-ampm button {
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--ink-muted);
  font-family: inherit; font-size: 11px; font-weight: 800; text-transform: uppercase;
  padding: 6px 11px; cursor: pointer; line-height: 1.1;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.yb-te-ampm button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }


.yb-te-usar {
  width: 100%; margin-top: var(--s-3); padding: 10px 12px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer;
  transition: filter var(--t-fast), transform var(--t-press);
}
.yb-te-usar:hover { filter: brightness(1.08); }
.yb-te-usar:active { transform: scale(0.98); }
.yb-te-rango { margin: 6px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--ink-muted); }
.yb-te-error:empty { display: none; }
.yb-te-error { margin: 6px 0 0; text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--brand-danger); }

/* Renglón de regalo dentro del carrito */
.cart-item.es-regalo {
  background: oklch(0.65 0.19 145 / 0.08);
  border-radius: var(--radius-sm);
  border: 1.5px dashed oklch(0.65 0.19 145 / 0.45);
  padding: 8px;
}
.cart-item.es-regalo .price { color: oklch(0.62 0.19 145); font-weight: 800; }
.ci-regalo-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: var(--fs-xs); font-weight: 700; color: oklch(0.62 0.19 145);
}

/* ============================================================
   LLAMA DE CALIFICACIÓN — dos tonos, se lee como fuego real
   ============================================================ */
.flame-ico { display: inline-block; vertical-align: -0.15em; }
.flame-ico .fl-cuerpo  { fill: var(--brand); }
.flame-ico .fl-corazon { fill: oklch(0.90 0.17 95); }
.flame-ico + .flame-ico { margin-left: 1px; }

/* ============================================================
   RESEÑAS DEL INICIO — tarjetas de testimonio
   ============================================================ */
.rating-card {
  position: relative; overflow: hidden;
  flex: 0 0 auto; width: 320px;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
/* comilla decorativa de fondo */
.rc-comillas {
  position: absolute; top: -18px; right: 8px;
  font-family: var(--font-display); font-size: 96px; line-height: 1;
  color: var(--brand); opacity: 0.10; pointer-events: none; user-select: none;
}
.rating-card .fuegos {
  display: flex; align-items: center; gap: 2px;
  font-size: 20px; margin-bottom: var(--s-3);
}
.rating-card .body {
  margin: 0 0 var(--s-4); border: 0; padding: 0;
  font-size: var(--fs-md); line-height: 1.6; color: var(--ink);
  font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-pie {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.rc-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 999px;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  font-family: var(--font-display); font-size: 15px; line-height: 1;
}
.rc-nombre {
  font-weight: 800; font-size: var(--fs-sm); color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Reseñas con foto */
.review-card .rc-stars { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; margin-bottom: 6px; }

@media (max-width: 520px) {
  .rating-card { width: 270px; padding: var(--s-4); }
  .rc-comillas { font-size: 76px; }
}

/* ============================================================
   TIEMPO DE PREPARACIÓN — atajos de hora en carrito y reserva
   ============================================================ */
.lead-wrap { margin-bottom: var(--s-2); }
.lead-aviso {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 0 0 8px; font-size: var(--fs-xs); line-height: 1.45;
  color: var(--ink-muted); font-weight: 600;
}
.lead-aviso svg { flex-shrink: 0; margin-top: 1px; color: var(--brand); }
.lead-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.lead-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  font-family: inherit; cursor: pointer; text-align: left;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.lead-chip strong { font-size: var(--fs-xs); font-weight: 800; line-height: 1.2; }
.lead-chip span { font-size: 10px; color: var(--ink-muted); font-family: var(--font-mono); }
.lead-chip:hover { border-color: var(--brand); }
.lead-chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.lead-chip.on span { color: oklch(1 0 0 / 0.85); }
.lead-chip.manual { border-style: dashed; }

/* Dentro de la tarjeta de reserva el texto va sobre fondo naranja */
.reserve-card .lead-aviso { color: var(--ink-muted); }
