/* ═══════════════════════════════════════════════════════════════
   RondApp — Tienda pública
   Diseño limpio: un color de marca, tema claro/oscuro, tipografía
   display (Bebas Neue) + cuerpo (Inter), tarjetas planas y mucho aire.
   Las variables --brand / --on-brand las define api.js applyColors()
   a partir de landingColors.primary de cada negocio.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Marca (se sobrescribe desde JS) */
  --brand: #c49b3c;
  --brand-dark: #a6832e;
  --brand-soft: rgba(196, 155, 60, 0.12);
  --on-brand: #ffffff;
  --header-bg: var(--brand);

  /* Tema claro (por defecto) */
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --text: #121212;
  --muted: #6c6c70;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
  --overlay: rgba(0, 0, 0, 0.5);

  --ok: #12a150;
  --danger: #e5484d;
  --warn: #f5a524;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;
  --tap: 44px; /* área táctil mínima */
  --container: 1080px;
}

html.dark {
  --bg: #0c0c0c;
  --surface: #181818;
  --surface-2: #202020;
  --text: #f4f4f4;
  --muted: #9a9aa0;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
  --overlay: rgba(0, 0, 0, 0.7);
}

/* ─── Base ─────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 560px; margin: 0 auto; padding: 20px 16px 120px; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── Botones ──────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px var(--brand-soft); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 26px var(--brand-soft), 0 0 0 4px var(--brand-soft); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost { color: var(--muted); }
.btn-whatsapp { background: #25d366; color: #fff; }

.icon-btn {
  position: relative; width: var(--tap); height: var(--tap); border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-brand); transition: background 0.2s, transform 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.icon-btn:active { transform: scale(0.92); }

/* ─── Header ───────────────────────────────────── */

.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); color: var(--on-brand); box-shadow: 0 2px 16px rgba(0,0,0,0.18); }
.header-inner { max-width: var(--container); margin: 0 auto; height: 64px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 2px; }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-right: 4px;
  border-radius: var(--pill); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #fff; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.open { background: var(--ok); }
.status-badge.closed { background: var(--danger); }
.status-badge.soon { background: var(--warn); color: #1a1200; }

.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill);
  background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--header-bg);
}

/* Moneda */
.currency-wrap { position: relative; }
.currency-btn { height: var(--tap); padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--on-brand); font-weight: 700; font-size: 13px; border-radius: var(--pill); }
.currency-btn:hover { background: rgba(255,255,255,0.16); }
.currency-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); color: var(--text);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 6px; display: none; flex-direction: column; z-index: 120;
}
.currency-dropdown.open { display: flex; }
.currency-option { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.currency-option:hover { background: var(--surface-2); }
.currency-option.active { background: var(--brand-soft); font-weight: 700; }
.currency-option .sym { font-weight: 700; min-width: 28px; }

.notice-bar { background: var(--warn); color: #1a1200; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.notice-bar.closed { background: var(--danger); color: #fff; }

/* ─── Hero ─────────────────────────────────────── */

.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; background: #111 center/cover no-repeat; color: #fff; overflow: hidden; }
.hero.hero-plain { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); min-height: 240px; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.78) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px 28px; }
.hero-title { font-size: clamp(40px, 9vw, 72px); max-width: 14ch; text-transform: uppercase; }
.hero-sub { margin: 10px 0 18px; font-size: 16px; color: rgba(255,255,255,0.82); max-width: 46ch; }
.hero .btn { box-shadow: 0 8px 28px var(--brand-soft), 0 0 0 0 transparent; }

/* ─── Selector de canal ────────────────────────── */

.channel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 4px; }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.segment { min-height: 38px; padding: 0 18px; border-radius: var(--pill); font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.segment.active { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px var(--brand-soft); }
.channel-note { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.link-btn { font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }

/* ─── Buscador + categorías ────────────────────── */

.menu-toolbar { position: sticky; top: 64px; z-index: 90; background: var(--bg); padding: 12px 0 10px; }
.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: var(--pill);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); font: inherit; outline: none; box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: 14px; font-weight: 600; transition: all 0.2s; }
.chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 4px 14px var(--brand-soft); }

/* ─── Menú ─────────────────────────────────────── */

