/* =============================================================================
   rTracktor — landing v2
   Dark hero · light catalog · live signal · platform-confident.
   "Hype con sentido": cada claim defendible en demo.
   ============================================================================= */

:root {
  /* base */
  --bg:           #ffffff;
  --bg-alt:       #f7f8fa;
  --bg-dark:      #0a0c10;
  --bg-darker:    #050608;
  --bg-card:      #ffffff;
  --bg-card-dark: #111418;

  /* text */
  --text:         #0a0c10;
  --text-muted:   #4b5563;
  --text-soft:    #6b7280;
  --text-on-dark: #f3f4f6;
  --text-on-dark-muted: rgba(243, 244, 246, 0.62);

  /* borders */
  --border:       #e5e7eb;
  --border-strong:#d1d5db;
  --border-dark:  rgba(255, 255, 255, 0.08);
  --border-dark-strong: rgba(255, 255, 255, 0.14);

  /* brand */
  --brand-red:    #e63329;            /* logo */
  --brand-red-soft: rgba(230, 51, 41, 0.10);
  --accent:       #10b981;            /* "live/positive" */
  --accent-soft:  rgba(16, 185, 129, 0.12);
  --accent-strong:#059669;

  /* radii / shadows */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-card: 0 1px 3px rgba(10, 12, 16, 0.05), 0 8px 24px rgba(10, 12, 16, 0.04);
  --shadow-lg:   0 24px 64px rgba(10, 12, 16, 0.12);

  /* layout */
  --max: 1180px;
  --pad: 1.5rem;

  /* typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03';
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand-red); color: white; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================================
   Header (dark, sticky, brand-forward)
   ============================================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
/* logo.png (256×58) es la marca completa: las 3 R + flecha actúan como patrón de marca.
   Lo mostramos íntegro escalado por height; queda ~140px de ancho a 30px de alto. */
.brand .mark {
  display: inline-block;
  width: 140px; height: 30px;
  background-image: url('assets/logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 30px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
@media (max-width: 480px) {
  .brand .mark { width: 112px; height: 24px; background-size: auto 24px; }
}

.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--text-on-dark-muted); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-on-dark); }
.lang {
  display: flex;
  border: 1px solid var(--border-dark-strong);
  border-radius: 6px; overflow: hidden;
  font-size: 0.75rem; font-weight: 500;
}
.lang a {
  padding: 0.3125rem 0.625rem;
  color: var(--text-on-dark-muted); text-decoration: none;
}
.lang a:hover { background: rgba(255,255,255,0.04); }
.lang a.active {
  background: var(--text-on-dark); color: var(--bg-darker);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-header nav { gap: 0.625rem; }
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem; border-radius: 8px;
  font-weight: 500; font-size: 0.9375rem;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-red); color: white; }
.btn-primary:hover { background: #cf2620; transform: translateY(-1px); }
.btn-light { background: white; color: var(--bg-darker); }
.btn-light:hover { background: #f3f4f6; }
.btn-ghost-dark {
  background: transparent; color: var(--text-on-dark);
  border: 1px solid var(--border-dark-strong);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.24); }
.btn-ghost-light {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost-light:hover { background: var(--bg-alt); }

/* ============================================================================
   Section primitives
   ============================================================================ */
section { padding: clamp(4rem, 7vw, 6rem) 0; }
section.alt { background: var(--bg-alt); }
section.dark {
  background: var(--bg-dark); color: var(--text-on-dark);
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 0.875rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.section-title {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.028em;
  line-height: 1.12; max-width: 760px;
  color: inherit;
}
.section-sub {
  font-size: 1.0625rem; color: var(--text-muted);
  margin-top: 1rem; max-width: 680px; line-height: 1.55;
}
section.dark .section-sub { color: var(--text-on-dark-muted); }

/* ============================================================================
   Hero — dark, confident, with live signal
   ============================================================================ */
.hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  position: relative; overflow: hidden;
}
/* subtle radial + grid backdrop */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(900px 500px at 75% 0%, rgba(230, 51, 41, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 5% 100%, rgba(16, 185, 129, 0.07), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 0 0;
  mask-image: radial-gradient(900px 600px at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 30%, black, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-dark-strong);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.02);
}
.hero-eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.20);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.05; color: white;
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--brand-red); white-space: nowrap; }
.hero h1 .underline {
  background-image: linear-gradient(transparent 70%, rgba(230,51,41,0.28) 70%);
  background-repeat: no-repeat;
}
.hero p.lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.1875rem);
  color: var(--text-on-dark-muted); line-height: 1.55;
  margin-bottom: 1.75rem; max-width: 560px;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-dark);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.625rem; font-weight: 600;
  color: white; letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.hero-stat .lbl {
  display: block;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
}

