/* ==========================================================
   VAREX VIAL — Estilos
   Paleta tomada del logo: azul acero degradado + plata sobre negro
   ========================================================== */
:root {
  --bg: #07090c;
  --bg-2: #0d1117;
  --bg-3: #121821;
  --line: rgba(120, 170, 220, 0.14);
  --line-strong: rgba(120, 170, 220, 0.3);

  --blue-900: #143456;
  --blue-700: #1f4f80;
  --blue-500: #2f6fa8;
  --blue-400: #4a8fc6;
  --blue-300: #7cb8e2;
  --blue-200: #b4dcf3;

  --silver-100: #f1f3f5;
  --silver-300: #c9ced3;
  --silver-500: #8f969d;

  --text: #e6eaee;
  --text-dim: #9aa4ae;

  --grad-blue: linear-gradient(180deg, #4a8fc6 0%, #1f4f80 100%);
  --grad-silver: linear-gradient(180deg, #f1f3f5 0%, #9aa1a8 100%);
  --grad-v: linear-gradient(160deg, #a9dcf5 0%, #5aa3d4 35%, #2b6399 75%, #1a4470 100%);

  --green: #27d36b;
  --yellow: #ffc928;
  --red: #ff3b3b;
  --amber: #ffb02e;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --header-h: 72px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía de marca ---------- */
.txt-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.txt-silver {
  background: var(--grad-silver);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 14px;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #4a8fc6, #1f4f80);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(74, 143, 198, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(74, 143, 198, .8); }
.btn-ghost { border-color: var(--line-strong); color: var(--silver-100); }
.btn-ghost:hover { border-color: var(--blue-300); background: rgba(74, 143, 198, .08); }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 9, 12, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--silver-300);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .05); }
.nav .nav-client {
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  color: var(--blue-200);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav .nav-client:hover { border-color: var(--blue-300); }
.nav .nav-client svg { width: 15px; height: 15px; }

/* Selector de idioma */
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: var(--silver-300);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; font-size: 0.82rem; font-weight: 600;
}
.lang-btn:hover { border-color: var(--line-strong); color: #fff; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  list-style: none; margin: 0; padding: 6px;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  border-radius: 10px; min-width: 160px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; text-align: left;
  background: none; border: 0; color: var(--silver-300);
  padding: 9px 12px; border-radius: 6px; font-size: 0.88rem;
  display: flex; justify-content: space-between;
}
.lang-menu button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-menu button[aria-current="true"] { color: var(--blue-300); }
.lang-menu button span { color: var(--text-dim); font-size: .75rem; }

.menu-toggle {
  display: none; background: none; border: 0; color: #fff;
  width: 40px; height: 40px; padding: 8px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 45%, rgba(47, 111, 168, .22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(31, 79, 128, .18), transparent 70%);
  pointer-events: none;
}
/* Líneas de ruta en perspectiva */
.hero-road {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(120, 170, 220, .06) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(120, 170, 220, .06) 79px 80px);
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: road 4s linear infinite;
  pointer-events: none;
}
@keyframes road { to { background-position: 0 0, 0 80px; } }

.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.07; font-weight: 800;
  margin: 0 0 22px; letter-spacing: -0.02em;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; }
.hero-stats span { font-size: .82rem; color: var(--text-dim); }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo .v-big {
  width: min(380px, 80%);
  filter: drop-shadow(0 0 40px rgba(90, 163, 212, .35));
  animation: float 6s ease-in-out infinite;
  overflow: visible;
}
.hero-logo .v-edge path { stroke-dasharray: 12 88; }
.hero-logo .glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 143, 198, .25), transparent 65%);
  filter: blur(20px);
}
.hero-logo .wordmark { margin-top: 26px; text-align: center; position: relative; }
.hero-logo .wordmark .name { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: .02em; line-height: 1; }
.hero-logo .wordmark .tag { font-size: .72rem; letter-spacing: .14em; color: var(--silver-300); margin-top: 10px; text-transform: uppercase; }
.hero-logo .wordmark .tag i { color: var(--blue-400); font-style: normal; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ==========================================================
   SOLUCIONES / PRODUCTOS
   ========================================================== */
.products { display: grid; gap: 34px; }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s;
}
.product:hover { border-color: var(--line-strong); }
.product:nth-child(even) .product-visual { order: 2; }

