/* ================================================================
   EcomiendaPRO - Estilos principales (público / cliente)
   ================================================================ */

:root {
  --primary:      #1e3a5f;
  --primary-dark: #142a47;
  --accent:       #ffc107;
  --success:      #198754;
  --text:         #212529;
  --text-muted:   #6c757d;
  --border:       #dee2e6;
  --radius:       10px;
  --shadow:       0 2px 16px rgba(0,0,0,.08);
}

/* ── Reset / Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.main-content { flex: 1; }

/* ── Navbar ───────────────────────────────────────────────────── */
.bg-primary-custom {
  background: var(--primary) !important;
}
.navbar-dark.bg-primary-custom .navbar-nav .nav-link {
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.navbar-dark.bg-primary-custom .navbar-nav .nav-link:hover { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5a8e 60%, #1a7a6e 100%);
  padding: 80px 0;
  min-height: 520px;
}
.hero-map-placeholder {
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  border: 3px solid rgba(255,255,255,.2);
}

/* ── Steps ────────────────────────────────────────────────────── */
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card { border-radius: var(--radius); }
.card-header { border-radius: var(--radius) var(--radius) 0 0 !important; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer-custom {
  background: var(--primary);
}

/* ── Formulario solicitud ─────────────────────────────────────── */
.map-mode-btn.active { font-weight: 700; }

/* ── Timeline tracking ────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item.active .timeline-icon { background: var(--primary) !important; }
.timeline-icon {
  position: absolute;
  left: -32px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #dee2e6;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
}
.timeline-body { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }

/* ── Success page ─────────────────────────────────────────────── */
.success-icon { animation: popIn .5s ease; }
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Utilitarios ──────────────────────────────────────────────── */
.font-monospace { font-family: 'Courier New', monospace !important; }
.btn-xs { padding: .15rem .4rem; font-size: .75rem; }
.badge { font-weight: 600; }
.table th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* ── Alertas flash ────────────────────────────────────────────── */
.alert { border-radius: 8px; }

/* ── KPI cards (usadas también en transit) ────────────────────── */
.kpi-card .kpi-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Precios landing ──────────────────────────────────────────── */
#precios .card-header { font-size: .95rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 48px 0; min-height: auto; }
  .hero-section h1 { font-size: 2rem; }
}

/* ── Auth ─────────────────────────────────────────────────────── */
.brand-icon i { font-size: 3rem; }
