/* ═══════════════════════════════════════════════
   Maule GPS — Sitio público
   Estilo clavado a la plataforma (plataforma.html :root)
   ═══════════════════════════════════════════════ */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1526;
  --bg-card: #141c30;
  --bg-card-hover: #1a2440;
  --bg-input: #0d1220;
  --blue-electric: #00d4ff;
  --blue-deep: #0066ff;
  --blue-glow: rgba(0, 212, 255, 0.15);
  --blue-glow-strong: rgba(0, 212, 255, 0.3);
  --red-brand: #C0392B;
  --red-alert: #ff3355;
  --color-moving: #00d4ff;
  --color-stopped: #00ff88;
  --color-offline: #ff3355;
  --green-active: #00ff88;
  --yellow-idle: #ffcc00;
  --text-primary: #ffffff;
  --text-secondary: #8899bb;
  --text-dim: #99aabb;
  --border-subtle: rgba(0, 212, 255, 0.08);
  --border-active: rgba(0, 212, 255, 0.2);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --glow-soft: 0 0 12px rgba(0,212,255,0.1);
  --glow-medium: 0 0 16px rgba(0,212,255,0.2);
  --glass: rgba(20, 28, 48, 0.6);
  --glass-border: rgba(0,212,255,0.08);
  --maxw: 1200px;
  /* semánticas tema (oscuro = default) */
  --header-bg: rgba(10,14,26,0.55);
  --header-bg-scrolled: rgba(10,14,26,0.9);
  --panel: rgba(13,19,32,0.85);
  --panel-soft: rgba(13,19,32,0.8);
  --map-tint: radial-gradient(ellipse 65% 70% at 32% 55%, transparent 38%, rgba(10,14,26,0.5) 100%), linear-gradient(90deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.28) 38%, transparent 64%), linear-gradient(0deg, rgba(10,14,26,0.72), transparent 44%);
  --map-filter: saturate(1.05) contrast(1.03) brightness(.95);
}
/* ─── TEMA CLARO (premium, derivado de la identidad azul) ─── */
html[data-theme="light"] {
  --bg-primary: #eaeef6;
  --bg-secondary: #f4f7fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f7faff;
  --bg-input: #f1f4fa;
  --blue-electric: #0094c7;
  --blue-deep: #0066ff;
  --blue-glow: rgba(0, 148, 199, 0.10);
  --blue-glow-strong: rgba(0, 148, 199, 0.22);
  --text-primary: #0b1424;
  --text-secondary: #4a5878;
  --text-dim: #6b7894;
  --border-subtle: rgba(8, 80, 120, 0.12);
  --border-active: rgba(0, 148, 199, 0.32);
  --shadow-md: 0 8px 24px rgba(30,50,90,0.10);
  --shadow-lg: 0 14px 44px rgba(30,50,90,0.16);
  --glow-soft: 0 0 12px rgba(0,148,199,0.12);
  --glow-medium: 0 0 18px rgba(0,148,199,0.18);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(8, 80, 120, 0.12);
  --header-bg: rgba(238,242,248,0.7);
  --header-bg-scrolled: rgba(238,242,248,0.92);
  --panel: rgba(255,255,255,0.9);
  --panel-soft: rgba(255,255,255,0.85);
  --map-tint: radial-gradient(ellipse 65% 70% at 32% 55%, transparent 42%, rgba(234,238,246,0.55) 100%), linear-gradient(90deg, rgba(234,238,246,0.92) 0%, rgba(234,238,246,0.4) 40%, transparent 66%), linear-gradient(0deg, rgba(234,238,246,0.85), transparent 46%);
  --map-filter: saturate(1.02) contrast(1.0) brightness(1.0);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .4s ease, color .4s ease; }
a { color: inherit; text-decoration: none; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }
svg.ico { width: 22px; height: 22px; stroke-width: 2; fill: none; stroke: currentColor; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-electric); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content:''; width: 28px; height: 1px; background: var(--blue-electric); box-shadow: var(--glow-soft); }
.eyebrow.center { justify-content: center; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: 0.01em; }

