/* ============================================================
   RV CARGO — LANDING · Sistema de diseño
   Concepto: "Sala de control logística en vivo"
   ============================================================ */

:root{
  /* Marca */
  --blue:        #1D69FF;
  --blue-600:    #155fe8;
  --blue-light:  #6aa3ff;
  --accent:      #F97316;
  --accent-600:  #ea6a0c;
  --success:     #16a34a;

  /* Oscuros */
  --dark-bg:     #060D1F;
  --dark-card:   #0a1730;
  --dark-surface:#040b1a;
  --dark-border: #14264c;

  /* Claros */
  --light-bg:    #F4F7FF;
  --light-card:  #EEF3FF;
  --light-border:#D8E2F4;

  /* Texto */
  --text-dark:   #0D1F3C;
  --text-mid:    #4a6a9a;
  --text-muted:  #8aa4c8;
  --text-light:  #E8EEFF;
  --text-dim:    #7f9ac7;

  /* Sistema */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Semánticos — tema CLARO (default) */
  --page-bg:       #ffffff;
  --card-1:        #F8FAFF;   /* tarjetas grandes de servicio */
  --card-1-border: #DCE6FB;
  --card-2:        #ffffff;   /* tarjetas compactas / form / tags */
  --card-2-border: #E8EEF8;
  --field-bg:      #F4F7FF;   /* inputs */
}

