@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Variables ── */
:root {
  --naranja:       #F5821F;
  --naranja-cta:   #FF6F1A;
  --naranja-hover: #E95F12;
  --naranja-badge: #FFE2C7;
  --fondo:         #FAF7F2;
  --fondo-card:    #FFFFFF;
  --fondo-sidebar: #FFF4EA;
  --fondo-hero:    #F7EFE6;
  --negro:         #151515;
  --texto2:        #6D6D6D;
  --borde:         #EDE3D8;
  --beige:         #D9B48A;
  --exito:         #74B86A;
  --advertencia:   #F2B24C;
  --error:         #D96A58;

  --sidebar-w:     280px;
  --cart-w:        360px;
  --header-h:      72px;
  --radio:         16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--fondo);
  color: var(--negro);
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  background: var(--fondo-sidebar);
  border-right: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 16px;
  gap: 4px;
  scrollbar-width: none;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 4px 0 32px rgba(0,0,0,.12);
}
.sidebar.open { transform: translateX(0); }
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  padding: 0 4px 24px;
  display: block;
  text-decoration: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--negro);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item svg { flex-shrink: 0; stroke: currentColor; fill: none; }
.nav-item:hover { background: var(--naranja-badge); color: var(--naranja); }
.nav-item.active {
  background: var(--naranja-badge);
  color: var(--naranja);
  font-weight: 600;
}
.nav-item.active svg { stroke: var(--naranja); }

.sidebar-spacer { flex: 1; min-height: 24px; }

.delivery-badge {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 8px;
}
.delivery-badge-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.delivery-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--naranja-badge);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.delivery-badge-title {
  font-size: 13px;
  font-weight: 700;
}
.delivery-badge-sub {
  font-size: 11px;
  color: var(--texto2);
}
.delivery-progress {
  height: 5px;
  background: var(--borde);
  border-radius: 99px;
  overflow: hidden;
}
.delivery-progress-fill {
  height: 100%;
  background: var(--naranja-cta);
  border-radius: 99px;
  width: 0%;
  transition: width .3s;
}

/* ════════════════════════════════════════════
   MAIN AREA
════════════════════════════════════════════ */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Announce bar lives inside .main-area flex column → already covered by style tag in HTML ── */

/* ════════════════════════════════════════════
   DRAWER OVERLAY
════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ════════════════════════════════════════════
   SITE HEADER (transparente, flota sobre la imagen)
════════════════════════════════════════════ */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  z-index: 50;
}

.hdr-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  color: var(--negro);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: background .15s;
  flex-shrink: 0;
  border-radius: 12px;
}
.hdr-menu-btn:hover { background: rgba(0,0,0,.08); }
.hdr-menu-label { line-height: 1; }

.hdr-cart-btn {
  position: relative;
  width: 64px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--negro);
  transition: background .15s;
  flex-shrink: 0;
}
.hdr-cart-btn:hover { background: rgba(255,255,255,.08); }
.hdr-cart-btn svg { stroke: currentColor; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--naranja-cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge.visible { display: flex; }

/* ── Scroll area ── */
main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--borde) transparent;
}

/* ════════════════════════════════════════════
   HERO CAROUSEL (Crumbl-style)
════════════════════════════════════════════ */
.hc {
  position: relative;
  width: calc(100% + 48px);
  margin: -24px -24px 0;
  height: 100dvh;
  overflow: hidden;
  flex-shrink: 0;
}

.hc-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hc-slide.active { opacity: 1; pointer-events: all; cursor: pointer; }

/* Zona clickeable transparente sobre el botón visual de la imagen (~55% de alto) */
.hc-cta-zone {
  position: absolute;
  bottom: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 56px;
  border-radius: 999px;
  background: transparent;
  pointer-events: none;
}

