/* ==========================================================================
   RESET Y VARIABLES DE TEMA FARMA-CYBERPUNK
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #07090e;
  --border-light: rgba(255, 255, 255, 0.08);
  --neon-cyan: #00f2fe;
  --neon-emerald: #05ffa1;
  --neon-blue: #38bdf8;
  --neon-purple: #a855f7;
  --neon-yellow: #facc15;
  --neon-red: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, Consolas, monospace;
}

html, body {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden; /* CERO SCROLL GARANTIZADO */
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  user-select: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(6px, 1.4vh, 14px) clamp(10px, 2vw, 20px);
  position: relative;
}

/* Lienzo espacial Canvas */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Grilla holográfica */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 85%);
  pointer-events: none;
  z-index: 1;
}

/* Resplandor ambiental */
.ambient-glow {
  position: fixed;
  width: clamp(350px, 45vw, 650px);
  height: clamp(350px, 45vw, 650px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(5, 255, 161, 0.06) 45%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  transition: background 1.2s ease;
}

/* ==========================================================================
   EFECTO CÓMICO DE IMPACTO / GOLPES
   ========================================================================== */
.action-impact-fx {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 100;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.impact-text {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 900;
  color: #ff0055;
  text-shadow: 
    3px 3px 0px #ffffff,
    -3px -3px 0px #ffffff,
    0 0 30px #ff0055,
    0 0 60px #facc15;
  transform: rotate(-8deg);
  letter-spacing: 2px;
}

.impact-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 5px solid var(--neon-cyan);
  box-shadow: 0 0 40px var(--neon-cyan);
  opacity: 0.85;
}

/* ==========================================================================
   BARRA SUPERIOR (TELEMETRÍA)
   ========================================================================== */
.telemetry-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 860px;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 1.1vh, 0.74rem);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(14, 19, 29, 0.75);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 5px 16px;
  flex-shrink: 0;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan);
  font-weight: 600;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: dot-pulse 1.4s infinite alternate;
}

@keyframes dot-pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 14px var(--neon-cyan); }
}

/* ==========================================================================
   ESCENARIO PRINCIPAL (VIEWPORT CENTRAL)
   ========================================================================== */
.main-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1060px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  perspective: 1200px;
}

.stage-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.single-monitor-box {
  position: relative;
  width: 100%;
  max-width: clamp(360px, 45vw, 500px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* ==========================================================================
   MONITOR PRINCIPAL DEL SOFTWARE (CON IMAGEN REAL)
   ========================================================================== */
.screen-monitor {
  position: relative;
  width: 100%;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.monitor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101626;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
}

.win-dots {
  display: flex;
  gap: 5px;
}

.w-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.url-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.url-domain {
  color: #f1f5f9;
  font-weight: 600;
}

.branch-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.monitor-screen-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 495;
  background: #232a35;
  overflow: hidden;
  container-type: inline-size;
  container-name: monitorArea;
}

.screen-system-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-system-img-new {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 25;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), #ffffff, var(--neon-cyan), transparent);
  box-shadow: 0 0 20px 5px var(--neon-cyan);
  opacity: 0;
  z-index: 30;
  pointer-events: none;
}

/* ==========================================================================
   SISTEMA ANTIGUO EN HTML MODULAR POR PIEZAS
   ========================================================================== */
.old-system-html-app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  background: #252e3b;
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: clamp(7px, 1.45cqw, 10.5px);
  user-select: none;
  z-index: 5;
}

.ui-part {
  position: relative;
  background: #1e2634;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  transform-origin: center center;
  will-change: transform, opacity;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.ui-part.analyzed {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.75), 0 0 30px rgba(5, 255, 161, 0.35) !important;
  z-index: 20;
}

/* 1. BARRA LATERAL (SIDEBAR) */
.ui-part-sidebar {
  width: 21%;
  min-width: 80px;
  height: 100%;
  background: #18202d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.ps-header {
  background: #05c282;
  color: #ffffff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  font-size: 1.15em;
  letter-spacing: 0.5px;
}

.ps-logo-icon {
  font-size: 1.1em;
}

.ps-section {
  padding: 4px 6px 2px;
}

.ps-section-title {
  font-size: 0.7em;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 4px 2px;
  text-transform: uppercase;
}

.ps-menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  font-size: 0.86em;
  color: #94a3b8;
  border-radius: 4px;
  margin-bottom: 2px;
  font-weight: 500;
}

