/* ============================================================
   ATLAS RASTREO — UI/UX Rediseño Senior
   Spec: Serif + Inter · Neumorphism · Stepper tierra/verde
   Map placeholder · Mobile First · Max 800px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand */
  --red:        #E31221;
  --red-dk:     #c0101c;
  --red-glow:   rgba(227,18,33,.15);

  /* Earth / Progress */
  --earth:      #C2944A;
  --earth-lt:   #f5ead6;
  --earth-mid:  #A67C52;
  --ochre-glow: rgba(194,148,74,.18);

  /* Delivery */
  --green:      #2dbb6b;
  --green-lt:   #edfbf3;
  --green-glow: rgba(45,187,107,.18);

  /* Neutrals */
  --bg:         #f5f3ee;
  --bg-inner:   #efede8;
  --white:      #ffffff;
  --dark:       #1c1a17;
  --mid:        #5a5652;
  --soft:       #9e9890;
  --border:     #e2ddd5;

  /* Neumorphism */
  --neu-shadow: 8px 8px 24px rgba(0,0,0,.08), -4px -4px 14px rgba(255,255,255,.85);
  --neu-inset:  inset 3px 3px 8px rgba(0,0,0,.06), inset -3px -3px 8px rgba(255,255,255,.7);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ── BASE ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--dark);
  background-color: var(--bg);
  /* Patrón de mapa sutil */
  background-image:
    linear-gradient(rgba(139,120,90,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,120,90,.055) 1px, transparent 1px);
  background-size: 36px 36px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -.02em;
}

/* ── CONTENEDOR CENTRAL ── */
.page-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.atlas-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.navbar-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 3px 10px var(--red-glow);
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name .b-main {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: .01em;
}

.brand-name .b-sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   HERO — PÁGINA INICIO
═══════════════════════════════════════════ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 4.5rem;
}

.hero-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--earth);
  background: var(--earth-lt);
  border: 1px solid rgba(194,148,74,.25);
  padding: .4rem 1.1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.75rem;
}

.hero-tag i { font-size: .8rem; }

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.08;
  margin-bottom: .9rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-p {
  font-size: 1rem;
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: 2.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BUSCADOR CON NEUMORFISMO ── */
.search-neuro {
  background: var(--bg-inner);
  border-radius: var(--r-xl);
  box-shadow: var(--neu-shadow);
  padding: .55rem .55rem .55rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.7);
  transition: box-shadow .25s;
}

.search-neuro:focus-within {
  box-shadow: 8px 8px 24px rgba(0,0,0,.1),
              -4px -4px 14px rgba(255,255,255,.9),
              0 0 0 3px var(--red-glow);
}

.search-neuro i {
  color: var(--soft);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.search-neuro input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--dark);
  min-width: 0;
  padding: .45rem 0;
}

.search-neuro input::placeholder { color: #bdb9b0; }

.btn-rastrear {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  padding: .75rem 1.6rem;
  border-radius: var(--r-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--red-glow);
  transition: background .18s, transform .12s, box-shadow .18s;
}

.btn-rastrear:hover {
  background: var(--red-dk);
  color: #fff;
  box-shadow: 0 6px 24px rgba(227,18,33,.3);
}

.btn-rastrear:active { transform: scale(.97); }

/* Hero pills */
.hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   STATUS PILLS / BADGES
═══════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35em .9em;
  border-radius: var(--r-pill);
  font-size: .74rem;
  font-weight: 600;
  border: 1px solid;
}

