/* ===========================================================
   INKA GRILL EXPRESS — styles.css
   Paleta tomada del logo: marrón brasa, rojo, dorado, crema.
   =========================================================== */

:root {
  /* Marca */
  --brown:        #2c1810;
  --brown-soft:   #3f2418;
  --red:          #b01e2e;
  --red-dark:     #8c1623;
  --gold:         #c49a3a;
  --gold-deep:    #a87c22;
  --cream:        #faf5ea;
  --cream-2:      #f3e9d4;
  --paper:        #ffffff;
  --ink:          #2c1810;
  --muted:        #7a6a59;
  --line:         #e7dcc6;
  --green:        #2e7d4f;  /* bandera Italia / veg */

  /* Sombra y radios */
  --shadow-sm: 0 2px 8px rgba(44,24,16,.08);
  --shadow-md: 0 10px 30px rgba(44,24,16,.12);
  --shadow-lg: 0 24px 60px rgba(44,24,16,.18);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;

  --header-h: 76px;
  --bar-h: 40px;
  --maxw: 1200px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(176,30,46,.28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 12px 26px rgba(176,30,46,.34); }
.btn-gold { background: var(--gold); color: var(--brown); box-shadow: 0 8px 20px rgba(196,154,58,.3); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-dark { background: var(--brown); color: #fff; }
.btn-dark:hover { background: #1f110a; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--brown);
  color: #f6e9d2;
  font-size: 13px;
  height: var(--bar-h);
  display: flex; align-items: center;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.topbar strong { color: var(--gold); }
.topbar .flame { animation: flicker 2.2s infinite; }
@keyframes flicker { 0%,100%{opacity:1} 50%{opacity:.55} }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,245,234,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand-name { display: none; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-size: 19px; color: var(--brown); display: block; letter-spacing: .02em; }
.brand-name span { font-size: 10px; letter-spacing: .28em; color: var(--gold-deep); text-transform: uppercase; }

.main-nav { display: none; gap: 4px; margin-left: 8px; }
.main-nav a {
  font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px;
  color: var(--brown-soft); transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--cream-2); color: var(--brown); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--brown); transition: background .15s;
  position: relative;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.cart-count.hidden { display: none; }

.hamburger { display: grid; }
@media (min-width: 980px) {
  .brand-name { display: block; }
  .main-nav { display: flex; }
  .hamburger { display: none; }
}

/* Selector entrega (delivery/recojo) en header */
.mode-pill {
  display: none; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px 7px 16px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.mode-pill .mode-label { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.mode-pill .mode-value { display: block; font-size: 13px; font-weight: 700; color: var(--brown); line-height: 1.2; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-pill .mode-text { display: flex; flex-direction: column; align-items: flex-start; }
.mode-pill .mode-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 16px; }
@media (min-width: 760px) { .mode-pill { display: flex; } }

/* =========================================================
   MENÚ MÓVIL (drawer izq)
   ========================================================= */
.overlay {
  position: fixed; inset: 0; background: rgba(28,14,8,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 80;
}
.overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; top: 0; left: 0; height: 100%; width: min(84vw, 340px);
  background: var(--cream); z-index: 90; transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-head { padding: 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mobile-nav .mn-head img { height: 50px; }
.mobile-nav nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mobile-nav nav a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm);
  font-weight: 600; color: var(--brown-soft);
}
.mobile-nav nav a:hover { background: var(--cream-2); }
.mobile-nav nav a .e { font-size: 20px; }
.mobile-nav .mn-foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mobile-nav .mn-foot a { color: var(--red); font-weight: 700; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(196,154,58,.20), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(176,30,46,.12), transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
  padding-top: 44px; padding-bottom: 56px;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; padding-top: 64px; padding-bottom: 72px; } }
.hero-copy h1 { font-size: clamp(38px, 6vw, 66px); color: var(--brown); }
.hero-copy h1 .fire { color: var(--red); }
.hero-copy p.lead { margin: 18px 0 8px; font-size: 18px; color: var(--brown-soft); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badges { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brown-soft); }
.hero-badges .b .ic { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: 18px; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .ring {
  position: absolute; inset: 0; margin: auto; width: min(440px, 86%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cream-2) 70%, transparent 72%);
  box-shadow: var(--shadow-md);
}
.hero-art img { position: relative; width: min(440px, 86%); filter: drop-shadow(0 20px 40px rgba(44,24,16,.25)); }
.hero-art .spin { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* =========================================================
   FRANJA DE CATEGORÍAS (chips)
   ========================================================= */
.cat-strip { background: var(--brown); padding: 18px 0; }
.cat-strip .row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-strip .row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  background: #3a2014; color: #f6e9d2; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; border: 1px solid rgba(196,154,58,.25); transition: background .15s, transform .15s;
}
.cat-chip:hover { background: var(--gold); color: var(--brown); transform: translateY(-2px); }
.cat-chip .e { font-size: 18px; }

/* =========================================================
   SECCIONES GENÉRICAS
   ========================================================= */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); color: var(--brown); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* Banners destacados */
.feature {
  display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: #fff; margin-bottom: 28px;
}
@media (min-width: 820px) { .feature { grid-template-columns: 1fr 1fr; } .feature.rev .feat-art { order: 2; } }
.feat-art {
  min-height: 260px; display: grid; place-items: center; font-size: 120px;
  background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2));
}
.feat-art.red { background: radial-gradient(circle at 50% 40%, #fff, #f7dcdf); }
.feat-body { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.feat-body h3 { font-size: 28px; color: var(--brown); margin: 10px 0 12px; }
.feat-body p { color: var(--brown-soft); margin-bottom: 22px; }

/* =========================================================
   TARJETAS DE PRODUCTO
   ========================================================= */
.products-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pc-media {
  position: relative; height: 170px; display: grid; place-items: center; font-size: 64px;
  background:
    radial-gradient(circle at 50% 45%, #fff 0%, var(--cream-2) 78%);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.pc-emoji { position: relative; z-index: 1; }
.pc-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; display: block;
}
.product-card:hover .pc-img { transform: scale(1.05); }
.pc-img { transition: transform .4s ease; }
.pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.pc-flags { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 6px; }
.pc-flag { font-size: 14px; background: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pc-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; color: var(--brown); }
.pc-desc { font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--red); }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brown); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; transition: background .15s, transform .15s;
}
.add-btn:hover { background: var(--red); }
.add-btn:active { transform: scale(.96); }

/* Stepper cuando ya está en carrito */
.stepper { display: inline-flex; align-items: center; gap: 0; background: var(--brown); border-radius: 999px; overflow: hidden; }
.stepper button { width: 34px; height: 36px; color: #fff; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.stepper button:hover { background: var(--red); }
.stepper .q { color: #fff; min-width: 26px; text-align: center; font-weight: 800; }

/* =========================================================
   MENÚ: layout con barra lateral de categorías
   ========================================================= */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 920px) { .menu-layout { grid-template-columns: 230px 1fr; align-items: start; } }

.cat-nav { position: sticky; top: calc(var(--header-h) + 14px); }
.cat-nav h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.cat-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  font-weight: 600; color: var(--brown-soft); white-space: nowrap; border: 1px solid transparent;
}
.cat-nav a:hover { background: var(--cream-2); }
.cat-nav a.active { background: #fff; border-color: var(--gold); color: var(--brown); box-shadow: var(--shadow-sm); }
.cat-nav a .e { font-size: 18px; }
@media (min-width: 920px) {
  .cat-nav ul { flex-direction: column; overflow: visible; }
}

.cat-block { margin-bottom: 48px; scroll-margin-top: calc(var(--header-h) + 20px); }
.cat-block .cb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.cat-block .cb-head h2 { font-size: 28px; color: var(--brown); }
.cat-block .cb-head span { color: var(--gold-deep); font-weight: 700; font-size: 13px; letter-spacing: .04em; }

/* =========================================================
   CARRITO (drawer derecha)
   ========================================================= */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(94vw, 420px);
  background: var(--cream); z-index: 90; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.cart-head h3 { font-family: var(--font-display); font-size: 22px; color: var(--brown); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }

.cart-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.cart-line .cl-emoji { width: 54px; height: 54px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fff, var(--cream-2)); display: grid; place-items: center; font-size: 28px; }
.cart-line .cl-name { font-weight: 700; font-size: 14px; color: var(--brown); }
.cart-line .cl-price { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-line .cl-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-stepper { display: inline-flex; align-items: center; background: var(--cream-2); border-radius: 999px; }
.cl-stepper button { width: 28px; height: 28px; color: var(--brown); font-size: 16px; font-weight: 800; display: grid; place-items: center; border-radius: 50%; }
.cl-stepper button:hover { background: var(--gold); }
.cl-stepper .q { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.cl-remove { font-size: 12px; color: var(--red); font-weight: 600; }

.cart-empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.cart-empty .big { font-size: 60px; }
.cart-empty h4 { font-family: var(--font-display); color: var(--brown); font-size: 22px; margin: 16px 0 6px; }

.cart-foot { border-top: 1px solid var(--line); background: #fff; padding: 18px 22px 22px; }
.cart-progress { font-size: 13px; color: var(--brown-soft); margin-bottom: 12px; }
.cart-progress .bar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.cart-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .4s; }
.cart-totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; }
.cart-totals .row { display: flex; justify-content: space-between; color: var(--brown-soft); }
.cart-totals .row.total { font-size: 19px; font-weight: 800; color: var(--brown); padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 6px; }
.cart-totals .free { color: var(--green); font-weight: 700; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 16px; color: var(--brown); }
.faq-q .chev { transition: transform .25s; color: var(--gold-deep); flex: 0 0 auto; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a .inner { padding: 0 22px 20px; color: var(--brown-soft); font-size: 15px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--brown); color: #e8d8bf; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 88px; background: var(--cream); padding: 8px; border-radius: 16px; }
.footer-brand p { margin: 16px 0; font-size: 14px; color: #c9b89c; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: #3a2014; display: grid; place-items: center; transition: background .15s; }
.socials a:hover { background: var(--gold); color: var(--brown); }
.socials svg { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--font-display); color: var(--gold); font-size: 18px; margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 14px; color: #c9b89c; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #432513; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #a8967c; }
.pays { display: flex; gap: 8px; align-items: center; }
.pays span { background: #fff; color: var(--brown); font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }

/* =========================================================
   FORMULARIOS / CUENTA / TRACKING
   ========================================================= */
.page-hero { background: var(--brown); color: #f6e9d2; padding: 44px 0; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); color: #fff; }
.page-hero p { color: #d8c4a4; margin-top: 8px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 32px;
}
.auth-wrap { max-width: 460px; margin: -40px auto 0; position: relative; z-index: 2; }
.tabs { display: flex; background: var(--cream-2); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.tabs button { flex: 1; padding: 11px; border-radius: 999px; font-weight: 700; color: var(--brown-soft); transition: background .15s; }
.tabs button.active { background: #fff; color: var(--brown); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--brown-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; background: var(--cream); color: var(--ink); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--red); font-weight: 700; }

.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert.ok { background: #e7f5ec; color: var(--green); }
.alert.err { background: #fbe6e8; color: var(--red-dark); }

/* Tracking */
.track-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.track-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.track-step .dot-col { display: flex; flex-direction: column; align-items: center; }
.track-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 16px; color: var(--muted); border: 2px solid var(--line); }
.track-step .line { width: 2px; flex: 1; background: var(--line); min-height: 28px; }
.track-step:last-child .line { display: none; }
.track-step.done .dot { background: var(--green); color: #fff; border-color: var(--green); }
.track-step.active .dot { background: var(--red); color: #fff; border-color: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(176,30,46,.4)} 50%{box-shadow:0 0 0 8px rgba(176,30,46,0)} }
.track-step .st-body { padding-bottom: 22px; }
.track-step .st-body h4 { font-family: var(--font-body); font-weight: 800; color: var(--brown); font-size: 16px; }
.track-step .st-body p { font-size: 13px; color: var(--muted); }

/* Locales */
.local-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.local-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; transition: box-shadow .2s, border-color .2s; }
.local-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
.local-card h3 { font-family: var(--font-body); font-weight: 800; color: var(--brown); font-size: 18px; margin-bottom: 12px; }
.local-row { display: flex; gap: 10px; font-size: 14px; color: var(--brown-soft); margin-bottom: 8px; align-items: flex-start; }
.local-row .ic { color: var(--red); flex: 0 0 auto; margin-top: 2px; }
.local-tags { display: flex; gap: 8px; margin-top: 14px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.tag.yes { background: #e7f5ec; color: var(--green); }
.tag.no { background: var(--cream-2); color: var(--muted); }

/* =========================================================
   TOAST
   ========================================================= */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--brown); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease, toastOut .3s ease 2.4s forwards;
}
.toast .t-emoji { font-size: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

/* =========================================================
   MODAL (selector entrega)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(28,14,8,.55); opacity: 0; visibility: hidden; transition: opacity .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-card { background: var(--cream); border-radius: var(--r-lg); max-width: 460px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform .25s; }
.modal.open .modal-card { transform: translateY(0); }
.modal-card h3 { font-family: var(--font-display); font-size: 24px; color: var(--brown); text-align: center; }
.modal-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mode-opt { border: 2px solid var(--line); border-radius: var(--r-md); padding: 18px; text-align: center; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.mode-opt:hover { border-color: var(--gold); }
.mode-opt.sel { border-color: var(--red); background: #fff7f7; }
.mode-opt .e { font-size: 34px; }
.mode-opt h4 { font-family: var(--font-body); font-weight: 800; margin-top: 8px; color: var(--brown); }
.mode-opt p { font-size: 12px; color: var(--muted); }

/* Utilidades responsivas */
@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .brand img { height: 46px; }
  .section { padding-top: 40px; padding-bottom: 40px; }

  /* Menú: dos columnas compactas estilo app */
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-media { height: 126px; font-size: 46px; }
  .pc-body { padding: 12px 12px 14px; }
  .pc-body h3 { font-size: 14.5px; line-height: 1.25; }
  .pc-desc { font-size: 12px; margin: 5px 0 12px; }
  .pc-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .pc-price { font-size: 19px; }
  .pc-action { width: 100%; }
  .add-btn { width: 100%; justify-content: center; padding: 9px; }
  .stepper { width: 100%; justify-content: space-between; }
  .stepper .q { flex: 1; }
  .pc-badge { font-size: 9.5px; padding: 4px 8px; top: 8px; left: 8px; }
  .pc-flags { top: 8px; right: 8px; gap: 4px; }
  .pc-flag { width: 22px; height: 22px; font-size: 12px; }

  /* Encabezados de sección y bloques */
  .cat-block { margin-bottom: 34px; }
  .cat-block .cb-head { gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .cat-block .cb-head h2 { font-size: 21px; }
  .cat-block .cb-head span { font-size: 12px; }

  /* Carrito casi a pantalla completa */
  .cart-drawer { width: 100%; }

  /* Hero un poco más compacto y botones cómodos */
  .hero-grid { padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .hero-copy p.lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-badges { gap: 14px; margin-top: 22px; }

  /* Páginas legales más legibles */
  .legal h2 { font-size: 18px; }
  .legal-lang { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   UTILIDAD
   ========================================================= */
.muted { color: var(--muted); }

/* =========================================================
   CUENTA (panel + auth)
   ========================================================= */
.acct-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acct-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--red), var(--gold-deep));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  font-family: var(--font-body);
}
.stat-box {
  flex: 1; min-width: 130px; background: var(--cream-2); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; flex-direction: column;
}
.stat-box b { font-family: var(--font-display); font-size: 24px; color: var(--brown); }
.stat-box span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* =========================================================
   LISTA DE PEDIDOS (historial)
   ========================================================= */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px; transition: border-color .15s, box-shadow .15s;
}
.order-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.or-id { font-weight: 800; color: var(--brown); font-size: 15px; }
.or-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.or-total { font-weight: 800; color: var(--red); font-size: 16px; white-space: nowrap; }

/* =========================================================
   SEGUIMIENTO DE PEDIDO
   ========================================================= */
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track-total {
  background: var(--cream-2); border-radius: var(--r-md); padding: 12px 18px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.track-total span { font-size: 12px; color: var(--muted); font-weight: 600; }
.track-total b { font-family: var(--font-display); font-size: 24px; color: var(--red); }

.track-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.td-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-deep); margin-bottom: 6px; }
.td-col p { font-size: 14px; color: var(--brown-soft); line-height: 1.5; }

.order-items h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-deep); }
.oi-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--brown-soft); padding: 6px 0; }
.oi-sum { color: var(--muted); }
.oi-total { font-weight: 800; color: var(--brown); font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }

/* Buscador de pedido */
.lookup-card { margin-bottom: 24px; }
.lookup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup-row input {
  flex: 1; min-width: 180px; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--cream); font-size: 15px; font-weight: 700; letter-spacing: .04em;
}
.lookup-row input:focus { outline: none; border-color: var(--gold); background: #fff; }

/* Estado vacío */
.empty-orders { text-align: center; padding: 50px 20px; }
.empty-orders .eo-emoji { font-size: 56px; }
.empty-orders h3 { font-family: var(--font-display); font-size: 26px; color: var(--brown); margin: 12px 0 6px; }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 {
  font-family: var(--font-body); font-weight: 800; color: var(--brown);
  font-size: 20px; margin: 30px 0 10px;
}
.legal p { color: var(--brown-soft); line-height: 1.7; margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 0; padding-left: 22px; }
.legal li { color: var(--brown-soft); line-height: 1.7; margin-bottom: 7px; }
.legal a { color: var(--red); font-weight: 700; }
.legal .legal-upd { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legal-note {
  background: #fff7e6; border: 1px solid var(--gold); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 14px; color: var(--brown-soft); line-height: 1.6; margin-bottom: 24px;
}

/* =========================================================
   AVISO DE COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 160%);
  width: min(940px, calc(100% - 32px)); z-index: 1200;
  background: var(--brown); color: #f6e9d2;
  border-radius: var(--r-md); box-shadow: 0 14px 40px rgba(44,24,16,.4);
  padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transition: transform .45s cubic-bezier(.2,.8,.2,1); opacity: 0;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner .ck-text { flex: 1; min-width: 240px; font-size: 14px; line-height: 1.6; }
.cookie-banner .ck-text a { color: var(--gold); font-weight: 700; }
.cookie-banner .ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-ghost { border-color: rgba(246,233,210,.4); color: #f6e9d2; }
.cookie-banner .btn-ghost:hover { background: rgba(246,233,210,.1); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .ck-actions { justify-content: center; }
}

/* Toggle de idioma en páginas legales (ES / IT) */
.legal-lang { display: flex; gap: 8px; margin-bottom: 22px; }
.legal-lang button {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--brown-soft); transition: all .15s ease;
}
.legal-lang button:hover { border-color: var(--gold); }
.legal-lang button.active { background: var(--brown); color: #f6e9d2; border-color: var(--brown); }
.legal-body { /* hereda estilos de .legal */ }

/* =========================================================
   PAGOS — métodos, tarjeta visual, contraseña
   ========================================================= */
.pay-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pay-opt{display:flex;align-items:center;gap:10px;border:2px solid var(--line);border-radius:12px;
  padding:12px 14px;cursor:pointer;transition:.15s;background:#fff}
.pay-opt:hover{border-color:var(--gold)}
.pay-opt.sel{border-color:var(--red);box-shadow:0 0 0 3px rgba(176,30,46,.12)}
.pay-opt .po-radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);flex:0 0 auto;position:relative}
.pay-opt.sel .po-radio{border-color:var(--red)}
.pay-opt.sel .po-radio::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--red)}
.pay-opt .po-label{font-weight:700;color:var(--brown);font-size:14px;line-height:1.15}
.pay-opt .po-icons{margin-left:auto;display:flex;gap:4px;align-items:center}
.brand-badge{height:24px;width:auto;border-radius:4px;display:block}
.pay-accepted{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:14px;color:var(--muted);font-size:12px}
.pay-accepted .brand-badge{height:22px}
.pay-alt{background:var(--cream);border:1px dashed var(--line);border-radius:12px;padding:16px;
  color:var(--brown);font-size:14px;line-height:1.5;display:flex;gap:12px;align-items:flex-start}
.pay-alt .brand-badge{height:26px;flex:0 0 auto}

/* Tarjeta visual */
.cc-preview{position:relative;border-radius:16px;padding:18px 20px;color:#fff;
  background:linear-gradient(135deg,#3a2418 0%,#2c1810 55%,#b01e2e 130%);
  box-shadow:0 14px 32px rgba(44,24,16,.35);aspect-ratio:1.6/1;max-width:340px;margin:4px 0 20px;
  display:flex;flex-direction:column;justify-content:space-between;font-family:var(--font-body)}
.cc-top{display:flex;justify-content:space-between;align-items:flex-start}
.cc-chip{width:42px;height:30px;border-radius:6px;background:linear-gradient(135deg,#e7c873,#b8901f);position:relative}
.cc-chip::after{content:"";position:absolute;inset:6px 8px;border:1px solid rgba(0,0,0,.25);border-radius:3px}
.cc-brand .brand-badge{height:30px}
.cc-number{font-size:20px;letter-spacing:2px;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.cc-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.cc-lbl{display:block;font-size:9px;text-transform:uppercase;letter-spacing:1px;opacity:.7;margin-bottom:2px}
.cc-bottom div>div{font-size:13px;font-weight:600;text-transform:uppercase;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-form{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.card-form .span2{grid-column:1/-1}
.field.invalid input{border-color:var(--red);background:#fff6f6}
.form-note.secure{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--green);font-weight:600}

/* Mostrar/ocultar contraseña + medidor */
.pass-wrap{position:relative}
.pass-wrap input{width:100%;padding-right:40px}
.pass-wrap .toggle-pass{position:absolute;right:8px;top:50%;transform:translateY(-50%);
  background:none;border:none;cursor:pointer;font-size:16px;line-height:1;color:var(--muted)}
.pw-meter{height:6px;border-radius:4px;background:var(--line);overflow:hidden;margin:8px 0 6px}
.pw-meter span{display:block;height:100%;width:0;border-radius:4px;transition:width .25s,background .25s}
.pw-hint{font-size:12px;color:var(--muted);margin-bottom:4px}

@media(max-width:600px){
  .pay-methods{grid-template-columns:1fr}
  .cc-preview{max-width:none}
}

/* =========================================================
   SEGUIMIENTO EN VIVO — mapa del repartidor
   ========================================================= */
.track-map-wrap{margin:8px 0 26px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.tm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--cream);border-bottom:1px solid var(--line)}
.tm-status{display:flex;align-items:center;gap:9px;font-weight:700;color:var(--brown);font-size:14px}
.tm-dot{width:10px;height:10px;border-radius:50%;background:#2e7d4f;position:relative;flex:0 0 auto}
.tm-dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid #2e7d4f;opacity:.6;animation:tmPulse 1.6s ease-out infinite}
@keyframes tmPulse{0%{transform:scale(.6);opacity:.7}100%{transform:scale(1.8);opacity:0}}
.tm-note{font-size:12px}
.delivery-map{height:300px;width:100%;background:#e8eef0;z-index:0}
.delivery-map .leaflet-control{z-index:1}
.tm-legend{display:flex;flex-wrap:wrap;gap:16px;padding:11px 16px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.tm-legend .lg{font-style:normal;margin-right:3px}
.map-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;padding:24px;gap:6px;color:var(--brown);font-weight:600;line-height:1.5}
.map-pin{font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;background:#fff;border-radius:50% 50% 50% 4px;box-shadow:0 3px 8px rgba(0,0,0,.28);
  transform:rotate(-45deg)}
.map-pin>*{transform:rotate(45deg)}
.map-pin.rider{background:var(--red);width:40px;height:40px;font-size:22px;border-radius:50%;
  box-shadow:0 0 0 4px rgba(176,30,46,.25),0 4px 10px rgba(0,0,0,.3);transform:none}
.map-pin.home{background:var(--green-soft,#e6f4ec)}
@media(max-width:600px){.delivery-map{height:240px}}

/* =========================================================
   MÓVIL — HEADER más limpio y equilibrado
   ========================================================= */
@media (max-width: 759px){
  /* Logo centrado, hamburguesa a la izquierda, acciones a la derecha */
  .header-inner{ position: relative; gap: 8px; }
  .hamburger{ z-index: 2; }
  .brand{ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); gap: 8px; pointer-events: auto; }
  .brand img{ height: 44px; }
  .header-actions{ margin-left: auto; z-index: 2; gap: 2px; }
}

@media (max-width: 600px){
  :root{ --header-h: 64px; }
  /* Barra de aviso: altura flexible, sin desbordes */
  .topbar{ height: auto; min-height: var(--bar-h); padding: 6px 0; font-size: 11.5px; line-height: 1.35; }
  .topbar .wrap{ padding: 0 14px; gap: 6px; flex-wrap: wrap; }
  .brand img{ height: 40px; }
  .icon-btn{ width: 42px; height: 42px; }
  .icon-btn svg{ width: 21px; height: 21px; }
  .cart-count{ top: 2px; right: 0; }
}

@media (max-width: 360px){
  .topbar{ font-size: 10.5px; }
  .brand img{ height: 37px; }
  .header-actions .icon-btn{ width: 40px; height: 40px; }
}

/* =========================================================
   CÁMARA EN VIVO DEL HORNO — marco de transmisión real
   ========================================================= */
.lc-frame{
  position: relative; aspect-ratio: 16/9; width: 100%; max-width: 900px; margin: 0 auto;
  border-radius: 18px; overflow: hidden; background: #160d08;
  border: 3px solid #2c1810; box-shadow: 0 22px 50px rgba(44,24,16,.4);
}
.lc-iframe, .lc-video{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lc-video{ object-fit: cover; background: #000; }
.lc-live{
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(176,30,46,.95); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .06em; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.lc-live .live-dot{ background: #fff; }
@media (max-width: 600px){ .lc-frame{ border-radius: 14px; border-width: 2px; } }

/* =========================================================
   MÓVIL — pulido general (tarjetas, secciones, feature, modal, footer)
   ========================================================= */
@media (max-width: 600px){
  /* Tarjetas con menos padding para ganar ancho útil */
  .card{ padding: 20px; border-radius: 16px; }

  /* Encabezados de sección más ajustados */
  .section-head{ margin-bottom: 28px; }
  .section-head p{ font-size: 15px; }

  /* Banners "feature": arte más bajo y cuerpo compacto */
  .feat-art{ min-height: 168px; font-size: 82px; }
  .feat-body{ padding: 26px 22px; }
  .feat-body h3{ font-size: 23px; }
  .feature{ margin-bottom: 20px; }

  /* Checkout: el resumen deja de ser sticky para fluir natural */
  .checkout-grid .card[style*="sticky"]{ position: static !important; top: auto !important; }

  /* Modal centrado y con aire */
  .modal{ padding: 16px; }
  .modal-card{ padding: 24px 20px; }
  .modal-card h3{ font-size: 21px; }
  .mode-opt{ padding: 14px; }
  .mode-opt .e{ font-size: 30px; }

  /* Footer ordenado y centrado */
  .site-footer{ padding: 44px 0 22px; text-align: center; }
  .footer-grid{ gap: 30px; }
  .footer-brand img{ height: 72px; }
  .footer-brand p{ margin-left: auto; margin-right: auto; }
  .footer-bottom{ flex-direction: column; justify-content: center; text-align: center; gap: 8px; }

  /* Tira de categorías: un pelín más compacta */
  .cat-chip{ padding: 9px 15px; }
}

@media (max-width: 380px){
  .card{ padding: 16px; }
  .feat-art{ min-height: 148px; font-size: 68px; }
  .mode-options{ gap: 8px; }
}

/* =========================================================
   MÓVIL — ronda 3 (menú · page-hero · cuenta)
   ========================================================= */
/* Barra de categorías del menú: sticky con fondo limpio (móvil + tablet) */
@media (max-width: 919px){
  .cat-nav{
    position: sticky; top: calc(var(--header-h) + 6px); z-index: 20;
    background: var(--cream); padding: 10px 0 8px; border-bottom: 1px solid var(--line);
  }
  .cat-nav h4{ display: none; }
  .cat-nav ul{ padding-bottom: 2px; }
}

@media (max-width: 600px){
  /* Page-hero (menú, cuenta, locales…) más compacto */
  .page-hero{ padding: 30px 0; }
  .page-hero h1{ font-size: clamp(26px, 7vw, 38px); }

  /* Cuenta: que el correo no desborde y el avatar no se deforme */
  .acct-head > div{ min-width: 0; }
  .acct-head p{ overflow-wrap: anywhere; }

  /* Historial de pedidos un poco más compacto */
  .order-row{ padding: 14px 16px; }
  .or-id{ font-size: 14px; }
}

/* =========================================================
   FONDO ANIMADO — brasas al carbón + resplandor cálido
   ========================================================= */
body::before{
  content:""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(196,154,58,.13), transparent 42%),
    radial-gradient(circle at 82% 74%, rgba(176,30,46,.10), transparent 40%),
    radial-gradient(circle at 55% 42%, rgba(224,120,40,.08), transparent 38%);
  animation: bgGlow 26s ease-in-out infinite alternate;
}
@keyframes bgGlow{
  0%   { opacity: .70; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1;   transform: translate3d(0, -3%, 0) scale(1.05); }
}

.embers{ position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.embers span{
  position: absolute; bottom: -16px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 50% 40%, #ffd98a, rgba(224,120,40,.55) 55%, transparent 72%);
  box-shadow: 0 0 6px rgba(255,180,90,.5);
  animation-name: emberRise; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes emberRise{
  0%   { transform: translateY(0) translateX(0) scale(.5); opacity: 0; }
  8%   { opacity: .85; }
  75%  { opacity: .4; }
  100% { transform: translateY(-108vh) translateX(var(--drift, 0)) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; }
  .embers{ display: none; }
}

/* Brasas dentro de las zonas oscuras (más brillantes para resaltar sobre el marrón) */
.dark-fx{ position: relative; overflow: hidden; }
.dark-fx > :not(.embers-local){ position: relative; z-index: 1; }
.embers-local{ position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.embers-local span{
  position: absolute; bottom: -16px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 50% 40%, #ffe6ad, rgba(255,150,55,.75) 55%, transparent 72%);
  box-shadow: 0 0 9px rgba(255,185,95,.7);
  animation-name: emberRiseLocal; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes emberRiseLocal{
  0%   { transform: translateY(0) translateX(0) scale(.5); opacity: 0; }
  12%  { opacity: .95; }
  80%  { opacity: .5; }
  100% { transform: translateY(-280px) translateX(var(--drift, 0)) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .embers-local{ display: none; }
}

/* Palabra rotativa del hero */
.hero-rotate{ display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.hero-rotate.swap{ opacity: 0; transform: translateY(-12px); }

/* =========================================================
   TIRA DE CATEGORÍAS — carrusel infinito (izquierda → derecha)
   ========================================================= */
.cat-strip .row{ display: block; overflow: hidden; padding-bottom: 0; }
.cat-track{
  display: inline-flex; align-items: center; gap: 12px; width: max-content;
  animation: catMarquee 34s linear infinite;
}
.cat-strip .row:hover .cat-track{ animation-play-state: paused; }
@keyframes catMarquee{
  from{ transform: translateX(-50%); }
  to  { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce){
  .cat-track{ animation: none; }
  .cat-strip .row{ overflow-x: auto; scrollbar-width: none; }
}

/* =========================================================
   CONVERSIÓN — cupones y upsell
   ========================================================= */
.coupon-box{ margin-top: 14px; }
.coupon-row{ display: flex; gap: 8px; }
.coupon-row input{ flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-row input::placeholder{ text-transform: none; }
.coupon-row .btn{ flex: 0 0 auto; padding: 0 16px; }
.coupon-applied{ display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #eef7f0; border: 1px solid #cfe8d8; color: var(--green);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.coupon-applied b{ letter-spacing: .5px; }
.coupon-applied button{ background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.cart-totals .row.disc span:first-child{ color: var(--muted); }
.cart-totals .row.disc span:last-child{ color: var(--green); font-weight: 700; }

.upsell{ margin: 2px 0 16px; }
.upsell-title{ font-weight: 800; color: var(--brown); margin-bottom: 10px; font-size: 14px; }
.upsell-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.upsell-card{ display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; cursor: pointer; transition: .15s; }
.upsell-card:hover{ border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.upsell-card img{ width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.upsell-card .ue{ font-size: 30px; line-height: 1; }
.upsell-card .un{ font-size: 11px; font-weight: 600; color: var(--brown); line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upsell-card .up{ font-size: 11px; font-weight: 800; color: var(--red); }
@media (max-width: 420px){ .upsell-row{ grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   PERSONALIZAR PEDIDO — modal de opciones
   ========================================================= */
.cust-card{ max-width: 520px; padding: 0; overflow: hidden; text-align: left; position: relative; }
.cust-close{ position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--brown); }
.cust-head{ display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.cust-head img, .cust-emoji{ width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.cust-emoji{ display: grid; place-items: center; font-size: 40px; background: #fff; border: 1px solid var(--line); }
.cust-head h3{ text-align: left; font-size: 20px; margin: 0; }
.cust-head p{ color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.cust-groups{ padding: 18px 20px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.cust-glabel{ font-weight: 800; color: var(--brown); margin-bottom: 10px; font-size: 14px; }
.cust-glabel .req{ color: var(--red); }
.cust-choices{ display: flex; flex-direction: column; gap: 8px; }
.cust-choice{ display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: .15s; }
.cust-choice:hover{ border-color: var(--gold); }
.cust-choice input{ accent-color: var(--red); width: 18px; height: 18px; flex: 0 0 auto; }
.cust-choice:has(input:checked){ border-color: var(--red); background: #fdf3f0; }
.cc-label{ flex: 1; font-weight: 600; color: var(--brown-soft); font-size: 14px; }
.cc-price{ font-weight: 800; color: var(--green); font-size: 13px; }
.cust-foot{ display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.cust-qty{ display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; flex: 0 0 auto; }
.cust-qty button{ width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--cream-2); cursor: pointer; font-size: 18px; color: var(--brown); }
.cust-qty span{ min-width: 26px; text-align: center; font-weight: 800; color: var(--brown); }
.cust-foot .btn{ flex: 1; }

/* Opciones mostradas en cada línea del carrito/pedido */
.cl-opts{ font-size: 12px; color: var(--muted); margin: 2px 0; line-height: 1.3; }
.oi-opts{ font-size: 12px; color: var(--muted); }

@media (max-width: 600px){
  .cust-head img, .cust-emoji{ width: 60px; height: 60px; }
  .cust-groups{ max-height: 50vh; }
}

/* =========================================================
   PWA — botón flotante "Instalar app"
   ========================================================= */
.pwa-install{
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown); color: #fff; border: none; cursor: pointer;
  padding: 11px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 26px rgba(44,24,16,.35);
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s;
}
.pwa-install.show{ opacity: 1; transform: translateY(0); }
.pwa-install .pi-ic{ font-size: 15px; }
.pwa-install .pi-x{ margin-left: 4px; opacity: .7; font-size: 12px; padding: 2px 4px; border-radius: 50%; }
.pwa-install .pi-x:hover{ opacity: 1; background: rgba(255,255,255,.15); }
@media (max-width: 600px){
  .pwa-install{ left: 12px; bottom: 12px; padding: 10px 13px; font-size: 13px; }
}

/* =========================================================
   FILTROS DE MENÚ (dieta)
   ========================================================= */
.menu-filters{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px auto 0; max-width: 560px; }
.mf-chip{ display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--brown); border: 1.5px solid transparent;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; transition: .15s; }
.mf-chip:hover{ border-color: var(--gold); }
.mf-chip.active{ background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(176,30,46,.3); }
@media (max-width: 600px){ .menu-filters{ gap: 6px; } .mf-chip{ padding: 7px 12px; font-size: 12px; } }

/* =========================================================
   ESTADO ABIERTO / CERRADO
   ========================================================= */
.store-status{ display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.store-status .ss-dot{ width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.store-status .ss-dot.on{ background: #2e7d4f; box-shadow: 0 0 0 4px rgba(46,125,79,.2); animation: ssPulse 2s ease-in-out infinite; }
.store-status .ss-dot.off{ background: #b01e2e; box-shadow: 0 0 0 4px rgba(176,30,46,.15); }
.store-status .ss-detail{ opacity: .85; font-weight: 500; }
@keyframes ssPulse{ 0%,100%{ box-shadow: 0 0 0 3px rgba(46,125,79,.25);} 50%{ box-shadow: 0 0 0 6px rgba(46,125,79,0);} }

/* Píldora (hero / locales) */
.store-status-pill{ display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--brown);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.page-hero .store-status-pill{ margin-top: 16px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #f6e9d2; }
.foot-status{ margin-top: 14px; color: #d8c4a4; }
.foot-status .ss-detail{ color: #b89f7d; }

/* =========================================================
   PROGRAMAR ENTREGA + DIRECCIONES GUARDADAS
   ========================================================= */
.saved-addr{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.addr-chip{ background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--brown-soft); cursor: pointer; transition: .15s; }
.addr-chip:hover{ border-color: var(--red); color: var(--red); }
.save-addr-row{ display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.save-addr-row input{ width: 16px; height: 16px; accent-color: var(--red); }

.addr-saved-list{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.addr-item{ display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14px; color: var(--brown-soft); }
.addr-item button{ background: none; border: none; cursor: pointer; color: var(--muted); font-size: 15px; padding: 2px 6px; border-radius: 50%; }
.addr-item button:hover{ background: rgba(176,30,46,.1); color: var(--red); }
.addr-add{ display: flex; gap: 8px; }
.addr-add input{ flex: 1; min-width: 0; }
.addr-add .btn{ flex: 0 0 auto; }

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
.skip-link{ position: fixed; top: -100px; left: 12px; z-index: 4000;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 800; text-decoration: none; box-shadow: var(--shadow-md); transition: top .18s ease; }
.skip-link:focus{ top: 12px; outline: 3px solid var(--gold); outline-offset: 2px; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[role="main"]:focus{ outline: none; }
.icon-btn:focus-visible, .mode-pill:focus-visible, .btn:focus-visible{ outline: 3px solid var(--gold); outline-offset: 3px; }

/* =========================================================
   PUNTOS DE FIDELIDAD (Inka Puntos)
   ========================================================= */
.stat-points b{ color: var(--red); }
.loyalty-card{ background: linear-gradient(135deg, #2c1810, #4a2618); color: #f6e9d2;
  border-radius: 16px; padding: 18px 20px; margin-bottom: 8px; box-shadow: var(--shadow-md); }
.loyalty-top{ display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 800; font-size: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.loyalty-top .muted{ color: var(--gold) !important; font-weight: 700; font-size: 13px; }
.loyalty-bar{ height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.loyalty-bar span{ display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #e8b84a); transition: width .5s ease; }
.loyalty-card .muted{ color: #d8c4a4 !important; }

/* =========================================================
   VALORACIONES (estrellas)
   ========================================================= */
.pc-rating{ display: flex; align-items: center; gap: 7px; margin: 2px 0 8px; }
.stars-disp{ line-height: 1; }
.stars-disp .sd-track{ position: relative; display: inline-block; color: #dcc9a4; font-size: 14px; letter-spacing: 1.5px; }
.stars-disp .sd-fill{ position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.sd-count{ font-size: 12px; color: var(--muted); font-weight: 600; }

.stars-input{ display: inline-flex; gap: 2px; }
.stars-input .si-star{ background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 20px; line-height: 1; color: #d5c3a0; transition: transform .12s, color .12s; }
.stars-input .si-star:hover{ transform: scale(1.15); }
.stars-input .si-star.on{ color: var(--gold); }
.stars-input:hover .si-star{ color: #d5c3a0; }
.stars-input .si-star:hover, .stars-input .si-star:hover ~ .si-star{ color: #d5c3a0; }
.stars-input:hover .si-star:hover, .stars-input .si-star:hover{ color: var(--gold); }
.oi-rate{ display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 0 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.oi-rate span{ font-size: 12.5px; color: var(--muted); font-weight: 600; }