.menu-section { padding-top: 22px; }
.section-title { font-size: 34px; color: var(--brand); margin-bottom: 14px; text-transform: uppercase; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card:active { transform: scale(0.98); }
.product-img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-display); font-size: 44px; opacity: 0.5; }
.badge-pop { position: absolute; top: 10px; left: 10px; background: var(--brand); color: var(--on-brand); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 10px; border-radius: var(--pill); box-shadow: 0 3px 10px rgba(0,0,0,0.25); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.product-name { font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.product-desc { margin-top: 4px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 17px; font-weight: 800; color: var(--brand); }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px var(--brand-soft); transition: transform 0.15s ease, box-shadow 0.2s; }
.add-btn:hover { box-shadow: 0 8px 22px var(--brand-soft), 0 0 0 4px var(--brand-soft); }
.add-btn:active { transform: scale(0.88); }
.product-card.sold-out { cursor: default; }
.product-card.sold-out .product-img img { filter: grayscale(1); opacity: 0.55; }
.sold-out-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state h2 { color: var(--text); font-size: 30px; margin-bottom: 6px; }

/* ─── Bottom sheet / modal ─────────────────────── */

.sheet-overlay { position: fixed; inset: 0; z-index: 300; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; opacity: 0; animation: fadeIn 0.2s forwards; backdrop-filter: blur(3px); }
.sheet-overlay.closing { animation: fadeOut 0.2s forwards; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; background: var(--surface); color: var(--text); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow: hidden; transform: translateY(40px); animation: sheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .sheet-overlay { align-items: center; } .sheet { border-radius: 26px; max-height: 88vh; } }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.sheet-scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-media { aspect-ratio: 16 / 10; background: var(--surface-2); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 18px 20px 8px; }
.sheet-title { font-size: 36px; text-transform: uppercase; }
.sheet-desc { margin-top: 6px; color: var(--muted); }
.sheet-price { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--brand); }
.sheet-section { margin-top: 22px; }
.sheet-section-title { font-size: 22px; text-transform: uppercase; color: var(--muted); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rule-label { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 3px 10px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); }
.rule-label.pending { background: var(--brand-soft); color: var(--brand); }
.rule-label.done { background: rgba(18,161,80,0.14); color: var(--ok); }
.section-hint { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mini-chip { min-height: 34px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; }

.check-row { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check-row input { appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
.check-row input:checked { background: var(--brand); border-color: var(--brand); }
.check-row input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--on-brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-row.radio input { border-radius: 50%; }
.check-row.radio input:checked::after { width: 8px; height: 8px; border: none; border-radius: 50%; background: var(--on-brand); transform: none; }
.check-row .grow { flex: 1; }
.check-row .extra-price { font-size: 13px; color: var(--muted); }

.extra-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.extra-row:last-child { border-bottom: none; }
.extra-name { font-size: 15px; font-weight: 500; }
.extra-price { font-size: 13px; color: var(--muted); }
.extra-add { min-height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.extra-add.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.extra-add:disabled { opacity: 0.4; }

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; }
.stepper button:disabled { opacity: 0.35; }
.stepper .num { min-width: 28px; text-align: center; font-weight: 800; font-size: 16px; }
.stepper.brand button.plus { background: var(--brand); color: var(--on-brand); }

.note-toggle { color: var(--brand); font-weight: 600; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.note-area { width: 100%; min-height: 76px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; resize: vertical; outline: none; margin-top: 6px; }
.note-area:focus { border-color: var(--brand); }

.sheet-footer { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 14px; }
.sheet-footer .btn { flex: 1; min-height: 54px; font-size: 16px; justify-content: space-between; padding: 0 22px; }
.sheet-footer .pending-msg { position: absolute; left: 0; right: 0; bottom: 78px; text-align: center; font-size: 12px; font-weight: 600; color: var(--brand); }

/* ─── Barra flotante del carrito + WhatsApp ────── */

.floating-cart-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 150;
  width: calc(100% - 32px); max-width: 520px; min-height: 56px; padding: 0 8px 0 10px; border-radius: var(--pill);
  background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,0.3), 0 0 0 4px var(--brand-soft); transition: transform 0.2s, opacity 0.2s;
}
.floating-cart-bar:active { transform: translateX(-50%) scale(0.98); }
.floating-cart-bar.hidden, .floating-cart-bar.route-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); display: flex !important; }
.fc-left-badge { min-width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.22); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.fc-center { font-weight: 700; font-size: 16px; flex: 1; text-align: center; }
.fc-right { font-weight: 800; padding-right: 14px; }

.whatsapp-float { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 140; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: bottom 0.25s ease, transform 0.15s; }
.whatsapp-float:active { transform: scale(0.92); }
.whatsapp-float.elevated { bottom: calc(86px + env(safe-area-inset-bottom)); }
.whatsapp-icon { width: 28px; height: 28px; }

/* ─── Toast ────────────────────────────────────── */

.toast-notification { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -16px); z-index: 400; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: var(--pill); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.25s ease; max-width: calc(100% - 32px); }
.toast-notification.show { opacity: 1; transform: translate(-50%, 0); }
.toast-notification.hide { opacity: 0; transform: translate(-50%, -16px); }

/* ─── Footer ───────────────────────────────────── */