/* ----- Telegram mockup (light card on dark hero) ----- */
.tg {
  background: white; color: var(--text);
  border-radius: 16px;
  padding: 1.25rem 1.375rem;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.55;
  position: relative;
}
.tg::before {
  content: ''; position: absolute; inset: -20px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(230, 51, 41, 0.18), transparent 70%);
  border-radius: 28px; z-index: -1; pointer-events: none;
}
.tg-head {
  display: flex; align-items: center; gap: 0.625rem;
  padding-bottom: 0.875rem; margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.tg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-dark); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em;
}
.tg-name {
  font-weight: 600; font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.tg-name .badge {
  font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-strong); background: var(--accent-soft);
  padding: 0.125rem 0.4375rem; border-radius: 999px;
}
.tg-sub { font-size: 0.75rem; color: var(--text-soft); margin-top: 1px; }
.tg-msg p { margin-bottom: 0.625rem; color: var(--text); }
.tg-msg p:last-child { margin-bottom: 0; }
.tg-msg b { font-weight: 600; }
.tg-msg .link { color: #2563eb; text-decoration: none; }
.tg-saving {
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--accent-strong); font-weight: 600; font-size: 0.875rem;
}

/* ============================================================================
   Origin band (small confidence line under hero)
   ============================================================================ */
.origin {
  background: var(--bg-darker); color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-dark);
  padding: 1.25rem 0; font-size: 0.875rem;
}
.origin .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.origin p { display: flex; align-items: center; gap: 0.75rem; }
.origin .pin {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.origin a {
  color: var(--text-on-dark); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--border-dark-strong);
}

/* ============================================================================
   Platform overview (light section, big diagram)
   ============================================================================ */
.platform .container > p.lead-prose {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--text-muted); line-height: 1.55;
  max-width: 760px; margin: 1.25rem 0 0;
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem; align-items: stretch;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0.625rem; }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
}
.flow-col {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.flow-col h4 {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-soft); margin-bottom: 1rem;
}
.flow-col ul { list-style: none; }
.flow-col li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem; color: var(--text);
}
.flow-col li:last-child { border-bottom: none; }
.flow-col.pilot {
  background: var(--bg-dark); color: white;
  border-color: var(--bg-dark);
}
.flow-col.pilot h4 { color: rgba(255,255,255,0.5); }
.flow-col.pilot .pilot-title {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em;
  color: white; margin-bottom: 0.5rem;
}
.flow-col.pilot p {
  color: var(--text-on-dark-muted); font-size: 0.9375rem;
  line-height: 1.55;
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--border-strong);
}

/* ============================================================================
   Product catalog grid
   ============================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (max-width: 920px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.product-card.featured {
  background: var(--bg-dark); color: white;
  border-color: var(--bg-dark);
  grid-column: span 1;
}
.product-card.featured .product-name { color: white; }
.product-card.featured .product-desc { color: var(--text-on-dark-muted); }
.product-card.featured .product-icon { background: rgba(230,51,41,0.18); color: white; }

.product-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.product-icon {
  width: 36px; height: 36px;
  background: var(--brand-red-soft); color: var(--brand-red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.product-status {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.1875rem 0.4375rem; border-radius: 999px;
}
.status-prod  { background: var(--accent-soft); color: var(--accent-strong); }
.status-new   { background: var(--brand-red-soft); color: var(--brand-red); }
.status-soon  { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.product-card.featured .status-new { background: var(--brand-red); color: white; }

.product-name {
  font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -0.012em; margin-bottom: 0.375rem;
}
.product-desc {
  font-size: 0.9375rem; color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================================
   PILOT spotlight — big asymmetric card on dark
   ============================================================================ */
