/* ═══════════════════════════════════════════════════
   RADUP — style.css v16
   Stack: PHP procedural / HTML / CSS vanilla
   Paleta: #070707 fondo | #ff6b00 naranja | #f0f0f0 blanco
   Font: Poppins (Google Fonts)
═══════════════════════════════════════════════════ */

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

:root {
  --bg:      #070707;
  --bg2:     #0f0f0f;
  --bg3:     #161616;
  --orange:  #ff6b00;
  --orange2: rgba(255,107,0,0.15);
  --text1:   #f0f0f0;
  --text2:   #999;
  --text3:   #555;
  --border:  rgba(255,255,255,0.07);
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text1);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── NAVBAR ───────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: #0a0a0a !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text1);
  white-space: nowrap;
}
.navbar-brand span { color: var(--orange); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text1); background: rgba(255,255,255,0.06); }
.nav-link-active { color: var(--text1) !important; }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text1);
  background: var(--orange2);
  border: 1px solid rgba(255,107,0,0.3);
  transition: background 0.18s;
}
.nav-cart:hover { background: rgba(255,107,0,0.25); }

.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Navbar mobile */
@media (max-width: 640px) {
  .navbar {
    padding: 0 16px;
    height: 56px;
    background: #0a0a0a !important;
  }
  .navbar-brand { font-size: 1.15rem; }
  .nav-link { padding: 5px 8px; font-size: 0.75rem; }
  .nav-cart { padding: 5px 10px; font-size: 0.75rem; }
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/banners/rada-tilly-noche.jpg');
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,7,0.55) 0%, rgba(7,7,7,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
}
.hero-title .hw { color: var(--text1); }
.hero-title .ho { color: var(--orange); text-shadow: 0 0 40px rgba(255,107,0,0.5); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text2);
  margin-top: 14px;
  max-width: 420px;
  margin-inline: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 32px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(255,107,0,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255,107,0,0.5); }

/* ── FEATURES STRIP ───────────────────────────── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-item {
  background: var(--bg2);
  padding: 22px 20px;
  text-align: center;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 6px; }
.feature-label { font-size: 0.78rem; font-weight: 700; color: var(--text2); }

@media (max-width: 640px) {
  .features-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── SECCIÓN / CONTENEDOR ─────────────────────── */
.section { padding: 60px 0; }
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.section-title span { color: var(--orange); }

/* ── CARDS DE COMERCIOS ───────────────────────── */
.comercios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.comercio-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.comercio-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255,107,0,0.15);
}

.comercio-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.comercio-card-body { padding: 16px; }
.comercio-card-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.comercio-card-desc { font-size: 0.78rem; color: var(--text2); }

.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.badge-abierto { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-cerrado { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ── MENÚ / PRODUCTOS ─────────────────────────── */
.menu-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.menu-search {
  width: 100%;
  max-width: 340px;
  padding: 10px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text1);
  font-size: 0.88rem;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.18s;
}
.menu-search:focus { border-color: var(--orange); }
.menu-search::placeholder { color: var(--text3); }

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

.producto-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.producto-card:hover { transform: translateY(-3px); border-color: rgba(255,107,0,0.4); }

.producto-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.producto-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.producto-name { font-weight: 700; font-size: 0.92rem; }
.producto-desc { font-size: 0.75rem; color: var(--text2); flex: 1; }
.producto-price { font-size: 1rem; font-weight: 900; color: var(--orange); }

.producto-agotado-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  width: fit-content;
}

/* ── CARRITO / VER CARRITO ────────────────────── */
.mini-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 28px rgba(255,107,0,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s;
}
.mini-cart:hover { transform: scale(1.04); }

.carrito-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.carrito-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.carrito-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text1);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--orange); border-color: var(--orange); }
.qty-value { font-weight: 700; min-width: 20px; text-align: center; }

/* ── CHECKOUT / FORMULARIO ────────────────────── */
.checkout-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  margin-inline: auto;
}

.checkout-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 22px;
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text1);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
}
.form-control:focus { border-color: var(--orange); }
.form-control::placeholder { color: var(--text3); }

.entrega-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.entrega-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s;
  font-size: 0.85rem;
  font-weight: 700;
}
.entrega-option.selected,
.entrega-option:hover { border-color: var(--orange); background: var(--orange2); }

.resumen-pedido {
  background: var(--bg3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.resumen-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  color: var(--text2);
}
.resumen-row.total {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text1);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
}
.resumen-delivery { color: var(--orange); font-weight: 700; }