/* Tema OSCURO — el switch del nav cambia data-theme en <html> */
:root[data-theme="dark"]{
  --light-bg:      #0a1529;
  --light-card:    #0c1a38;
  --light-border:  #1a2c52;
  --text-dark:     #EAF0FF;
  --text-mid:      #9db2d6;
  --text-muted:    #6f89b3;
  --page-bg:       #060D1F;
  --card-1:        #0b1830;
  --card-1-border: #1a2c52;
  --card-2:        #0c1a38;
  --card-2-border: #1a2c52;
  --field-bg:      #091428;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
::selection{ background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section{ padding-block: clamp(64px, 9vw, 120px); position: relative; }
.eyebrow{
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.on-dark{ color: var(--blue-light); }
.eyebrow .tick{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.s-head{ max-width: 680px; margin-bottom: clamp(40px, 5vw, 60px); }
.s-head h2{
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  margin-top: 18px; text-wrap: balance;
}
.s-head p{
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-mid); margin-top: 18px; max-width: 600px;
  text-wrap: pretty;
}
.s-head.on-dark h2{ color: #fff; }
.s-head.on-dark p{ color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: 12px;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg{ width: 17px; height: 17px; }
.btn-primary{ background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(249,115,22,.6); }
.btn-primary:hover{ background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(249,115,22,.65); }
.btn-ghost{ background: transparent; color: var(--text-light); border: 1px solid var(--dark-border); }
.btn-ghost:hover{ border-color: var(--blue-light); background: rgba(29,105,255,.08); transform: translateY(-2px); }
.btn-blue{ background: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(29,105,255,.6); }
.btn-blue:hover{ background: var(--blue-600); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,13,31,.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.nav.scrolled{ border-color: var(--dark-border); box-shadow: 0 8px 30px -10px rgba(0,0,0,.6); }
.nav-inner{ display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img{ height: 30px; width: auto; }
.nav-links{ display: flex; align-items: center; gap: 4px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  padding: 8px 16px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav-links a:hover{ color: #fff; background: rgba(255,255,255,.05); }
.nav-cta{ display: flex; align-items: center; gap: 14px; }
.nav-burger{ display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span{ width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; transition: .3s; }
.theme-toggle{ width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dark-border); background: transparent; color: var(--text-light); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover{ background: rgba(255,255,255,.06); border-color: var(--blue-light); transform: translateY(-1px); }
.theme-toggle svg{ width: 18px; height: 18px; }
.theme-toggle .ic-sun{ display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon{ display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun{ display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  background: var(--dark-bg);
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 110px);
}
.hero-bg{ position: absolute; inset: 0; pointer-events: none; }
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,105,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,105,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 30%, transparent 75%);
}
.hero-glow{
  position: absolute; top: -25%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(29,105,255,.20), transparent 65%);
  filter: blur(20px);
}
.hero-glow.two{ top: 35%; right: 35%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,.10), transparent 65%); }

.hero-inner{ position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 70px); align-items: center; }

.badge{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--text-light);
  background: rgba(29,105,255,.10); border: 1px solid var(--dark-border);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 28px;
}
.badge .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(249,115,22,.6); animation: pulse 2.2s infinite; }

.hero h1{
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.035em;
  color: #fff; text-wrap: balance;
}
.hero h1 em{ font-style: normal; color: var(--blue-light); }
.hero-sub{
  font-size: clamp(16px, 1.7vw, 19px); color: var(--text-dim);
  margin-top: 22px; max-width: 480px; text-wrap: pretty;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats{
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--dark-border);
}
.hstat .n{ font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hstat .n span{ color: var(--accent); }
.hstat .l{ font-size: 12.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.3; }

/* ---------- Live fleet widget ---------- */
.fleet{
  background: linear-gradient(180deg, var(--dark-card), var(--dark-surface));
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.fleet-bar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
}
.fleet-bar .t{ display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--text-light); letter-spacing: .02em; }
.live-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(22,163,74,.7); animation: pulse-green 1.8s infinite; }
.fleet-bar .upd{ font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

.fleet-rows{ display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
.r-row{
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: 12px;
  transition: background .25s;
}
.r-row:hover{ background: rgba(255,255,255,.025); }
.r-row + .r-row{ border-top: 1px solid rgba(255,255,255,.04); }
.rdot{ width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; position: relative; }
.rdot::after{ content:''; position:absolute; inset:-5px; border-radius:50%; opacity:.25; background: inherit; }
.rdot-transit{ background: var(--accent); }
.rdot-customs{ background: var(--blue); }
.rdot-delivered{ background: var(--success); }
.r-main{ flex: 1; min-width: 0; }
.r-name{ font-size: 14px; font-weight: 600; color: var(--text-light); font-variant-numeric: tabular-nums; }
.r-name .veh{ color: var(--text-dim); font-weight: 400; }
.r-sub{ font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.rtag{ font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .03em; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.rtag-transit{ color: #ffb877; background: rgba(249,115,22,.12); }
.rtag-customs{ color: var(--blue-light); background: rgba(29,105,255,.14); }
.rtag-delivered{ color: #57d98a; background: rgba(22,163,74,.14); }

.fleet-map{
  margin: 6px; padding: 16px 18px; border-radius: 16px;
  background: var(--dark-surface); border: 1px solid var(--dark-border);
}
.fleet-map .ml{ font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.route{ display: flex; align-items: center; }
.route .node{ display: flex; flex-direction: column; align-items: center; gap: 6px; }
.route .node .pt{ width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--blue); background: var(--dark-bg); }
.route .node.done .pt{ background: var(--blue); }
.route .node .city{ font-family: var(--mono); font-size: 11px; color: var(--text-light); }
.route .line{ flex: 1; height: 2px; margin: 0 6px; margin-bottom: 22px; background: var(--dark-border); position: relative; overflow: hidden; border-radius: 2px; }
.route .line.active::after{ content:''; position:absolute; inset:0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: flow 2.2s infinite linear; }
.route .line.filled{ background: var(--blue); }

/* --- Widget: resumen de estado de despachos --- */
.fleet-summary{ display: flex; align-items: stretch; gap: 4px; margin: 6px; padding: 14px 10px; border-radius: 16px; background: var(--dark-surface); border: 1px solid var(--dark-border); }
.fs-item{ flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.fs-item .fs-top{ display: flex; align-items: center; gap: 8px; }
.fs-item .rdot{ width: 8px; height: 8px; border-radius: 50%; }
.fs-item b{ font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.fs-item .fs-l{ font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: .02em; }
.fs-sep{ width: 1px; background: var(--dark-border); }

/* ============================================================
   TICKER — banda cinética de corredores (elemento estrella)
   ============================================================ */
.ticker{ background: var(--dark-bg); border-block: 1px solid var(--dark-border); padding-block: clamp(34px, 5vw, 58px); overflow: hidden; position: relative; }
.ticker::before, .ticker::after{ content: ''; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none; }
.ticker::before{ left: 0; background: linear-gradient(90deg, var(--dark-bg), transparent); }
.ticker::after{ right: 0; background: linear-gradient(270deg, var(--dark-bg), transparent); }
.ticker-cap{ text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-light); margin-bottom: clamp(22px, 3vw, 34px); display: flex; align-items: center; justify-content: center; gap: 10px; }
.ticker-cap .tick{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tk-row{ display: flex; width: max-content; will-change: transform; }
.tk-row.a{ animation: marquee 38s linear infinite; }
.tk-row.b{ animation: marquee 30s linear infinite reverse; margin-top: 14px; }
.tk-item{ display: inline-flex; align-items: center; font-weight: 800; font-size: clamp(34px, 6.5vw, 80px); letter-spacing: -0.035em; line-height: .95; text-transform: uppercase; color: #fff; padding-inline: .12em; white-space: nowrap; }
.tk-item.tk-out{ color: transparent; -webkit-text-stroke: 1.4px rgba(170,196,240,.45); text-stroke: 1.4px rgba(170,196,240,.45); }
.tk-sep{ display: inline-flex; align-items: center; color: var(--accent); font-size: clamp(20px, 3vw, 38px); padding-inline: clamp(14px, 2vw, 30px); }
.tk-row.b .tk-item{ font-size: clamp(13px, 1.8vw, 20px); font-weight: 500; font-family: var(--mono); letter-spacing: .04em; color: var(--text-dim); text-transform: uppercase; }
.tk-row.b .tk-sep{ color: var(--blue); font-size: clamp(10px, 1.4vw, 14px); padding-inline: clamp(12px, 1.6vw, 22px); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ============================================================
   CORRIDOR BOARD — tablero de corredores activos
   ============================================================ */
.cov-board{ background: var(--dark-bg); border: 1px solid var(--dark-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(6,13,31,.5); }
.cb-head{ display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--dark-border); }
.cb-head .t{ font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.cb-head .c{ font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.cb-row{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 22px; transition: background .2s; }
.cb-row + .cb-row{ border-top: 1px solid rgba(255,255,255,.05); }
.cb-row:hover{ background: rgba(29,105,255,.06); }
.cb-route{ display: grid; grid-template-columns: 145px 20px 145px 1fr; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--text-light); flex: 1; min-width: 0; }
.cb-route span:nth-of-type(1),
.cb-route span:nth-of-type(3) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-route .arw{ color: var(--blue-light); display: inline-flex; flex-shrink: 0; justify-content: center; }
.cb-route .arw svg{ width: 16px; height: 16px; }
.cb-route .route-vol{ font-size: 12px; color: var(--text-muted); font-weight: 400; text-align: right; padding-right: 20px; white-space: nowrap; }
.cb-kind{ font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 7px; white-space: nowrap; flex-shrink: 0; }
.cb-kind.reg{ color: var(--blue-light); background: rgba(29,105,255,.12); }
.cb-kind.tf{ color: #ffb877; background: rgba(249,115,22,.13); }
.cb-kind.lc{ color: #57d98a; background: rgba(22,163,74,.14); }

/* ============================================================
   METRICS STRIP
   ============================================================ */
.metrics{ background: var(--light-card); border-block: 1px solid var(--light-border); }
.metrics-grid{ display: grid; grid-template-columns: repeat(3,1fr); }
.metric{ padding: clamp(36px,5vw,56px) clamp(20px,3vw,40px); text-align: center; position: relative; }
.metric + .metric{ border-left: 1px solid var(--light-border); }
.metric .v{ font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.04em; color: var(--text-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.metric .v span{ color: var(--blue); }
.metric .l{ font-size: 14px; color: var(--text-mid); margin-top: 12px; font-weight: 500; }
.metric .micro{ font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; }
.metric .micro .live-dot{ width: 6px; height: 6px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-main{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-card{
  position: relative; background: var(--card-1); border: 1px solid var(--card-1-border);
  border-radius: var(--radius); padding: 34px 32px;
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc-card::before{ content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.svc-card:hover{ transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(29,105,255,.3); border-color: #B8CCFF; }
.svc-ico{ width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(29,105,255,.1); color: var(--blue); margin-bottom: 22px; }
.svc-ico svg{ width: 26px; height: 26px; }
.svc-label{ font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.svc-card h3{ font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 14px; line-height: 1.15; }
.svc-card p{ font-size: 15px; color: var(--text-mid); line-height: 1.6; }
.tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag{ font-size: 12.5px; font-weight: 500; color: var(--text-mid); background: var(--card-2); border: 1px solid var(--card-2-border); padding: 6px 12px; border-radius: 100px; }
.tag.blue{ color: var(--blue); background: rgba(29,105,255,.06); border-color: rgba(29,105,255,.2); }
.tag.accent{ color: var(--accent-600); background: rgba(249,115,22,.07); border-color: rgba(249,115,22,.22); }

.svc-divider{ display: flex; align-items: center; gap: 20px; margin: 44px 0 32px; }
.svc-divider::before, .svc-divider::after{ content:''; flex: 1; height: 1px; background: var(--light-border); }
.svc-divider span{ font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.svc-comp{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.comp-card{
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card-2); border: 1px solid var(--card-2-border); border-radius: var(--radius);
  padding: 26px 28px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.comp-card:hover{ transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(249,115,22,.3); border-color: rgba(249,115,22,.3); }
.comp-ico{ width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(249,115,22,.1); color: var(--accent); }
.comp-ico svg{ width: 23px; height: 23px; }
.comp-card h4{ font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.comp-card p{ font-size: 14px; color: var(--text-mid); line-height: 1.55; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars{ background: var(--light-bg); }
.pillar-grid{ display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--light-border); border-radius: var(--radius); overflow: hidden; background: var(--card-2); }
.pillar{ padding: clamp(30px,3.5vw,42px); position: relative; }
.pillar + .pillar{ border-left: 1px solid var(--light-border); }
.pillar:nth-child(2){ background: var(--light-bg); }
.pillar-num{ font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: .1em; }
.pillar-ico{ width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(29,105,255,.1); color: var(--blue); margin: 18px 0 22px; }
.pillar-ico svg{ width: 25px; height: 25px; }
.pillar h3{ font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 12px; text-wrap: balance; }
.pillar p{ font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }
.pillar-stat{ margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--light-border); display: flex; align-items: baseline; gap: 8px; }
.pillar-stat .ps-n{ font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pillar-stat .ps-n.accent{ color: var(--accent); }
.pillar-stat .ps-l{ font-size: 13px; color: var(--text-muted); }

/* ============================================================
   COVERAGE
   ============================================================ */
.coverage{ position: relative; }
.cov-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px,5vw,64px); align-items: center; }
.cov-tags{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cov-tag{ display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--text-dark); background: var(--light-bg); border: 1px solid var(--light-border); padding: 11px 18px; border-radius: 100px; transition: transform .2s, border-color .2s; }
.cov-tag:hover{ transform: translateY(-2px); border-color: var(--blue); }
.cov-tag svg{ width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.cov-map{
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: var(--dark-bg); overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: 0 40px 80px -40px rgba(6,13,31,.5);
}
.cov-map .mapgrid{ position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,105,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29,105,255,.08) 1px, transparent 1px);
  background-size: 40px 40px; }
.cov-map .mglow{ position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(29,105,255,.18), transparent 60%); }
.cov-map .mlabel{ position: absolute; left: 22px; top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote{ background: var(--light-bg); }
.quote-inner{ display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(36px,5vw,64px); align-items: start; }
.quote-aside .badge-light{ display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--blue); background: rgba(29,105,255,.07); border: 1px solid rgba(29,105,255,.2); padding: 7px 14px; border-radius: 100px; }
.quote-aside h2{ font-size: clamp(28px,3.6vw,42px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 22px 0 18px; text-wrap: balance; }
.quote-aside p{ font-size: 16px; color: var(--text-mid); }
.quote-feats{ margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.qfeat{ display: flex; gap: 13px; align-items: center; font-size: 14.5px; color: var(--text-dark); }
.qfeat .qf-ico{ width: 34px; height: 34px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--light-border); display: grid; place-items: center; color: var(--blue); flex-shrink: 0; }
.qfeat .qf-ico svg{ width: 17px; height: 17px; }

.quote-form{ background: var(--card-2); border: 1px solid var(--light-border); border-radius: var(--radius-lg); padding: clamp(26px,3vw,38px); box-shadow: 0 30px 70px -40px rgba(13,31,60,.25); }
.q-grid{ display: grid; gap: 16px; }
.q-row2{ grid-template-columns: 1fr 1fr; }
.q-row3{ grid-template-columns: 1fr 1fr 1fr; }
.q-field{ display: flex; flex-direction: column; gap: 7px; }
.q-field label{ font-size: 13px; font-weight: 600; color: var(--text-mid); letter-spacing: .01em; }
.q-field input, .q-field select{
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  background: var(--field-bg); border: 1px solid var(--light-border);
  padding: 12px 14px; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
  width: 100%; appearance: none;
}
.q-field select{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6a9a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.q-field input:focus, .q-field select:focus{ outline: none; border-color: var(--blue); background: var(--card-2); box-shadow: 0 0 0 3px rgba(29,105,255,.12); }
.q-field input::placeholder{ color: var(--text-muted); }
.quote-form .btn-primary{ width: 100%; justify-content: center; margin-top: 6px; padding: 16px; background: var(--blue); box-shadow: 0 8px 24px -8px rgba(29,105,255,.6); }
.quote-form .btn-primary:hover{ background: var(--blue-600); box-shadow: 0 14px 30px -8px rgba(29,105,255,.65); }
.q-note{ font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.quote-success{ display: none; text-align: center; padding: 20px; }
.quote-success.show{ display: block; animation: fadeUp .5s var(--ease); }
.quote-success .qs-ico{ width: 64px; height: 64px; border-radius: 50%; background: rgba(22,163,74,.1); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.quote-success .qs-ico svg{ width: 32px; height: 32px; }
.quote-success h3{ font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.quote-success p{ color: var(--text-mid); font-size: 15px; }

/* --- Nuevos elementos del formulario moderno --- */
.q-fullwidth { grid-column: 1 / -1; }
.q-field textarea {
  font-family: inherit; font-size: 15px; color: var(--text-dark);
  background: var(--field-bg); border: 1px solid var(--light-border);
  padding: 12px 14px; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
  width: 100%; resize: vertical;
}
.q-field textarea:focus { outline: none; border-color: var(--blue); background: var(--card-2); box-shadow: 0 0 0 3px rgba(29,105,255,.12); }
.q-field textarea::placeholder { color: var(--text-muted); }

.weight-label-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.weight-toggle-container { display: flex; background: var(--light-border); border-radius: 6px; padding: 2px; border: 1px solid var(--light-border); }
:root[data-theme="dark"] .weight-toggle-container { background: var(--dark-border); border-color: var(--dark-border); }
.weight-toggle-btn { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; color: var(--text-mid); transition: background .2s, color .2s; }
.weight-toggle-btn.active { background: var(--card-2); color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
:root[data-theme="dark"] .weight-toggle-btn.active { color: #fff; background: var(--field-bg); }

.phone-input-group { display: flex; gap: 0; background: var(--field-bg); border: 1px solid var(--light-border); border-radius: 10px; overflow: visible; position: relative; width: 100%; }
.phone-input-group:focus-within { border-color: var(--blue); background: var(--card-2); box-shadow: 0 0 0 3px rgba(29,105,255,.12); }
.phone-input-group input { border: none !important; background: transparent !important; box-shadow: none !important; padding-left: 8px !important; }

.country-select { position: relative; cursor: pointer; user-select: none; border-right: 1px solid var(--light-border); display: flex; align-items: center; padding-inline: 12px 8px; flex-shrink: 0; }
.country-selected { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.country-selected .flag { font-size: 16px; }
.country-selected .prefix { color: var(--text-dark); font-family: var(--mono); font-size: 13.5px; }
.dropdown-chevron { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s; margin-left: 2px; }
.country-select.open .dropdown-chevron { transform: rotate(180deg); }
.country-options {
  position: absolute; top: calc(100% + 6px); left: 0; width: 220px;
  background: var(--card-2); border: 1px solid var(--light-border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13,31,60,0.18); list-style: none; margin: 0; padding: 6px;
  display: none; z-index: 1000; max-height: 260px; overflow-y: auto;
}
.country-select.open .country-options { display: block; animation: fadeUp .2s var(--ease); }
.country-options li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-dark); transition: background .2s; }
.country-options li:hover { background: var(--field-bg); }
.country-options li .flag { font-size: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background: var(--dark-bg); color: var(--text-dim); padding-block: 64px 40px; position: relative; overflow: hidden; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-border); }
.footer-logo img{ height: 34px; margin-bottom: 18px; }
.footer-brand p{ font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h5{ font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a{ display: block; font-size: 14px; color: var(--text-dim); padding: 6px 0; transition: color .2s; }
.footer-col a:hover{ color: var(--blue-light); }
.footer-bot{ display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bot p{ font-size: 13px; color: var(--text-muted); }
.footer-bot .links{ display: flex; gap: 24px; }
.footer-bot .links a{ font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-bot .links a:hover{ color: var(--text-light); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse{ 0%{ box-shadow: 0 0 0 0 rgba(249,115,22,.6); } 70%{ box-shadow: 0 0 0 9px rgba(249,115,22,0); } 100%{ box-shadow: 0 0 0 0 rgba(249,115,22,0); } }
@keyframes pulse-green{ 0%{ box-shadow: 0 0 0 0 rgba(22,163,74,.7); } 70%{ box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100%{ box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@keyframes flow{ 0%{ transform: translateX(-100%); } 100%{ transform: translateX(350%); } }
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(16px); } to{ opacity: 1; transform: translateY(0); } }

.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1 !important; transform: none !important; } *{ animation: none !important; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px){
  .hero-inner{ grid-template-columns: 1fr; }
  .fleet{ max-width: 540px; }
  .cov-grid, .quote-inner{ grid-template-columns: 1fr; }
  .cov-board{ max-width: 620px; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav-links, .nav-cta .btn{ display: none; }
  .nav-burger{ display: flex; }
  .nav-cta{ gap: 10px; }
  .svc-main, .svc-comp, .pillar-grid, .metrics-grid{ grid-template-columns: 1fr; }
  .pillar + .pillar, .metric + .metric{ border-left: none; border-top: 1px solid var(--light-border); }
  .q-row2, .q-row3{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 30px; }
  .footer-bot{ flex-direction: column; align-items: flex-start; }
  .hero-stats{ gap: 14px; }
  .ticker::before, .ticker::after{ width: 8%; }
  .cb-row{ padding: 15px 16px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .cb-route{ font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .cb-route span:nth-of-type(1),
  .cb-route span:nth-of-type(3) { white-space: normal; }
  .cb-route .route-vol{ margin-left: 0; padding-right: 0; width: 100%; margin-top: 2px; text-align: left; }
}
@media (max-width: 460px){
  .hero-stats{ grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hero-stats .hstat:last-child{ grid-column: 1 / -1; }
  .fleet-summary{ padding: 12px 6px; }
  .fs-item b{ font-size: 19px; }
  .cb-row{ grid-template-columns: 1fr; }
  .cb-kind{ justify-self: start; }
  .btn{ width: 100%; justify-content: center; }
  .hero-actions{ flex-direction: column; }
  .hero-actions .btn{ width: 100%; }
}