.ps-menu-item.active {
  background: #00d28d;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 210, 141, 0.35);
}

.ps-chevron {
  margin-left: auto;
  font-size: 1em;
  opacity: 0.6;
}

/* CONTENEDOR PRINCIPAL */
.old-system-main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #252e3b;
}

/* 2. BARRA SUPERIOR */
.ui-part-topbar {
  height: 30px;
  background: #1f2736;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
}

.pt-left, .pt-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pt-hamburger {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1em;
  cursor: pointer;
}

.pt-branch-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18202d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.85em;
  color: #e2e8f0;
}

.pt-tool-icon {
  font-size: 0.9em;
  color: #94a3b8;
}

.pt-tag-badge {
  font-size: 0.72em;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}
.badge-red { background: #ef4444; color: #ffffff; }
.badge-yellow { background: #eab308; color: #1e293b; }

.pt-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
}

/* CUERPO DEL POS */
.old-system-content-grid {
  flex: 1;
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}

.pos-central-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.pos-screen-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25em;
  font-weight: 800;
  color: #ffffff;
  padding: 1px 2px;
}

.pos-cards-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 7px;
}

.card-bar-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88em;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3px;
  margin-bottom: 5px;
}

/* 3. MÓDULO BÚSQUEDA */
.ui-part-search {
  padding: 6px 8px;
  background: #1a2230;
  border: 1px solid #00d28d44;
}

.search-fields-flex {
  display: flex;
  gap: 5px;
}

.field-cat {
  width: 40%;
}
.field-query {
  width: 60%;
}

.field-cat label, .field-query label, .client-type-col label, .client-dni-col label, .checkout-method-box label, .checkout-pay-box label {
  display: block;
  font-size: 0.7em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.field-select-box, .field-input-box, .client-type-select, .client-dni-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.82em;
}

.field-filter-btn {
  background: #252e3e;
  border: none;
  border-radius: 3px;
  padding: 1px 3px;
  color: #cbd5e1;
  font-size: 0.8em;
}

.field-search-btn {
  background: #00d28d;
  border: none;
  border-radius: 3px;
  padding: 1px 5px;
  color: #ffffff;
  font-size: 0.8em;
}

/* 4. MÓDULO CLIENTE */
.ui-part-client {
  padding: 6px 8px;
  background: #1a2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-fields-flex {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

.client-type-col { width: 45%; }
.client-dni-col { width: 55%; }

.client-general-pill {
  text-align: center;
  background: #141b26;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 3px;
  font-size: 0.78em;
  color: #94a3b8;
}

/* 5. MÓDULO DETALLE / CARRITO */
.ui-part-cart {
  flex: 1;
  padding: 6px 8px;
  background: #1a2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  font-size: 0.76em;
  color: #94a3b8;
  font-weight: 700;
  padding: 2px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.7;
  padding: 10px 0;
}

.empty-basket-msg {
  font-size: 0.85em;
  color: #94a3b8;
}

/* 6. MÓDULO DE COBRO */
.ui-part-checkout {
  width: 23%;
  min-width: 90px;
  background: #1a2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-bar-title {
  color: #ffffff;
  font-weight: 800;
}

.checkout-sum-box {
  background: #141b26;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}

.sum-lbl {
  font-size: 0.72em;
  color: #94a3b8;
  font-weight: 700;
}

.sum-num {
  font-size: 1.45em;
  font-weight: 900;
  color: #05ffa1;
  text-shadow: 0 0 10px rgba(5, 255, 161, 0.4);
}

.method-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141b26;
  border: 1px solid #00d28d66;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.82em;
  color: #ffffff;
  font-weight: 700;
}

.pay-input-mock {
  background: #141b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.82em;
  color: #cbd5e1;
}

/* ==========================================================================
   PERSONAJE EN PRIMER PLANO: "DR. BOTIQUÍN" (SIEMPRE DERECHO, CERCANO Y VISIBLE)
   ========================================================================== */
.character-wrapper {
  position: absolute;
  width: 130px;
  height: 185px;
  z-index: 50;
  bottom: -10px;
  left: calc(50% - 340px); /* Justo al frente en la esquina izquierda del monitor */
  pointer-events: none;
  opacity: 1;
  transform-origin: bottom center;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.85));
}

.character-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  background: #ffffff;
  color: #090e17;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  max-width: 250px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(0, 242, 254, 0.35);
  opacity: 1;
  z-index: 60;
  pointer-events: none;
  transition: all 0.2s ease;
}

