/* ============================================================
   SL SUSHI — Estilos globales
   Inspiración: PedidosYa
   ============================================================ */

:root {
  --rojo:    #C8102E;
  --rojo-d:  #a00d24;
  --negro:   #111111;
  --gris-bg: #f5f5f5;
  --gris-bd: #e0e0e0;
  --blanco:  #ffffff;
  --texto:   #222222;
  --muted:   #6b7280;
  --radio:   12px;
  --shadow:  0 2px 16px rgba(0,0,0,.08);
  --trans:   .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: rgba(200,16,46,.7) #f1f3f6;
}

body::-webkit-scrollbar,
.prod-modal::-webkit-scrollbar,
.carrito-items::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-track,
.prod-modal::-webkit-scrollbar-track,
.carrito-items::-webkit-scrollbar-track {
  background: #f1f3f6;
  border-radius: 999px;
}
body::-webkit-scrollbar-thumb,
.prod-modal::-webkit-scrollbar-thumb,
.carrito-items::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rojo), var(--rojo-d));
  border: 2px solid #f1f3f6;
  border-radius: 999px;
}
body::-webkit-scrollbar-thumb:hover,
.prod-modal::-webkit-scrollbar-thumb:hover,
.carrito-items::-webkit-scrollbar-thumb:hover {
  background: var(--rojo-d);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gris-bg);
  color: var(--texto);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ─────────────────────────────────────────────────── */
.sl-header {
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.sl-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sl-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.5px;
}
.sl-logo span { color: var(--rojo); }
.sl-logo img { height: 60px; border-radius: 6px; }

.sl-header-spacer { flex: 1; }

.btn-carrito-header {
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--trans);
}
.btn-carrito-header:hover { background: var(--rojo-d); }

