/* =====================================================
   ElMenu.uy — CSS Cliente
   Inter font · Orange #F39C12 · Blue #059FE8
   ===================================================== */

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

:root {
  --orange:      #F39C12;
  --orange-dark: #d68910;
  --blue:        #059FE8;
  --blue-dark:   #0480be;
  --dark:        #1a1a2e;
  --darker:      #0f0f1a;
  --gray-bg:     #f7f8fb;
  --card-bg:     #ffffff;
  --text-main:   #1a1a2e;
  --text-muted:  #6c757d;
  --border:      #e5e7eb;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --shadow-md:   0 6px 28px rgba(0,0,0,.12);
  --transition:  all .22s ease;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-bg);
  color: var(--text-main);
  min-height: 100vh;
}

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

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar-cliente {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, var(--dark), #16213e);
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.navbar-cliente.scrolled {
  background: rgba(15,15,26,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar-cliente .container-fluid {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}


.nav-brand img {
  height: 64px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .nav-brand img {
    height: 46px;
    max-width: 155px;
  }
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-size: .87rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.nav-links a i { font-size: .9rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-nav-icon {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.05rem;
}
.btn-nav-icon:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.btn-login-nav {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-login-nav:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Selector de idioma */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 2px 4px;
}
.lang-flag {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}
.lang-flag:hover,
.lang-flag.lang-active {
  color: #fff;
  background: rgba(255,255,255,.22);
}
.lang-flag .flag-icon { font-size: 1rem; }

/* Avatar usuario */
.user-avatar-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}

/* Hamburgesa */
.btn-toggler {
  display: none;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}
.btn-toggler:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Menú móvil overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: linear-gradient(180deg, #16213e, #0f0f1a);
  z-index: 1049;
  padding: 16px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all .25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.nav-mobile-overlay.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-overlay a {
  color: rgba(255,255,255,.85);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.nav-mobile-overlay a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-mobile-divider { height: 1px; background: rgba(255,255,255,.1); margin: 6px 0; }
.lang-flag-mob {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: var(--transition);
}
.lang-flag-mob.lang-active { color: #fff; background: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero-section { margin-top: 64px; position: relative; }

.hero-slide-img,
.hero-bg-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.hero-no-slider {
  height: 460px;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
  z-index: 1;
}
.carousel-item { position: relative; }
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 24px;
}
.hero-no-slider .hero-content {
  position: absolute;
}
.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.05rem;
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  margin-bottom: 24px;
}
/* Search box */
.search-box-wrap {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 18px;
  max-width: 780px;
  margin: 0 auto;
}
.search-box-wrap .form-label {
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.search-box-wrap .form-select,
.search-box-wrap .form-control {
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.95);
  font-size: .88rem;
  height: 42px;
  padding: 0 12px;
  box-shadow: none;
}
.search-box-wrap .form-select:focus,
.search-box-wrap .form-control:focus {
  box-shadow: 0 0 0 3px rgba(243,156,18,.35);
  background: #fff;
}
.btn-search {
  height: 42px;
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-search:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Stats bar */
.stats-bar {
  background: var(--orange);
  padding: 14px 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: #fff;
}
.stat-icon { font-size: 1.5rem; line-height: 1; }
.stat-num  { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.stat-label{ font-size: .72rem; opacity: .88; text-transform: uppercase; letter-spacing: .5px; }

/* ══════════════════════════════════════════════
   FILTROS
══════════════════════════════════════════════ */
.filtros-section {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 64px;
  z-index: 100;
}
.filtros-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.filtros-inner::-webkit-scrollbar { display: none; }
.btn-filtro {
  white-space: nowrap;
  background: var(--gray-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-filtro.active,
.btn-filtro:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-filtro-cat {
  background: var(--gray-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-filtro-cat.active,
.btn-filtro-cat:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.divider-filtro {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   RESTAURANT GRID
══════════════════════════════════════════════ */
.section-main {
  padding: 32px 0 60px;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}
.section-title span {
  color: var(--orange);
}
.grid-restaurantes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
/* Restaurant Card */
.rest-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.rest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.rest-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}
.rest-card-body {
  padding: 14px;
}
.rest-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.rest-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: #fff;
}
.rest-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 3px;
}
.rest-city {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.rest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.badge-open  { background: #d1fae5; color: #065f46; font-size: .7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.badge-closed{ background: #fee2e2; color: #991b1b; font-size: .7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.badge-cat   { background: #ede9fe; color: #5b21b6; font-size: .7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.badge-del   { background: #dbeafe; color: #1e40af; font-size: .7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.rest-delivery-info {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rest-delivery-info i { color: var(--orange); }
.btn-ver-menu {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin-top: 10px;
  text-decoration: none;
}
.btn-ver-menu:hover { background: var(--orange-dark); color: #fff; }
/* Botón favorito flotante */
.btn-fav-card {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.9);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: .95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-fav-card.activo { color: #e53e3e; }
.btn-fav-card:hover  { transform: scale(1.1); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: .4; }
.empty-state h3   { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.empty-state p    { font-size: .9rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   LISTADO (Página del restaurante)
══════════════════════════════════════════════ */
.rest-header-bg {
  width: 100%;
  height: clamp(220px, 22vw, 360px);
  object-fit: cover;
  display: block;
}
.rest-header-info {
  background: var(--card-bg);
  padding: 16px;
  border-bottom: 1px solid var(--border);
}


.rest-header-logo {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  margin-top: -75px;
  position: relative;
  background: #fff;
}



.rest-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}
.rest-social a:hover { color: var(--orange); }
/* Tabs menú */
.menu-tabs {
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  position: sticky;
  top: 64px;
  z-index: 99;
}
.menu-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}
.menu-tab-btn.active,
.menu-tab-btn:hover { color: var(--orange); border-bottom-color: var(--orange); }
/* Categoria anchor */
.cat-section { margin-bottom: 28px; }
.cat-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}
/* Platillo card */
.plato-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 12px;
}
.plato-card:hover { box-shadow: var(--shadow-md); }
.plato-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 90px;
}
.plato-img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--gray-bg);
  display: block;
}
.badge-oferta {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--orange);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.plato-info { flex: 1; min-width: 0; }
.plato-nombre {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}
.plato-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plato-precio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.precio-actual {
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
}
.precio-antes {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn-agregar {
  background: var(--orange);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(243,156,18,.4);
}
.btn-agregar:hover { background: var(--orange-dark); transform: scale(1.08); }
/* Bebida card */
.bebida-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.bebida-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bebida-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}
.bebida-nombre { font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.bebida-precio { font-size: .9rem; font-weight: 800; color: var(--orange); }

/* ══════════════════════════════════════════════
   CARRITO FLOTANTE
══════════════════════════════════════════════ */
.cart-panel {
  position: fixed;
  right: -380px;
  top: 64px;
  bottom: 0;
  width: 360px;
  background: var(--card-bg);
  z-index: 1040;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.cart-panel.open { right: 0; }
.cart-header {
  background: var(--dark);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h5 { margin: 0; font-weight: 700; font-size: .95rem; }
.btn-close-cart {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-close-cart:hover { color: #fff; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--gray-bg);
  display: block;
}
.cart-encombolineal {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 18px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
  pointer-events: none;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-detail {
  font-size: .70rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 4px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.btn-qty {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-qty:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.qty-num {
  font-size: .85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
/* Botón eliminar ítem del carrito */
.cart-item-del {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 2px;
  flex-shrink: 0;
  transition: color .2s;
  align-self: flex-start;
  margin-top: 2px;
}
.cart-item-del:hover { color: #ef4444; }
.btn-remove-item {
  background: transparent;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: .85rem;
  padding: 4px;
}
.cart-footer {
  padding: 16px;
  border-top: 2px solid var(--border);
  flex-shrink: 0;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.cart-row.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.btn-checkout {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin-top: 12px;
}
.btn-checkout:hover { background: var(--orange-dark); }
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; }
/* Carrito toggle flotante */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--orange);
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(243,156,18,.5);
  z-index: 1035;
  transition: var(--transition);
}
.cart-fab:hover { transform: scale(1.1); background: var(--orange-dark); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53e3e;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ══════════════════════════════════════════════
   MODAL AUTH
══════════════════════════════════════════════ */
.modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-md);
}
.modal-header {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
.modal-title { font-weight: 700; }
.modal-header .btn-close { filter: invert(1); }
.btn-login-submit {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.btn-login-submit:hover { background: var(--orange-dark); }

/* ══════════════════════════════════════════════
   FAVORITOS
══════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--dark), #16213e);
  color: #fff;
  padding: 32px 0 24px;
  text-align: center;
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.page-header p  { opacity: .8; font-size: .9rem; }
.fav-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.fav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fav-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--gray-bg);
}
.fav-card-body { padding: 12px; }
.fav-card-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.btn-unfav {
  background: #fee2e2;
  color: #e53e3e;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-unfav:hover { background: #fecaca; }

/* ══════════════════════════════════════════════
   PEDIDOS
══════════════════════════════════════════════ */
.pedido-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border-left: 4px solid var(--border);
}
.pedido-card.estado-0  { border-left-color: #94a3b8; }
.pedido-card.estado-5  { border-left-color: var(--blue); }
.pedido-card.estado-10 { border-left-color: var(--orange); }
.pedido-card.estado-15 { border-left-color: #8b5cf6; }
.pedido-card.estado-20 { border-left-color: #10b981; }
.pedido-card.estado-99 { border-left-color: #e53e3e; }
.estado-badge {
  font-size: .73rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}
.eb-0  { background: #f1f5f9; color: #64748b; }
.eb-5  { background: #dbeafe; color: #1e40af; }
.eb-10 { background: #fef3c7; color: #92400e; }
.eb-15 { background: #ede9fe; color: #5b21b6; }
.eb-20 { background: #d1fae5; color: #065f46; }
.eb-99 { background: #fee2e2; color: #991b1b; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer-main {
  background: var(--darker);
  color: rgba(255,255,255,.75);
  padding: 40px 0 20px;
}
.footer-brand { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.footer-desc  { font-size: .82rem; line-height: 1.6; opacity: .7; }
.footer-title { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-links a:hover { color: var(--orange); }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon:hover { background: var(--orange); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 28px;
  font-size: .78rem;
  opacity: .6;
  text-align: center;
}

/* ══════════════════════════════════════════════
   DIRECCIONES
══════════════════════════════════════════════ */
.dir-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.dir-card.principal { border-color: var(--orange); }
.dir-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.dir-etiqueta { font-weight: 700; font-size: .9rem; }
.badge-principal {
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.dir-texto { font-size: .83rem; color: var(--text-muted); }
.dir-acciones { display: flex; gap: 6px; margin-top: 8px; }
.btn-dir-accion {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.btn-dir-accion:hover { background: var(--border); color: var(--text-main); }
.btn-dir-accion.danger:hover { background: #fee2e2; color: #e53e3e; border-color: #fca5a5; }

/* ══════════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════════ */
.checkout-radio-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.checkout-radio {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
}
.checkout-radio.selected {
  border-color: var(--orange);
  background: #fff7eb;
  color: var(--orange);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .btn-toggler { display: flex; }
}
@media (max-width: 767px) {
  .hero-slide-img, .hero-bg-img, .hero-no-slider { height: 360px; }
  .hero-content h1 { font-size: 1.5rem; }
  .search-box-wrap { padding: 14px; }
  .cart-panel { width: 100%; right: -100%; }
  .grid-restaurantes { grid-template-columns: 1fr; }
  .cart-fab { bottom: 16px; right: 16px; }
  .plato-card { flex-direction: row; }
  .plato-img-wrap, .plato-img { width: 78px; height: 78px; }
}
@media (max-width: 479px) {
  .filtros-inner { gap: 7px; }
  .btn-filtro, .btn-filtro-cat { padding: 6px 12px; font-size: .78rem; }
}





/* ══════════════════════════════════════════════
   BADGES HORARIO — estados semáforo
══════════════════════════════════════════════ */
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
/* Amarillo: cierra en ≤ 50 min */
.badge-open.badge-warning-close {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}
/* Rojo: cierra en ≤ 15 min */
.badge-open.badge-danger-close {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  animation: pulsar-badge 1.4s ease-in-out infinite;
}
/* Azul: abre pronto (≤ 2h) */
.badge-pronto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-closed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
@keyframes pulsar-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* ══════════════════════════════════════════════
   DIRECCIÓN EN TARJETA Y PÁGINA
══════════════════════════════════════════════ */
.rest-address {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.rest-dir-link a:hover { color: var(--orange) !important; }

/* ══════════════════════════════════════════════
   BOTÓN VER HORARIOS
══════════════════════════════════════════════ */
.btn-ver-horarios {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ver-horarios:hover {
  background: var(--gray-bg);
  border-color: var(--orange);
  color: var(--orange);
}

/* ══════════════════════════════════════════════
   ALERTA CERRADO en listado.php
══════════════════════════════════════════════ */
.alerta-cerrado {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .83rem;
  color: #664d03;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* ══════════════════════════════════════════════
   BOTÓN AGREGAR BLOQUEADO
══════════════════════════════════════════════ */
.btn-agregar-bloq {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: .75;
}
.btn-agregar-bloq:hover { transform: none !important; }

/* ══════════════════════════════════════════════
   MODAL HORARIOS SEMANA
══════════════════════════════════════════════ */
.modal-horarios-content {
  border-radius: 18px;
  overflow: hidden;
  border: none;
}
.modal-horarios-header {
  background: linear-gradient(135deg, var(--dark), #16213e);
  color: #fff;
  border-bottom: none;
  padding: 16px 20px;
}
.horarios-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.horario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  transition: background .15s;
}
.horario-item:last-child { border-bottom: none; }
.horario-item.horario-hoy {
  background: #fff7eb;
}
.horario-dia {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.horario-tiempo {
  font-size: .84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.horario-cerrado {
  color: #e53e3e;
  font-weight: 700;
}
.badge-hoy {
  background: var(--orange);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: .4px;
}
.badge-cruzamedia {
  background: #e0f2fe;
  color: #0369a1;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  title: "Cruza medianoche";
}
.horario-estado-actual {
  padding: 12px 20px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   BOTÓN GEOLOCALIZAR
══════════════════════════════════════════════ */
.btn-geolocate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-geolocate:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

/* Alerta geo */
.alerta-geo {
  display: flex;
  align-items: center;
  background: #eff6ff;
  border-bottom: 2px solid #3b82f6;
  padding: 10px 24px;
  font-size: .87rem;
  color: #1d4ed8;
  font-weight: 600;
}
.btn-close-geo {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1d4ed8;
  font-size: .9rem;
  padding: 2px 6px;
}

/* Spinner animación */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .7s linear infinite; }

/* ══════════════════════════════════════════════
   CARRITO NAVBAR BADGE
══════════════════════════════════════════════ */
.cart-nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e53e3e;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   OVERLAY OSCURO PANEL CARRITO MÓVIL
══════════════════════════════════════════════ */
#cartOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
  display: none;
  backdrop-filter: blur(1px);
}
#cartOverlay.open { display: block; }


/* ── Badge Combo pequeño (tab Platos) ───────────────── */
.plato-img-wrap { position: relative; }
.badge-combo-img {
  position: absolute;
  bottom: 4px;
  left: 4px;
  height: 32px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
/* ── Badge Combo overlay completo (tab Combos) ──────── */
.badge-combo-overlay {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 10px;
  opacity: .88;
}

/* ── SUPER OFERTA badge ─────────────────────────────── */
.badge-super-oferta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--orange), #e74c3c);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 0;
  text-align: center;
  border-radius: 10px 10px 0 0;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ══════════════════════════════════════════════
   CHECKOUT MODAL — secciones dinámicas
══════════════════════════════════════════════ */
.checkout-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.checkout-section:last-child { border-bottom: none; }
.checkout-section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.checkout-radio-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}
.checkout-radio {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
}
.checkout-radio:hover  { border-color: var(--blue); color: var(--blue); }
.checkout-radio.selected { border-color: var(--blue); background: rgba(5,159,232,.07); color: var(--blue); }

.checkout-envio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 8px 10px;
  background: #f0f9ff;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
}

.checkout-resumen {
  padding: 14px 16px;
  background: var(--gray-bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.checkout-resumen-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Transferencia info box */
.transferencia-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .82rem;
}
.transferencia-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.transferencia-row:last-child { border-bottom: none; }

/* Alert pedido programado */
.alert-programado {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Cupón aplicado */
.cupon-result {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   MODAL OPCIONES — estilo app
══════════════════════════════════════════════ */

/* Dialog sin margin lateral en móvil */
.modal-opc-dialog {
  margin: 0 auto;
  max-width: 520px;
}
@media (max-width: 575px) {
  .modal-opc-dialog {
    margin: auto;
    max-height: 100%;
  }
}

.modal-opc-content {
  border-radius: 18px;
  overflow: hidden;
  border: none;
  box-shadow: 0 16px 60px rgba(0,0,0,.28);
}

/* ── Hero imagen ── */
.opc-hero {
  position: relative;
  height: 230px;
  background: #1a1a2e;
  overflow: hidden;
  flex-shrink: 0;
}
.opc-hero.opc-no-img {
  height: 80px;
}
.opc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.opc-no-img .opc-hero-img { display: none; }

/* Gradiente oscuro al fondo del hero */
.opc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.10) 55%, transparent 100%);
}
.opc-no-img::after { display: none; }

/* Botón cerrar hero */
.opc-hero-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: background .2s;
}
.opc-hero-close:hover { background: rgba(0,0,0,.7); }

/* Título sobre imagen */
.opc-hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 14px 16px 14px;
}
.opc-hero-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.opc-hero-rest {
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  margin-top: 2px;
}
.opc-no-img .opc-hero-footer {
  position: static;
  padding: 14px 16px 10px;
}
.opc-no-img .opc-hero-title { color: var(--text-main); text-shadow: none; }
.opc-no-img .opc-hero-rest  { color: var(--text-muted); }

/* ── Cuerpo scrollable ── */
.opc-body {
  overflow-y: auto;
  max-height: 55vh;
  background: #fff;
}

/* ── Sección combo ── */
.opc-section-combo {
  border-bottom: 8px solid var(--gray-bg);
}

.opc-combo-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  background: #fff;
}
.opc-encombolineal-img {
  height: 22px;
  width: auto;
}
.opc-combo-title-text {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.opc-combo-count-badge {
  background: #059FE8;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ── Grupo de combo ── */
.opc-group {
  padding: 0 16px 6px;
  margin-bottom: 4px;
  transition: background .2s;
}
.opc-group-error {
  background: rgba(239,68,68,.06);
  border-radius: var(--radius-sm);
  animation: shake .4s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.opc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.opc-group-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-main);
}
.opc-badge-required {
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.opc-badge-optional {
  background: var(--gray-bg);
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Opción de combo (radio/checkbox) ── */
.opc-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  cursor: pointer;
  transition: background .15s;
}
.opc-option-row:last-child { border-bottom: none; }
.opc-option-row:hover { background: rgba(5,159,232,.04); border-radius: 6px; }

.opc-input { display: none; }

/* Custom radio/checkbox circle */
.opc-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
  color: transparent;
  font-size: .75rem;
}
.opc-input:checked + .opc-option-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.opc-option-label {
  flex: 1;
  font-size: .9rem;
  color: var(--text-main);
}
.opc-option-price {
  font-size: .82rem;
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Sección extras ── */
.opc-section-extras {
  padding: 0 0 8px;
}
.opc-extras-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-top: 8px solid var(--gray-bg);
}
.opc-extras-icon { color: var(--orange); font-size: 1rem; }
.opc-extras-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ── Extra row ── */
.opc-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .15s;
}
.opc-extra-row:last-child { border-bottom: none; }
.opc-extra-row.selected { background: rgba(5,159,232,.05); }
.opc-extra-info { flex: 1; }
.opc-extra-name { font-size: .9rem; color: var(--text-main); display: block; }
.opc-extra-price { font-size: .82rem; color: var(--blue); font-weight: 600; }

/* Toggle button para extras */
.opc-extra-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all .18s;
}
.opc-extra-toggle.active {
  background: var(--orange);
  color: #fff;
}
.opc-extra-toggle:hover { transform: scale(1.1); }

/* ── Sticky footer ── */
.opc-sticky-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.opc-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.opc-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-main);
  transition: all .18s;
}
.opc-qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.opc-qty-val {
  font-size: 1rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.opc-agregar-btn {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .2s, transform .15s;
}
.opc-agregar-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.opc-btn-total {
  background: rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .85rem;
  margin-left: 4px;
}

/* ══════════════════════════════════════════════
   BANNER FLOTANTE SEGUIMIENTO
══════════════════════════════════════════════ */
.seg-flotante-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.seg-flotante-bar.visible {
  transform: translateY(0);
}
.seg-flotante-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 10px;
  max-width: 900px;
  margin: 0 auto;
}
.seg-flotante-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.seg-flotante-icon {
  font-size: 1.3rem;
  color: var(--orange);
  flex-shrink: 0;
  animation: pulse-icon 2s infinite;
}
@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.seg-flotante-title {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-flotante-status {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-flotante-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.seg-flotante-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.seg-flotante-btn:hover { background: var(--orange-dark); color: #fff; }
.seg-flotante-close {
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,.7);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  transition: background .2s;
}
.seg-flotante-close:hover { background: rgba(255,255,255,.25); color: #fff; }

.seg-flotante-cancel {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.5);
  border-radius: 6px;
  color: #fca5a5;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
}
.seg-flotante-cancel:hover { background: rgba(239,68,68,.35); color: #fff; }

/* ── Resumen checkout mejorado ── */
.checkout-resumen-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: .87rem;
}
.checkout-resumen-qty {
  font-weight: 700;
  color: var(--blue);
}
.checkout-resumen-detalle {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.checkout-resumen-sep {
  border-top: 1px dashed var(--border);
  margin: 8px 0;
}
.checkout-resumen-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  padding: 2px 0;
}
.checkout-resumen-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}

/* Opciones modal (legacy, still used elsewhere) */
.opc-section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.opc-section:last-child { border-bottom: none; }
.opc-section-header {
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); margin-bottom: 10px;
  display: flex; align-items: center;
}
.opc-check { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.opc-check:last-child { border-bottom: none; }
.opc-combo-group { background: var(--gray-bg); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; }

/* ══════════════════════════════════════════════
   SEGUIMIENTO — Página tracking
══════════════════════════════════════════════ */
.seg-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.seg-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.seg-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.seg-step:last-child { padding-bottom: 0; }
.seg-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}
.seg-step:last-child::before { display: none; }
.seg-step.active::before { background: #059FE8; }

.seg-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: var(--transition);
}

.seg-step.current .seg-step-dot {
  box-shadow: 0 0 0 4px rgba(5,159,232,.2);
}

.seg-step-info {
  flex: 1;
  padding-top: 4px;
}

/* Botón copiar */
.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Spin animation (actualizado) */
.spin-anim {
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════
   MEJORAS v9.1 — Countdown, galería, encombolineal
══════════════════════════════════════════════ */

/* ── Countdown timer dentro del badge oferta ─── */
.badge-oferta-timer {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .92;
  line-height: 1.3;
  margin-top: 1px;
}

/* ── Countdown de oferta junto al precio ─────── */
.oferta-countdown {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: #059FE8;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: .03em;
  vertical-align: middle;
  white-space: nowrap;
  transition: background .3s;
}
.oferta-countdown.urgente {
  background: #ef4444;
  animation: pulsaRojo .8s ease-in-out infinite;
}
@keyframes pulsaRojo {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

/* ── EnComboLineal junto al título ───────────── */
.encombolineal-title-img {
  height: 18px !important;
  max-height: 18px !important;
  width: auto !important;
  max-width: 90px !important;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

/* ── badge-combo-img: encombolineal.png en imagen */
.badge-combo-img {
  max-width: 68px;
  height: 28px;
}

/* ── Galería de thumbnails en modal opciones ─── */
.opc-gallery-thumbs {
  display: none;
  gap: 6px;
  padding: 8px 12px;
  background: #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
}
.opc-gallery-thumbs::-webkit-scrollbar { display: none; }
.opc-gallery-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 2.5px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.opc-gallery-thumb:hover { transform: scale(1.05); }
.opc-gallery-thumb.active { border-color: var(--orange); }
.opc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.opc-hero-combo-badge{
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 7;
  height: 110px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.40));
  pointer-events: none;
}


@media (max-width: 575px){
  .opc-hero-combo-badge{
    top: 8px;
    left: 8px;
    height: 46px;
    max-width: 150px;
  }
}



/* ===== Modal opciones producto ===== */
.modal-opc-dialog{
    max-width: 460px;
}

.modal-opc-content{
    border: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.22) !important;
}

/* Hero */
.opc-hero{
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #111;
}

.opc-hero-img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* botón cerrar */
.opc-hero-close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay texto hero */
.opc-hero-footer{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05));
    color: #fff;
    z-index: 2;
}

.opc-hero-title{
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.opc-hero-rest{
    font-size: .92rem;
    opacity: .9;
    margin-top: 2px;
}

/* galería miniaturas */
.opc-gallery-thumbs{
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    scrollbar-width: thin;
}

.opc-gallery-thumbs::-webkit-scrollbar{
    height: 6px;
}

.opc-gallery-thumbs::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.18);
    border-radius: 999px;
}

.opc-gallery-thumbs img{
    width: 86px !important;
    height: 66px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 12px !important;
    border: 2px solid #e9ecef !important;
    background: #f5f5f5 !important;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.opc-gallery-thumbs img:hover{
    transform: translateY(-1px);
}

.opc-gallery-thumbs img.active{
    border-color: #f6a100 !important;
    box-shadow: 0 0 0 3px rgba(246,161,0,.16) !important;
}

/* cuerpo */
.opc-body{
    max-height: 48vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
}

/* footer sticky */
.opc-sticky-footer{
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #fff;
    border-top: 1px solid #ececec;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.opc-qty-row{
    display: flex;
    align-items: center;
    gap: 10px;
}

.opc-qty-btn{
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opc-qty-val{
    min-width: 20px;
    text-align: center;
    font-weight: 800;
}

.opc-agregar-btn{
    flex: 1;
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    background: linear-gradient(135deg, #f6a100, #ffba1a);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.opc-btn-total{
    background: rgba(255,255,255,.18);
    padding: 4px 10px;
    border-radius: 999px;
}

/* seguridad extra contra imágenes descontroladas */
#modalOpciones img{
    max-width: 100%;
}

/* móvil */
@media (max-width: 768px){
    .modal-opc-dialog{
        max-width: 100%;
        margin: .5rem;
    }

    .opc-hero{
        height: 230px;
    }

    .opc-hero-title{
        font-size: 1.3rem;
    }

    .opc-gallery-thumbs img{
        width: 74px !important;
        height: 56px !important;
        min-width: 74px !important;
        max-width: 74px !important;
    }

    .opc-body{
        max-height: 44vh;
    }
}


@media (max-width: 767px) {
  .nav-brand img {
    height: 46px;
    max-width: 155px;
  }

  .rest-header-logo {
    width: 78px;
    height: 78px;
    margin-top: -39px;
  }
}

/* =========================================================
   BARRA FLOTANTE DE SEGUIMIENTO — versión limpia y estable
   Desktop + tablet + móvil
========================================================= */

.seg-flotante-bar{
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 12px !important;
  transform: translateX(-50%) !important;
  width: min(1100px, calc(100vw - 64px)) !important;
  z-index: 1060 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.seg-flotante-inner{
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 14px 18px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 10% 50%, rgba(245,156,18,.13), transparent 24%),
    radial-gradient(circle at 90% 50%, rgba(5,159,232,.10), transparent 24%),
    linear-gradient(135deg, rgba(8,16,40,.98), rgba(4,12,34,.98)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 24px rgba(5,159,232,.08),
    0 0 20px rgba(243,156,18,.08) !important;
  overflow: hidden !important;
}

.seg-flotante-left{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.seg-flotante-icon{
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f59c12, #ffb224) !important;
  color: #fff !important;
  font-size: 1.2rem !important;
  box-shadow:
    0 10px 20px rgba(243,156,18,.24),
    inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.seg-flotante-text{
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.seg-flotante-title{
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.seg-flotante-status{
  font-size: .94rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.seg-flotante-meta{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.seg-float-chip{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: .73rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.seg-float-chip.stage{
  background: linear-gradient(135deg, rgba(245,156,18,.18), rgba(245,156,18,.08)) !important;
  color: #fff2d7 !important;
  border: 1px solid rgba(245,156,18,.22) !important;
}

.seg-float-chip.timer{
  background: linear-gradient(135deg, rgba(5,159,232,.18), rgba(5,159,232,.08)) !important;
  color: #def3ff !important;
  border: 1px solid rgba(5,159,232,.24) !important;
}

.seg-float-chip.timer.timer-warn{
  background: linear-gradient(135deg, rgba(245,166,35,.24), rgba(245,166,35,.10)) !important;
  color: #fff0cc !important;
  border: 1px solid rgba(245,166,35,.30) !important;
}

.seg-float-chip.timer.timer-danger{
  background: linear-gradient(135deg, rgba(220,53,69,.26), rgba(220,53,69,.12)) !important;
  color: #fff2f2 !important;
  border: 1px solid rgba(255,107,107,.34) !important;
  animation: segTimerPulse 1.2s infinite;
}

@keyframes segTimerPulse{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.04); }
}

.seg-flotante-progress-wrap{
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px !important;
}

.seg-flotante-progress-track{
  width: 100% !important;
  max-width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.10) !important;
}

.seg-flotante-progress-bar{
  max-width: 100% !important;
}

.seg-flotante-steps{
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.seg-flotante-step{
  font-size: .64rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.seg-flotante-actions{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin-left: 8px !important;
}

.seg-flotante-btn,
.seg-flotante-cancel{
  min-height: 42px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

.seg-flotante-close{
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 14px !important;
}

body.seg-flotante-visible{
  padding-bottom: 112px !important;
}

/* Evita una franja rara debajo del footer sin tocar el fondo global */
footer,
.site-footer,
.footer,
.footer-area,
.footer-dark{
  margin-bottom: 0 !important;
}

.footer-bottom,
.copyright,
.bottom-footer,
.sub-footer{
  padding-bottom: 18px !important;
}

@media (max-width: 991px){
  .seg-flotante-bar{
    width: calc(100vw - 24px) !important;
    bottom: 10px !important;
  }

  .seg-flotante-inner{
    padding: 12px 14px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  .seg-flotante-title{
    font-size: .98rem !important;
  }

  .seg-flotante-status{
    font-size: .88rem !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    padding: 10px 12px !important;
    font-size: .78rem !important;
  }

  body.seg-flotante-visible{
    padding-bottom: 122px !important;
  }
}

@media (max-width: 767px){
  .seg-flotante-bar{
    width: calc(100vw - 12px) !important;
    bottom: 8px !important;
  }

  .seg-flotante-inner{
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 12px !important;
  }

  .seg-flotante-left{
    align-items: flex-start !important;
    width: 100% !important;
  }

  .seg-flotante-icon{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 13px !important;
    font-size: 1.05rem !important;
  }

  .seg-flotante-title{
    font-size: .92rem !important;
  }

  .seg-flotante-status{
    font-size: .84rem !important;
    line-height: 1.25 !important;
  }

  .seg-float-chip{
    font-size: .69rem !important;
    padding: 5px 8px !important;
  }

  .seg-flotante-step{
    font-size: .56rem !important;
  }

  .seg-flotante-actions{
    display: grid !important;
    grid-template-columns: 1fr 1fr 42px !important;
    gap: 8px !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    width: 100% !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: .75rem !important;
  }

  .seg-flotante-close{
    width: 42px !important;
    height: 40px !important;
  }

  body.seg-flotante-visible{
    padding-bottom: 168px !important;
  }
}

@media (max-width: 430px){
  .seg-flotante-title{
    font-size: .88rem !important;
  }

  .seg-flotante-status{
    font-size: .80rem !important;
  }

  .seg-float-chip{
    font-size: .64rem !important;
    padding: 5px 7px !important;
  }

  .seg-flotante-step{
    font-size: .49rem !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    font-size: .69rem !important;
    min-height: 38px !important;
  }

  .seg-flotante-close{
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }
}

/* =========================================================
   FIX FINAL — barra seguimiento full bottom + footer correcto
   - Barra ocupa todo el inferior
   - El footer acompaña y no deja franja blanca
   - Responsive limpio
========================================================= */

.seg-flotante-bar{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 1060 !important;
  display: none;
  padding: 0 14px 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

.seg-flotante-inner{
  position: relative !important;
  width: min(1380px, calc(100vw - 28px)) !important;
  max-width: min(1380px, calc(100vw - 28px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 14px 18px !important;
  border-radius: 22px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(245,156,18,.16), transparent 24%),
    radial-gradient(circle at 88% 50%, rgba(5,159,232,.14), transparent 24%),
    linear-gradient(135deg, rgba(7,13,34,.98), rgba(4,12,34,.99) 52%, rgba(6,18,42,.98)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow:
    0 20px 48px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 24px rgba(5,159,232,.08),
    0 0 24px rgba(243,156,18,.08) !important;
  overflow: hidden !important;
}

.seg-flotante-left{
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.seg-flotante-icon{
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #f59c12, #ffb224) !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  box-shadow:
    0 10px 22px rgba(243,156,18,.24),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.seg-flotante-text{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

.seg-flotante-title{
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  color: #fff !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.seg-flotante-status{
  font-size: .93rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
}

.seg-flotante-meta{
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}

.seg-float-chip{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: .73rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.seg-flotante-progress-wrap{
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 10px !important;
}

.seg-flotante-progress-track{
  width: 100% !important;
  max-width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
}

.seg-flotante-progress-bar{
  max-width: 100% !important;
}

.seg-flotante-steps{
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.seg-flotante-step{
  font-size: .63rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.seg-flotante-actions{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin-left: 8px !important;
}

.seg-flotante-btn,
.seg-flotante-cancel{
  min-height: 42px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.seg-flotante-close{
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 14px !important;
}

body.seg-flotante-visible{
  padding-bottom: 0 !important;
}

body.seg-flotante-visible .footer-main{
  padding-bottom: 150px !important;
}

body.seg-flotante-visible .footer-bottom{
  padding-bottom: 20px !important;
}

@media (max-width: 1199px){
  .seg-flotante-inner{
    width: calc(100vw - 22px) !important;
    max-width: calc(100vw - 22px) !important;
  }
}

@media (max-width: 991px){
  .seg-flotante-bar{
    padding: 0 10px 10px !important;
  }

  .seg-flotante-inner{
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  .seg-flotante-title{
    font-size: .97rem !important;
  }

  .seg-flotante-status{
    font-size: .87rem !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    font-size: .78rem !important;
    padding: 10px 12px !important;
  }

  body.seg-flotante-visible .footer-main{
    padding-bottom: 165px !important;
  }
}

@media (max-width: 767px){
  .seg-flotante-bar{
    padding: 0 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .seg-flotante-inner{
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .seg-flotante-left{
    align-items: flex-start !important;
    width: 100% !important;
  }

  .seg-flotante-icon{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 13px !important;
    font-size: 1.02rem !important;
  }

  .seg-flotante-title{
    font-size: .91rem !important;
  }

  .seg-flotante-status{
    font-size: .83rem !important;
    line-height: 1.24 !important;
  }

  .seg-float-chip{
    font-size: .68rem !important;
    padding: 5px 8px !important;
  }

  .seg-flotante-step{
    font-size: .55rem !important;
  }

  .seg-flotante-actions{
    display: grid !important;
    grid-template-columns: 1fr 1fr 42px !important;
    gap: 8px !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    width: 100% !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: .74rem !important;
  }

  .seg-flotante-close{
    width: 42px !important;
    height: 40px !important;
  }

  body.seg-flotante-visible .footer-main{
    padding-bottom: 190px !important;
  }
}

@media (max-width: 430px){
  .seg-flotante-title{
    font-size: .87rem !important;
  }

  .seg-flotante-status{
    font-size: .79rem !important;
  }

  .seg-float-chip{
    font-size: .64rem !important;
    padding: 5px 7px !important;
  }

  .seg-flotante-step{
    font-size: .49rem !important;
  }

  .seg-flotante-btn,
  .seg-flotante-cancel{
    font-size: .68rem !important;
    min-height: 38px !important;
  }

  .seg-flotante-close{
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  body.seg-flotante-visible .footer-main{
    padding-bottom: 202px !important;
  }
}

/* =========================================================
   FIX DEFINITIVO — logo encabezado restaurante responsive
   Este bloque va al FINAL para pisar reglas anteriores
========================================================= */

.rest-header-logo{
  width: 150px !important;
  height: 150px !important;
  border-radius: 24px !important;
  object-fit: cover !important;
  border: 5px solid #fff !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.16) !important;
  margin-top: -75px !important;
  position: relative !important;
  background: #fff !important;
}

@media (max-width: 991px){
  .rest-header-logo{
    width: 150px !important;
    height: 118px !important;
    margin-top: -59px !important;
    border-radius: 20px !important;
    border-width: 4px !important;
  }
}

@media (max-width: 767px){
  .rest-header-logo{
    width: 102px !important;
    height: 102px !important;
    margin-top: -51px !important;
    border-radius: 18px !important;
    border-width: 4px !important;
  }
}

@media (max-width: 479px){
  .rest-header-logo{
    width: 88px !important;
    height: 88px !important;
    margin-top: -44px !important;
    border-radius: 16px !important;
    border-width: 3px !important;
  }
}

/* =========================================================
   BARRA DE SEGUIMIENTO — minimal, limpia y táctil
========================================================= */

.seg-flotante-bar{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1065 !important;
  display: none;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom)) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.seg-flotante-inner{
  position: relative !important;
  width: min(1180px, calc(100vw - 20px)) !important;
  max-width: min(1180px, calc(100vw - 20px)) !important;
  margin: 0 auto !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(7,13,34,.96) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.32) !important;
  overflow: hidden !important;
}

.seg-flotante-hitarea{
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  color: #fff !important;
  text-decoration: none !important;
}

.seg-flotante-top{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.seg-flotante-title{
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.72) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.seg-flotante-status{
  font-size: .92rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
}

.seg-flotante-time{
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}

.seg-flotante-time.timer-warn{
  color: #facc15;
}

.seg-flotante-time.timer-danger{
  color: #f87171;
}

.seg-flotante-progress-wrap{
  width: 100% !important;
  margin-top: 10px !important;
}

.seg-flotante-progress-track{
  width: 100% !important;
  height: 4px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.16) !important;
  border: none !important;
}

.seg-flotante-progress-bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59c12 0%, #08bff0 60%, #22c55e 100%) !important;
  transition: width .35s ease;
}

.seg-flotante-close{
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255,255,255,.72) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: none !important;
}

.seg-flotante-close:hover{
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

body.seg-flotante-visible{
  padding-bottom: 78px !important;
}

@media (max-width: 767px){
  .seg-flotante-bar{
    padding: 0 8px calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .seg-flotante-inner{
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  .seg-flotante-top{
    gap: 6px;
  }

  .seg-flotante-title{
    width: 100%;
    font-size: .76rem !important;
  }

  .seg-flotante-status{
    font-size: .84rem !important;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .seg-flotante-time{
    font-size: .76rem;
  }

  .seg-flotante-progress-wrap{
    margin-top: 8px !important;
  }

  .seg-flotante-close{
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
  }

  body.seg-flotante-visible{
    padding-bottom: 74px !important;
  }
}

/* =========================================================
   AJUSTE FINAL — recuperar textos bajo la barra y no romper footer
========================================================= */

.seg-flotante-steps{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  gap: 6px !important;
  margin-top: 7px !important;
  width: 100% !important;
}

.seg-flotante-step{
  font-size: .64rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  color: rgba(255,255,255,.45) !important;
  white-space: nowrap !important;
}

.seg-flotante-step.is-active{
  color: #ffffff !important;
}

.seg-flotante-step.is-done{
  color: #b8ecff !important;
}

.seg-flotante-progress-wrap{
  margin-top: 9px !important;
}

/* La barra no debe empujar ni romper el footer */
body.seg-flotante-visible{
  padding-bottom: 86px !important;
}

footer,
.site-footer,
.footer,
.footer-area,
.footer-dark,
.footer-main,
.footer-bottom,
.copyright,
.bottom-footer,
.sub-footer{
  margin-bottom: 0 !important;
  padding-bottom: initial !important;
}

/* Solo reservamos espacio visual al final del contenido */
@media (max-width: 767px){
  .seg-flotante-step{
    font-size: .54rem !important;
  }

  body.seg-flotante-visible{
    padding-bottom: 82px !important;
  }
}

/* =========================================================
   FIX REAL DEL INFERIOR — el espacio de la barra sale del footer,
   no del body blanco
========================================================= */

body.seg-flotante-visible{
  padding-bottom: 0 !important;
}

body.seg-flotante-visible footer.footer-main{
  padding-bottom: 96px !important;
  margin-bottom: 0 !important;
  background: #05081d !important;
}

body.seg-flotante-visible footer.footer-main .footer-bottom{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.seg-flotante-visible footer.footer-main .container{
  margin-bottom: 0 !important;
}

@media (max-width: 767px){
  body.seg-flotante-visible footer.footer-main{
    padding-bottom: 88px !important;
  }
}

/* =========================================================
   FIX SEGURO — no pintar el body, solo reservar espacio en footer
========================================================= */

/* Nunca cambiar el fondo general del body por la barra */
body.seg-flotante-visible{
  background: unset !important;
}

/* El contenido principal mantiene su fondo normal */
main,
.page-content,
.site-content,
.content-wrap,
.listado-wrap,
.section-menu,
.menu-page{
  background: transparent !important;
}

/* Solo el footer absorbe el espacio de la barra */
body.seg-flotante-visible footer.footer-main{
  padding-bottom: 96px !important;
  margin-bottom: 0 !important;
}

body.seg-flotante-visible footer.footer-main .footer-bottom{
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

@media (max-width: 767px){
  body.seg-flotante-visible footer.footer-main{
    padding-bottom: 88px !important;
  }
}


/* =========================================================
   FIX HERO INDEX2 — pisa cliente.css global
========================================================= */
.hero-section .hero-content{
  position:absolute !important;
  inset:0 !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  z-index:3 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:34px 16px 108px !important;
  width:100% !important;
  text-align:center !important;
}

.hero-section .hero-inner{
  width:100% !important;
  max-width:1120px !important;
  margin:0 auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.hero-section .hero-search-wrap{
  width:100% !important;
  max-width:980px !important;
  margin:0 auto !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
}

.hero-section .hero-search-wrap > .search-box-wrap{
  width:100% !important;
  max-width:980px !important;
  margin:0 auto !important;
  background:rgba(255,255,255,.98) !important;
  padding:18px !important;
  border-radius:24px !important;
  box-shadow:0 18px 46px rgba(0,0,0,.18) !important;
  border:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.hero-section .hero-search-wrap > .search-box-wrap .form-label{
  display:none !important;
}

.hero-section .hero-search-wrap > .search-box-wrap form{
  width:100% !important;
  margin:0 auto !important;
}

.hero-section .hero-search-wrap > .search-box-wrap .row{
  justify-content:center !important;
  align-items:end !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.hero-section .hero-search-wrap > .search-box-wrap [class*="col-"]{
  float:none !important;
}

.hero-section .hero-search-wrap > .search-box-wrap .form-select,
.hero-section .hero-search-wrap > .search-box-wrap .form-control{
  width:100% !important;
  height:54px !important;
  border-radius:16px !important;
  border:1px solid #d8dee8 !important;
  background:#fff !important;
  box-shadow:none !important;
  font-size:1rem !important;
}

.hero-section .hero-search-wrap > .search-box-wrap .btn-search,
.hero-section .hero-search-wrap > .search-box-wrap button[type="submit"]{
  width:100% !important;
  height:54px !important;
  border:none !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,#f59e0b,#ffb52a) !important;
  color:#fff !important;
  font-weight:800 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  box-shadow:0 12px 26px rgba(245,158,11,.25) !important;
}

.hero-section .hero-title{
  color:#fff !important;
  font-weight:900 !important;
  font-size:2.35rem !important;
  line-height:1.1 !important;
  margin:0 0 10px !important;
}

.hero-section .hero-subtitle{
  color:rgba(255,255,255,.96) !important;
  font-size:1.05rem !important;
  margin:0 0 18px !important;
}

@media (max-width: 767px){
  .hero-section .hero-content{
    padding:18px 12px 88px !important;
  }

  .hero-section .hero-title{
    font-size:1.55rem !important;
  }

  .hero-section .hero-subtitle{
    font-size:.94rem !important;
    margin-bottom:14px !important;
  }

  .hero-section .hero-search-wrap > .search-box-wrap{
    padding:12px !important;
    border-radius:20px !important;
  }

  .hero-section .hero-search-wrap > .search-box-wrap .form-select,
  .hero-section .hero-search-wrap > .search-box-wrap .form-control,
  .hero-section .hero-search-wrap > .search-box-wrap .btn-search,
  .hero-section .hero-search-wrap > .search-box-wrap button[type="submit"]{
    height:48px !important;
    border-radius:14px !important;
  }
}
