/* inicio.css — Estilos de la página de inicio pública (Fase E.3)
   Extraído del bloque <style> de app/Views/ordering/inicio.php.
   Consume los tokens de design system de assets/css/tokens.css. */

.nav-link { font-weight: bold; }

/* Footer mobile */
@media (max-width: 768px) {
  .mobile-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; border-top: 1px solid var(--color-border);
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 0; z-index: 900;
  }
  .mobile-footer a { flex: 1; text-align: center; font-size: 12px; color: #444; text-decoration: none; }
  .mobile-footer a.active { color: var(--color-primary); }
  .mobile-footer i { font-size: 18px; display: block; margin-bottom: 3px; }
}
/*@media (max-width: 768px) {*/
/*  .floating-cart-btn {*/
/*    bottom: calc(env(safe-area-bottom) + 20px);*/
/*  }*/
/*}*/
.disabled-btn { opacity: .5 !important; cursor: not-allowed !important; pointer-events: none !important; }
.card { background-color: lightgray; }
#pedido-en-curso-container .card { background-color: #fff; border-color: var(--color-border); }

/* Botón flotante del chat */
.msg-btn-field { position: fixed; bottom: 16px; right: 22px; z-index: 1050; }
#open-msg-btn {
  width: 55px; height: 55px; bottom: 16px; border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease-in-out;
}
#open-msg-btn:hover { transform: scale(1.1); }
.msg-box-field {
  position: fixed; bottom: 65px; right: 15px; left: 5px; width: 300px;
  max-height: 500px; display: flex; flex-direction: column;
  border-radius: 15px; overflow: hidden;
  animation: fadeInUp .3s ease-in-out;
}
.msg-box-field .card-header { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; font-weight: bold; font-size: 14px; }
#convo-field { overflow-y: auto; max-height: 350px; padding-right: 5px; }
.msg-box { margin-bottom: 12px; max-width: 85%; padding: 8px 12px; border-radius: 15px; font-size: 13px; word-wrap: break-word; }
.msg-left  { background: #f1f1f1; color: #333; align-self: flex-start; border-top-left-radius: 0; }
.msg-right { background: var(--color-primary); color: #fff; align-self: flex-end; border-top-right-radius: 0; }
.msg-box-field .card-footer { background: #f8f9fc; border-top: 1px solid #ddd; }
.msg-box-field textarea { border-radius: 10px 0 0 10px; }
.msg-box-field button[type="submit"] { border-radius: 0 10px 10px 0; }
#msg_count_unread { position: absolute; top: 8px; right: 8px; font-size: 11px; }

/* Precios con descuento */
.price-display .discounted-price { text-decoration: line-through; margin-right: 3px; color: red; }

/* ── Slide más vendidos ── */
#sold::-webkit-scrollbar { display: none; }
.sold-card {
  scroll-snap-align: start;
  flex: 0 0 130px;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.sold-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.13); }
.sold-card img { width: 100%; height: 90px; object-fit: cover; display: block; }
.sold-card-body { padding: 6px 8px 28px; }
.sold-card-body h6 { font-size: 12px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sold-add-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary, #D9A322), var(--color-primary-dark, #B08E1C));
  border: none; color: #fff; font-size: 18px; line-height: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb, 217,163,34), .4);
  transition: transform .15s;
}
.sold-add-btn:hover { transform: scale(1.15); }
/* Contenedor relativo para que el badge se posicione respecto a la imagen */
.menu-item-image {
  position: relative;
  overflow: hidden;
}

/* Estilo del badge de descuento */
.discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4757; /* Rojo llamativo */
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
/*  font-weight: bold;*/
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* Títulos de Categoría */
.category-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 25px 0 15px 10px;
  color: #333;
  border-left: 5px solid #ff4757;
  padding-left: 15px;
}

/* Grid de productos por sección */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
/* Contenedor del Slider de Ofertas */
.discount-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 15px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.discount-slider::-webkit-scrollbar {
  display: none; /* Ocultar barra */
}

/* Tarjeta Compacta */
.compact-card {
  flex: 0 0 140px; /* Ancho fijo para que entren varias en pantalla */
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compact-image-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
}

.compact-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-info {
  padding: 8px;
  text-align: center;
}

.compact-info h6 {
  font-size: 13px;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #333;
}

/* Precios en el Slider */
.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.old-price {
  font-size: 11px;
  text-decoration: line-through;
  color: #999;
}

.new-price {
  font-size: 14px;
  font-weight: bold;
  color: #2d3436;
}

/* Badge más pequeño para el slider */
.small-tag {
  top: 5px !important;
  left: 5px !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
}

.section-divider {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 30px 0;
}
.category-item img{
  width: 40px;
  border-radius: 50%;
}
.header{
  position: sticky; top: 0; z-index: 100;
/*      background: #fff; padding: 14px 16px;*/
      display: flex; align-items: center; gap: 12px;
      box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ════════════════════════════════════════════
   REDISEÑO PROFESIONAL — campaña cupones + carousel
   (2026-08-06) — consume tokens.css
════════════════════════════════════════════ */

/* ── Banner de campaña ── */
.campaign-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(78,115,223,.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.campaign-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(78,115,223,.6); }
.campaign-banner .cb-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.campaign-banner .campaign-text { flex: 1; min-width: 0; }
.campaign-banner .campaign-text .cb-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.campaign-banner .campaign-text .cb-sub { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.campaign-banner .campaign-chevron { font-size: 18px; opacity: .8; flex-shrink: 0; }

/* ── Carousel del hero ── */
.hero-carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 16px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
}
.hero-carousel .hero-slides { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-carousel .hero-slide {
  min-width: 100%;
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  padding: 0 46px;
}
.hero-carousel .hero-slide img.slide-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-carousel .hero-slide .slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(14,14,24,.82), rgba(14,14,24,.28));
}
.hero-carousel .hero-slide .slide-content { position: relative; z-index: 2; color: #fff; }
.hero-carousel .hero-slide .slide-content .slide-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .85;
}
.hero-carousel .hero-slide .slide-content .slide-title { font-size: 20px; font-weight: 800; margin: 2px 0; }
.hero-carousel .hero-slide .slide-content .slide-sub { font-size: 13px; opacity: .92; }
.hero-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.hero-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s; }
.hero-dots .dot.active { background: #fff; width: 20px; border-radius: 4px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border: none; }
.hero-nav.prev { left: 10px; } .hero-nav.next { right: 10px; }
.hero-nav {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ── Chips de categoría modernizados ── */
.categories-section .categories-scroll { display: flex; gap: 10px; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.categories-section .categories-scroll::-webkit-scrollbar { display: none; }
.categories-section .category-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 30px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13.5px; font-weight: 600; color: var(--color-text-muted);
  white-space: nowrap; cursor: pointer;
  transition: all .2s ease;
}
.categories-section .category-item.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px rgba(78,115,223,.6);
}

/* ── Cards de producto elevadas ── */
.product-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Slider de ofertas pulido ── */
.sold-wrapper { scrollbar-width: none; }
.sold-card {
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.14);
  border: 1px solid var(--color-border);
}