/* Header: acciones + user */
.sl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sl-header-local {
  background: none;
  border: 1.5px solid #444;
  color: #ccc;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.sl-header-local:hover { border-color: var(--rojo); color: #fff; }
.sl-header-login {
  color: #aaa;
  font-size: .82rem;
  font-weight: 600;
}
.sl-header-login:hover { color: #fff; }
.sl-header-user {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 6px 14px;
}
.sl-header-user:hover { background: rgba(255,255,255,.15); }
.sl-header-avatar {
  background: var(--rojo);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
}

/* ── Mobile header: 2 filas ──────────────────────────────────── */
@media (max-width: 700px) {
  .sl-header-inner {
    flex-direction: column;
    height: auto;
    padding: 10px 16px 8px;
    gap: 8px;
  }
  .sl-logo { order: 1; }
  .sl-logo img { height: 60px; }
  .sl-header-spacer { display: none; }
  .sl-header-actions {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .sl-header-local {
    font-size: .74rem;
    padding: 6px 12px;
    flex: 1;
    text-align: center;
  }
  .btn-carrito-header {
    font-size: .8rem;
    padding: 7px 14px;
    gap: 5px;
  }
  .carrito-txt { display: none; }
  .sl-header-login {
    font-size: .76rem;
    color: #ccc;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 6px 14px;
    white-space: nowrap;
  }
  .sl-header-user {
    font-size: .76rem;
    padding: 6px 12px;
  }
  .sl-header-user-name { display: none; }
}

.badge-count {
  background: #fff;
  color: var(--rojo);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: .75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Hero ────────────────────────────────────────────────────── */
.sl-hero {
  background: linear-gradient(135deg, var(--negro) 60%, #2a0a0f 100%);
  color: #fff;
  padding: 72px 20px 80px;
  text-align: center;
}
.sl-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.sl-hero h1 span { color: var(--rojo); }
.sl-hero p { font-size: 1.1rem; color: #ccc; max-width: 520px; margin: 0 auto 28px; }

/* ── Botones ─────────────────────────────────────────────────── */
.btn-rojo {
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-rojo:hover { background: var(--rojo-d); transform: translateY(-1px); }
.btn-rojo:active { transform: scale(.97); }

.btn-outline {
  background: transparent;
  color: var(--rojo);
  border: 2px solid var(--rojo);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}
.btn-outline:hover { background: var(--rojo); color: #fff; }

/* ── Cards de sucursal ───────────────────────────────────────── */
.sl-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.sl-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sl-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gris-bd);
  border-radius: 2px;
}

.locales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.local-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
}
.local-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  border-color: var(--rojo);
}
.local-card.cerrado { opacity: .65; cursor: default; }
.local-card.cerrado:hover { transform: none; border-color: transparent; }

.local-card-img {
  height: 160px;
  background: linear-gradient(135deg, #1a1a1a, #3d0d15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.local-card-img img { width: 100%; height: 100%; object-fit: cover; }
.local-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-abierto { background: #dcfce7; color: #15803d; }
.badge-cerrado { background: #fee2e2; color: #b91c1c; }

.local-card-body { padding: 18px; }
.local-card-nombre {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.local-card-dir {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.local-card-meta {
  display: flex;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.local-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gris-bg);
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── Menú ────────────────────────────────────────────────────── */
.menu-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .carrito-sidebar { display: none; }
}

/* Navegación de categorías */
.cat-nav {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  padding: 10px 6px;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,16,46,.55) transparent;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.cat-nav::-webkit-scrollbar { display: block; height: 8px; }
.cat-nav::-webkit-scrollbar-track { background: transparent; }
.cat-nav::-webkit-scrollbar-thumb {
  background: rgba(200,16,46,.45);
  border-radius: 999px;
}
.cat-nav-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--muted);
  transition: all var(--trans);
}
.cat-nav-btn.activo, .cat-nav-btn:hover {
  background: var(--rojo);
  color: #fff;
}

.categoria-seccion { margin-bottom: 36px; }
.categoria-titulo {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 12px 0 14px;
  border-bottom: 2px solid var(--gris-bd);
  margin-bottom: 14px;
  scroll-margin-top: 130px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.prod-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow var(--trans);
  position: relative;
}
.prod-card:hover { box-shadow: 0 10px 30px rgba(17,17,17,.12); }
.prod-card.agotado { opacity: .55; }

.prod-info { flex: 1; min-width: 0; cursor: pointer; }
.prod-nombre {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.prod-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-card.en-promo {
  border: 1.5px solid rgba(200,16,46,.28);
  box-shadow: 0 10px 26px rgba(200,16,46,.12);
}
.prod-card.en-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(200,16,46,.08), rgba(245,158,11,.08) 48%, transparent 72%);
}
.prod-promo-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  background: linear-gradient(135deg, #C8102E, #f59e0b);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  box-shadow: 0 8px 22px rgba(200,16,46,.28);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.prod-promo-ribbon span {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-promo-ribbon strong {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 1px 5px;
}
.prod-price-panel {
  display: grid;
  gap: 4px;
}
.prod-price-line,
.prod-price-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prod-precio-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .8rem;
  font-weight: 800;
}
.prod-promo {
  background: #C8102E;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .68rem;
  font-weight: 900;
}
.prod-precio-promo {
  color: #C8102E;
  font-size: 1.12rem;
}
.prod-save {
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 900;
}

.prod-modal-promo-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C8102E, #f59e0b);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.prod-modal-promo-hero strong {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 2px 7px;
}
.prod-modal-pricebox {
  border: 1.5px solid rgba(200,16,46,.18);
  background: #fff7f7;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}
.prod-modal-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .9rem;
  font-weight: 800;
  margin-right: 8px;
}
.prod-modal-save {
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  font-weight: 900;
}
.prod-modal-precio-promo {
  color: #C8102E;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.1;
  margin-top: 4px;
}
.env-option.env-discount {
  border-color: rgba(200,16,46,.35);
  background: #fff7f7;
}
.env-price-stack {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.env-precio-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .7rem;
  font-weight: 800;
}
.env-promo {
  color: #C8102E;
  background: #fee2e2;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: .65rem;
  font-weight: 900;
}

/* ── Modal detalle producto ──────────────────────────────────── */
.prod-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s;
}
.prod-modal-overlay.visible { opacity: 1; }
.prod-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: modalProdIn .25s ease;
  position: relative;
}
@keyframes modalProdIn {
  from { transform: scale(.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.prod-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.prod-modal-close:hover { background: rgba(0,0,0,.7); }
.prod-modal-img {
  width: 100%;
  border-radius: 18px 18px 0 0;
  display: block;
}
.prod-modal-body {
  padding: 20px 22px 24px;
}
.prod-modal-nombre {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--negro);
}
.prod-modal-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.prod-modal-precio {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--negro);
  margin-bottom: 16px;
}
.prod-modal-precio-base {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--negro);
  margin-bottom: 18px;
}

/* Secciones del modal */
.prod-modal-section { margin-bottom: 18px; }
.prod-modal-section-title { font-size: .88rem; font-weight: 700; margin-bottom: 10px; color: var(--negro); }

/* Envoltorios */
.env-options { display: flex; flex-direction: column; gap: 8px; }
.env-option {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--gris-bd); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: all .15s;
}
.env-option:hover { border-color: var(--rojo); background: #fff5f6; }
.env-option input[type=radio] { accent-color: var(--rojo); width: 18px; height: 18px; flex-shrink: 0; }
.env-option.selected { border-color: var(--rojo); background: #fff0f2; }
.env-nombre { flex: 1; font-weight: 600; font-size: .9rem; }
.env-precio { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.env-precio.gratis { color: #16a34a; }

/* Cantidad */
.prod-modal-qty {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 18px 0;
}
.prod-modal-qty button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gris-bd); background: #fff;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.prod-modal-qty button:hover { border-color: var(--rojo); background: var(--rojo); color: #fff; }
.prod-modal-qty span { font-size: 1.3rem; font-weight: 800; min-width: 30px; text-align: center; }

/* Notas y total */
.prod-modal-notas {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--gris-bd);
  border-radius: 8px; font-size: .88rem; resize: none;
  outline: none; transition: border-color .15s; font-family: inherit;
  box-sizing: border-box;
}
.prod-modal-notas:focus { border-color: var(--rojo); }
.prod-modal-total {
  text-align: center; font-size: 1.1rem; font-weight: 800;
  color: var(--negro); margin-bottom: 8px;
}
.prod-modal-total small {
  display: block;
  color: #047857;
  font-size: .78rem;
  margin-top: 2px;
}

/* Botón agregar */
.prod-modal-btn {
  width: 100%;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
.prod-modal-btn:hover { background: var(--rojo-d); }
.prod-modal-btn:disabled { background: var(--gris-bd); cursor: not-allowed; }

/* Cart item extras */
.cart-item-env {
  font-size: .72rem; color: var(--rojo); font-weight: 600;
  background: #fff0f2; border-radius: 4px; padding: 1px 6px;
  display: inline-block; margin-top: 2px;
}
.cart-item-notas {
  font-size: .7rem; color: var(--muted); font-style: italic;
  margin-top: 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 140px;
}
.cart-item-promo {
  display: inline-block;
  margin-top: 3px;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .68rem;
  font-weight: 900;
}

@media (max-width: 700px) {
  .prod-modal { max-width: 100%; border-radius: 16px; }
  .prod-modal-img { border-radius: 16px 16px 0 0; }
  .prod-modal-body { padding: 16px 16px 20px; }
  .env-option { padding: 10px 12px; }
}
.prod-precio {
  font-size: 1rem;
  font-weight: 800;
  color: var(--negro);
}
.prod-precio.prod-precio-promo {
  color: #C8102E;
  font-size: 1.12rem;
}

.btn-agregar {
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  transition: background var(--trans), transform var(--trans);
}
.btn-agregar:hover { background: var(--rojo-d); transform: scale(1.1); }
.btn-agregar:disabled { background: var(--gris-bd); cursor: not-allowed; transform: none; }

/* Imagen de producto */
.prod-card.con-img {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
}
.prod-card.con-img .prod-info {
  padding: 18px 20px 20px;
  padding-right: 52px;
}
.prod-card.con-img .btn-agregar {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
}
.prod-img {
  width: 100%;
  height: clamp(178px, 18vw, 232px);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(17,17,17,.09) 0%, rgba(17,17,17,.045) 28%, transparent 58%),
    linear-gradient(180deg, #fff 0%, #fff 62%, #fbfbfb 100%);
  border-bottom: 1px solid rgba(0,0,0,.035);
  position: relative;
}
.prod-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.12));
  transform: scale(1.02);
  transition: transform .24s ease, filter .24s ease;
}
.prod-card.con-img:hover .prod-img img {
  transform: scale(1.055);
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.16));
}
.prod-agotado-lbl {
  font-size: .72rem;
  color: #b91c1c;
  font-weight: 700;
  background: #fee2e2;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
  margin-top: 4px;
}