/* Centered text block */
.hc-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 600px;
}
.hc-title {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--negro);
  margin-bottom: 16px;
}
.hc-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--negro);
  opacity: .75;
  line-height: 1.55;
  margin-bottom: 32px;
}
.hc-btn {
  display: inline-block;
  background: var(--negro);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
}
.hc-btn:hover { background: #333; transform: translateY(-2px); }

/* Dot indicators */
.hc-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(21,21,21,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.hc-dot.active {
  width: 28px;
  background: var(--negro);
}

/* ── Utility buttons (kept for other uses) ── */
.btn-primary {
  background: var(--naranja-cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--naranja-hover); }

.btn-secondary {
  background: transparent;
  color: var(--negro);
  border: 1.5px solid var(--beige);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--naranja); color: var(--naranja); }

/* ── Category tabs (sticky) ── */
.cat-tabs {
  position: sticky;
  top: -1px;
  z-index: 40;
  background: var(--fondo);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 24px;
  margin: 0 -24px 0;
  border-bottom: 1px solid var(--borde);
  flex-shrink: 0;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: var(--fondo-card);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--negro);
  transition: all .15s;
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--naranja); color: var(--naranja); }
.cat-tab.active {
  background: var(--naranja);
  color: #fff;
  border-color: var(--naranja);
  box-shadow: 0 4px 12px rgba(245,130,31,.3);
}

/* ── Sección con título ── */
#inicio, #sectionsContainer section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title-wrap { }
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--negro);
}
.section-count {
  display: inline-block;
  margin-top: 14px;
  background: var(--naranja);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
}

.carousel-nav { display: flex; gap: 6px; }
.carousel-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--borde);
  background: var(--fondo-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--negro);
  transition: all .15s;
}
.carousel-btn:hover { border-color: var(--naranja); color: var(--naranja); }
.carousel-btn svg { stroke: currentColor; fill: none; }

#sectionsContainer { margin-top: 24px; }

/* ── Grid de productos ── */
.productos-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.producto-card {
  background: var(--fondo-card);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.producto-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .3s;
}
.producto-card:hover .producto-img img { transform: scale(1.04); }

/* Bebidas y postres: imagen completa sin recorte (fondo naranja igual que las fotos) */
.producto-img.ph-cafe,
.producto-img.ph-jugos,
.producto-img.ph-frappes,
.producto-img.ph-aguas,
.producto-img.ph-postres { background: #D84E0A; }
.producto-img.ph-cafe img,
.producto-img.ph-jugos img,
.producto-img.ph-frappes img,
.producto-img.ph-aguas img,
.producto-img.ph-postres img {
  object-fit: contain;
  object-position: center center;
}

.producto-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.producto-nombre {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.producto-desc {
  font-size: 12px;
  color: var(--texto2);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.producto-precio {
  font-size: 16px;
  font-weight: 800;
  color: var(--negro);
}
.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--naranja-cta);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(255,111,26,.35);
}
.add-btn:hover { background: var(--naranja-hover); transform: scale(1.1); }

/* ── Banner programar ── */
.schedule-banner {
  background: var(--fondo-card);
  border: 1.5px solid var(--borde);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.schedule-icon {
  width: 48px; height: 48px;
  background: var(--naranja-badge);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.schedule-text { flex: 1; }
.schedule-text strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 2px; }
.schedule-text span { font-size: 12px; color: var(--texto2); }
.schedule-btn {
  background: var(--fondo);
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.schedule-btn:hover { border-color: var(--naranja); color: var(--naranja); }

/* ════════════════════════════════════════════
   CART PANEL
════════════════════════════════════════════ */
.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--cart-w);
  max-width: 100vw;
  height: 100dvh;
  background: var(--fondo-card);
  border-left: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 0;
  z-index: 150;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.cart-panel.open { transform: translateX(0); }

.cart-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cart-title { font-size: 18px; font-weight: 700; }
.cart-clear {
  font-size: 13px;
  color: var(--naranja);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  display: none;
}
.cart-clear.visible { display: block; }
.cart-count-text {
  font-size: 12px;
  color: var(--texto2);
  margin-bottom: 16px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--borde) transparent;
}

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: var(--texto2);
}
.cart-empty-state .emoji { font-size: 48px; }
.cart-empty-state p { font-size: 14px; line-height: 1.5; }