.pill-pendiente  { background: var(--earth-lt); color: #7a5c1e; border-color: rgba(194,148,74,.3); }
.pill-transito   { background: #fff8f0;          color: #854d27; border-color: rgba(194,148,74,.4); }
.pill-entregado  { background: var(--green-lt);  color: #166534; border-color: rgba(45,187,107,.3); }

.pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pip-pendiente { background: var(--earth); }
.pip-transito  { background: #e07b3a; }
.pip-entregado { background: var(--green); }

/* ═══════════════════════════════════════════
   PÁGINA DE RESULTADO
═══════════════════════════════════════════ */
.result-page {
  flex: 1;
  padding: 2rem 1.25rem 3.5rem;
}

/* Buscador compacto */
.search-compact {
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  padding: .3rem .3rem .3rem 1rem;
  gap: .6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 1.75rem;
  transition: box-shadow .2s;
}

.search-compact:focus-within { box-shadow: 0 0 0 3px var(--red-glow); }
.search-compact i { color: var(--soft); font-size: .9rem; flex-shrink: 0; }
.search-compact input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: .88rem; color: var(--dark); min-width: 0;
}
.search-compact input::placeholder { color: #c0bcb5; }

.btn-compact {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  padding: .55rem 1.2rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .18s;
  flex-shrink: 0;
}

.btn-compact:hover { background: var(--red-dk); color: #fff; }

/* ── TARJETA PRINCIPAL STATUS ── */
.status-card {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

/* Efecto de fondo decorativo */
.status-card::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,18,33,.12) 0%, transparent 65%);
  top: -80px; right: -60px;
  pointer-events: none;
}

.status-card-left {}

.sc-eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .35rem;
}

.sc-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.sc-guia {
  font-size: .76rem;
  color: rgba(255,255,255,.35);
  margin-top: .3rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .9rem;
  border: 1.5px solid;
  flex-shrink: 0;
}

.chip-pendiente { background: var(--earth-lt); color: #7a5c1e; border-color: rgba(194,148,74,.4); }
.chip-transito  { background: #fff8f0;          color: #854d27; border-color: rgba(224,123,58,.4); }
.chip-entregado { background: var(--green-lt);  color: #166534; border-color: rgba(45,187,107,.4); }

/* ── GRID DE INFO ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 1rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ic-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .35rem;
}

.ic-value {
  font-size: .96rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════
   STEPPER HORIZONTAL — TIERRA / VERDE
═══════════════════════════════════════════ */
.stepper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  margin-bottom: 1rem;
}

.section-eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

.stepper {
  display: flex;
  align-items: flex-start;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 80px;
  position: relative;
}

/* Círculo del paso */
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f0ede8;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--soft);
  transition: all .3s ease;
  position: relative;
  z-index: 1;
}

/* Paso completado — tierra/ocre */
.step.done .step-circle {
  background: var(--earth-lt);
  border-color: var(--earth);
  color: var(--earth-mid);
  box-shadow: 0 0 0 5px var(--ochre-glow);
}

/* Paso activo — depende del estado */
.step.active-pendiente .step-circle {
  background: var(--earth);
  border-color: var(--earth-mid);
  color: #fff;
  box-shadow: 0 0 0 5px var(--ochre-glow);
}

.step.active-transito .step-circle {
  background: #d17c40;
  border-color: #b8662e;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(209,124,64,.18);
}

.step.active-entregado .step-circle {
  background: var(--green);
  border-color: #22a85e;
  color: #fff;
  box-shadow: 0 0 0 5px var(--green-glow);
}

/* Paso entregado completado */
.step.done-final .step-circle {
  background: var(--green-lt);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 0 5px var(--green-glow);
}

.step-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--soft);
  text-align: center;
  margin-top: .6rem;
  line-height: 1.3;
}

.step.done .step-label          { color: var(--earth-mid); }
.step.active-pendiente .step-label { color: var(--earth); font-weight: 700; }
.step.active-transito .step-label  { color: #d17c40; font-weight: 700; }
.step.active-entregado .step-label { color: var(--green); font-weight: 700; }
.step.done-final .step-label    { color: var(--green); font-weight: 700; }

/* Línea conectora */
.step-connector {
  flex: 1;
  height: 3px;
  margin: 0 4px;
  margin-top: 24px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.step-connector.done-earth {
  background: linear-gradient(90deg, var(--earth) 0%, #d17c40 100%);
}

.step-connector.done-green {
  background: var(--green);
}

/* ═══════════════════════════════════════════
   MAPA INFORMATIVO PLACEHOLDER
═══════════════════════════════════════════ */
.map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.map-header {
  padding: 1rem 1.5rem .75rem;
  border-bottom: 1px solid var(--border);
}

.map-visual {
  position: relative;
  height: 150px;
  background:
    linear-gradient(rgba(139,110,70,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,110,70,.045) 1px, transparent 1px),
    linear-gradient(145deg, #f5edda 0%, #ece0c2 50%, #f2e8d0 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  gap: 1rem;
}

/* Línea punteada de ruta */
.map-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  border-top: 2.5px dashed rgba(160,120,70,.35);
  transform: translateY(-50%);
  z-index: 0;
}

/* Pin de mapa */
.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.pin-marker {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.pin-marker i {
  transform: rotate(45deg);
  font-size: .95rem;
  color: #fff;
}

.pin-origin   .pin-marker { background: var(--earth); }
.pin-dest     .pin-marker { background: var(--green); }

.pin-city {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  color: var(--mid);
  text-align: center;
  letter-spacing: .02em;
  max-width: 90px;
  background: rgba(255,255,255,.85);
  padding: .2rem .5rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Indicador de posicion (camion) */
.map-truck {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: var(--white);
  border: 2.5px solid var(--earth);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--earth);
  box-shadow: 0 3px 12px var(--ochre-glow);
}

.map-truck.delivered {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 3px 12px var(--green-glow);
}

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.5rem;
  background: #faf8f4;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.map-route-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--mid);
  font-weight: 500;
}

.map-route-info i { color: var(--soft); font-size: .8rem; }

/* ═══════════════════════════════════════════
   TIMELINE / HISTORIAL
═══════════════════════════════════════════ */
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.timeline { position: relative; padding-left: 1.35rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: .28rem; top: .5rem; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--earth) 0%, var(--border) 100%);
}

.tl-item {
  position: relative;
  padding-bottom: 1.15rem;
  display: flex;
  gap: .9rem;
}

.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child .tl-dot.pendiente,
.tl-item:first-child .tl-dot { box-shadow: 0 0 0 3px rgba(194,148,74,.2); }

.tl-dot {
  position: absolute;
  left: -1.2rem;
  top: .25rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  flex-shrink: 0;
}

.tl-dot.pendiente { background: var(--earth);  box-shadow: 0 0 0 2px var(--earth-lt); }
.tl-dot.transito  { background: #d17c40;        box-shadow: 0 0 0 2px #fff4ec; }
.tl-dot.entregado { background: var(--green);   box-shadow: 0 0 0 2px var(--green-lt); }

.tl-body {}

.tl-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: .18rem;
}

.tl-estado {
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
}

.tl-fecha {
  font-size: .72rem;
  color: var(--soft);
}

.tl-nota {
  font-size: .8rem;
  color: var(--mid);
  line-height: 1.5;
}

/* ── No encontrado ── */
.not-found-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  padding: 4.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.nf-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #f5f3ee;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--soft);
  box-shadow: var(--neu-inset);
}