/* ── Carrito sidebar ─────────────────────────────────────────── */
.carrito-sidebar {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  position: sticky;
  top: 125px;
  max-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.carrito-header {
  background: var(--negro);
  color: #fff;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.carrito-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.carrito-vacio {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 32px 16px;
  text-align: center;
  gap: 10px;
}
.carrito-vacio .icon { font-size: 2.5rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gris-bg);
  border-radius: 8px;
  padding: 10px;
}
.cart-item > div:first-child { flex: 1; min-width: 0; }
.cart-item-nombre { flex: 1; font-size: .85rem; font-weight: 600; }
.cart-item-precio { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-qty button {
  background: #fff;
  border: 1px solid var(--gris-bd);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.cart-qty button:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.cart-qty span { font-size: .85rem; font-weight: 700; min-width: 16px; text-align: center; }

.carrito-footer {
  padding: 16px;
  border-top: 1px solid var(--gris-bd);
  flex-shrink: 0;
}
.carrito-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.carrito-ahorro {
  justify-content: space-between;
  align-items: center;
  color: #047857;
  background: #dcfce7;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 900;
  margin: -6px 0 12px;
}
.btn-checkout {
  width: 100%;
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--trans);
}
.btn-checkout:hover { background: var(--rojo-d); }
.btn-checkout:disabled { background: #ccc; cursor: not-allowed; }

/* ── Carrito móvil flotante ──────────────────────────────────── */
.btn-carrito-float {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--negro);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  gap: 10px;
  align-items: center;
  transition: all var(--trans);
}
.btn-carrito-float.visible { display: none; }
.btn-carrito-float .total-float { color: var(--rojo); font-size: 1rem; font-weight: 900; }

/* ── Modal carrito móvil ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.modal-overlay.abierto { display: flex; align-items: flex-end; }
.modal-sheet {
  background: var(--blanco);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--gris-bd);
  border-radius: 2px;
  margin: 10px auto 6px;
  flex-shrink: 0;
}

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.checkout-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gris-bd);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--trans);
  background: #fff;
}
.form-control:focus { border-color: var(--rojo); }
.form-control.error { border-color: #dc2626; }

.entrega-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.entrega-opcion {
  border: 2px solid var(--gris-bd);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: all var(--trans);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.entrega-opcion .icon { font-size: 1.5rem; }
.entrega-opcion.activo {
  border-color: var(--rojo);
  background: #fff0f2;
  color: var(--rojo);
}

.pasarela-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pasarela-btn {
  border: 2px solid var(--gris-bd);
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: all var(--trans);
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
}
.pasarela-btn img { height: 32px; object-fit: contain; }
.pasarela-btn.activo { border-color: var(--rojo); background: #fff0f2; }

/* Resumen pedido en checkout */
.resumen-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 72px;
}
.resumen-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gris-bd);
}
.resumen-item {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  margin-bottom: 8px;
  gap: 8px;
}
.resumen-item span:first-child { color: var(--muted); flex: 1; }
.resumen-item span:last-child { font-weight: 700; }
.resumen-separator { border: none; border-top: 1px solid var(--gris-bd); margin: 12px 0; }
.resumen-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 4px;
}