.spotlight {
  background: var(--bg-dark); color: var(--text-on-dark);
  position: relative; overflow: hidden;
}
.spotlight::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(700px 400px at 80% 30%, rgba(230, 51, 41, 0.12), transparent 60%);
  pointer-events: none;
}
.spotlight .container { position: relative; z-index: 1; }
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .spotlight-grid { grid-template-columns: 1fr; } }

.spotlight h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 1rem; color: white;
}
.spotlight h3 .accent { color: var(--brand-red); }
.spotlight p.lead {
  color: var(--text-on-dark-muted);
  font-size: 1.0625rem; line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 540px;
}
.spotlight-bullets {
  list-style: none;
  display: grid; gap: 0.875rem;
  margin-bottom: 2rem;
}
.spotlight-bullets li {
  display: flex; gap: 0.875rem; align-items: flex-start;
  font-size: 0.9375rem; line-height: 1.55;
  color: var(--text-on-dark);
}
.spotlight-bullets li .ic {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--brand-red-soft); color: var(--brand-red);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.spotlight-bullets li strong {
  display: block; font-weight: 600; color: white;
  margin-bottom: 0.125rem;
}
.spotlight-bullets li span { color: var(--text-on-dark-muted); }

/* ============================================================================
   Apps strip (consumer apps)
   ============================================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 980px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }

.app-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s, transform 0.15s;
}
.app-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.app-card .app-icon {
  width: 36px; height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.app-card .app-name {
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.app-card .app-role {
  font-size: 0.75rem; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================================================================
   By role columns
   ============================================================================ */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
.role {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
}
.role h4 {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-red); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.role h4 .ic {
  width: 28px; height: 28px;
  background: var(--brand-red-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.role ul { list-style: none; display: grid; gap: 0.625rem; }
.role li {
  display: flex; gap: 0.625rem; align-items: flex-start;
  font-size: 0.9375rem; color: var(--text); line-height: 1.5;
}
.role li::before {
  content: '→';
  color: var(--brand-red); font-weight: 600;
  flex-shrink: 0;
}

/* ============================================================================
   Integrations bar
   ============================================================================ */
.integrations { text-align: center; }
.integrations-row {
  margin-top: 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem 3rem; flex-wrap: wrap;
}
.integrations-row span {
  font-family: var(--font-mono);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.integrations-note {
  margin-top: 1.5rem;
  font-size: 0.875rem; color: var(--text-soft);
}

/* ============================================================================
   Numbers (proof bar)
   ============================================================================ */
.proofbar {
  background: var(--bg-dark); color: var(--text-on-dark);
}
.proofbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 720px) { .proofbar-grid { grid-template-columns: repeat(2, 1fr); } }
.proof {
  border-left: 2px solid var(--brand-red);
  padding-left: 1.25rem;
}
.proof .num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 600; color: white;
  letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 0.375rem;
}
.proof .lbl {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: -0.005em;
}

/* ============================================================================
   Steps
   ============================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem;
}
.step .num {
  width: 32px; height: 32px;
  background: var(--bg-dark); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9375rem; font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.4375rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }

/* ============================================================================
   CTA section
   ============================================================================ */
.cta {
  background: var(--bg-dark); color: var(--text-on-dark);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 400px at 50% 0%, rgba(230, 51, 41, 0.10), transparent 60%);
  pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.028em;
  margin-bottom: 1rem; color: white; line-height: 1.12;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.cta h2 .accent { color: var(--brand-red); }
.cta p.lead {
  font-size: 1.0625rem; color: var(--text-on-dark-muted);
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.55;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.form .full { grid-column: 1 / -1; }
.form label {
  display: block;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.375rem;
}
.form input, .form select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark-strong);
  border-radius: 6px;
  color: white;
  font-family: inherit; font-size: 0.9375rem;
  transition: border-color 0.15s;
}
.form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23cbd5e1' stroke-width='2' viewBox='0 0 24 24'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}
.form input::placeholder { color: rgba(255,255,255,0.32); }
.form input:focus, .form select:focus {
  outline: none; border-color: var(--brand-red);
  background: rgba(255, 255, 255, 0.06);
}
.form .submit-row { text-align: center; }
.form .submit-row button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--brand-red); color: white;
  border: none; border-radius: 6px;
  font-weight: 600; font-size: 0.9375rem;
  font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}