/* ─── NAV ─── */
header { position: fixed; inset: 0 0 auto 0; z-index: 100; backdrop-filter: blur(16px); background: var(--header-bg); border-bottom: 1px solid transparent; transition: var(--transition); }
header.scrolled { background: var(--header-bg-scrolled); border-bottom-color: var(--border-subtle); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; white-space: nowrap; }
.logo .mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--red-brand), #8e2820); display: grid; place-items: center; box-shadow: 0 0 16px rgba(192,57,43,0.4); }
.logo .mark svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.logo b { color: var(--red-brand); }
nav.links { display: flex; gap: 30px; align-items: center; margin: 0 auto; }
nav.links a { font-size: 16px; font-weight: 600; color: var(--text-secondary); transition: var(--transition); letter-spacing: 0.02em; position: relative; }
nav.links a:hover { color: var(--blue-electric); }
nav.links a.active { color: var(--blue-electric); }
nav.links a.active::after { content:''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue-electric); box-shadow: var(--glow-soft); border-radius: 2px; }
.btn { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 22px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: var(--transition); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-primary { background: linear-gradient(135deg, var(--blue-electric), var(--blue-deep)); color: #04121c; box-shadow: 0 0 22px var(--blue-glow-strong); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px var(--blue-glow-strong); }
.btn-ghost { background: var(--glass); color: var(--text-primary); border-color: var(--border-active); }
.btn-ghost:hover { border-color: var(--blue-electric); box-shadow: var(--glow-soft); transform: translateY(-2px); }

/* mobile menu toggle */
.menu-btn { display: none; background: var(--glass); border: 1px solid var(--border-active); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--text-primary); place-items: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* toggle tema claro/oscuro */
.theme-toggle { background: var(--glass); border: 1px solid var(--border-active); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--text-primary); display: grid; place-items: center; transition: var(--transition); flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--blue-electric); box-shadow: var(--glow-soft); color: var(--blue-electric); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ─── HERO (home) ─── */
.hero { position: relative; padding: 150px 0 96px; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(ellipse 75% 60% at 72% 38%, #000 25%, transparent 75%); pointer-events: none; }
.hero-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, var(--blue-glow), transparent 62%); top: -200px; right: -160px; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.2rem); margin: 22px 0 20px; }
.hero h1 .hl { color: var(--blue-electric); text-shadow: 0 0 24px var(--blue-glow-strong); }
.hero p.lead { font-size: 19px; font-weight: 400; color: var(--text-secondary); max-width: 490px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .num span { color: var(--blue-electric); }
.hero-stats .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 4px; }

/* ─── MAP CARD ─── */
.map-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-secondary); box-shadow: var(--shadow-lg), 0 0 40px rgba(0,212,255,0.06); aspect-ratio: 1 / 0.9; }
.map-top { position: absolute; inset: 0 0 auto 0; z-index: 5; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: linear-gradient(180deg, rgba(15,21,38,0.95), transparent); }
.map-top .tt { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; }
.map-top .live { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--green-active); display: flex; align-items: center; gap: 7px; }
.map-top .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-active); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(0,255,136,0.6);} 70%{box-shadow:0 0 0 9px rgba(0,255,136,0);} 100%{box-shadow:0 0 0 0 rgba(0,255,136,0);} }
svg.map { width: 100%; height: 100%; display: block; background: radial-gradient(circle at 35% 25%, #122036, #0a1120 72%); }
.street { stroke: rgba(255,255,255,0.06); stroke-width: 2; fill: none; }
.street.big { stroke: rgba(255,255,255,0.11); stroke-width: 3.5; }
.route { stroke: var(--blue-electric); stroke-width: 3.5; fill: none; filter: drop-shadow(0 0 6px var(--blue-electric)); stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 6s ease-in-out infinite; }
@keyframes draw { 0%{stroke-dashoffset:1400;} 55%{stroke-dashoffset:0;} 90%{stroke-dashoffset:0; opacity:1;} 100%{stroke-dashoffset:0; opacity:0.12;} }
.veh-glow { fill: var(--blue-electric); opacity:0.85; }
.veh { fill: #fff; }
.info-chip { position: absolute; z-index: 6; inset: auto 16px 16px 16px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--border-active); border-radius: 13px; padding: 12px 15px; display: flex; align-items: center; gap: 13px; box-shadow: var(--glow-soft); }
.info-chip .veh-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); }
.info-chip .meta { flex: 1; }
.info-chip .name { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.info-chip .sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.info-chip .spd .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--blue-electric); text-align: right; }
.info-chip .spd .u { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); text-align: right; }