/* ── BOTONES ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,107,0,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,107,0,0.5); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-success {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.btn-success:hover { background: rgba(34,197,94,0.25); }

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* Ingresar (transparente) */
.nav-link.btn-login {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--text1);
  padding: 6px 14px;
}
.nav-link.btn-login:hover { border-color: var(--orange); color: var(--orange); background: transparent; }

/* ── TRACKING ─────────────────────────────────── */
.tracking-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 500px;
  margin: 40px auto;
}
.tracking-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; }

.tracking-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tracking-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
  position: relative;
}
.tracking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
}
.tracking-step.done::after { background: var(--orange); }

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tracking-step.done .step-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.tracking-step.active .step-dot {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.2);
}

.step-info { padding-top: 4px; }
.step-label { font-weight: 700; font-size: 0.88rem; }
.step-desc { font-size: 0.75rem; color: var(--text2); margin-top: 2px; }

/* ── PANEL KANBAN (Comercio / Admin / Repartidor) */
.kanban-board {
  display: grid;
  gap: 16px;
  align-items: start;
}
.kanban-3 { grid-template-columns: repeat(3, 1fr); }
.kanban-4 { grid-template-columns: repeat(4, 1fr); }

.kanban-col {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kanban-col-header {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-col-header .col-count {
  background: var(--bg3);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: 0.7rem;
  color: var(--text2);
}

.kanban-col-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 80px; }

.pedido-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.82rem;
}
.pedido-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pedido-id { font-weight: 900; color: var(--orange); font-size: 0.85rem; }
.pedido-time { font-size: 0.7rem; color: var(--text3); }
.pedido-cliente { font-weight: 700; margin-bottom: 4px; }
.pedido-items { color: var(--text2); font-size: 0.78rem; line-height: 1.5; }
.pedido-total { font-weight: 800; color: var(--text1); margin-top: 8px; }
.pedido-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Colores por estado */
.col-pendiente .kanban-col-header { color: #facc15; border-bottom-color: rgba(250,204,21,0.2); }
.col-preparando .kanban-col-header { color: #60a5fa; border-bottom-color: rgba(96,165,250,0.2); }
.col-listo .kanban-col-header { color: var(--orange); border-bottom-color: rgba(255,107,0,0.2); }
.col-entregado .kanban-col-header { color: #22c55e; border-bottom-color: rgba(34,197,94,0.2); }

@media (max-width: 900px) {
  .kanban-3, .kanban-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .kanban-3, .kanban-4 { grid-template-columns: 1fr; }
}

/* ── PANEL TABS ───────────────────────────────── */
.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 4px;
}
.panel-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.panel-tab:hover { color: var(--text1); }
.panel-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ── PANEL STATS ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label { font-size: 0.7rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--text1); }
.stat-value.orange { color: var(--orange); }

/* ── TABLA GENERAL ────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.table th {
  background: var(--bg2);
  padding: 11px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text1); }

/* ── REPARTIDOR — MAPA / RUTA ─────────────────── */
.repartidor-map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.ruta-list { display: flex; flex-direction: column; gap: 10px; }
.ruta-stop {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.ruta-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ruta-dir { font-weight: 700; }
.ruta-cliente { font-size: 0.75rem; color: var(--text2); }

.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.floating-bar-info { font-size: 0.85rem; font-weight: 700; color: var(--text2); }
.floating-bar-actions { display: flex; gap: 10px; }

/* ── CHECKBOX PERSONALIZADO ───────────────────── */
.check-row { display: flex; align-items: center; gap: 10px; }
.custom-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--orange);
  flex-shrink: 0;
}

/* ── LOGIN ────────────────────────────────────── */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
}
.login-logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: 6px;
}
.login-logo span { color: var(--orange); }
.login-sub { text-align: center; font-size: 0.82rem; color: var(--text3); margin-bottom: 28px; }