.site-footer { margin-top: 48px; background: var(--brand); color: var(--on-brand); padding: 32px 0 120px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; display: grid; gap: 20px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.footer-brand { font-family: var(--font-display); font-size: 40px; letter-spacing: 0.03em; }
.footer-brand img { height: 44px; width: auto; border-radius: 8px; }
.footer-heading { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 12px; }
.footer-list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-list > a, .footer-list > div { display: flex; align-items: center; gap: 10px; }
.footer-list > a:hover { text-decoration: underline; }
.footer-list .ic { opacity: 0.9; }
.footer-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: rgba(0,0,0,0.18); font-weight: 600; font-size: 13px; }
.footer-pill:hover { background: rgba(0,0,0,0.28); text-decoration: none !important; }
.footer-open { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.footer-schedule { display: flex; flex-direction: column; width: 100%; max-width: 320px; background: rgba(0,0,0,0.14); border-radius: var(--radius-sm); padding: 6px; font-size: 14px; }
.footer-schedule .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.footer-schedule .row .hours { font-variant-numeric: tabular-nums; opacity: 0.95; }
.footer-schedule .row.closed .hours { opacity: 0.6; }
.footer-schedule .today { background: rgba(255,255,255,0.2); font-weight: 800; }
.footer-list > .footer-schedule { align-items: stretch; gap: 0; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center; }
.footer-message { font-size: 14px; opacity: 0.9; }
.footer-powered { grid-column: 1 / -1; text-align: center; font-size: 12px; opacity: 0.75; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); }

/* ─── Tarjetas / formularios (carrito, checkout, estado) ─ */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.page-title { font-size: 40px; text-transform: uppercase; margin: 8px 0 18px; }
.page-title.center { text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; min-height: var(--tap); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { padding: 12px 16px; min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input.invalid { border-color: var(--danger); }
.form-error { display: none; background: rgba(229,72,77,0.12); color: var(--danger); border: 1px solid rgba(229,72,77,0.3); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.form-error.show { display: block; }
.reservation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Líneas del carrito */
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line-name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.cart-line-total { font-weight: 800; color: var(--brand); white-space: nowrap; }
.line-mods { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mod-tag { font-size: 12px; padding: 2px 9px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); }
.mod-tag.add { background: var(--brand-soft); color: var(--brand); }
.mod-tag.remove { background: rgba(229,72,77,0.1); color: var(--danger); }
.line-note { margin-top: 6px; font-size: 13px; color: var(--muted); font-style: italic; }
.cart-line-actions { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.remove-link { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 36px; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.total-row.grand { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 14px; }
.total-row.grand .total-value { font-size: 26px; font-weight: 800; color: var(--brand); }
.total-label { color: var(--muted); }

.suggestions-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.suggestions-row::-webkit-scrollbar { display: none; }
.suggestion-card { flex: 0 0 140px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.suggestion-img { aspect-ratio: 4 / 3; background: var(--surface-2); }
.suggestion-img img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-body { padding: 8px 10px 10px; }
.suggestion-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.suggestion-price { font-size: 13px; font-weight: 800; color: var(--brand); margin-top: 2px; }

/* Checkout */
.steps { display: flex; align-items: center; justify-content: center; margin: 8px 0 22px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 800; font-size: 14px; transition: all 0.25s; }
.step-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.step.active .step-circle { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.step.active .step-label { color: var(--text); }
.step.completed .step-circle { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-line { flex: 0 0 48px; height: 2px; background: var(--border); margin: 0 8px 20px; }
.step-line.completed { background: var(--ok); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .sub { font-size: 12px; color: var(--muted); }
.kv { padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kv-value { font-weight: 600; font-size: 16px; }
.payment-card { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 8px; }
.method-name { font-weight: 700; }
.method-details { font-size: 14px; color: var(--muted); white-space: pre-wrap; margin-top: 2px; }
.preorder-box { background: var(--brand-soft); border: 1px solid var(--brand); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; margin-bottom: 16px; font-size: 14px; }

/* Estado del pedido */
.status-card { text-align: center; padding: 28px 20px; }
.status-emoji { font-size: 64px; line-height: 1; }
.status-text { font-size: 40px; margin: 10px 0 2px; text-transform: uppercase; }
.order-number { color: var(--muted); font-weight: 700; letter-spacing: 0.1em; font-size: 13px; }
.progress-bar { height: 8px; border-radius: var(--pill); background: var(--surface-2); margin: 20px 0; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--pill); background: var(--brand); transition: width 0.6s ease; }
.order-items { text-align: left; margin-top: 8px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.info-value { font-weight: 600; }

/* Comprobante de pago */
.proof-box { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 14px; text-align: left; border-radius: var(--radius-sm); background: var(--surface-2); border: 1.5px dashed var(--border); }
.proof-box.done { background: rgba(18,161,80,0.08); border: 1px solid rgba(18,161,80,0.3); }
.proof-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.proof-text { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.proof-text strong { color: var(--text); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.proof-box.done .proof-text strong { color: var(--ok); }
.proof-box .form-error { flex-basis: 100%; margin: 0; }

/* ─── Skeletons / animaciones ──────────────────── */

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
.skeleton-card { height: 180px; margin-bottom: 14px; }
.skeleton-text { height: 18px; width: 60%; }
.fade-in { animation: fadeUp 0.35s ease both; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