/* ─── PAGE HERO (páginas internas) ─── */
.page-hero { position: relative; padding: 142px 0 60px; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.page-hero .hero-grid { mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 20%, transparent 70%); }
.page-hero .hero-glow { width: 600px; height: 600px; top: -260px; left: 50%; transform: translateX(-50%); right: auto; }
.page-hero-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin: 18px 0 16px; }
.page-hero h1 .hl { color: var(--blue-electric); text-shadow: 0 0 24px var(--blue-glow-strong); }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; font-weight: 400; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 22px; letter-spacing: 0.04em; }
.crumbs a { color: var(--text-secondary); } .crumbs a:hover { color: var(--blue-electric); }

/* ─── SECTIONS ─── */
section.block { padding: 100px 0; position: relative; }
section.block.tight { padding: 80px 0; }
.sec-head { max-width: 660px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin: 16px 0 14px; }
.sec-head p { color: var(--text-secondary); font-size: 17px; }

/* ─── SERVICES (resumen home) ─── */
.grid-serv { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.serv { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 28px 26px; transition: var(--transition); position: relative; overflow: hidden; }
.serv:hover { transform: translateY(-6px); background: var(--bg-card-hover); border-color: var(--border-active); box-shadow: var(--glow-medium); }
.serv .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; margin-bottom: 20px; color: var(--blue-electric); }
.serv .ic svg { width: 26px; height: 26px; }
.serv h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; letter-spacing: 0.02em; }
.serv p { color: var(--text-secondary); font-size: 15px; font-weight: 400; }
.serv .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--blue-electric); letter-spacing: 0.05em; opacity: 0; transform: translateX(-6px); transition: var(--transition); }
.serv:hover .more { opacity: 1; transform: translateX(0); }

/* ─── SERVICES DETALLE (servicios.html) ─── */
.serv-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.serv-row { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 18px; padding: 34px; display: flex; gap: 22px; transition: var(--transition); }
.serv-row:hover { border-color: var(--border-active); box-shadow: var(--glow-soft); background: var(--bg-card-hover); }
.serv-row .ic { flex-shrink: 0; width: 60px; height: 60px; border-radius: 15px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); }
.serv-row .ic svg { width: 30px; height: 30px; }
.serv-row .body h3 { font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.serv-row .body p { color: var(--text-secondary); font-size: 15.5px; font-weight: 400; }
.serv-row .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* ─── PROCESS (nosotros) ─── */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 30px 26px; position: relative; transition: var(--transition); }
.step:hover { border-color: var(--border-active); box-shadow: var(--glow-soft); }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--blue-electric); opacity: 0.25; line-height: 1; }
.step h3 { font-size: 18px; margin: 12px 0 8px; font-weight: 600; }
.step p { color: var(--text-secondary); font-size: 14.5px; font-weight: 400; }

/* ─── STATS BAND (cifras) ─── */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-box { background: linear-gradient(160deg, var(--blue-glow), var(--bg-card)); border: 1px solid var(--border-active); border-radius: 18px; padding: 34px 24px; text-align: center; }
.stat-box .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; line-height: 1; }
.stat-box .v span { color: var(--blue-electric); }
.stat-box .l { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.06em; margin-top: 10px; text-transform: uppercase; }

