/* DiagnosticarBCN — styles.css */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --line: rgba(255,255,255,.09);
  --ink: #f4f2ee;
  --mute: #9c9a96;
  --accent: #1f6fe5;      /* azul del logo */
  --accent-ink: #ffffff;
  --ok: #3ef0a1;
  --g1: #ff7a00;
  --g2: #c2185b;
  --g3: #1e3a8a;
  --font-d: "Big Shoulders Display", Impact, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--font-m); letter-spacing: .02em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
em { font-style: normal; color: var(--accent); }

/* ---------- Splash (doble red de seguridad) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  animation: splashOut .5s var(--ease-out) 2.6s forwards;
}
.splash.is-done { opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes blink { 50% { opacity: .35; } }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0; transition: opacity .25s; }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(31,111,229,.5); transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background .25s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(31,111,229,.08); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-b); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .3s, transform .3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(31,111,229,.5); }
.btn-accent:hover { box-shadow: 0 10px 40px -8px rgba(31,111,229,.65); }
.btn-ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10,10,11,.92); border-color: var(--line); }
@supports (backdrop-filter: blur(10px)) { .nav.is-scrolled { background: rgba(10,10,11,.7); backdrop-filter: blur(14px) saturate(140%); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; }
.brand-mark svg { width: 34px; fill: var(--accent); }
.brand-mark img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.brand-name { font: 700 22px/1 var(--font-d); letter-spacing: .02em; text-transform: uppercase; }
.brand-name b { color: var(--accent); font-weight: 900; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--mute); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.services, .process, .booking, .faq, .contact { padding: clamp(90px, 12vw, 170px) var(--pad); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-title { font: 900 clamp(48px, 7.5vw, 120px)/.9 var(--font-d); text-transform: uppercase; margin: 0; }
.sec-title em { -webkit-text-stroke: 0; }
.sec-sub { color: var(--mute); margin: 18px 0 0; max-width: 56ch; }

/* Barra de progreso de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--accent); }

/* Services accordion */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-row {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 20px;
  padding: clamp(24px, 3vw, 40px) 0; background: none; border: 0; text-align: left; cursor: pointer;
  transition: padding .4s var(--ease-out), color .3s;
}
.svc-row:hover { padding-left: 14px; }
.svc-n { color: var(--accent); font-size: 14px; }
.svc-name { font: 700 clamp(30px, 4.4vw, 68px)/1 var(--font-d); text-transform: uppercase; transition: color .3s; }
.svc-row:hover .svc-name { color: var(--accent); }
.svc-tag { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); padding: 7px 12px; border-radius: 99px; }
.svc-plus { width: 28px; height: 28px; position: relative; justify-self: end; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.svc-plus::after { transform: rotate(90deg); }
.svc-row[aria-expanded="true"] .svc-plus::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.svc-row[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-left: 90px; }
.svc-inner > p { margin: 0 0 40px; color: #d6d3cd; max-width: 60ch; }
.ticks { list-style: none; margin: 0 0 40px; padding: 0; }
.ticks li { padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Symptoms */
.sym-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 14px 20px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: transparent;
  cursor: pointer; font-size: 15px; text-align: left; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.sym-panel {
  position: sticky; top: 110px; padding: clamp(26px, 3vw, 44px); border-radius: 22px;
  background: linear-gradient(160deg, var(--bg-3), #0e0e10); border: 1px solid var(--line); overflow: hidden;
}
.sym-panel::before { content: ""; position: absolute; top: -40%; right: -30%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(rgba(31,111,229,.22), transparent 65%); pointer-events: none; }
.sym-label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 14px; }
.sym-panel h2 { font: 700 clamp(30px, 3vw, 44px)/1 var(--font-d); text-transform: uppercase; margin: 0 0 16px; }
.sym-panel p { color: #d6d3cd; margin: 0 0 28px; }
.sym-panel.is-swap h2, .sym-panel.is-swap dd { animation: swap .45s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.step { background: var(--bg); padding: clamp(28px, 3vw, 48px); min-height: 300px; display: flex; flex-direction: column; transition: background .35s; }
.step:hover { background: var(--bg-2); }
.step-n { font-size: 13px; color: var(--accent); margin-bottom: auto; }
.step h3 { font: 700 clamp(34px, 3.4vw, 54px)/1 var(--font-d); text-transform: uppercase; margin: 60px 0 14px; }
.step p { margin: 0; color: var(--mute); }

/* Booking */
.booking { background: var(--bg-2); overflow: hidden; }
.booking-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: -300px; transform: translateX(-50%); background: radial-gradient(rgba(20,90,220,.2), transparent 60%); pointer-events: none; }
.cal-embed { position: relative; min-height: 620px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.book-form { position: relative; display: grid; gap: 18px; max-width: 1100px; }
.bf-step { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 34px); margin: 0; background: rgba(10,10,11,.6); }
.bf-step legend { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); padding: 0 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg label, .days label, .slots label { cursor: pointer; }
.seg input, .days input, .slots input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); font-weight: 600; transition: all .25s; height: 100%; }
.seg input:checked + span { border-color: var(--accent); background: rgba(31,111,229,.1); color: var(--accent); }
.seg input:focus-visible + span, .days input:focus-visible + span, .slots input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.days span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 12px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); transition: all .25s; }
.days span small { font: 400 11px var(--font-m); text-transform: uppercase; color: var(--mute); }
.days span b { font: 700 28px/1.1 var(--font-d); }
.days input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.days input:checked + span small { color: var(--accent-ink); }
.days input:disabled + span { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.slots span { display: block; padding: 11px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); font: 600 14px var(--font-m); transition: all .25s; }
.slots input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slots input:disabled + span { opacity: .3; cursor: not-allowed; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--mute); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  font: 400 16px var(--font-b); color: var(--ink); background: var(--bg); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px 16px; transition: border-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #5f5d5a; }
.field.is-invalid input { border-color: #ff5a5a; }
.bf-foot { display: grid; gap: 14px; padding-top: 8px; }
.bf-summary { margin: 0; font-size: 14px; color: var(--accent); }
.bf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-note { margin: 0; font-size: 13px; color: var(--mute); }
.bf-error { margin: 0; color: #ff7a7a; font-size: 14px; min-height: 1em; }

/* FAQ */
.faq-list { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; font: 600 clamp(18px, 1.8vw, 24px)/1.3 var(--font-b); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 28px var(--font-m); color: var(--accent); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--mute); max-width: 65ch; }

/* Contact */
.contact { text-align: center; }
.big-mail {
  display: inline-block; font: 900 clamp(34px, 7.2vw, 120px)/1 var(--font-d); text-transform: uppercase; text-decoration: none;
  margin: 10px 0 70px; position: relative; word-break: break-word;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 6px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s; padding-bottom: 8px;
}
.big-mail:hover { background-size: 100% 6px; color: var(--accent); }
.ct-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1100px; text-align: left; }
.ct-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); text-decoration: none; background: var(--bg-2); transition: border-color .3s, transform .4s var(--ease-out), background .3s; height: 100%; }
.ct-card:hover { border-color: var(--accent); transform: translateY(-6px); background: var(--bg-3); }
.ct-card > span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.ct-card b { font: 700 26px/1.15 var(--font-d); text-transform: uppercase; word-break: break-word; }
.ct-card i { font-style: normal; font-size: 14px; color: var(--mute); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 30px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.footer p { margin: 0; } .footer a { text-decoration: none; } .footer a:hover { color: var(--accent); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; fill: #fff; }

/* ---------- Reveal (umbral bajo + red de seguridad en JS) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.steps .step.reveal:nth-child(2) { transition-delay: .1s; }
.steps .step.reveal:nth-child(3) { transition-delay: .2s; }

/* Solo efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sym-panel { position: relative; top: 0; }
  .svc-inner { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 820px) {
  .nav { gap: 12px; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; background: rgba(10,10,11,.98);
    padding: 10px var(--pad) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease-out);
  }
  .nav-links a { padding: 16px 0; font: 700 28px var(--font-d); text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.is-open { background: rgba(10,10,11,.98); }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle { display: block; }
  .nav > .btn { display: none; }
  .svc-row { grid-template-columns: 40px 1fr 28px; gap: 12px; }
  .svc-tag { display: none; }
  .svc-inner { padding-left: 52px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 24px; }
  .seg { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .ct-grid { grid-template-columns: 1fr; }
  .bf-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .svc-inner { padding-left: 0; }
}

/* ================= Cuadro de mandos: intro y testigos ================= */
:root { --amber: #ffb020; --red: #ff4d4d; }
.tl-amber { --tc: var(--amber); }
.tl-red { --tc: var(--red); }
.tl-green { --tc: var(--ok); }
.tl-blue { --tc: #4d8fff; }
.ti { display: block; }

/* Relojes */
.dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.d-ring { fill: #0c0e12; stroke: rgba(255,255,255,.13); stroke-width: 2; }
.d-arc { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .6; }
.d-tick { stroke: rgba(255,255,255,.32); stroke-width: 1.5; }
.d-tick.d-major { stroke: var(--ink); stroke-width: 2.6; }
.d-tick.d-red { stroke: var(--red); }
.d-num { fill: var(--ink); font: 600 14px var(--font-m); }
.d-num.d-red { fill: var(--red); }
.d-unit { fill: var(--mute); font: 400 8.5px var(--font-m); letter-spacing: .14em; text-transform: uppercase; }
.d-needle { fill: var(--red); transform-origin: 100px 100px; transform: rotate(var(--deg, -135deg)); transition: transform 1.1s cubic-bezier(.3,1.25,.5,1); }
.d-hub { fill: #1b1d22; stroke: rgba(255,255,255,.28); stroke-width: 1.5; }

/* Intro: contacto dado */
.ign { width: min(600px, 90vw); text-align: center; }
.ign-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 3vw, 26px); }
.ign-logo { width: clamp(52px, 13vw, 88px); height: auto; border-radius: 50%; filter: drop-shadow(0 0 20px var(--accent)); }
.ign .d-needle { transition: none; animation: ignSweep 1.9s cubic-bezier(.45,0,.3,1) .25s both; }
.ign [data-ign="rpm"] .d-needle { animation-name: ignSweepRpm; }
@keyframes ignSweep { 0% { transform: rotate(-135deg); } 48% { transform: rotate(135deg); } 100% { transform: rotate(-135deg); } }
@keyframes ignSweepRpm { 0% { transform: rotate(-135deg); } 48% { transform: rotate(135deg); } 100% { transform: rotate(-104deg); } }
.ign-lights { list-style: none; margin: clamp(16px, 4vw, 28px) 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 18px); }
.ign-lights li { width: clamp(28px, 8vw, 44px); color: var(--tc); opacity: .1; animation: ignOn .18s linear .25s forwards, ignOff .3s linear calc(1.2s + var(--i, 0) * .12s) forwards; }
.ign-lights li.keep { animation: ignOn .18s linear .25s forwards, ignPulse 1s ease-in-out 1.3s infinite; }
.ign-lights .ti { width: 100%; height: auto; filter: drop-shadow(0 0 6px currentColor); }
@keyframes ignOn { to { opacity: 1; } }
@keyframes ignOff { from { opacity: 1; } to { opacity: .1; } }
@keyframes ignPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.ign-msg { margin: clamp(16px, 4vw, 26px) 0 0; font-size: 11px; letter-spacing: .14em; color: var(--mute); }

/* Testigos */
.lights-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.cluster {
  padding: clamp(14px, 2.4vw, 30px); border-radius: 30px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, #1b1e25, #0a0b0d 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 100px -50px #000;
}
.cluster[data-level="stop"], .light-panel[data-level="stop"] { --lv: var(--red); }
.cluster[data-level="care"], .light-panel[data-level="care"] { --lv: var(--amber); }
.cluster[data-level="info"], .light-panel[data-level="info"] { --lv: var(--ok); }
.cluster-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(8px, 2vw, 22px); align-items: center; }
.cluster-lcd { align-self: stretch; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px 8px; text-align: center; border-radius: 16px; background: #040506; border: 1px solid var(--line); color: var(--lv, var(--amber)); box-shadow: inset 0 0 30px rgba(0,0,0,.8); transition: color .3s; }
.lcd-icon .ti { width: clamp(34px, 5vw, 56px); height: auto; filter: drop-shadow(0 0 8px currentColor); }
.cluster-lcd b { font: 700 clamp(16px, 2.1vw, 30px)/1.02 var(--font-d); text-transform: uppercase; letter-spacing: .02em; }
.cluster-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(14px, 2vw, 22px); }
.cluster-filter > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.cf { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink); font-size: 13px; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.cf i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 8px var(--fc); }
.cf b { font: 500 11px var(--font-m); color: var(--mute); }
.cf-red { --fc: var(--red); }
.cf-amber { --fc: var(--amber); }
.cf-info { --fc: var(--ok); }
.cf:hover { border-color: rgba(255,255,255,.3); }
.cf.is-active { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.cf.is-active b { color: inherit; opacity: .6; }
.cluster-lights { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(5px, .8vw, 10px); margin-top: 12px; }
.tl[hidden] { display: none; }
.tl { display: grid; justify-items: center; gap: 7px; padding: 13px 2px 10px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.035); color: rgba(255,255,255,.3); cursor: pointer; transition: color .25s, background .25s, border-color .25s, transform .25s var(--ease-out); }
.tl .ti { width: clamp(30px, 4vw, 44px); height: auto; }
.tl span { font: 400 clamp(8.5px, .72vw, 10.5px)/1.1 var(--font-m); color: var(--mute); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tl:hover { color: var(--tc); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.tl.is-active { color: var(--tc); border-color: var(--tc); background: rgba(255,255,255,.07); }
.tl.is-active .ti { filter: drop-shadow(0 0 8px currentColor); }
.tl.is-active span { color: var(--ink); }
.cluster.is-check .tl:not(.is-off) { color: var(--tc); }
.cluster.is-check .tl:not(.is-off) .ti { filter: drop-shadow(0 0 8px currentColor); }
.cluster-more { margin: clamp(18px, 2.4vw, 28px) 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cluster .chip { padding: 11px 16px; font-size: 14px; }
.light-panel .light-badge { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--lv, var(--amber)); transition: color .3s; }
.light-badge i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.light-dl { margin: 0 0 28px; display: grid; gap: 16px; }
.light-dl dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.light-dl dd { margin: 0; color: #d6d3cd; }
.light-dl div:nth-child(2) dd { color: var(--ink); font-weight: 500; }
.light-dl .light-later { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .3s, background .3s; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .light-dl .light-later { border-color: color-mix(in srgb, var(--lv, var(--amber)) 40%, transparent); background: color-mix(in srgb, var(--lv, var(--amber)) 9%, transparent); }
}
.light-dl .light-later dt { color: var(--lv, var(--amber)); }
.light-back { display: none; margin-top: 14px; padding: 10px 0; background: none; border: 0; color: var(--mute); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.lights-note { margin: 28px 0 0; font-size: 13px; color: var(--mute); max-width: 70ch; }

/* De una luz a una grúa */
.chains-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-bottom: clamp(24px, 4vw, 44px); }
.chain { padding: clamp(18px, 2.2vw, 28px); border-radius: 24px; border: 1px solid var(--line); background: #0c0d10; }
.chain-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--tc); }
.chain-head .ti { width: 44px; height: auto; flex: none; filter: drop-shadow(0 0 8px currentColor); }
.chain-head b { display: block; font: 700 clamp(22px, 2vw, 28px)/1 var(--font-d); text-transform: uppercase; color: var(--ink); }
.chain-head span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.chain-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.cs { position: relative; padding: 0 0 20px 40px; }
.cs:last-child { padding-bottom: 0; }
.cs:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 8px; height: 100%; width: 2px; background: linear-gradient(var(--c), var(--n)); opacity: .6; }
.cs::before { content: ""; position: absolute; left: 11px; top: 8px; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px #0c0d10, 0 0 16px var(--c); z-index: 1; }
.cs-1 { --c: var(--ok); --n: var(--amber); --d: 10px; }
.cs-2 { --c: var(--amber); --n: var(--red); --d: 15px; }
.cs-3 { --c: var(--red); --d: 22px; }
.cs-when { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.cs b { display: block; font-size: 17px; line-height: 1.25; }
.cs p { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }

/* ================= Cabina: el tablero es la portada ================= */
.eyebrow { font-size: 12px; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; letter-spacing: .12em; }
.btn-wa { background: #25d366; color: #04210f; }
.btn-wa:hover { box-shadow: 0 10px 40px -8px rgba(37,211,102,.6); }
.btn-lg { padding: 20px 32px; font-size: 17px; }
.btn-lg svg { width: 22px; height: 22px; }
.sec-title em.em-red { color: var(--red); }
.nav-tel { text-decoration: none; font-size: 13px; color: var(--ink); white-space: nowrap; transition: color .2s; }
.nav-tel:hover { color: #6ea5ff; }
.nav-links a { white-space: nowrap; }

.cockpit { position: relative; isolation: isolate; overflow: hidden; padding: clamp(100px, 9vw, 136px) var(--pad) clamp(70px, 9vw, 120px); }
.cp-scene {
  position: absolute; inset: 0 0 auto 0; height: clamp(460px, 88vh, 820px); z-index: -1; pointer-events: none;
  background: radial-gradient(52% 62% at 78% 34%, rgba(31,111,229,.3), transparent 72%), radial-gradient(38% 46% at 6% 0%, rgba(31,111,229,.12), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 66%, transparent);
          mask-image: linear-gradient(#000 66%, transparent);
}
.cp-road { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cp-logo {
  position: absolute; right: calc(var(--pad) - 18px); top: clamp(60px, 5.6vw, 84px); height: clamp(250px, 30vw, 450px); width: auto; max-width: none;
  filter: drop-shadow(0 0 28px rgba(31,111,229,.6)); opacity: .95; transition: opacity .9s ease, filter .9s ease;
  animation: logoOn 1.5s linear 2.7s both;
}
body.is-loaded .cp-logo { animation-delay: .25s; }
@keyframes logoOnSoft { 0% { opacity: 0; } 16% { opacity: .3; } 24% { opacity: .06; } 42% { opacity: .34; } 50% { opacity: .15; } 70%, 100% { opacity: .38; } }
@keyframes logoOn { 0% { opacity: 0; } 16% { opacity: .7; } 24% { opacity: .12; } 42% { opacity: .85; } 50% { opacity: .35; } 70%, 100% { opacity: .95; } }
.cockpit.is-broken .cp-logo { opacity: .28; filter: grayscale(.7); animation: none; }
.site-logo { position: fixed; z-index: -1; right: -5vw; top: 50%; height: 84vh; transform: translateY(-50%); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.site-logo img { display: block; height: 100%; width: auto; max-width: none; }
body.logo-bg .site-logo { opacity: .075; }
.booking { background: rgba(255,255,255,.037); }
.cp-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.8), rgba(10,10,11,.4) 36%, transparent 56%); }
.cp-head { position: relative; max-width: min(60%, 820px); margin-bottom: clamp(26px, 3.4vw, 50px); }
.cp-title { font: 900 clamp(46px, 7vw, 112px)/.9 var(--font-d); text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 22px; }
.cp-title em { color: var(--amber); text-shadow: 0 0 26px rgba(255,176,32,.5); animation: bulbOn 1.5s linear 2.7s both; }
body.is-loaded .cp-title em { animation-delay: .25s; }
@keyframes bulbOn { 0% { color: #3a352b; text-shadow: none; } 18% { color: var(--amber); } 26% { color: #3a352b; text-shadow: none; } 44% { color: var(--amber); } 52% { color: #5a4b2a; } 70%, 100% { color: var(--amber); text-shadow: 0 0 26px rgba(255,176,32,.5); } }
.cp-lead { max-width: 54ch; margin: 0; color: #dedbd5; font-size: clamp(16px, 1.25vw, 19px); }

/* Retrovisor con el logo colgando */
  position: relative; display: block; height: clamp(40px, 4vw, 56px);
  border-radius: 12px 12px 26px 26px / 10px 10px 24px 24px;
  background: linear-gradient(172deg, #232831, #07080b 62%); border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 44px -18px #000;
}

/* El cuadro se tiñe con la gravedad de la luz elegida */
.cluster { transition: box-shadow .5s; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .cluster { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 100px -50px #000, 0 30px 120px -60px color-mix(in srgb, var(--lv, var(--amber)) 75%, transparent); }
}

/* Simulador: ¿y si sigo circulando? */
.sim { margin-top: clamp(12px, 1.6vw, 18px); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.38); transition: border-color .3s, background .3s; }
.sim[hidden], .sim-end[hidden], .light-sim[hidden] { display: none; }
.sim-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.sim-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sim-go { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--lv, var(--amber)); background: transparent; color: var(--lv, var(--amber)); font: 600 13.5px/1 var(--font-b); cursor: pointer; transition: background .25s, color .25s, border-color .3s; }
.sim-go:hover:not(:disabled) { background: var(--lv, var(--amber)); color: #0a0a0b; }
.sim-go:disabled { opacity: .65; cursor: default; }
.sim-track { height: 5px; margin-top: 11px; border-radius: 5px; overflow: hidden; background: linear-gradient(90deg, var(--ok), var(--amber) 55%, var(--red)); }
.sim-track span { display: block; height: 100%; background: #1a1c21; transform-origin: right; }
.sim-end { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; animation: swap .45s var(--ease-out); }
.sim-end p { margin: 0; flex: 1 1 230px; font-size: 14.5px; line-height: 1.4; color: #ece9e3; }
.sim-end b { color: var(--red); }
.cluster.is-end .sim { border-color: rgba(255,77,77,.6); background: rgba(255,77,77,.09); }
.cluster.is-sim [data-dial="rpm"] .d-needle { transition-duration: .26s; }
.cluster.is-sim .tl.is-active { animation: tlBlink .52s steps(2, jump-none) infinite; }
@keyframes tlBlink { 50% { opacity: .22; } }
.tl.is-cascade { color: var(--tc); background: rgba(255,255,255,.07); animation: tlPop .5s var(--ease-out); }
.tl.is-cascade .ti { filter: drop-shadow(0 0 8px currentColor); }
.tl.is-cascade span { color: var(--ink); }
@keyframes tlPop { from { transform: scale(1.2); } }
.cluster.is-end .cluster-lcd { border-color: rgba(255,77,77,.7); animation: lcdAlarm 1.5s ease-in-out infinite; }
@keyframes lcdAlarm { 50% { box-shadow: inset 0 0 30px rgba(0,0,0,.8), 0 0 36px -4px rgba(255,77,77,.75); } }
.light-panel.is-alert .light-later { animation: laterPulse 1.5s ease-in-out 3; }
@keyframes laterPulse { 50% { box-shadow: 0 0 0 4px rgba(255,77,77,.28); } }

/* Panel: lo siguiente es escribir o llamar */
.light-dl { margin-bottom: 14px; }
.light-sim { display: inline-block; margin: 0 0 22px; padding: 6px 0; background: none; border: 0; color: var(--lv, var(--amber)); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.light-sim:disabled { opacity: .5; }
.light-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.light-cta .btn { flex: 1 1 auto; justify-content: center; padding: 15px 20px; }
.sym-panel .light-alt { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.light-alt a { color: var(--ink); text-underline-offset: 3px; }

/* Por qué no esperar */
.risk { background: rgba(255,255,255,.037); padding: clamp(90px, 12vw, 170px) var(--pad); }
.risk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 3vw, 36px); border-radius: 24px; border: 1px solid var(--line); background: #0c0d10; }
.risk-cta p { margin: 0; flex: 1 1 320px; font: 700 clamp(24px, 2.7vw, 40px)/1.02 var(--font-d); text-transform: uppercase; }
.risk-cta p span { color: var(--mute); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contacto */
.contact { text-align: center; overflow: hidden; isolation: isolate; }
.ct-car { position: absolute; z-index: -1; left: 50%; top: 47%; width: min(96vw, 800px); transform: translate(-50%, -50%); pointer-events: none; opacity: .17; filter: drop-shadow(0 0 24px rgba(31,111,229,.55)); }
.ct-car img { width: 100%; height: auto; }
.ct-title { font: 900 clamp(48px, 8vw, 132px)/.88 var(--font-d); text-transform: uppercase; margin: 0 0 24px; }
.ct-lead { max-width: 50ch; margin: 0 auto 34px; color: #dedbd5; }
.ct-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: clamp(44px, 6vw, 84px); }
.ct-card:not(a):hover { border-color: var(--line); transform: none; background: var(--bg-2); }
.ft-brand { display: flex; align-items: center; gap: 12px; font: 700 20px/1 var(--font-d); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.ft-brand img { width: 44px; height: 44px; border-radius: 50%; }
.ft-brand b { color: #4d8fff; font-weight: 900; }
.footer { align-items: center; }

/* El formulario de cita no puede ser más ancho que la pantalla (un fieldset no encoge por defecto) */
.book-form { grid-template-columns: minmax(0, 1fr); }
.bf-step { min-width: 0; }

/* Barra fija en móvil: escribir o llamar siempre a mano */
.cta-bar { display: none; }

@media (max-width: 1000px) {
  .lights-wrap, .chains-grid { grid-template-columns: minmax(0, 1fr); }
  .light-back { display: inline-block; }
  .light-panel, .cluster { scroll-margin-top: 84px; }
}
@media (max-width: 640px) {
  .cluster-lights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl .ti { width: 38px; }
}
@media (max-width: 820px) {
  .cluster { border-radius: 22px; }
  .tl { border-radius: 12px; padding: 10px 1px 8px; }
  .tl span { font-size: 10px; }
  .d-num { font-size: 17px; }
  .d-unit { font-size: 11px; }
}
@media (max-width: 1200px) {
  .nav-tel { display: none; }
}
@media (min-width: 821px) and (max-width: 1000px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 1000px) {
  .cp-head { max-width: min(64%, 620px); }
}
@media (max-width: 820px) {
  .cockpit { padding-top: 80px; }
  .cp-scene { height: clamp(430px, 74vh, 640px); }
  .cp-shade { background: linear-gradient(rgba(10,10,11,.05) 16%, rgba(10,10,11,.62) 50%); }
  .cp-logo { right: -13vw; top: 58px; height: auto; width: 104vw; opacity: .38; animation-name: logoOnSoft; }
  .site-logo { right: -34vw; height: auto; width: 128vw; }
  .site-logo img { width: 100%; height: auto; }
  .cp-head { max-width: none; }
  .light-cta .btn { flex: 1 1 100%; }
  .risk-cta .btn, .ct-cta .btn { flex: 1 1 100%; justify-content: center; }
  .cta-row { width: 100%; }
  .footer { justify-content: center; text-align: center; }
  .ft-brand { flex-direction: column; width: 100%; }
  .cta-bar {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,10,11,.95); border-top: 1px solid var(--line);
  }
  .cta-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font: 600 15px/1 var(--font-b); text-decoration: none; }
  .cta-bar svg { width: 20px; height: 20px; fill: currentColor; }
  .cb-wa { background: #25d366; color: #04210f; }
  .cb-tel { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
  .wa-float { display: none; }
  body { padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cp-logo, .cp-title em, .cluster.is-end .cluster-lcd { animation: none; }
}

/* ================= Precios, coche de segunda mano y centralitas ================= */
.used, .ecu { padding: clamp(90px, 12vw, 170px) var(--pad); }
.ecu { background: rgba(255,255,255,.037); }
.sec-alt { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.sec-alt a { color: var(--ink); text-underline-offset: 3px; }

/* Entrada a los otros dos servicios, justo debajo del tablero */
.cp-also { list-style: none; margin: clamp(26px, 3.4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.cp-also a { height: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: clamp(16px, 1.8vw, 24px); border-radius: 22px; border: 1px solid var(--line); background: #0c0d10; color: #4d8fff; text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.cp-also a:hover { border-color: #4d8fff; background: #101319; transform: translateY(-4px); }
.cp-also .ti { width: 46px; height: auto; }
.cp-also span { color: var(--mute); font-size: 15px; line-height: 1.35; }
.cp-also b { display: block; margin-bottom: 4px; font: 700 clamp(22px, 2vw, 30px)/1.05 var(--font-d); text-transform: uppercase; color: var(--ink); }
.cp-also i { font-style: normal; font-size: 22px; color: var(--ink); transition: transform .3s var(--ease-out); }
.cp-also a:hover i { transform: translateX(5px); }

/* Precio */
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 28px; padding: 18px 24px; border-radius: 22px; border: 1px solid rgba(77,143,255,.5); background: rgba(31,111,229,.09); }
.price b { font: 900 clamp(58px, 6.4vw, 92px)/.85 var(--font-d); white-space: nowrap; color: var(--ink); }
.price span { flex: 1 1 210px; font-size: 15.5px; color: #d6d3cd; }
.svc-tag.is-price { color: var(--ink); border-color: rgba(77,143,255,.6); }
.svc-inner > div > p { margin: 0 0 16px; color: #d6d3cd; max-width: 60ch; }
.svc-inner > div > p:last-child { margin-bottom: 40px; }
.svc-more a { color: #6ea5ff; font-size: 15px; text-underline-offset: 3px; }
.seg small { display: block; margin-top: 6px; font: 400 12px var(--font-m); color: var(--mute); }
.seg input:checked + span small { color: #8db6ff; }

/* Coche de segunda mano: el anuncio dice una cosa y el equipo lee otra */
.used-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.used-demo { padding: clamp(16px, 2.4vw, 30px); border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, #1b1e25, #0a0b0d 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 100px -50px #000; }
.used-ad { margin: 4px 6px 20px; padding: 16px 20px 18px; border-radius: 6px 16px 16px 16px; background: #f4f2ee; color: #14161a; transform: rotate(-1.2deg); box-shadow: 0 18px 30px -18px #000; transition: opacity .4s; }
.used-tag { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6b6964; }
.used-car { margin: 0 0 6px; font: 700 clamp(26px, 2.6vw, 36px)/1 var(--font-d); text-transform: uppercase; }
.used-quote { margin: 0; font-size: 16px; font-style: italic; text-decoration: line-through transparent 2px; transition: text-decoration-color .4s .3s; }
.used-demo[data-state="scan"] .used-ad { opacity: .6; }
.used-demo[data-state="scan"] .used-quote { text-decoration-color: var(--red); }
.used-dash { padding: 18px 16px 16px; border-radius: 18px; background: #040506; border: 1px solid var(--line); box-shadow: inset 0 0 30px rgba(0,0,0,.8); }
.used-lamps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); }
.used-lamps li { width: clamp(34px, 4.4vw, 52px); color: rgba(255,255,255,.13); transition: color .35s, filter .35s; }
.used-lamps .ti { width: 100%; height: auto; }
.used-demo[data-state="scan"] .used-lamps li { color: var(--tc); filter: drop-shadow(0 0 8px var(--tc)); transition-delay: calc(var(--i) * .22s); }
.used-lcd { margin: 14px 0 0; display: grid; gap: 5px; text-align: center; }
.used-lcd b { font: 700 clamp(24px, 2.8vw, 38px)/1 var(--font-d); text-transform: uppercase; color: var(--ok); transition: color .3s; }
.used-demo[data-state="scan"] .used-lcd b { color: var(--amber); }
.used-lcd span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.used-found { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.used-demo[data-state="scan"] .used-found { grid-template-rows: 1fr; }
.used-found ul { overflow: hidden; min-height: 0; list-style: none; margin: 0; padding: 0; }
.used-found li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px dashed var(--line); color: var(--tc); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease-out); }
.used-found li:first-child { margin-top: 16px; }
.used-demo[data-state="scan"] .used-found li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .22s); }
.used-found .ti { width: 34px; height: auto; }
.used-found b { display: block; font-size: 16px; line-height: 1.25; color: var(--ink); }
.used-found span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--mute); }
.used-go { width: 100%; justify-content: center; margin-top: 16px; }
.used-note { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--mute); }
.used-h { margin: 0 0 6px; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.used-info .ticks { margin-bottom: 26px; }

/* Centralitas: banco de pruebas, reparación y clonado */
.ecu-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.ecu-stage { padding: clamp(14px, 2.2vw, 26px); border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, #1b1e25, #0a0b0d 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 100px -50px #000; }
.ecu-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ecu-tab { display: grid; gap: 7px; padding: 14px 14px 13px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; font: 700 clamp(17px, 1.7vw, 24px)/1 var(--font-d); text-transform: uppercase; color: var(--mute); transition: color .25s, background .25s, border-color .25s; }
.ecu-tab span { font: 400 11px var(--font-m); color: #4d8fff; }
.ecu-tab:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.ecu-tab.is-active { color: var(--ink); border-color: #4d8fff; background: rgba(31,111,229,.13); }
.ecu-scene { margin-top: 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: inset 0 0 30px rgba(0,0,0,.8);
  background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, #040506; }
.ecu-svg { display: block; width: 100%; height: auto; }
.sc { display: none; }
.ecu-stage[data-mode="banco"] .sc-banco, .ecu-stage[data-mode="reparar"] .sc-reparar, .ecu-stage[data-mode="clonar"] .sc-clonar { display: block; animation: scIn .5s var(--ease-out); }
@keyframes scIn { from { opacity: 0; } }
.e-body { fill: #14171d; stroke: rgba(255,255,255,.42); stroke-width: 1.5; }
.e-conn { fill: #0a0c10; stroke: rgba(255,255,255,.32); stroke-width: 1.5; }
.e-pin { fill: #c9a24a; }
.e-dim { fill: none; stroke: rgba(255,255,255,.17); stroke-width: 2; stroke-linecap: round; }
.e-screw { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.e-led { fill: #2a2d33; }
.e-led-ok { fill: var(--ok); filter: drop-shadow(0 0 5px var(--ok)); animation: blink 1.6s infinite; }
.e-led-bad { fill: var(--red); filter: drop-shadow(0 0 5px var(--red)); }
.e-seq { animation: ledSeq 4.8s linear infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes ledSeq { 0%, 7% { fill: #2a2d33; filter: none; } 12%, 100% { fill: var(--ok); filter: drop-shadow(0 0 6px var(--ok)); } }
.e-cable { fill: none; stroke-width: 3.5; stroke-linecap: round; opacity: .8; }
.e-c0 { stroke: var(--red); } .e-c1 { stroke: #4d8fff; } .e-c2 { stroke: var(--amber); } .e-c3 { stroke: var(--ok); }
.e-screen { fill: #05080c; stroke: rgba(255,255,255,.2); stroke-width: 1.2; }
.e-wave { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--ok)); stroke-dasharray: 640; animation: wave 3s linear infinite; }
@keyframes wave { from { stroke-dashoffset: 640; } 70%, to { stroke-dashoffset: 0; } }
.e-txt { font: 500 12px var(--font-m); letter-spacing: .1em; fill: var(--mute); }
.e-txt-in { font-size: 16px; fill: rgba(255,255,255,.5); }
.e-txt-bad { fill: var(--red); }
.e-pcb { fill: #0b1611; stroke: rgba(62,240,161,.42); stroke-width: 1.5; }
.e-trace { fill: none; stroke: rgba(62,240,161,.3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.e-chip { fill: #14171d; stroke: rgba(255,255,255,.42); stroke-width: 1.5; }
.e-part { fill: #1a1e25; stroke: rgba(255,255,255,.3); stroke-width: 1.2; }
.e-bad { fill: rgba(255,77,77,.28); stroke: var(--red); stroke-width: 1.5; }
.e-ring { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 1.7s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.e-call { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 4; }
.e-flow { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.e-dot { fill: #4d8fff; filter: drop-shadow(0 0 5px #4d8fff); opacity: 0; animation: dot 1.8s linear infinite; animation-delay: var(--d); }
@keyframes dot { 0% { transform: translateX(0); opacity: 0; } 12%, 88% { opacity: 1; } 100% { transform: translateX(188px); opacity: 0; } }
.e-bar { fill: rgba(255,255,255,.1); }
.e-fill { fill: var(--ok); transform-box: fill-box; transform-origin: left center; animation: fill 3.6s ease-in-out infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.ecu-panel h3 { font: 700 clamp(30px, 3vw, 44px)/1 var(--font-d); text-transform: uppercase; margin: 0 0 16px; }
.ecu-panel.is-swap h3 { animation: swap .45s var(--ease-out); }
.ecu-panel .light-dl { margin-bottom: 26px; }
.light-dl .ecu-gain { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(62,240,161,.38); background: rgba(62,240,161,.07); }
.light-dl .ecu-gain dt { color: var(--ok); }
.ecu-signs { margin-top: clamp(28px, 3.2vw, 44px); }
.ecu-signs h3 { margin: 0 0 14px; font: 700 clamp(24px, 2.4vw, 34px)/1 var(--font-d); text-transform: uppercase; }
.ecu-signs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ecu-signs li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); color: #d6d3cd; }
.ecu-signs li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

@media (max-width: 1000px) {
  .used-wrap, .ecu-wrap { grid-template-columns: minmax(0, 1fr); }
  .ecu-left { display: contents; }
  .ecu-panel { order: 2; }
  .ecu-signs { order: 3; margin-top: 0; }
}
@media (min-width: 821px) and (max-width: 1000px) {
  .nav-links a[href="#servicios"] { display: none; }
}
@media (max-width: 820px) {
  .cp-also { grid-template-columns: minmax(0, 1fr); }
  .used-demo, .ecu-stage { border-radius: 22px; }
  .svc-row { row-gap: 8px; }
  .svc-tag.is-price { display: block; grid-column: 2; grid-row: 2; justify-self: start; }
  .svc-plus { grid-column: 3; grid-row: 1; }
  .used-info .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .e-txt { font-size: 22px; letter-spacing: .02em; }
  .ecu-tab { padding: 11px 10px; font-size: 16px; }
  .cp-also a { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; }
  .cp-also .ti { width: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .e-wave, .e-dot, .e-fill, .e-ring, .e-seq { animation: none; }
  .e-dot { opacity: 1; }
  .e-seq { fill: var(--ok); }
}

/* ---------- Cursor: el logo por piezas ----------
   El retrovisor es el puntero; las otras piezas lo siguen y completan el logo al parar.
   Todas las piezas son la misma imagen (assets/img/cursor-car.webp, copia reducida del logo original) recortada por zonas. */
.cursor-dot, .cursor-ring { display: none; }
.cl-rest { position: fixed; inset: 0; transition: opacity .7s; }
.cursor.is-rest .cl-rest { opacity: .3; }
.cursor.is-hover .cl-rest { opacity: .22; transition-duration: .3s; }
.cl { position: fixed; top: 0; left: 0; width: 88px; height: 79.33px; margin: -26.08px 0 0 -5.53px; filter: drop-shadow(0 0 3px rgba(77,143,255,.5)); will-change: transform; }
.cl i { position: absolute; inset: 0; background: url(assets/img/cursor-car.webp) 0 0 / 100% 100% no-repeat; transform-origin: 6.29% 32.88%; transition: transform .25s var(--ease-out); }
.cl-0 i { clip-path: polygon(0 27.3%, 11.4% 27.3%, 11.4% 36.3%, 10.9% 38.6%, 0 38.6%); }
.cl-1 i { clip-path: polygon(10.9% 26.8%, 100% 26.8%, 100% 41.8%, 0 41.8%, 0 38.3%, 10.4% 38.3%, 10.9% 36.3%); }
.cl-2 i { clip-path: polygon(0 0, 100% 0, 100% 27.8%, 0 27.8%); }
.cl-3 i { clip-path: polygon(0 40.7%, 100% 40.7%, 100% 56%, 0 56%); }
.cl-4 i { clip-path: polygon(0 55%, 100% 55%, 100% 71.8%, 0 71.8%); }
.cl-5 i { clip-path: polygon(0 70.8%, 100% 70.8%, 100% 100%, 0 100%); }
.cl-0 { filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 4px rgba(77,143,255,.7)); }
.cursor.is-hover .cl-0 i { transform: scale(2); }
html.cur-on, html.cur-on * { cursor: none !important; }
html.cur-on input, html.cur-on textarea, html.cur-on select { cursor: auto !important; }

/* ---------- Fotos reales de trabajo ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(32px, 4.5vw, 64px); }
.shots-h { grid-column: 1 / -1; margin: 0 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.shot { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0c0d10; }
.shot img { display: block; width: 100%; height: auto; background: #15171c; }
.shot img[src*="informe"] { filter: brightness(.9); }
.shot figcaption { padding: 14px 16px 17px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.shot figcaption b { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #4d8fff; margin-bottom: 7px; }
.shots .shot.reveal:nth-of-type(2) { transition-delay: .1s; }
.shots .shot.reveal:nth-of-type(3) { transition-delay: .2s; }
.shots-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.681fr); }
@media (max-width: 820px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots .shot:first-of-type { grid-column: 1 / -1; }
  .shots-2 { grid-template-columns: minmax(0, 1fr); }
  .shots-2 .shot { grid-column: auto; }
  .shot figcaption { padding: 12px 13px 14px; font-size: 13px; }
}