.cart-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: var(--fondo);
}
.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img.ph-cafe img,
.cart-item-img.ph-jugos img,
.cart-item-img.ph-frappes img,
.cart-item-img.ph-aguas img,
.cart-item-img.ph-postres img { object-fit: contain; background: #D84E0A; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-nombre {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.cart-item-precio {
  font-size: 13px;
  font-weight: 700;
  color: var(--negro);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--borde);
  background: var(--fondo-card);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .1s;
  color: var(--negro);
}
.qty-btn:hover { border-color: var(--naranja); color: var(--naranja); }
.qty-num { font-size: 13px; font-weight: 700; min-width: 18px; text-align: center; }

.cart-footer {
  padding-top: 16px;
  border-top: 1px solid var(--borde);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--texto2);
}
.cart-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--negro);
  margin-top: 4px;
}

.checkout-btn {
  height: 52px;
  width: 100%;
  background: var(--naranja-cta);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  margin-top: 6px;
}
.checkout-btn:hover { background: var(--naranja-hover); }
.checkout-btn:disabled { background: var(--texto2); cursor: not-allowed; }

.cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--texto2);
}
.cart-secure svg { stroke: var(--texto2); fill: none; }

.delivery-estimate {
  background: var(--fondo);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-estimate-icon { font-size: 22px; }
.delivery-estimate-text { font-size: 11px; color: var(--texto2); }
.delivery-estimate-time { font-size: 15px; font-weight: 700; }

/* ════════════════════════════════════════════
   MODAL CHECKOUT
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--fondo-card);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px;
  animation: popIn .22s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--borde);
  background: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto2);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto2);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--fondo);
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--negro);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--naranja-cta);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 70px; }

.entrega-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.entrega-tab {
  padding: 10px;
  border: 2px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto2);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.entrega-tab.sel {
  border-color: var(--naranja);
  color: var(--naranja);
  background: var(--naranja-badge);
}

.pago-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pago-opt.pago-mp {
  grid-column: span 2;
  background: #f0f9ff;
  border-color: #2d9cdb;
  color: #1a6fa0;
}
.pago-opt.pago-mp.sel {
  background: #e0f4ff;
  border-color: #1a6fa0;
  color: #1a6fa0;
}
.pago-opt {
  border: 1.5px solid var(--borde);
  background: var(--fondo);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  font-family: inherit;
}
.pago-opt.sel {
  border-color: var(--naranja-cta);
  background: #FFF4EC;
  color: var(--naranja-cta);
}

.order-summary {
  background: var(--fondo);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--texto2);
  line-height: 1.5;
}
.order-summary strong { color: var(--negro); font-size: 15px; font-weight: 700; display: block; margin-bottom: 3px; }

.submit-btn {
  width: 100%;
  height: 52px;
  background: var(--naranja-cta);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.submit-btn:hover { background: var(--naranja-hover); }
.submit-btn:disabled { background: var(--texto2); cursor: not-allowed; }

/* ════════════════════════════════════════════
   CONFIRMACIÓN
════════════════════════════════════════════ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--fondo);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 16px;
}
.confirm-overlay.open { display: flex; }
.confirm-icon {
  width: 80px; height: 80px;
  background: var(--exito);
  border-radius: 50%;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.confirm-overlay h2 { font-size: 26px; font-weight: 700; }
.confirm-overlay p { color: var(--texto2); font-size: 15px; max-width: 320px; line-height: 1.5; }
.confirm-num {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 14px 32px;
  font-size: 24px;
  font-weight: 700;
  color: var(--naranja-cta);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--negro);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 400;
  transition: transform .25s ease;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════
   GRADIENTES POR CATEGORÍA (placeholder fotos)
════════════════════════════════════════════ */
.ph-desayunos  { background: linear-gradient(145deg,#F4D8B0,#E8B87A); }
.ph-bagels     { background: linear-gradient(145deg,#D4A55A,#C47A2A); }
.ph-burritos   { background: linear-gradient(145deg,#E8C080,#D4903A); }
.ph-waffles    { background: linear-gradient(145deg,#F0D890,#E4B040); }
.ph-cafe       { background: linear-gradient(145deg,#A06840,#704820); }
.ph-jugos      { background: linear-gradient(145deg,#90C060,#609030); }
.ph-frappes    { background: linear-gradient(145deg,#D0B8A0,#B09080); }
.ph-aguas      { background: linear-gradient(145deg,#90D4E8,#50A4C8); }
.ph-postres    { background: linear-gradient(145deg,#E8A0A0,#D06060); }
.ph-bowls      { background: linear-gradient(145deg,#B0D890,#70B850); }
.ph-extras     { background: linear-gradient(145deg,#F4C060,#E09020); }

/* ── Modificador overlay ── */
#modifOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
#modifOverlay.open { display: flex; }

/* ── Nota en cart item ── */
.cart-item-nota {
  font-size: 11px; color: var(--naranja); font-weight: 600;
  margin-top: 2px;
}

/* ── Modificador modal ── */
.modif-grupos { margin-bottom: 24px; }
.modif-grupo { margin-bottom: 20px; }
.modif-grupo-label {
  font-size: 13px; font-weight: 700; color: var(--texto2);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.modif-precio-extra { color: var(--naranja); font-size: 13px; font-weight: 700; }
.modif-subtitulo {
  font-size: 11px; background: var(--naranja); color: #fff;
  padding: 2px 8px; border-radius: 999px; font-weight: 600;
  text-transform: none; letter-spacing: 0; margin-left: auto;
}
.modif-op-precio { color: var(--naranja); font-size: 12px; font-weight: 700; }
/* Checkbox style */
.modif-opcion:has(input[type="checkbox"])::after { border-radius: 4px; }
.modif-opcion:has(input[type="checkbox"]:checked)::after {
  background: var(--naranja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 4L11 1' stroke='%23fff' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: var(--naranja); box-shadow: none;
}
.modif-opcional {
  font-size: 11px; background: #f0f0f0; color: #888;
  padding: 2px 8px; border-radius: 999px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}
.modif-sin-extra { opacity: .55; }
.modif-sin-extra:has(input:checked) { opacity: 1; }
.modif-opciones { display: flex; flex-direction: column; gap: 10px; }
.modif-opcion {
  display: flex; align-items: center; gap: 12px;
  background: var(--fondo); border-radius: 14px;
  padding: 14px 16px; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s;
}
.modif-opcion:has(input:checked) { border-color: var(--naranja); background: #FFF4EC; }
.modif-opcion input[type="radio"] { display: none; }
.modif-opcion-txt { font-size: 15px; font-weight: 600; color: var(--negro); }
.modif-opcion::after {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #ccc; margin-left: auto; flex-shrink: 0; transition: all .15s;
}
.modif-opcion:has(input:checked)::after {
  background: var(--naranja); border-color: var(--naranja);
  box-shadow: inset 0 0 0 4px #fff;
}

/* ── Extras modal ── */
#extrasOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
#extrasOverlay.open { display: flex; }

.extras-modal {
  background: #fff;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 28px 24px 32px;
  animation: slideUp .28s cubic-bezier(.34,1.2,.64,1);
  position: relative;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.extras-close {
  position: absolute; top: 16px; right: 18px;
  background: #f0f0f0; border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.extras-header {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px; padding-right: 36px;
}
.extras-producto-nombre { font-size: 20px; font-weight: 800; color: var(--negro); }
.extras-producto-precio { font-size: 16px; font-weight: 600; color: var(--naranja); }
.extras-subtitle {
  font-size: 15px; color: var(--texto2); margin-bottom: 20px;
}
.extras-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.extra-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--fondo); border-radius: 16px;
  padding: 12px 14px; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s, background .15s;
}
.extra-item:has(.extra-check:checked) {
  border-color: var(--naranja); background: #FFF4EC;
}
.extra-check { display: none; }
.extra-img-wrap {
  width: 56px; height: 56px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  background: var(--naranja-badge);
}
.extra-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.extra-info { flex: 1; }
.extra-nombre { display: block; font-size: 15px; font-weight: 700; color: var(--negro); }
.extra-precio { font-size: 14px; color: var(--naranja); font-weight: 600; }
.extra-check-box {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #ccc; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.extra-item:has(.extra-check:checked) .extra-check-box {
  background: var(--naranja); border-color: var(--naranja);
}
.extra-item:has(.extra-check:checked) .extra-check-box::after {
  content: '✓'; color: #fff; font-size: 13px; font-weight: 700;
}
.btn-confirmar-extras {
  width: 100%; padding: 16px; border-radius: 999px;
  background: var(--naranja-cta); color: #fff;
  border: none; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px;
  font-family: inherit;
}
.btn-confirmar-extras:hover { background: var(--naranja-hover); }
.btn-skip-extras {
  width: 100%; padding: 12px; border-radius: 999px;
  background: none; color: var(--texto2);
  border: none; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.btn-skip-extras:hover { color: var(--negro); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
/* cart-panel is now always a drawer — no media query needed */

@media (max-width: 768px) {
  body { display: block; overflow: auto; height: auto; }
  .main-area { height: auto; overflow: visible; }
  main { overflow: visible; height: auto; padding: 16px; }
  header { padding: 0 12px; height: 56px; }

  /* Hero — alto = alto natural de imagen landscape (1680×936 ≈ 1.795:1) */
  .hc { height: 56vw; min-height: 200px; width: calc(100% + 32px); margin: -16px -16px 0; }
  .hc-slide { background-size: cover; background-position: center center; }
  .hc-title { font-size: 40px; letter-spacing: -1.5px; }
  .hc-sub { font-size: 14px; }
  .hc-btn { padding: 14px 28px; font-size: 15px; }

  /* Secciones */
  #inicio, #sectionsContainer section { padding-top: 28px; padding-bottom: 28px; }
  .section-title { font-size: 30px; letter-spacing: -0.5px; }
  .section-count { font-size: 13px; padding: 8px 16px; margin-top: 10px; }
  .section-header { margin-bottom: 16px; }

  /* Tarjetas */
  .productos-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .producto-nombre { font-size: 13px; }
  .producto-desc { font-size: 11px; }
  .producto-precio { font-size: 14px; }

  /* Menú lateral */
  .sidebar { width: 260px; }
  .nav-item { font-size: 14px; padding: 10px 12px; }

  /* Schedule banner */
  .schedule-banner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── Promo popup ─────────────────────────────────────────────────────────── */
.promo-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
}
.promo-card {
  position: relative;
  text-align: center; max-width: 560px; width: 100%;
  animation: promoIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes promoIn {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.promo-img {
  width: 100%; border-radius: 16px;
  display: block; box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.promo-close {
  position: absolute; top: -14px; right: -14px;
  background: #111; color: #fff; border: none;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 14px; cursor: pointer; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.promo-btn {
  margin-top: 16px;
  background: #111; color: #fff; border: none;
  border-radius: 999px; padding: 14px 40px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.promo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

/* ── Encuesta plataforma ─────────────────────────────────────────────────── */
.plat-btn {
  width: 100%;
  padding: 13px 16px;
  background: var(--fondo);
  border: 1.5px solid #E5E5E5;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.plat-btn:hover {
  border-color: var(--naranja);
  background: #FFF5F0;
}
