/* ==============================================================================
   DOMICILIOS RÁPIDOS — SISTEMA DE DISEÑO Y ESTILOS CSS3 PERSONALIZADOS
   Diseño comercial premium, limpio, moderno y gastronómico. Cero dependencias externas.
   ============================================================================== */

:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Paleta Comercial Gastronómica */
  --primary: #E52E2E;
  --primary-hover: #CC1F1F;
  --primary-light: #FEE2E2;
  --secondary: #FF7A00;
  --secondary-hover: #E06800;
  --secondary-light: #FFEDD5;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-light: #D1FAE5;
  
  /* Tonos Oscuros y Contrastes */
  --dark: #111827;
  --dark-surface: #1F2937;
  --dark-border: #374151;
  --slate: #0F172A;
  
  /* Tonos Neutros y Fondos */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #CBD5E1;
  
  /* Estados */
  --status-pending: #F59E0B;
  --status-prep: #3B82F6;
  --status-delivery: #8B5CF6;
  --status-done: #10B981;
  --status-cancel: #EF4444;

  /* Elevaciones y Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Radios de Borde */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.35s ease;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* CONTENEDOR PRINCIPAL */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* CABECERA Y NAVEGACIÓN SUPERIOR */
.site-header {
  background: var(--dark);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* SELECTOR DE ZONA / COBERTURA */
.zone-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.zone-picker:hover {
  background: rgba(255, 255, 255, 0.14);
}

.zone-picker select {
  background: transparent;
  border: none;
  color: #FFF;
  outline: none;
  cursor: pointer;
  font-weight: 500;
}

.zone-picker select option {
  background: var(--dark);
  color: #FFF;
}

/* ACCIONES DE CABECERA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-cart {
  position: relative;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.3);
}

.btn-header-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cart-count {
  background: #FFFFFF;
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 800;
}

.header-account-link {
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-account-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* NAVEGACIÓN PRINCIPAL POR PESTAÑAS PÚBLICAS */
.nav-tabs-wrapper {
  background: #161F30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 0;
  scrollbar-width: none; /* Firefox */
}

.nav-tabs-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-tab-item {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-tab-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-item.active {
  color: #FFFFFF;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(229, 46, 46, 0.25);
}

.nav-tab-item .tab-icon {
  font-size: 15px;
}

/* HERO SECTION (PORTADA COMERCIAL) */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #2D1515 100%);
  color: #FFFFFF;
  padding: 60px 0 70px 0;
  overflow: hidden;
  border-bottom: 3px solid var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 122, 0, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(255, 122, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-title .highlight-red {
  color: #FF5A5A;
}

.hero-title .highlight-gold {
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 17px;
  color: #CBD5E1;
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-search-box {
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.hero-search-box button {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search-box button:hover {
  background: var(--primary-hover);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(229, 46, 46, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 46, 46, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* HERO VISUAL BANNER / ART */
.hero-art-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-floating-card {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
}

.food-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.food-preview-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.food-preview-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.food-preview-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.food-preview-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}

.food-preview-time {
  font-size: 11px;
  color: var(--secondary);
}

/* CATEGORÍAS DESTACADAS */
.section-wrapper {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title-wrap h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-card .cat-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.category-card:nth-child(2) .cat-icon-box {
  background: #FEF3C7;
}

.category-card:nth-child(3) .cat-icon-box {
  background: #FFEDD5;
}

.category-card:nth-child(4) .cat-icon-box {
  background: #FEE2E2;
}

.category-card:nth-child(5) .cat-icon-box {
  background: #DCFCE7;
}

.category-card:nth-child(6) .cat-icon-box {
  background: #EDE9FE;
}

.category-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.category-card span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* TARJETAS DE RESTAURANTES PREMIUM */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.restaurant-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.restaurant-card-header {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #1E293B, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
}

.restaurant-cuisine-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.restaurant-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-open {
  background: #10B981;
  color: #FFF;
}

.badge-closed {
  background: #EF4444;
  color: #FFF;
}

.restaurant-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: absolute;
  bottom: -22px;
  left: 20px;
}

.restaurant-card-body {
  padding: 30px 20px 18px 20px;
  flex: 1;
}

.restaurant-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.restaurant-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.restaurant-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  color: #B45309;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.restaurant-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.restaurant-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.restaurant-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-card-footer {
  padding: 12px 20px 18px 20px;
}

.btn-view-menu {
  display: block;
  width: 100%;
  background: #F1F5F9;
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.btn-view-menu:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* TARJETAS DE PRODUCTOS EN EL MENÚ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.product-thumb-box {
  height: 160px;
  background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  position: relative;
}

.badge-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-combo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-customize-add {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-customize-add:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* MODAL CONFIGURADOR DE PRODUCTO */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #FFF;
  z-index: 10;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

.btn-modal-close {
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-modal-close:hover {
  background: #E2E8F0;
  color: var(--dark);
}

.modal-body {
  padding: 24px;
  flex: 1;
}

.customizer-group {
  margin-bottom: 22px;
}

.customizer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.option-pill-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.option-pill-label:hover {
  border-color: var(--primary);
  background: #FFF7ED;
}

.option-pill-label input[type="radio"],
.option-pill-label input[type="checkbox"] {
  accent-color: var(--primary);
  margin-right: 10px;
  transform: scale(1.15);
}

.option-price-tag {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}

.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #FFF;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #F1F5F9;
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

/* OFF-CANVAS CARRITO LATERAL (DRAWER) */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2500;
  display: none;
}

.cart-drawer-backdrop.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 2600;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 18px 20px;
  background: var(--dark);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--dark);
}

.cart-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
  margin-top: 4px;
}

.cart-drawer-footer {
  padding: 20px;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  padding-top: 10px;
  border-top: 2px solid var(--border);
  margin-bottom: 16px;
}

.min-order-alert {
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* FORMULARIOS Y PROCESO DE CHECKOUT */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  padding: 40px 0 80px 0;
}

.checkout-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.checkout-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background: #FFFFFF;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 46, 46, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* OPCIONES DE PAGO VISUALES */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card:hover {
  border-color: var(--primary);
  background: #FFF7ED;
}

.payment-method-card.active {
  border-color: var(--primary);
  background: #FEF2F2;
}

.payment-method-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.payment-method-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}

/* TIMELINE DE SEGUIMIENTO DE PEDIDO */
.order-tracking-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 30px auto;
}

.tracking-header {
  text-align: center;
  margin-bottom: 30px;
}

.tracking-code-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 40px 0 30px 0;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 80px;
}

.step-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 18px;
  font-weight: 700;
  border: 3px solid #FFF;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-step.completed .step-bubble {
  background: #10B981;
  color: #FFF;
}