/* ── Badge de aviso flotante ── */
.promo-badge-float {
  position: fixed; right: 16px; bottom: 92px; z-index: 1045;
  max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  font-size: 13px;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all .35s ease;
}
.promo-badge-float.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
/* Cuando hay un pedido activo, subimos el badge de promo para no tapar la burbuja */
body.order-active .promo-badge-float { bottom: 152px; }
.promo-badge-float .pb-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.promo-badge-float.variant-gift .pb-icon { background: #fff3e0; }
.promo-badge-float.variant-star  .pb-icon { background: #e8f5e9; }
.promo-badge-float .pb-text { flex: 1; min-width: 0; }
.promo-badge-float .pb-text .pb-title { font-weight: 700; font-size: 13px; color: var(--color-text); line-height: 1.2; }
.promo-badge-float .pb-text .pb-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 1px; }
.promo-badge-float .pb-close {
  border: none; background: transparent; color: var(--color-text-light);
  font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1;
}

/* ── Modal informativo de la campaña ── */
.promo-modal-overlay {
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 520px) { .promo-modal-overlay { align-items: center; } }
.promo-modal {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: var(--color-surface); border-radius: 22px 22px 0 0;
  padding: 22px 22px 18px;
  animation: promoUp .3s ease;
}
@media (min-width: 520px) { .promo-modal { border-radius: 22px; } }
@keyframes promoUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.promo-modal header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.promo-modal header h2 { font-size: 17px; font-weight: 800; color: var(--color-text); margin: 0; }
.promo-modal .promo-close {
  border: none; background: var(--color-bg); width: 30px; height: 30px; border-radius: 50%;
  color: var(--color-text-muted); font-size: 15px; cursor: pointer; line-height: 1;
}
.promo-benefit {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); align-items: flex-start;
}
.promo-benefit .b-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--color-primary-50);
}
.promo-benefit h4 { font-size: 14px; font-weight: 700; margin: 0 0 3px; color: var(--color-text); }
.promo-benefit p { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.promo-cta {
  margin-top: 16px; width: 100%; border: none; border-radius: 30px;
  padding: 13px; font-weight: 700; font-size: 15px; cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}
.promo-cta.secondary { background: var(--color-bg); color: var(--color-text); }
.promo-code { font-weight: 800; letter-spacing: 1px; color: var(--color-primary); }

/* ══════════ ESCAPARATE: marquee, sucursales, testimonios, reveal ══════════ */
.spark-marquee {
  overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; padding: 8px 0; font-size: 13px; font-weight: 600;
}
.spark-marquee-track {
  display: inline-block; padding-left: 100%;
  animation: spark-marquee 22s linear infinite;
}
.spark-marquee-track span { margin: 0 14px; }
@keyframes spark-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.sx-section { padding: 18px 16px 6px; }
.sx-title {
  font-size: 17px; font-weight: 800; margin-bottom: 12px; color: var(--color-text);
  display: flex; align-items: center; gap: 8px;
}
.sx-sucursales {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sx-sucursales::-webkit-scrollbar, .sx-testimonios::-webkit-scrollbar { display: none; }
.sx-testimonios {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: mandatory; -webkit-overflow-scrolling: touch;
}
.sx-card {
  flex: 0 0 78%; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 14px; padding: 14px; min-height: 110px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 768px) { .sx-card { flex-basis: 30%; } }
.sx-card-ico { font-size: 26px; }
.sx-card-body h5 { margin: 0; font-size: 15px; font-weight: 700; }
.sx-card-body p { margin: 2px 0 6px; color: #6b7280; font-size: 13px; }
.sx-card-phone { color: var(--color-primary); font-weight: 600; font-size: 13px; text-decoration: none; }
.sx-card-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2px; }
.sx-card-stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
.sx-card-text { margin: 0; color: var(--color-text); font-size: 13.5px; line-height: 1.45; }
.sx-card-user { margin-top: auto; font-weight: 700; font-size: 12.5px; color: #555; }
.sx-empty, .sx-loading { color: #9ca3af; font-size: 13px; padding: 6px 2px; }

/* Desplegable de comentarios (Fase L2): el título es el toggle */
.sx-collapse-toggle.sx-title { margin-bottom: 0; cursor: pointer; color: var(--color-text); }
.sx-collapse-toggle.sx-title:hover { opacity: .85; }
.sx-collapse-toggle .sx-chevron { transition: transform .25s ease; }
.sx-collapse-toggle[aria-expanded="true"] .sx-chevron { transform: rotate(180deg); }
.sx-collapse-toggle + .collapse { margin-top: 12px; }

/* Aparición al entrar al viewport */
.sx-reveal, .sx-card { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.sx-reveal.sx-in, .sx-card.sx-in { opacity: 1; transform: translateY(0); }

/* Indicador de estado del local */
.estado-label { font-weight: 700; }
.estado-label.open   { color: #2e7d32; }
.estado-label.closed { color: #c62828; }
.estado-reopen {
  margin-top: 4px; font-size: 12px; font-weight: 600; color: #c62828;
  background: #fff3f3; padding: 2px 8px; border-radius: 999px;
}

/* ══════════ COMENTARIOS (testimonios) ══════════ */
.sx-comment-box {
  margin-top: 16px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 14px; padding: 14px;
}
.sx-comment-box h5 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.sx-stars-input { display: flex; gap: 4px; margin-bottom: 8px; }
.sx-star {
  background: none; border: none; font-size: 26px; color: #d1d5db; cursor: pointer; padding: 0;
}
.sx-star.on { color: #f59e0b; }
#testimonio-texto {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px;
  font-size: 14px; resize: vertical; font-family: inherit; box-sizing: border-box;
}
.sx-comment-send {
  margin-top: 8px; width: 100%; border: none; border-radius: 30px; padding: 11px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff;
}

/* ════════════════════════════════════════════
   REDISEÑO APP MÓVIL — storefront (2026-08-08)
   Unifica la paleta en DORADO → sobreescribe tokens.css
   solo en esta página (inicio.css no se carga en otras vistas)
╚════════════════════════════════════════════ */
:root{
  --color-primary:        #D9A322;
  --color-primary-dark:   #B08E1C;
  --color-primary-light:  #F0C75E;
  --color-primary-50:     #FFF7E0;
  --color-primary-rgb:    217, 163, 34;
  --color-text:           #1f2937;
  --color-text-muted:     #6b7280;
  --color-border:         #f0eef2;
  --shadow-sm: 0 2px 10px rgba(217, 163, 34, .10);
  --shadow-md: 0 12px 26px -10px rgba(15, 18, 25, .22);
  --radius-card: 16px;
}

/* ── Tipografía unificada de la página ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg, #fafafa);
}
input, button, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Header sticky estilo app nativa (dorado + glass) ── */
.header {
  position: sticky; top: 0; z-index: 1050;
  background: linear-gradient(135deg, var(--color-primary, #D9A322), var(--color-primary-dark, #B08E1C));
  color: #fff;
  padding: 10px 14px;
  box-shadow: 0 6px 18px -10px rgba(var(--color-primary-rgb, 217,163,34), .6);
  min-height: 56px;
  border: none;
}
.header .btn, .header .list-link { color: rgba(255,255,255,.95); }
.location-section { color: #fff; }
.location-section .delivery-to,
.location-section .address { color: rgba(255,255,255,.95); }

/* ── Chips de categoría: texto más legible ── */
.categories-section .category-item { font-size: 13.5px; }

/* ── Cards de producto: alineación y descricción clamp ── */
.product-grid .menu-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 18px -12px rgba(15, 18, 25, .10);
  padding: 12px;
  margin-bottom: 12px;
  gap: 12px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-grid .menu-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.menu-item-image, .menu-item-info, .menu-item-footer { text-align: left; }
.menu-item-image img { width: 84px; height: 84px; border-radius: 12px; }
.menu-item-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  color: var(--color-text-muted);
  font-size: 13.5px;
  margin: 0;
}
.menu-item-info h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text, #1f2937);
}
.menu-item-footer { margin-top: 8px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ── Barra flotante del carrito (app-like) ── */
.floating-cart-btn {
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 28px));
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary, #D9A322), var(--color-primary-dark, #B08E1C));
  box-shadow: 0 12px 28px -6px rgba(var(--color-primary-rgb, 217,163,34), .55);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
}
.floating-cart-btn #cart_count_btn {
  background: #fff; color: var(--color-primary, #D9A322);
  font-weight: 800;
  min-width: 24px; height: 24px; line-height: 24px;
  text-align: center; border-radius: 999px; padding: 0 7px;
}

/* ── Burbuja flotante de pedido activo (móvil) ── */
.order-fab {
  display: none;
  position: fixed;
  left: 14px; right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0));
  z-index: 1060; /* por encima del carrito (1000), promo (1045) y el footer móvil */
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 14px 30px -10px rgba(15, 18, 25, .25);
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
  text-decoration: none;
}
.order-fab .of-scroll { width: 100%; min-width: 0; }
.order-fab .of-track-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.order-fab .of-track-slides::-webkit-scrollbar { display: none; }
.order-fab .of-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 8px;
  cursor: pointer;
}
.order-fab .of-dots {
  display: flex; justify-content: center; gap: 6px;
  padding-top: 2px;
}
.order-fab .of-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #d1d5db; transition: all .2s ease;
}
.order-fab .of-dot.active { width: 18px; background: var(--color-primary); }
.order-fab .of-ico {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.order-fab .of-body { flex: 1; min-width: 0; }
.order-fab .of-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px;
}
.order-fab .of-label {
  font-size: 11px; font-weight: 700; white-space: nowrap; color: #fff;
  background: rgba(15, 18, 25, .08); padding: 2px 9px; border-radius: 999px;
}
.order-fab .of-track {
  display: block; margin-top: 6px; height: 6px;
  background: #eef0f4; border-radius: 999px; overflow: hidden;
}
.order-fab .of-fill { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.order-fab .of-meta { margin-top: 4px; align-items: center; }
.order-fab .of-total { font-size: 15px; color: var(--color-primary); }
.order-fab .of-chev { flex-shrink: 0; font-size: 18px; color: #9ca3af; font-style: normal; }

/* ══════════ ASISTENTE IA ══════════ */
.ai-fab {
  position: fixed; bottom: 160px; right: 22px; z-index: 1300; width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer;
  border: 2px solid #fff;
}
.ai-fab-ico { font-size: 28px; line-height: 1; }
/* Oculto por defecto; se muestra con la clase .ai-open (evita el bug del atributo hidden) */
.ai-widget {
  position: fixed; bottom: 230px; right: 22px; z-index: 1301; width: min(90vw, 340px);
  background: #fff; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.22); overflow: hidden;
  display: none; flex-direction: column; border: 1px solid #f0f0f0;
}
.ai-widget.ai-open { display: flex; }
.ai-widget-head {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
}
.ai-widget-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.ai-widget-body { padding: 12px; height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { max-width: 85%; border-radius: 12px; padding: 8px 11px; font-size: 13.5px; line-height: 1.4; }
.ai-bot { background: #f1f5f9; align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-user { background: var(--color-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-typing { color: #888; font-style: italic; }
.ai-widget-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; }
.ai-widget-form input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 20px; padding: 8px 12px; font-size: 13.5px;
}
.ai-widget-send {
  border: none; border-radius: 20px; padding: 0 14px; font-weight: 700; cursor: pointer;
  background: var(--color-primary); color: #fff;
}