.form .submit-row button:hover { background: #cf2620; }
.form .micro {
  text-align: center; color: rgba(255,255,255,0.42);
  font-size: 0.8125rem; margin-top: 0.875rem;
}

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--bg-darker); color: var(--text-on-dark-muted);
  padding: 2rem 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.875rem;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.site-footer .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a {
  color: var(--text-on-dark-muted); text-decoration: none;
}
.site-footer a:hover { color: var(--text-on-dark); }

/* ============================================================================
   Dashboard mockups — "Wie es aussieht" / "What it looks like" / "Cómo se ve"
   ============================================================================ */
.mockups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .mockups-grid { grid-template-columns: 1fr; } }
.mockup {
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1rem;
}
.mockup.dark { background: var(--bg-dark); color: white; border-color: var(--bg-dark); }
.mockup.dark .mh-label, .mockup.dark .mh-sub { color: var(--text-on-dark-muted); }
.mockup-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}
.mockup.dark .mockup-head { border-color: var(--border-dark); }
.mh-label {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-soft);
}
.mh-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.mh-sub { font-size: 0.75rem; color: var(--text-soft); }

/* ---- Map mockup ---- */
.map-mock {
  position: relative;
  height: 200px;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(16,185,129,0.06), transparent 60%);
  background-color: #0a0c10;
  background-size: 24px 24px, 24px 24px, 100% 100%;
  border-radius: 10px;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.85;
  transform: translate(-50%, -50%);
}
.map-pin.ok    { background: #10b981; color: rgba(16,185,129,0.18); }
.map-pin.warn  { background: #f59e0b; color: rgba(245,158,11,0.18); }
.map-pin.crit  {
  background: #ef4444; color: rgba(239,68,68,0.25);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.4; } }
.map-legend {
  display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-on-dark-muted);
  flex-wrap: wrap;
}
.map-legend .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 0.4rem; vertical-align: middle;
}

/* ---- Eco ranking ---- */
.eco-list { display: grid; gap: 0.625rem; }
.eco-row {
  display: grid;
  grid-template-columns: 24px 1fr 56px;
  gap: 0.75rem; align-items: center;
  font-size: 0.875rem;
}
.eco-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-soft);
}
.eco-bar {
  position: relative;
  height: 22px; background: var(--bg-alt);
  border-radius: 6px; overflow: hidden;
}
.eco-bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
}
.eco-bar .nm {
  position: absolute; left: 0.625rem; top: 50%;
  transform: translateY(-50%);
  font-weight: 500; color: var(--text);
  white-space: nowrap; mix-blend-mode: difference; color: white;
  font-size: 0.8125rem;
}
.eco-score {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.875rem;
  text-align: right; color: var(--text);
}