.timeline-step.active .step-bubble {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 0 0 6px rgba(229, 46, 46, 0.2);
  animation: pulseBubble 2s infinite;
}

.step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-step.active .step-label {
  color: var(--primary);
}

@keyframes pulseBubble {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ==============================================================================
   ESTILOS DEL PANEL ADMINISTRATIVO (12 PESTAÑAS)
   ============================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #0F172A;
}

/* BARRA LATERAL ADMINISTRATIVA */
.admin-sidebar {
  width: 270px;
  background: #111827;
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tabs-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.admin-tab-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #94A3B8;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: var(--transition);
}

.admin-tab-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.admin-tab-link.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(229, 46, 46, 0.35);
}

.admin-tab-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

/* ÁREA DE CONTENIDO DEL PANEL */
.admin-main {
  flex: 1;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-content {
  padding: 30px;
  flex: 1;
}

/* TARJETAS KPI RESUMEN GENERAL */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* TABLAS DE DATOS PROFESIONALES */
.data-table-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.data-table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #F8FAFC;
}

/* BADGES DE ESTADO DE PEDIDOS */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pill.recibido { background: #FEF3C7; color: #92400E; }
.status-pill.aceptado { background: #E0E7FF; color: #3730A3; }
.status-pill.en_preparacion { background: #DBEAFE; color: #1E40AF; }
.status-pill.listo_para_recoger { background: #EDE9FE; color: #5B21B6; }
.status-pill.en_reparto { background: #F3E8FF; color: #6B21A8; }
.status-pill.entregado { background: #D1FAE5; color: #065F46; }
.status-pill.cancelado { background: #FEE2E2; color: #991B1B; }

/* TOASTS Y NOTIFICACIONES */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: #10B981; }
.toast.warning { border-left-color: #F59E0B; }
.toast.error { border-left-color: #EF4444; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* PIE DE PÁGINA COMERCIAL */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 13.5px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25D366;
  color: #FFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition);
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ESTILOS DE IMPRESIÓN (RECIBO / TICKET DE COCINA) */
@media print {
  body * {
    visibility: hidden;
  }
  .print-ticket-area, .print-ticket-area * {
    visibility: visible;
  }
  .print-ticket-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 10px;
    font-size: 12px;
    color: #000;
    background: #FFF;
  }
}

/* RESPONSIVE DESIGN & MOBILE MENU */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-search-box {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-title {
    font-size: 30px;
  }
  .restaurants-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .timeline-steps {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .timeline-steps::before {
    top: 0;
    bottom: 0;
    left: 21px;
    width: 4px;
    height: auto;
  }
  .timeline-step {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
  }
  .timeline-step .step-bubble {
    margin: 0;
  }
}