/* ─── PRICING ─── */
.pricing-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.price-card { background: linear-gradient(160deg, var(--blue-glow), var(--bg-card)); border: 1px solid var(--border-active); border-radius: 20px; padding: 38px 34px; box-shadow: var(--glow-medium); }
.price-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-electric); }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 54px; margin: 14px 0 2px; line-height: 1; }
.price-card .amount small { font-size: 18px; color: var(--text-secondary); font-weight: 500; font-family: var(--font-body); }
.price-card .per { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.price-card ul { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.price-card li { display: flex; gap: 11px; align-items: center; font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.price-card li svg { width: 18px; height: 18px; stroke: var(--green-active); fill: none; stroke-width: 2.5; flex-shrink: 0; }
.price-card .btn { margin-top: 30px; width: 100%; justify-content: center; }
.install-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; padding: 34px; }
.install-card h3 { font-size: 19px; margin-bottom: 6px; font-weight: 600; }
.install-card .note { font-family: var(--font-mono); color: var(--text-dim); font-size: 12px; margin-bottom: 22px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable tr { border-bottom: 1px solid var(--border-subtle); }
.ptable tr:last-child { border: none; }
.ptable td { padding: 13px 4px; font-size: 15px; font-weight: 500; }
.ptable td:first-child { color: var(--text-secondary); }
.ptable td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; color: #fff; }
.ptable tr.best td:last-child { color: var(--blue-electric); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.ci-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; display: flex; gap: 16px; align-items: center; transition: var(--transition); }
.ci-card:hover { border-color: var(--border-active); box-shadow: var(--glow-soft); }
.ci-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); flex-shrink: 0; }
.ci-card .ic svg { width: 24px; height: 24px; }
.ci-card .l { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.ci-card .v { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-top: 3px; }
.form-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; padding: 36px; }
.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.form-card .sub { color: var(--text-secondary); font-size: 15px; margin-bottom: 26px; font-weight: 400; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 11px; padding: 13px 15px; color: var(--text-primary); font-family: var(--font-body); font-size: 16px; font-weight: 500; transition: var(--transition); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-electric); box-shadow: var(--glow-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── CTA ─── */
.cta-band { position: relative; border-radius: 24px; padding: 70px 50px; text-align: center; overflow: hidden; background: linear-gradient(135deg, var(--blue-glow), rgba(0,102,255,0.05)); border: 1px solid var(--border-active); }
.cta-band h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); position: relative; }
.cta-band p { color: var(--text-secondary); font-size: 18px; margin: 16px auto 32px; max-width: 520px; position: relative; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }
.app-row { display: flex; gap: 13px; justify-content: center; margin-top: 28px; position: relative; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--glass); border: 1px solid var(--border-active); border-radius: 12px; padding: 11px 20px; transition: var(--transition); color: var(--text-primary); }
.store:hover { border-color: var(--blue-electric); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; stroke: var(--blue-electric); fill: none; stroke-width: 1.8; }
.store small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.store b { font-family: var(--font-display); font-size: 14px; }