.product-visual {
  min-height: 360px; position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(47, 111, 168, .14), transparent 70%),
    #05070a;
  border-right: 1px solid var(--line);
  padding: 30px;
  overflow: hidden;
}
.product:nth-child(even) .product-visual { border-right: 0; border-left: 1px solid var(--line); }

.product-body { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.product-num { font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: var(--blue-400); margin-bottom: 10px; }
.product-body h3 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.product-body .target {
  display: inline-block; font-size: .78rem; font-weight: 600;
  color: var(--blue-200); background: rgba(74, 143, 198, .12);
  border: 1px solid rgba(74, 143, 198, .25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; align-self: flex-start;
}
.product-body p { color: var(--text-dim); margin: 0 0 20px; }
.features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--silver-300); }
.features li::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--grad-v);
}
.product-body .btn { align-self: flex-start; }

/* Brillo que sigue al mouse sobre cada gráfico */
.product-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(74, 143, 198, .16), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.product-visual:hover::before { opacity: 1; }
.product-visual > * { position: relative; z-index: 1; }

/* ----- Mock: Pantalla LED de recepción ----- */
.led-panel {
  width: 100%; max-width: 420px;
  background: #000; border-radius: 6px;
  border: 10px solid #1a1d22;
  box-shadow: 0 0 0 1px #2a2f36, 0 30px 60px -20px rgba(0, 0, 0, .9);
  padding: 18px 20px;
  font-family: "Courier New", monospace;
  position: relative;
  transition: box-shadow .3s;
}
.led-panel::after { /* textura de píxeles */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .55) 35%, transparent 36%);
  background-size: 4px 4px;
}
.led-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.led-welcome {
  color: var(--blue-300); font-weight: 700; font-size: 1.35rem;
  text-shadow: 0 0 8px rgba(124, 184, 226, .8);
  white-space: nowrap; overflow: hidden; height: 1.6em; position: relative;
}
.led-welcome span { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.led-welcome.alert { color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 46, .8); }
.led-big { color: #fff; font-size: 2rem; font-weight: 700; text-shadow: 0 0 10px rgba(255, 255, 255, .6); white-space: nowrap; }
.led-small { color: var(--amber); font-size: .9rem; text-shadow: 0 0 6px rgba(255, 176, 46, .7); white-space: nowrap; }
.led-green { color: var(--green); text-shadow: 0 0 6px rgba(39, 211, 107, .7); }
.led-red { color: var(--red); text-shadow: 0 0 8px rgba(255, 59, 59, .8); }
.led-blue { color: var(--blue-300); text-shadow: 0 0 8px rgba(124, 184, 226, .8); }
.led-sep { height: 1px; background: #1c2128; margin: 12px 0; }
.led-pole { width: 14px; height: 70px; background: linear-gradient(90deg, #1a1d22, #2a2f36, #1a1d22); margin: 0 auto; }
.led-colon.off { visibility: hidden; }
.led-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.led-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2a2f36; transition: background .3s; }
.led-dots i.on { background: var(--blue-300); box-shadow: 0 0 6px var(--blue-300); }

/* ----- Mock: Radar con display de velocidad ----- */
.speed-demo { display: grid; justify-items: center; }
.speed-sign {
  width: 230px; background: #0a0c0f; border-radius: 16px;
  border: 1px solid #2a2f36; padding: 20px 18px 24px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  text-align: center; position: relative;
}
.speed-sign .radar-eye {
  width: 40px; height: 14px; margin: 0 auto 14px; border-radius: 4px;
  background: linear-gradient(90deg, #1c2128, #33404d, #1c2128);
  position: relative; transition: box-shadow .3s, background .3s;
}
.speed-sign.detecting .radar-eye { background: linear-gradient(90deg, #1c2128, #4a8fc6, #1c2128); box-shadow: 0 0 14px rgba(74, 143, 198, .8); }
.speed-sign .label { font-size: .7rem; letter-spacing: .25em; color: var(--silver-500); margin-bottom: 4px; }
.speed-digits {
  font-family: "Courier New", monospace; font-weight: 700;
  font-size: 6rem; line-height: 1;
  color: var(--green);
  text-shadow: 0 0 18px currentColor;
  transition: color .3s;
  font-variant-numeric: tabular-nums;
}
.speed-sign .unit { font-size: .85rem; color: var(--silver-300); font-weight: 600; }
.speed-sign .msg { margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; min-height: 1.2em; color: currentColor; }
.speed-sign.over { animation: blink-border 0.5s steps(2) infinite; }
@keyframes blink-border { 50% { border-color: var(--red); } }
.speed-road {
  position: relative; width: 300px; max-width: 100%; height: 46px; margin-top: 14px;
  border-bottom: 2px dashed #39414b; overflow: hidden;
}
.speed-road svg { position: absolute; bottom: 4px; left: 0; width: 76px; transform: translateX(-90px); }
.speed-legend { display: flex; gap: 14px; justify-content: center; margin-top: 16px; font-size: .75rem; color: var(--text-dim); }
.speed-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.speed-try {
  margin-top: 18px; width: 300px; max-width: 100%;
  display: grid; gap: 6px; font-size: .75rem; color: var(--blue-200); text-align: center;
}
.speed-try input { width: 100%; accent-color: var(--blue-400); cursor: grab; }

/* ----- Mock: Radar fotográfico ----- */
.photo-scene { width: 420px; height: 280px; flex-shrink: 0; position: relative; overflow: hidden; }
.photo-cam {
  position: absolute; top: 24px; left: 18px; z-index: 2;
  width: 112px; height: 54px; border-radius: 8px;
  background: linear-gradient(180deg, #2a2f36, #15181d);
  border: 1px solid #39414b;
}
.photo-cam::before { /* lente */
  content: ""; position: absolute; right: -14px; top: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #5aa3d4, #0b2238 60%, #000);
  border: 3px solid #39414b;
}
.photo-cam::after { /* poste */
  content: ""; position: absolute; left: 44px; top: 54px;
  width: 14px; height: 210px; background: linear-gradient(90deg, #1a1d22, #2a2f36, #1a1d22);
}
.cam-led {
  position: absolute; left: 8px; top: 14px; min-width: 64px; padding: 3px 6px;
  background: #000; border-radius: 3px; text-align: center;
  font: 700 13px "Courier New", monospace; color: #3a4048;
}
.cam-led.hit { color: var(--red); text-shadow: 0 0 8px var(--red); }
.photo-flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    radial-gradient(circle 26px at 147px 50px, #fff, transparent),
    radial-gradient(ellipse 300px 220px at 147px 50px, rgba(255, 255, 255, .85), rgba(180, 220, 255, .3) 40%, transparent 75%);
  opacity: 0;
}
.traffic-light {
  position: absolute; left: 212px; top: 30px; z-index: 2;
  width: 38px; padding: 6px; border-radius: 8px; background: #111418; border: 1px solid #2a2f36;
  display: grid; gap: 6px;
}
.traffic-light::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px;
  width: 8px; height: 160px; background: linear-gradient(90deg, #1a1d22, #2a2f36, #1a1d22);
}
.traffic-light i { width: 24px; height: 24px; border-radius: 50%; background: #222; margin: 0 auto; transition: background .2s, box-shadow .2s; }
.traffic-light i.tl-r.on { background: var(--red); box-shadow: 0 0 16px var(--red); }
.traffic-light i.tl-y.on { background: var(--yellow); box-shadow: 0 0 16px var(--yellow); }
.traffic-light i.tl-g.on { background: var(--green); box-shadow: 0 0 16px var(--green); }
.photo-car { position: absolute; bottom: 12px; left: 0; width: 110px; z-index: 3; transform: translateX(-130px); }
.road-line {
  position: absolute; bottom: 8px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, #39414b 0 24px, transparent 24px 44px);
}
.photo-shot {
  position: absolute; right: 6px; top: 8px; z-index: 6; width: 146px;
  background: #f4f4f4; padding: 6px 6px 24px; border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
  opacity: 0;
}
.shot-img { height: 78px; background: linear-gradient(135deg, #1f2a36, #3a4a5c); position: relative; overflow: hidden; }
.shot-img svg { position: absolute; width: 92px; left: 50%; bottom: 6px; margin-left: -46px; }
.shot-plate {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 1;
  background: #fff; color: #111; border: 1px solid #111; padding: 0 4px;
  font: 700 9px "Courier New", monospace; white-space: nowrap;
}
.shot-data { position: absolute; left: 4px; top: 3px; font: 700 10px "Courier New", monospace; color: var(--red); text-shadow: 0 0 4px rgba(0, 0, 0, .8); }
.shot-type { position: absolute; left: 7px; bottom: 11px; font: 800 8px var(--font); color: #b31212; letter-spacing: .04em; text-transform: uppercase; }
.shot-time { position: absolute; left: 7px; bottom: 2px; font: 600 7.5px "Courier New", monospace; color: #555; }

/* ----- Mock: Lector de patentes ----- */
.lpr-wrap { width: 100%; max-width: 420px; display: grid; gap: 22px; justify-items: center; }
.lpr-plate {
  width: 260px; background: #fff; border-radius: 8px; border: 3px solid #111;
  overflow: hidden; position: relative; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
.lpr-plate .band { background: #1e3f9a; color: #fff; font: 700 .62rem var(--font); letter-spacing: .2em; text-align: center; padding: 3px 0; }
.lpr-plate .num { font: 700 2.4rem "Courier New", monospace; color: #111; text-align: center; letter-spacing: .08em; padding: 4px 0 6px; }
.lpr-plate .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0;
  background: var(--blue-300); box-shadow: 0 0 14px 3px rgba(124, 184, 226, .9);
}
.lpr-plate .corner { position: absolute; width: 16px; height: 16px; border: 3px solid var(--blue-400); transition: border-color .25s, transform .25s; }
.lpr-plate .c1 { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.lpr-plate .c2 { top: 4px; right: 4px; border-left: 0; border-bottom: 0; }
.lpr-plate .c3 { bottom: 4px; left: 4px; border-right: 0; border-top: 0; }
.lpr-plate .c4 { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.lpr-plate.locked .corner { border-color: var(--green); }
.lpr-plate.alert .corner { border-color: var(--red); }
.lpr-plate.locked .c1, .lpr-plate.alert .c1 { transform: translate(-2px, -2px); }
.lpr-plate.locked .c2, .lpr-plate.alert .c2 { transform: translate(2px, -2px); }
.lpr-plate.locked .c3, .lpr-plate.alert .c3 { transform: translate(-2px, 2px); }
.lpr-plate.locked .c4, .lpr-plate.alert .c4 { transform: translate(2px, 2px); }
.lpr-screen { width: 100%; }
.lpr-screen .led-panel { max-width: none; }
.lpr-screen .led-panel.alert { box-shadow: 0 0 0 1px var(--red), 0 0 30px rgba(255, 59, 59, .45); }
.blink { animation: blink 0.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lpr-nodes { display: flex; align-items: center; gap: 0; justify-content: center; }
.lpr-nodes span {
  width: 12px; height: 12px; border-radius: 50%; background: var(--blue-700);
  box-shadow: 0 0 6px var(--blue-700); transition: background .2s, box-shadow .2s, transform .2s;
}
.lpr-nodes span.hit { background: var(--blue-300); box-shadow: 0 0 14px 2px var(--blue-300); transform: scale(1.35); }
.lpr-nodes span.hit-alert { background: var(--red); box-shadow: 0 0 14px 2px var(--red); transform: scale(1.35); }
.lpr-nodes b { width: 46px; height: 2px; background: linear-gradient(90deg, var(--blue-700), var(--blue-900)); }

/* ==========================================================
   APLICACIONES (franja de beneficios)
   ========================================================== */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
}
.use svg { width: 34px; height: 34px; color: var(--blue-300); margin-bottom: 16px; }
.use h4 { margin: 0 0 8px; font-size: 1.05rem; }
.use p { margin: 0; font-size: .9rem; color: var(--text-dim); }

/* ==========================================================
   QUIÉNES SOMOS
   ========================================================== */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 20px; line-height: 1.15; }
.about-text p { color: var(--text-dim); }
.placeholder-note {
  margin-top: 22px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong); color: var(--blue-200); font-size: .88rem;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.values div { padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.values strong { display: block; color: #fff; margin-bottom: 4px; font-size: .95rem; }
.values span { font-size: .84rem; color: var(--text-dim); }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s;
}
a.contact-card:hover { border-color: var(--line-strong); }
.contact-card .ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(74, 143, 198, .12); color: var(--blue-300);
}
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--text-dim); font-size: .78rem; }
.contact-card strong { font-weight: 600; font-size: .98rem; }

.form {
  padding: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--silver-300); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(74, 143, 198, .2);
}
.form .btn { grid-column: 1 / -1; justify-self: start; border: 0; }
.form-note { grid-column: 1 / -1; font-size: .8rem; color: var(--text-dim); margin: 0; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { border-top: 1px solid var(--line); padding: 50px 0 30px; background: #040506; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--text-dim); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--silver-500); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ==========================================================
   BOTÓN FLOTANTE WHATSAPP (abajo a la derecha)
   ========================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 0;
  height: 60px; padding: 0 16px; border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .55);
  transform: translateY(120px); opacity: 0;
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), opacity .4s, gap .3s, box-shadow .3s;
}
.wa-float.show { transform: translateY(0); opacity: 1; }
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float .wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-weight: 600; font-size: .92rem;
  transition: max-width .4s ease;
}
.wa-float:hover { gap: 10px; box-shadow: 0 14px 34px -4px rgba(37, 211, 102, .75); }
.wa-float:hover .wa-label { max-width: 220px; }
.wa-float::before { /* anillo de pulso */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366; animation: ring 2.4s infinite; pointer-events: none;
}
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* ==========================================================
   ACCESO A CLIENTES (clientes.html)
   ========================================================== */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 30px) 20px 60px; position: relative; }
.login-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgba(47, 111, 168, .2), transparent 70%);
}
.login-card {
  position: relative; width: 100%; max-width: 440px;
  padding: 40px 36px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.login-card .v-small { width: 54px; margin: 0 auto 18px; }
.login-card h1 { font-size: 1.6rem; text-align: center; margin: 0 0 8px; }
.login-card > p { text-align: center; color: var(--text-dim); margin: 0 0 28px; font-size: .94rem; }
.login-card .form { padding: 0; border: 0; background: none; grid-template-columns: 1fr; }
.login-card .btn { justify-self: stretch; justify-content: center; }
.badge-soon {
  display: block; text-align: center; margin: 0 auto 22px; width: max-content;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 176, 46, .4); background: rgba(255, 176, 46, .08);
  padding: 5px 12px; border-radius: 999px;
}
.client-features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.client-features li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--silver-300); }
.client-features svg { width: 18px; height: 18px; color: var(--blue-300); flex-shrink: 0; }
.login-msg { font-size: .85rem; color: var(--amber); text-align: center; min-height: 1.3em; margin: 4px 0 0; }

/* ==========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* "Reducir movimiento": se apagan solo los efectos decorativos;
   las demos de los productos siguen funcionando porque explican el producto */
@media (prefers-reduced-motion: reduce) {
  .hero-road, .hero-logo .v-big, .wa-float::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1000px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px; margin: 0;
    background: rgba(7, 9, 12, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .lang { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .nav a { padding: 12px 14px; }
  .nav .nav-client { margin: 8px 0 0; justify-content: center; }
  .header .container { gap: 12px; }
  .header:has(.nav.open) { background: rgba(7, 9, 12, .97); }

  .hero .container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo .v-big { width: 200px; }

  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-visual { order: 0; }
  .product-visual, .product:nth-child(even) .product-visual { border: 0; border-bottom: 1px solid var(--line); min-height: 300px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .brand-name { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.3rem; }
  .product-body { padding: 32px 22px; }
  .uses, .values { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px 18px; }
  .speed-digits { font-size: 4.8rem; }
  .product-visual { padding: 24px 16px; }
  .photo-scene { zoom: .7; }
  .wa-float { right: 16px; bottom: 16px; height: 56px; }
}