/* ── MODAL ────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
}
.modal-title { font-size: 1rem; font-weight: 900; margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── ALERT / FLASH ────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-width: 1px;
  border-style: solid;
}
.alert-success { background: rgba(34,197,94,0.1); color: #22c55e; border-color: rgba(34,197,94,0.25); }
.alert-error   { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.25); }
.alert-warning { background: rgba(250,204,21,0.1); color: #facc15; border-color: rgba(250,204,21,0.25); }
.alert-info    { background: rgba(96,165,250,0.1); color: #60a5fa; border-color: rgba(96,165,250,0.25); }

/* ── POLÍTICAS ────────────────────────────────── */
.politicas-content {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px 24px;
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.85;
}
.politicas-content h1 { font-size: 1.8rem; font-weight: 900; color: var(--text1); margin-bottom: 8px; }
.politicas-content h2 { font-size: 1.1rem; font-weight: 800; color: var(--text1); margin: 28px 0 10px; }
.politicas-content p { margin-bottom: 14px; }

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  width: 100%;
  margin-top: auto;
}
.footer-inner { width: 100%; padding: 0 48px; }
.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.footer-logo .fw { color: #f0f0f0; }
.footer-logo .fo { color: var(--orange); text-shadow: 0 0 20px rgba(255,107,0,0.35); }
.footer-divider { width: 40px; height: 2px; background: var(--orange); border-radius: 2px; margin-bottom: 16px; box-shadow: 0 0 8px rgba(255,107,0,0.4); }
.footer-tagline { font-size: 0.72rem; color: var(--text3); line-height: 1.85; margin-bottom: 22px; max-width: 320px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--text3); cursor: pointer;
  transition: all 0.22s ease; text-decoration: none;
}
.footer-social-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.8px; color: var(--text3); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links li { font-size: 0.72rem; color: var(--text3); }
.footer-links a { color: var(--text3); transition: all 0.2s ease; }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-copy { font-size: 0.62rem; color: var(--text3); line-height: 1.75; }
.footer-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.footer-badge { font-size: 0.58rem; padding: 4px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50px; color: var(--text3); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-inner, .footer-bottom { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── UTILIDADES ───────────────────────────────── */
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text2); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
.fw-900      { font-weight: 900; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

/* ═══════════════════════════════════════════════════
   COMPATIBILIDAD — variables del CSS viejo
═══════════════════════════════════════════════════ */
:root {
  --surface:    #0f0f0f;
  --bg3:        #161616;
  --text:       #f0f0f0;
  --text2:      #999;
  --text3:      #555;
  --orange2:    rgba(255,107,0,0.15);
  --red:        #ef4444;
  --radius-sm:  8px;
  --transition: all 0.18s ease;
}

/* ═══════════════════════════════════════════════════
   PÁGINA COMERCIO — comercio.php
═══════════════════════════════════════════════════ */
.comercio-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px 16px;
}
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--text3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange); }

.comercio-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.comercio-header p { font-size: 0.82rem; color: var(--text2); }

/* Search */
.search-box {
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 28px;
}
.search-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text1);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s;
}
.search-input:focus { border-color: var(--orange); }
.search-input::placeholder { color: var(--text3); }

/* Categorías */
.categorias-scroll {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--orange); color: var(--orange); }
.cat-btn.active-filter {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Lista de productos */
.productos-lista {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.producto-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.producto-item:hover {
  border-color: rgba(255,107,0,0.35);
  transform: translateY(-1px);
}

.producto-img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.producto-info {
  flex: 1;
  padding: 12px 8px;
  min-width: 0;
}
.producto-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text3);
  margin-bottom: 3px;
}
.producto-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.producto-desc {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.producto-precio {
  font-size: 1rem;
  font-weight: 900;
  color: var(--orange);
}

.producto-action {
  padding: 0 16px;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--text1);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 500;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text1); }

/* Horario banner */
.horario-banner {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 0 28px;
}

/* Floating cart */
.floating-cart {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
}
.floating-cart a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(255,107,0,0.5);
  white-space: nowrap;
}
.fc-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 0.82rem;
}

/* ── MOBILE COMERCIO ──────────────────────────── */
@media (max-width: 640px) {
  .comercio-header { padding: 20px 16px 12px; }
  .search-box { padding: 0 16px; }
  .categorias-scroll { padding: 0 16px; }
  .productos-lista { padding: 0 16px 100px; }

  .producto-img { width: 88px; height: 80px; }
  .producto-info h3 { font-size: 0.88rem; }
  .producto-action { padding: 0 12px; }
}

/* ═══════════════════════════════════════════════════
   VER CARRITO — ver_carrito.php
═══════════════════════════════════════════════════ */
.cart-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.cart-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text1);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
  font-family: 'Poppins', sans-serif;
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--text3); }

/* ═══════════════════════════════════════════════════
   PANEL — variables extra usadas en paneles internos
═══════════════════════════════════════════════════ */
.fadeUp { animation: fadeUp 0.3s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Botones extra usados en paneles */
.btn-secondary {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* Tracking page */
.track-page {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ═══════════════════════════════════════════════════
   CRÉDITO SOUTHWARE — footer
═══════════════════════════════════════════════════ */
.southware-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}
.southware-credit:hover {
  border-color: rgba(56,140,255,0.4);
  background: rgba(56,140,255,0.06);
  transform: translateY(-1px);
}
.southware-by {
  font-size: 0.62rem;
  color: var(--text3, #555);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.southware-logo {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.southware-name {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #3b9dff, #1e5fd8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 500px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .southware-credit { align-self: flex-start; }
}