/* ─── TEAM ─── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.member { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 26px; text-align: center; transition: var(--transition); }
.member:hover { border-color: var(--border-active); box-shadow: var(--glow-soft); }
.member .av { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--blue-electric); }
.member h3 { font-size: 16px; font-weight: 600; }
.member .role { font-family: var(--font-mono); color: var(--text-dim); font-size: 12px; margin-top: 5px; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border-subtle); padding: 64px 0 34px; margin-top: 30px; background: var(--bg-secondary); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 46px; }
footer p.desc { color: var(--text-secondary); font-size: 15px; font-weight: 400; margin-top: 16px; max-width: 290px; }
footer h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
footer ul a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: var(--transition); }
footer ul a:hover { color: var(--blue-electric); }
.contact-item { display: flex; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 12px; font-weight: 500; }
.contact-item svg { width: 17px; height: 17px; stroke: var(--blue-electric); fill: none; stroke-width: 2; flex-shrink: 0; }
.contact-item b { color: var(--text-primary); font-weight: 600; }
.foot-bottom { border-top: 1px solid var(--border-subtle); padding-top: 26px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); }

/* ─── RESPONSIVE ─── */
@media (max-width: 920px) {
  .hero-inner, .pricing-wrap, .foot-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-serv, .team-grid, .serv-detail, .process { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  nav.links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: var(--header-bg-scrolled); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); padding: 12px 30px 22px; transform: translateY(-120%); transition: var(--transition); }
  nav.links.open { transform: translateY(0); }
  nav.links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--border-subtle); width: 100%; }
  nav.links a.active::after { display: none; }
  .menu-btn { display: grid; }
  .map-card { margin-top: 28px; }
}
@media (max-width: 560px) {
  .grid-serv, .team-grid, .serv-detail, .process, .stats-band { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .nav .btn-primary.nav-cta { display: none; }
}

/* ═══════════════════════════════════════════════
   HÉROE MAPA EN VIVO (inicio)
   ═══════════════════════════════════════════════ */
.hero-map-wrap { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 1; background: #0a1120; }
.map-tint { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--map-tint); transition: background .4s ease; }
.leaflet-tile { filter: var(--map-filter); }

.carmark { background: none; border: none; }
.carmark .carimg { display: block; transform-origin: 50% 50%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); transition: transform .12s linear, filter .4s; }
.carmark .ping { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, var(--blue-glow-strong), transparent 65%); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{ transform: translate(-50%,-50%) scale(.4); opacity:.9 } 100%{ transform: translate(-50%,-50%) scale(2.4); opacity:0 } }
.carmark.off .ping { display: none; }
.carmark.off .carimg { filter: grayscale(.45) brightness(.72) drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.carmark.off::after { content:''; position:absolute; left:50%; top:50%; width:34px; height:34px; transform:translate(-50%,-50%); border-radius:50%; border:2px solid var(--red-alert); box-shadow:0 0 14px rgba(255,51,85,.8); animation: ovrpulse 1.4s infinite; }

/* Layout "marco": título arriba-izq, resto abajo, centro libre para los vehículos */
.hero-top, .hero-bottom { position: absolute; z-index: 6; left: 0; right: 0; padding-left: clamp(20px, 4.5vw, 70px); padding-right: clamp(20px, 4.5vw, 70px); pointer-events: none; }
.hero-top > *, .hero-bottom * { pointer-events: auto; }
.hero-top { top: clamp(104px, 14vh, 150px); }
.hero-top .eyebrow { margin-bottom: 16px; }
.hero-top h1 { font-size: clamp(2rem, 1rem + 3.3vw, 3.6rem); max-width: 540px; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero-top h1 .hl { color: var(--blue-electric); text-shadow: 0 0 24px var(--blue-glow-strong); }
.hero-bottom { bottom: clamp(28px, 4vh, 48px); display: flex; align-items: flex-end; gap: 30px; }
.hero-bottom-left { max-width: 440px; }
.hero-bottom-left p { color: var(--text-secondary); font-size: 17px; max-width: 400px; margin-bottom: 22px; font-weight: 400; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-bottom .hero-stats { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.hero-bottom .hero-stats .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text-primary); }
.hero-bottom .hero-stats .num span { color: var(--blue-electric); }
.hero-bottom .hero-stats .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 4px; }

.veh-panel { position: absolute; z-index: 7; top: 90px; right: 30px; width: 332px;
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--border-active); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 30px var(--blue-glow); transition: border-color .4s, box-shadow .4s; }
.veh-panel.off { border-color: rgba(255,51,85,0.5); box-shadow: var(--shadow-lg), 0 0 30px rgba(255,51,85,0.18); }
.vp-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; border-bottom: 1px solid var(--border-subtle); }
.vp-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-electric); box-shadow: 0 0 8px var(--blue-electric); transition: background .3s, box-shadow .3s; }
.veh-panel.off .vp-head .dot { background: var(--red-alert); box-shadow: 0 0 8px var(--red-alert); }
.vp-head .x { margin-left: auto; color: var(--text-dim); font-family: var(--font-body); font-size: 20px; line-height: 1; cursor: pointer; }
.vp-photo { padding: 14px 20px 4px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(0,212,255,0.08), transparent 70%); transition: filter .5s; }
.veh-panel.off .vp-photo { filter: grayscale(.4) brightness(.85); }
.vp-photo img { width: 80%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); }
.eng-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; padding: 0 16px 6px; color: var(--green-active); transition: color .3s; }
.eng-chip.off { color: var(--red-alert); }
.vp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px 12px; }
.vp-stat { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px; text-align: center; }
.vp-stat .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--text-dim); }
.vp-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--blue-electric); margin-top: 6px; line-height: 1; }
.vp-stat .v small { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.vp-stat.fuel .v { color: var(--green-active); }
.vp-stat .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 5px; }
.vp-btns { display: flex; gap: 8px; padding: 0 16px 10px; }
.vp-btns button { flex: 1; background: var(--glass); border: 1px solid var(--border-active); border-radius: 10px; padding: 10px; color: var(--text-primary); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .04em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition); }
.vp-btns button:hover { border-color: var(--blue-electric); box-shadow: var(--glow-soft); }
.vp-btns button svg { width: 14px; height: 14px; stroke: var(--blue-electric); fill: none; stroke-width: 2; }
.vp-engine { padding: 0 16px 16px; }
.btn-engine { width: 100%; justify-content: center; padding: 13px; border-radius: 11px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; border: none; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 9px; }
.btn-engine svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.btn-engine.apagar { background: linear-gradient(135deg, #ff3355, #c0392b); color: #fff; box-shadow: 0 0 18px rgba(255,51,85,.4); }
.btn-engine.apagar:hover { box-shadow: 0 0 30px rgba(255,51,85,.65); transform: translateY(-1px); }
.btn-engine.encender { background: linear-gradient(135deg, #00ff88, #00b894); color: #04121c; box-shadow: 0 0 18px rgba(0,255,136,.4); }
.btn-engine.encender:hover { box-shadow: 0 0 30px rgba(0,255,136,.65); transform: translateY(-1px); }
.btn-engine:disabled { opacity: .7; cursor: wait; }

.toast { position: absolute; z-index: 30; top: 92px; left: 50%; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border-active); border-radius: 12px;
  padding: 12px 18px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--text-primary);
  display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-lg); transition: all .35s cubic-bezier(0.34,1.56,0.64,1); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--green-active); }