.not-found-wrap h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
}

.not-found-wrap p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ── Botón secundario ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--mid);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  padding: .65rem 1.3rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
}

.btn-outline:hover { border-color: var(--dark); color: var(--dark); }

.btn-rastrear-externo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.2rem;
  border-radius: 10px;
  background: var(--earth-lt);
  color: var(--earth-mid);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--earth);
  transition: background .18s, color .18s;
}
.btn-rastrear-externo:hover {
  background: var(--earth);
  color: #fff;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.atlas-footer {
  background: var(--dark);
  padding: 1.35rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.atlas-footer p {
  font-size: .74rem;
  color: rgba(255,255,255,.3);
  margin: 0;
}

.atlas-footer strong { color: var(--red); font-weight: 600; }

/* ═══════════════════════════════════════════
   ADMIN
═══════════════════════════════════════════ */
.admin-body {
  background-color: #f2f0eb;
  background-image:
    linear-gradient(rgba(139,120,90,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,120,90,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: 'Inter', sans-serif;
}

.atlas-navbar-admin {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 62px;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Login */
.admin-login-body {
  background: var(--dark);
  background-image: radial-gradient(ellipse at top right, rgba(227,18,33,.12) 0%, transparent 55%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.login-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  width: 100%; max-width: 380px;
  padding: 2.5rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.login-brand .brand-icon-wrap { width: 30px; height: 30px; font-size: .82rem; }

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .35rem;
}

.login-sub { font-size: .82rem; color: var(--soft); margin-bottom: 1.75rem; }

.f-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: .4rem;
}

.f-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .65rem .9rem;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  margin-bottom: 1rem;
  display: block;
}

.f-input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Admin stat cards */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.stat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-lbl {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  margin-top: .1rem;
}

/* Tabla */
.table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.table > thead > tr > th {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1rem;
  white-space: nowrap;
}

.table > tbody > tr > td {
  padding: .8rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0ede8;
  font-size: .86rem;
}

.table > tbody > tr:last-child > td { border-bottom: none; }
.table > tbody > tr:hover > td { background: #faf8f5; }

.btn-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.btn-icon:hover { border-color: var(--red); color: var(--red); }
.btn-icon.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-h1 { font-size: 2.5rem; }

  .search-neuro {
    border-radius: var(--r-lg);
    flex-wrap: wrap;
    padding: .75rem;
    gap: .6rem;
  }
  .search-neuro .btn-rastrear {
    width: 100%;
    justify-content: center;
    border-radius: var(--r-md);
  }

  .info-grid { grid-template-columns: 1fr; }

  .status-card { flex-direction: column; align-items: flex-start; }
  .status-card::before { display: none; }

  .step { min-width: 64px; }
  .step-circle { width: 42px; height: 42px; font-size: .95rem; }
  .step-connector { margin-top: 20px; }
  .step-label { font-size: .64rem; }

  .map-visual { height: 130px; padding: 0 1.5rem; }
  .map-visual::after { left: 1.5rem; right: 1.5rem; }
  .pin-city { max-width: 70px; font-size: .62rem; }
}