.character-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.idea-icon {
  position: absolute;
  top: -34px;
  right: 15px;
  font-size: 2rem;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* ==========================================================================
   FASE 4 FINAL: DUAL SPLIT CARDS (POS + TIENDA ONLINE)
   ========================================================================== */
.dual-screens-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  display: none;
  opacity: 0;
  z-index: 30;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 auto;
}

.split-card {
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.split-card:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 255, 161, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(5, 255, 161, 0.15);
}

.split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #111726;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.split-url {
  color: #ffffff;
  font-weight: 600;
}

.split-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.badge-pos {
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-store {
  background: rgba(5, 255, 161, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(5, 255, 161, 0.3);
}

.split-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080c14;
  overflow: hidden;
}

.split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 10%, transparent 100%);
  padding: 10px 10px 5px 10px;
  display: flex;
  flex-direction: column;
}

.split-caption strong {
  font-size: 0.74rem;
  color: #ffffff;
}

.split-caption span {
  font-size: 0.6rem;
  color: #94a3b8;
}

.split-foot {
  padding: 7px 10px;
  background: #0e1422;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.split-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pos {
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon-blue);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-pos:hover {
  background: var(--neon-blue);
  color: #041019;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-store {
  background: linear-gradient(135deg, var(--neon-emerald), #00b4d8);
  color: #041019;
  border: none;
  box-shadow: 0 3px 12px rgba(5, 255, 161, 0.3);
}

.btn-store:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(5, 255, 161, 0.5);
}

/* ==========================================================================
   CAMIÓN DE MUDANZA "FARMA EXPRESS" (OCULTO INICIALMENTE EN CSS)
   ========================================================================== */
.transport-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
  display: none;        /* Completamente oculto de inicio */
  visibility: hidden;
  align-items: center;
  justify-content: center;
}

#moving-truck {
  position: absolute;
  width: clamp(290px, 36vw, 420px);
  height: clamp(120px, 15vw, 175px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.95));
  opacity: 0;
  transform-origin: center bottom;
}

.truck-wheel-rim {
  transform-origin: 0px 0px;
}

#truck-smoke-group circle {
  animation: smoke-puff 1.3s infinite ease-out;
}

@keyframes smoke-puff {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.8; }
  50% { transform: translate(-10px, -14px) scale(1.1); opacity: 0.5; }
  100% { transform: translate(-22px, -30px) scale(1.8); opacity: 0; }
}

#truck-headlight-cone {
  animation: headlight-flicker 0.12s infinite alternate ease-in-out;
}

@keyframes headlight-flicker {
  0% { opacity: 0.38; }
  100% { opacity: 0.55; }
}

/* ==========================================================================
   TELEMETRÍA EN VIVO (HIPERESPACIO)
   ========================================================================== */
.telemetry-hud-card {
  position: absolute;
  z-index: 40;
  background: rgba(10, 15, 26, 0.94);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 14px 20px;
  width: 90%;
  max-width: 440px;
  font-family: var(--font-mono);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.hud-top {
  font-size: 0.72rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.hud-percent {
  color: var(--neon-emerald);
}

.hud-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
}

.hud-step {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-step.done {
  color: var(--neon-emerald);
}

.hud-progress {
  margin-top: 10px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hud-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-emerald));
  transition: width 0.2s ease;
}

/* ==========================================================================
   DOCK INFERIOR
   ========================================================================== */
.bottom-dock {
  position: relative;
  z-index: 25;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.arrival-status-pill {
  width: 100%;
  background: rgba(14, 21, 33, 0.85);
  border: 1px solid rgba(5, 255, 161, 0.25);
  border-radius: 10px;
  padding: 6px 14px;
  display: none;
  opacity: 0;
  flex-direction: column;
  gap: 4px;
}

.status-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 8px var(--neon-emerald);
}

.status-text strong {
  color: var(--neon-emerald);
}

.status-sep {
  opacity: 0.4;
}

.countdown-label strong {
  color: var(--neon-cyan);
}

.countdown-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.countdown-fill-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-emerald));
  box-shadow: 0 0 8px var(--neon-emerald);
}

.bottom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-highlight {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN (PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 6px 10px;
  }
  .telemetry-bar {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .dual-screens-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .character-wrapper {
    left: 5px;
    bottom: -5px;
    transform: scale(0.85);
    transform-origin: bottom left;
  }
}