.toast.alert { border-color: var(--red-alert); }
.toast .spin { width: 16px; height: 16px; border: 2px solid rgba(0,212,255,.3); border-top-color: var(--blue-electric); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast .ic { width: 18px; height: 18px; stroke-width: 2.5; fill: none; flex-shrink: 0; }
.toast.ok .ic { stroke: var(--green-active); }
.toast.alert .ic { stroke: var(--red-alert); }

.live-badge { position: absolute; z-index: 7; top: 90px; left: 30px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--green-active); background: var(--panel-soft); backdrop-filter: blur(12px); border: 1px solid var(--border-active); border-radius: 999px; padding: 9px 16px; }
.live-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-active); animation: pulse 1.6s infinite; }

.ovr { background: none !important; border: none !important; }
.ovr svg { width: 30px; height: 30px; padding: 5px; box-sizing: border-box; background: var(--red-alert); border: 2px solid #fff; border-radius: 50%; stroke: #fff; fill: none; stroke-width: 2.2; box-shadow: 0 0 14px rgba(255,51,85,0.85); animation: ovrpulse 1.4s infinite; }
@keyframes ovrpulse { 0%,100%{ box-shadow:0 0 10px rgba(255,51,85,0.55) } 50%{ box-shadow:0 0 22px rgba(255,51,85,1) } }
.leaflet-tooltip.ovr-tip { background: rgba(13,19,32,0.94); border: 1px solid var(--red-alert); color: #ff6b80; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .03em; border-radius: 8px; padding: 5px 9px; box-shadow: 0 0 14px rgba(255,51,85,0.3); }
.leaflet-tooltip.ovr-tip::before { display: none !important; }

.legend { position: absolute; z-index: 7; right: 30px; bottom: 40px; background: var(--panel-soft); backdrop-filter: blur(12px); border: 1px solid var(--border-active); border-radius: 12px; padding: 12px 14px; font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); }
.legend .lt { color: var(--text-dim); letter-spacing: .08em; margin-bottom: 8px; }
.legend .row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.legend .sw { width: 18px; height: 4px; border-radius: 2px; }

@media (max-width: 1040px) {
  .veh-panel { width: 300px; top: 86px; right: 16px; }
  .hero-top h1 { max-width: 60%; font-size: clamp(1.7rem, 1rem + 2.8vw, 2.6rem); }
}
@media (max-width: 860px) {
  .legend, .live-badge, .veh-panel { display: none; }
  .hero-top { top: 92px; }
  .hero-top h1 { max-width: 100%; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-bottom-left { max-width: 100%; }
}
@media (max-width: 560px) {
  .hero-bottom .hero-stats { gap: 24px; }
  .hero-bottom .hero-stats .num { font-size: 24px; }
}

/* ═══════════════════════════════════════════════
   SECCIÓN ESTADÍSTICAS (inicio)
   ═══════════════════════════════════════════════ */
.stats-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stcard { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 18px; padding: 26px 24px; transition: var(--transition); display: flex; flex-direction: column; gap: 18px; }
.stcard:hover { border-color: var(--border-active); box-shadow: var(--glow-soft); transform: translateY(-4px); }
.stcard-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }
.stcard-head .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); }
.stcard-head .ic svg { width: 22px; height: 22px; }
.stcard-head .ttl { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .01em; color: var(--text-primary); }
.stcard-head .trend { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: var(--text-dim); text-align: right; }
.stcard-head .trend.ok { color: var(--green-active); }