/* ---- Maintenance risk list ---- */
.maint-list { display: grid; gap: 0.75rem; }
.maint-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem; align-items: center;
  padding: 0.625rem; border-radius: 8px;
  background: var(--bg-alt);
}
.maint-score {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 1.0625rem;
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.maint-score.crit { background: #dc2626; }
.maint-score.warn { background: #f59e0b; }
.maint-mat { font-weight: 600; font-size: 0.875rem; }
.maint-why { font-size: 0.75rem; color: var(--text-soft); margin-top: 1px; }
.maint-badge {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.1875rem 0.4375rem; border-radius: 999px;
}
.maint-badge.crit { background: rgba(220,38,38,0.12); color: #dc2626; }
.maint-badge.warn { background: rgba(245,158,11,0.14); color: #b45309; }

/* ---- Fatigue donut ---- */
.fatigue-wrap {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: center;
}
.fatigue-ring {
  width: 130px; height: 130px;
  position: relative;
}
.fatigue-ring svg { transform: rotate(-90deg); }
.fatigue-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
}
.fatigue-num .v {
  font-size: 1.875rem; font-weight: 700; color: white; letter-spacing: -0.02em;
}
.fatigue-num .t { font-size: 0.6875rem; color: var(--text-on-dark-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fatigue-info { display: grid; gap: 0.5rem; }
.fatigue-info .pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
  color: #fbbf24; background: rgba(251,191,36,0.12);
  padding: 0.25rem 0.5rem; border-radius: 999px;
  width: fit-content;
}
.fatigue-info .vehicle { font-weight: 600; font-size: 0.9375rem; color: white; }
.fatigue-info .driver { font-size: 0.8125rem; color: var(--text-on-dark-muted); }
.fatigue-info .action {
  margin-top: 0.25rem;
  font-size: 0.8125rem; color: var(--text-on-dark);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-dark);
}

/* ============================================================================
   Metronic-style mockups (paleta darkblue real del sistema)
   Replican el aspecto de los dashboards de sadmin/ con sus portlets y stats.
   ============================================================================ */
:root {
  --mt-bg:        #f0f2f5;     /* fondo página */
  --mt-card:      #ffffff;     /* portlet body */
  --mt-header:    #2b3643;     /* navy top bar */
  --mt-sidebar:   #364150;
  --mt-accent:    #36c6d3;     /* cyan turquesa Metronic */
  --mt-accent-d:  #2a9aa5;
  --mt-text:      #333;
  --mt-text-mut:  #678;
  --mt-border:    #e7ecf1;
  --mt-shadow:    0 1px 3px rgba(0,0,0,0.08);
  --mt-green:     #27ae60;
  --mt-yellow:    #f39c12;
  --mt-red:       #e74c3c;
}

.mt-mockup {
  background: var(--mt-bg);
  border-radius: var(--r-lg);
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: 'Open Sans', var(--font);
  color: var(--mt-text);
}
.mt-topbar {
  background: var(--mt-header);
  color: white;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  border-bottom: 2px solid var(--mt-accent);
}
.mt-topbar .crumb { opacity: 0.55; font-weight: 600; letter-spacing: 0.02em; }
.mt-topbar .crumb b { color: var(--mt-accent); opacity: 1; font-weight: 600; margin-left: 0.4rem; }
.mt-topbar .meta { font-size: 0.6875rem; opacity: 0.7; }
.mt-body { padding: 0.875rem; }

/* Portlet (la tarjeta clásica) */
.mt-portlet {
  background: var(--mt-card);
  border: 1px solid var(--mt-border);
  border-radius: 4px;
  box-shadow: var(--mt-shadow);
}
.mt-portlet-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--mt-border);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--mt-text-mut);
}
.mt-portlet-title .badge {
  font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.125rem 0.4375rem; border-radius: 2px;
  background: var(--mt-accent); color: white;
}
.mt-portlet-body { padding: 0.75rem 0.875rem 0.875rem; }

/* dashboard-stat2: KPI grande con número + icono + barra */
.mt-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.mt-stat {
  background: var(--mt-card);
  border: 1px solid var(--mt-border);
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
  box-shadow: var(--mt-shadow);
}
.mt-stat .row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.mt-stat .n {
  font-family: 'Open Sans', var(--font);
  font-size: 1.375rem; font-weight: 700;
  color: var(--mt-accent); line-height: 1.1;
  letter-spacing: -0.01em;
}
.mt-stat .ic {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mt-text-mut); opacity: 0.55;
}
.mt-stat .lbl {
  font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mt-text-mut);
  margin-top: 0.1875rem;
}
.mt-stat .bar {
  margin-top: 0.5rem;
  height: 5px; background: var(--mt-bg);
  border-radius: 3px; overflow: hidden;
}
.mt-stat .bar > i {
  display: block; height: 100%;
  background: var(--mt-accent); border-radius: 3px;
}
.mt-stat .bar.green > i  { background: var(--mt-green); }
.mt-stat .bar.yellow > i { background: var(--mt-yellow); }
.mt-stat .bar.red > i    { background: var(--mt-red); }
.mt-stat .delta {
  font-size: 0.6875rem; font-weight: 600;
  margin-top: 0.25rem;
}
.mt-stat .delta.up   { color: var(--mt-green); }
.mt-stat .delta.down { color: var(--mt-red); }