/* ── Confirmación ─────────────────────────────────────────────── */
.confirm-wrap {
  max-width: 600px;
  margin: 48px auto;
  padding: 0 20px;
}
.confirm-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  text-align: center;
}
.confirm-icon { font-size: 4rem; margin-bottom: 16px; }
.confirm-card h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.confirm-card p { color: var(--muted); margin-bottom: 20px; }
.confirm-codigo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--rojo);
  letter-spacing: 4px;
  margin: 16px 0;
}
.confirm-detalle {
  background: var(--gris-bg);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  margin-top: 20px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--gris-bd);
}
.confirm-row:last-child { border-bottom: none; font-weight: 800; font-size: 1rem; }
.confirm-row span:first-child { color: var(--muted); }

.estado-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  margin-top: 14px;
}
.estado-pendiente   { background: #fef9c3; color: #854d0e; }
.estado-confirmado  { background: #dcfce7; color: #15803d; }
.estado-preparando  { background: #dbeafe; color: #1d4ed8; }
.estado-listo       { background: #f3e8ff; color: #7c3aed; }
.estado-en_camino   { background: #ffedd5; color: #c2410c; }
.estado-entregado   { background: #d1fae5; color: #065f46; }
.estado-cancelado   { background: #fee2e2; color: #991b1b; }
.estado-rechazado   { background: #fee2e2; color: #991b1b; }

/* ── Loader ──────────────────────────────────────────────────── */
.sl-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gris-bd);
  border-top-color: var(--rojo);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ──────────────────────────────────────────────────── */
.sl-footer {
  background: var(--negro);
  color: #aaa;
  text-align: center;
  padding: 28px 20px;
  font-size: .82rem;
  margin-top: 60px;
}
.sl-footer a { color: var(--rojo); font-weight: 600; }
.sl-footer a:hover { text-decoration: underline; }

/* ── Utilidades ─────────────────────────────────────────────── */
.text-rojo { color: var(--rojo); }
.fw-900 { font-weight: 900; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.d-none { display: none !important; }
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .9rem;
  margin-bottom: 14px;
}
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info    { background: #dbeafe; color: #1e40af; }

@media (max-width: 600px) {
  .sl-hero { padding: 48px 16px 56px; }
  .sl-hero h1 { font-size: 1.8rem; }
  .productos-grid { grid-template-columns: 1fr; }
  .btn-carrito-float.visible { display: none; }
  .locales-grid { grid-template-columns: 1fr; }
}