/* Gauge combustible */
.gauge-wrap { position: relative; padding: 12px 0 0; }
.gauge { width: 100%; height: auto; display: block; }
.gauge-val { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); text-align: center; }
.gauge-val .n { font-family: var(--font-display); font-weight: 800; font-size: 38px; color: var(--blue-electric); line-height: 1; text-shadow: 0 0 14px var(--blue-glow-strong); }
.gauge-val .u { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 4px; letter-spacing: .04em; }

/* KM big + sparkline */
.km-big { font-family: var(--font-display); font-weight: 800; font-size: 46px; color: var(--text-primary); line-height: 1; margin-top: 4px; }
.km-big small { font-family: var(--font-body); font-size: 16px; color: var(--text-secondary); font-weight: 500; margin-left: 6px; }
.spark { width: 100%; height: 80px; display: block; }
.spark-axis { display: grid; grid-template-columns: repeat(7, 1fr); font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); letter-spacing: .04em; text-align: center; margin-top: -4px; }

/* Mini mapa de rutas */
.mini-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); }
.mini-map svg { width: 100%; height: 130px; display: block; }
.route-list { display: flex; flex-direction: column; gap: 9px; }
.route-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 11px; font-size: 13.5px; }
.route-row .d { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.route-row .lbl { color: var(--text-primary); font-weight: 500; }
.route-row .ct { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* Footer común de las cards */
.stcard-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); margin-top: auto; }
.stcard-foot > div { display: flex; flex-direction: column; gap: 4px; }
.stcard-foot .l { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .05em; text-transform: uppercase; }
.stcard-foot .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.stcard-foot .v.ok { color: var(--green-active); }

@media (max-width: 920px) {
  .stats-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PÁGINA EMPRESA — panel, capacidades, plan flota
   ═══════════════════════════════════════════════ */

/* Pilares de valor "cómo te ayudamos" */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 28px 24px; transition: var(--transition); }
.pillar:hover { transform: translateY(-5px); border-color: var(--border-active); box-shadow: var(--glow-medium); }
.pillar .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); margin-bottom: 18px; }
.pillar .ic svg { width: 26px; height: 26px; }
.pillar .metric { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--blue-electric); line-height: 1; margin-bottom: 6px; }
.pillar .metric.green { color: var(--green-active); }
.pillar h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.pillar p { color: var(--text-secondary); font-size: 14.5px; font-weight: 400; }