/* Tablas Bootstrap-style */
.mt-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.75rem;
}
.mt-table th, .mt-table td {
  padding: 0.5rem 0.625rem; text-align: left;
  border-bottom: 1px solid var(--mt-border);
}
.mt-table th {
  background: #f5f7fa; color: var(--mt-text-mut);
  font-weight: 600; text-transform: uppercase;
  font-size: 0.625rem; letter-spacing: 0.04em;
}
.mt-table tbody tr:hover { background: #f7f9fc; }
.mt-table .mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}
.mt-badge {
  display: inline-block;
  padding: 0.125rem 0.4375rem;
  border-radius: 2px;
  font-size: 0.625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.mt-badge.green  { background: rgba(39,174,96,0.12);  color: #1e8449; }
.mt-badge.yellow { background: rgba(243,156,18,0.14); color: #b8770b; }
.mt-badge.red    { background: rgba(231,76,60,0.12);  color: #c0392b; }
.mt-badge.blue   { background: rgba(54,198,211,0.14); color: var(--mt-accent-d); }

/* "NavMap" mockup: header + mapa */
.mt-navmap {
  background: var(--mt-header);
}
.mt-navmap .mt-topbar { border-bottom-color: var(--mt-accent); }
.mt-navmap-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
}
.mt-side {
  background: #fbfcfd;
  border-right: 1px solid var(--mt-border);
  padding: 0.625rem;
  font-size: 0.6875rem;
}
.mt-side .filter-lbl {
  font-size: 0.5625rem; font-weight: 600;
  color: var(--mt-text-mut); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.25rem;
}
.mt-side select {
  width: 100%;
  font-size: 0.6875rem;
  padding: 0.25rem 0.375rem;
  border: 1px solid var(--mt-border);
  border-radius: 3px;
  background: white; color: var(--mt-text);
  margin-bottom: 0.5rem;
}
.mt-side .veh {
  display: flex; justify-content: space-between;
  padding: 0.25rem 0; border-top: 1px solid var(--mt-border);
}
.mt-side .veh:first-of-type { border-top: none; }
.mt-side .veh .score { font-weight: 700; color: var(--mt-accent-d); }
.mt-map {
  position: relative;
  height: 220px;
  background:
    linear-gradient(rgba(43,54,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,54,67,0.04) 1px, transparent 1px),
    linear-gradient(135deg, #e8eef3 0%, #f0f2f5 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}
.mt-pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transform: translate(-50%, -50%);
}
.mt-pin.g { background: var(--mt-green); }
.mt-pin.y { background: var(--mt-yellow); }
.mt-pin.r { background: var(--mt-red); animation: blink 1.6s ease-in-out infinite; }
.mt-tooltip {
  position: absolute;
  background: white;
  border: 1px solid var(--mt-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 0.4375rem 0.5625rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  min-width: 130px;
}
.mt-tooltip strong { display: block; font-weight: 600; color: var(--mt-accent-d); margin-bottom: 0.125rem; }

/* Tour list specific */
.mt-toolbar {
  display: flex; gap: 0.375rem; flex-wrap: wrap;
  margin-bottom: 0.625rem;
}
.mt-btn {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  padding: 0.25rem 0.625rem;
  background: var(--mt-green); color: white;
  border-radius: 3px;
  font-size: 0.6875rem; font-weight: 600;
  border: none;
}
.mt-btn.alt { background: var(--mt-accent); }
.mt-btn.outline {
  background: white; color: var(--mt-text-mut);
  border: 1px solid var(--mt-border);
}

/* ============================================================================
   Focus / a11y
   ============================================================================ */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