/* ── Panel de flota (mockup tipo app) ── */
.adm-frame { background: var(--bg-card); border: 1px solid var(--border-active); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 50px var(--blue-glow); }
.adm-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-secondary); }
.adm-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.adm-bar .ttl { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: .05em; margin-left: 6px; }
.adm-bar .live { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--green-active); display: flex; align-items: center; gap: 7px; }
.adm-bar .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-active); animation: pulse 1.6s infinite; }
.adm-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.adm-kpi { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px; }
.adm-kpi .ktop { display: flex; align-items: center; justify-content: space-between; }
.adm-kpi .klabel { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.adm-kpi .kic { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-glow); display: grid; place-items: center; color: var(--blue-electric); }
.adm-kpi .kic svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.adm-kpi .kval { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; margin: 12px 0 6px; color: var(--text-primary); }
.adm-kpi .kval.blue { color: var(--blue-electric); }
.adm-kpi .kval.red { color: var(--red-alert); }
.adm-kpi .kval.green { color: var(--green-active); }
.adm-kpi .kval.amber { color: var(--yellow-idle); }
.adm-kpi .kval small { font-family: var(--font-body); font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.adm-kpi .ksub { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.trend { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.trend.down { color: #ff6b80; background: rgba(255,51,85,0.12); }
.trend.up { color: var(--green-active); background: rgba(0,255,136,0.12); }
.adm-grid2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.adm-panel { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 18px; }
.adm-panel .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.adm-panel .ph h4 { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.adm-panel .ph .tag { font-family: var(--font-mono); font-size: 9px; color: var(--blue-electric); border: 1px solid var(--border-active); border-radius: 6px; padding: 3px 7px; }
.adm-chart { width: 100%; height: 150px; display: block; }
.adm-legend { display: flex; gap: 16px; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.adm-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 120px; height: 120px; flex-shrink: 0; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text-primary); line-height: 1; }
.donut .center .l { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); letter-spacing: .08em; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.donut-legend .row { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); }
.donut-legend .row b { color: var(--text-primary); margin-left: auto; font-family: var(--font-display); }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

/* Rankings */
.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rank { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; }
.rank > h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.rank > h4 .ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.rank > h4 .ti svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; }
.rank-row { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; overflow: hidden; margin-bottom: 4px; }
.rank-row .barbg { position: absolute; inset: 0; background: var(--blue-glow); border-radius: 9px; z-index: 0; }
.rank-row > * { position: relative; z-index: 1; }
.rank-row .pos { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-active); display: grid; place-items: center; font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--blue-electric); }
.rank-row .nm { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.rank-row .nm small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); font-weight: 400; }
.rank-row .vl { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.rank.km .vl { color: var(--blue-electric); } .rank.km .barbg { background: rgba(0,212,255,0.10); }
.rank.idle .vl { color: var(--yellow-idle); } .rank.idle .barbg { background: rgba(255,204,0,0.10); }
.rank.safe .vl { color: var(--green-active); } .rank.safe .barbg { background: rgba(0,255,136,0.10); }

/* Anomalía detectada */
.anomaly { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, rgba(255,51,85,0.12), var(--bg-card)); border: 1px solid rgba(255,51,85,0.3); border-radius: 16px; padding: 22px 26px; }
.anomaly .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,51,85,0.15); border: 1px solid rgba(255,51,85,0.3); display: grid; place-items: center; color: var(--red-alert); flex-shrink: 0; }
.anomaly .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.anomaly .body { flex: 1; }
.anomaly .body .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.anomaly .body .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.anomaly .body .desc { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.anomaly .badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #fff; background: var(--red-alert); border-radius: 6px; padding: 3px 9px; }

/* Capacidades explicadas */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 26px 24px; transition: var(--transition); position: relative; }
.cap:hover { transform: translateY(-5px); border-color: var(--border-active); box-shadow: var(--glow-medium); background: var(--bg-card-hover); }
.cap .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); margin-bottom: 18px; }
.cap .ic svg { width: 24px; height: 24px; }
.cap h3 { font-size: 17px; font-weight: 600; margin-bottom: 9px; }
.cap p { color: var(--text-secondary); font-size: 14.5px; font-weight: 400; }
.cap .badge { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--blue-electric); border: 1px solid var(--border-active); border-radius: 6px; padding: 4px 9px; }

/* Plan flota — funciones */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.feat { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.feat .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--blue-glow); border: 1px solid var(--border-active); display: grid; place-items: center; color: var(--blue-electric); }
.feat .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.feat .body h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.feat .body p { color: var(--text-secondary); font-size: 13.5px; font-weight: 400; }

/* Para quién — chips */
.audience { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; background: var(--bg-card); border: 1px solid var(--border-active); border-radius: 999px; padding: 11px 20px; font-size: 14.5px; font-weight: 600; color: var(--text-primary); transition: var(--transition); }
.chip:hover { box-shadow: var(--glow-soft); transform: translateY(-2px); }
.chip svg { width: 17px; height: 17px; stroke: var(--blue-electric); fill: none; stroke-width: 2; }

/* Add-ons */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { background: var(--bg-secondary); border: 1px dashed var(--border-active); border-radius: 14px; padding: 22px; }
.addon .ic { color: var(--blue-electric); margin-bottom: 12px; }
.addon .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.addon h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.addon p { color: var(--text-secondary); font-size: 13px; font-weight: 400; }

@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .adm-kpis { grid-template-columns: 1fr 1fr; }
  .adm-grid2 { grid-template-columns: 1fr; }
  .ranks, .caps, .addons { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .adm-kpis { grid-template-columns: 1fr; }
  .anomaly { flex-direction: column; text-align: center; }
}
