/* =========================================================
   Servi Express Nazaret — estilos 2026
   Paleta: noche profunda + cian eléctrico, violeta y naranjo
   ========================================================= */
:root {
  --bg: #fffaf3;          /* crema muy claro */
  --bg-2: #ffffff;
  --bg-3: #fff1e2;        /* durazno suave */
  --glass: rgba(255, 255, 255, .82);
  --glass-2: #fff3e6;
  --line: rgba(27, 31, 59, .10);
  --line-2: rgba(27, 31, 59, .18);
  --ink: #1b1f3b;         /* azul noche para el texto */
  --ink-2: #4a5170;
  --ink-3: #6b7290;
  --cyan: #e8590c;        /* acento principal: naranjo intenso (legible sobre blanco) */
  --violet: #2563eb;      /* secundario: azul electrico */
  --orange: #ff9f1c;      /* amarillo-naranjo */
  --pink: #ff3d6e;
  --green: #16a34a;
  --wa: #16a34a;
  --wa-hover: #12823b;
  --danger: #e11d48;
  --grad: linear-gradient(120deg, #ff5f1f 0%, #ff9f1c 55%, #ffc53d 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,95,31,.12), rgba(37,99,235,.12));
  --on-accent: #1b1f3b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(27, 31, 59, .10);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(255, 159, 28, .45); color: var(--ink); }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.2em; }
.icon-lg { width: 44px; height: 44px; }
.icon-xl { width: 56px; height: 56px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 840px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--cyan); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.3em; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; color: var(--ink);
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { min-height: 40px; padding: .45em 1.05em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-grad, .btn-primary {
  background: var(--grad); color: var(--on-accent); background-size: 160% 100%;
  box-shadow: 0 8px 22px rgba(255, 95, 31, .30);
}
.btn-grad:hover, .btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 30px rgba(255, 95, 31, .40); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 26px rgba(22, 163, 74, .30); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-glass, .btn-ghost {
  background: var(--glass); border-color: var(--line-2); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover, .btn-ghost:hover { background: #fff; border-color: var(--violet); color: var(--violet); }

/* ---------- Barra de anuncios ---------- */
.announce {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 40px; padding: 6px 48px;
  background: linear-gradient(90deg, #2563eb, #7c3aed); border-bottom: 0;
  color: #fff; font-weight: 600; font-size: .92rem; text-align: center;
}
.announce[hidden] { display: none; }
.announce-text { margin: 0; transition: opacity .35s ease, transform .35s ease; }
.announce-text.is-leaving { opacity: 0; transform: translateY(-6px); }
.announce-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.3rem; line-height: 1;
}
.announce-close:hover { background: rgba(255,255,255,.3); color: #fff; }
@keyframes grad-move { to { background-position: 200% 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 20px rgba(255, 95, 31,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; }
.brand-text span {
  font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .2em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover { color: var(--cyan); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: var(--glass); border: 1px solid var(--line); color: inherit;
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 250, 243, .98); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; animation: drop .25s ease; }
  .nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 18s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: #ffb27a; top: -160px; right: -120px; }
.blob-2 { width: 420px; height: 420px; background: #8ec5ff; bottom: -180px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #ffd166; top: 40%; right: 30%; opacity: .4; animation-delay: -12s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27,31,59,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,31,59,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(.95); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .9rem;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line);
  padding: .4em .95em; border-radius: 999px; margin-bottom: 1.2em;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(63, 164, 106,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 164, 106,0); } 100% { box-shadow: 0 0 0 0 rgba(63, 164, 106,0); } }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .45em; }
.trust .icon { color: var(--cyan); }
.hero-status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: .95rem;
}
.status { display: inline-flex; align-items: center; gap: .5em; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open::before { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 164, 106,.2); }
.status.is-closed::before { background: var(--danger); }
.status-sep { width: 1px; height: 18px; background: var(--line-2); }
.status-addr { display: inline-flex; align-items: center; gap: .4em; color: var(--ink-2); }

/* Auto interactivo */
.car-stage { position: relative; }
.car-hint {
  display: inline-flex; align-items: center; gap: .4em; margin: 0 0 6px;
  font-size: .85rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .1em;
}
.car-wrap { position: relative; transform-style: preserve-3d; transition: transform .2s ease-out; will-change: transform; }
.car { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(27,31,59,.22)); animation: idle 4s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-4px); } }
.car .rim { transform-box: fill-box; transform-origin: center; }
.car-wrap:hover .rim { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.headlight-beam { animation: beam 3s ease-in-out infinite; }
@keyframes beam { 50% { opacity: .32; } }

.hotspot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0;
  border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: radial-gradient(circle, #fff 0 25%, var(--ink) 26% 100%);
  box-shadow: 0 0 0 0 rgba(27, 31, 59,.55);
  animation: ping 2.2s infinite;
  transition: transform .2s ease, background .2s;
}
.hotspot:hover, .hotspot[aria-expanded="true"] {
  transform: scale(1.25);
  background: radial-gradient(circle, #fff 0 25%, var(--violet) 26% 100%);
  animation: none; box-shadow: 0 0 0 8px rgba(37, 99, 235,.25);
}
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(27, 31, 59,0); } 100% { box-shadow: 0 0 0 0 rgba(27, 31, 59,0); } }
.hotspot[data-zone="motor"]   { left: 80%;  top: 47%; }
.hotspot[data-zone="scanner"] { left: 56%;  top: 42%; }
.hotspot[data-zone="aceite"]  { left: 68%;  top: 62%; }
.hotspot[data-zone="caja"]    { left: 51%;  top: 72%; }
.hotspot[data-zone="tren"]    { left: 79%;  top: 76%; }
.hotspot[data-zone="frenos"]  { left: 24%;  top: 76%; }

.zone-card { margin-top: 18px; padding: 20px 22px; border-radius: var(--radius); min-height: 150px; }
.zone-kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.zone-title { font-size: 1.35rem; margin-bottom: .3em; }
.zone-text { color: var(--ink-2); margin-bottom: 14px; }
.zone-card.is-changing { animation: pop .35s ease; }
@keyframes pop { from { opacity: .3; transform: translateY(6px); } }

/* ---------- Cinta de servicios ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #fff1e2, #e8f1ff, #fff1e2);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 44px; animation: marquee 38s linear infinite; }
.ticker-track span { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.ticker-track span::after { content: "✦"; color: var(--orange); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 92px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-band { background: radial-gradient(900px 400px at 50% 0%, rgba(37, 99, 235,.10), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
#diagnostico, #historial, #preguntas { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-2); }
.section-head-left { text-align: left; margin: 0 0 24px; }
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--cyan) !important; margin-bottom: .8em;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Promociones ---------- */
.promo-carousel { position: relative; }
.promo-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 520px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo {
  position: relative; scroll-snap-align: center; overflow: hidden;
  border-radius: 26px; padding: 30px 28px 26px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 0; isolation: isolate; cursor: pointer; color: #fff;
  box-shadow: 0 14px 34px rgba(27,31,59,.14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.promo:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 24px 50px rgba(27,31,59,.22); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.promo::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; top: -110px; z-index: -1;
  background: rgba(255,255,255,.16); filter: blur(4px);
}
.promo-cyan::before { background: linear-gradient(140deg, #1d4ed8, #0ea5e9); }
.promo-violeta::before { background: linear-gradient(140deg, #6d28d9, #c026d3); }
.promo-naranjo::before { background: linear-gradient(140deg, #ea3d0c, #ff8a00); }
.promo-verde::before { background: linear-gradient(140deg, #047857, #10b981); }
.promo-tag {
  align-self: flex-start; padding: .3em .85em; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.promo h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 18px 0 8px; }
.promo p { color: rgba(255,255,255,.95); margin-bottom: 18px; }
.promo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.promo-count { font-weight: 700; font-size: .9rem; background: rgba(0,0,0,.25); padding: .35em .8em; border-radius: 10px; font-variant-numeric: tabular-nums; }
.promo .btn { background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.promo .btn:hover { background: #f1f1f1; }
.promo-shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.promo:hover .promo-shine { opacity: 1; }
.carousel-btn {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1;
  background: rgba(255,255,255,.95); border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.carousel-btn:hover { border-color: var(--cyan); color: var(--cyan); background: #fff; }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.promo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.promo-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line-2); transition: width .3s, background .3s;
}
.promo-dots button[aria-selected="true"] { width: 30px; background: var(--grad); }

/* ---------- Servicios (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento-wide { grid-column: span 2; }
.card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(27,31,59,.06);
  padding: 26px; display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--c, var(--cyan)); box-shadow: 0 22px 44px rgba(27,31,59,.14); transform: translateY(-4px); }
.card .icon-lg {
  color: #fff; margin-bottom: 18px; padding: 12px; width: 56px; height: 56px; border-radius: 16px;
  background: var(--c, var(--cyan)); box-shadow: 0 10px 22px var(--c-sombra, rgba(232, 89, 12,.30));
  transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.card p { color: var(--ink-2); flex: 1; }
.card:hover .icon-lg { transform: rotate(-8deg) scale(1.1); }
.bento .card:nth-child(5n+2) { --c: #2563eb; --c-sombra: rgba(37,99,235,.3); }
.bento .card:nth-child(5n+3) { --c: #db2777; --c-sombra: rgba(219,39,119,.3); }
.bento .card:nth-child(5n+4) { --c: #059669; --c-sombra: rgba(5,150,105,.3); }
.bento .card:nth-child(5n+5) { --c: #7c3aed; --c-sombra: rgba(124,58,237,.3); }
.card-link { font-weight: 700; color: var(--c, var(--cyan)); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 159, 28,.16), transparent 60%);
}
.card:hover .card-glow { opacity: 1; }
.card-feature { background: linear-gradient(160deg, #fff4ea, #eaf2ff); border-color: rgba(255, 95, 31,.3); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 6px 18px rgba(27,31,59,.06); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.steps li:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 18px 36px rgba(27,31,59,.12); }
.steps p { color: var(--ink-2); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: var(--on-accent); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(255, 95, 31,.3);
}

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery-empty { text-align: center; color: var(--ink-2); column-span: all; }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 16px; break-inside: avoid;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3);
  padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left;
  animation: g-in .5s ease both;
}
@keyframes g-in { from { opacity: 0; transform: scale(.96); } }
.g-item img, .g-item video { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img, .g-item:hover video { transform: scale(1.06); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(15,18,40,.85)); color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.g-cap strong { font-size: 1rem; }
.g-cap span { font-size: .82rem; color: rgba(255,255,255,.85); }
.g-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(15, 18, 40,.75); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
}
.g-badge.demo { left: auto; right: 12px; background: rgba(255, 95, 31,.92); border-color: transparent; }
.g-play {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s;
}
.g-item:hover .g-play { transform: scale(1.12); }

/* Antes / después */
.ba { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); margin: 0 0 16px; break-inside: avoid; user-select: none; background: var(--bg-3); }
.ba img { width: 100%; height: auto; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-after img { height: 100%; object-fit: cover; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none; }
.ba-line::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #111; font-weight: 800; letter-spacing: -.1em;
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; min-height: 0; border: 0;
}
.ba-label { position: absolute; top: 12px; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; background: rgba(15, 18, 40,.75); color: #fff; pointer-events: none; }
.ba-label.l { left: 12px; }
.ba-label.r { right: 12px; }

/* Visor */
.lightbox {
  width: min(1100px, 100vw - 24px); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px;
  background: #fff; color: var(--ink); overflow: visible;
}
.lightbox::backdrop { background: rgba(15,18,40,.78); backdrop-filter: blur(6px); }
.lb-figure { margin: 0; padding: 18px 18px 14px; }
.lb-media { display: grid; place-items: center; }
.lb-media img, .lb-media video { max-height: calc(100vh - 150px); width: auto; max-width: 100%; border-radius: 14px; }
.lb-media iframe { width: min(1000px, 100vw - 60px); aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
#lb-caption { text-align: center; color: var(--ink-2); margin-top: 10px; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1;
}
.lb-close { top: -14px; right: -14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: -14px; }
.lb-next { right: -14px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--cyan); }

/* ---------- Síntomas ---------- */
.symptoms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
  padding: .55em 1.1em; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-2); color: var(--ink); transition: border-color .2s, background .2s, transform .2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.symptom-result {
  max-width: 780px; margin: 0 auto; padding: 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line-2); border-left: 5px solid var(--orange);
  animation: pop .35s ease;
}
.symptom-result p { color: var(--ink-2); }

/* ---------- Kilometraje / historial ---------- */
.km-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.km-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.km-row { display: flex; gap: 10px; }
.km-row input { flex: 1; min-width: 0; }
.km-result {
  background: var(--glass); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line);
  min-height: 230px; box-shadow: var(--shadow);
}
.km-placeholder { color: var(--ink-3); margin: 0; }
.km-badge { display: inline-block; background: var(--grad); color: var(--on-accent); font-weight: 800; padding: .25em .8em; border-radius: 10px; margin-bottom: 10px; }
.km-list { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.km-list li { display: flex; gap: .55em; align-items: flex-start; }
.km-list .icon { color: var(--green); margin-top: .2em; }
.hist-form { display: grid; gap: 14px; }
.hist-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 12px; }
.hist-item { border-left: 3px solid var(--cyan); padding: 6px 0 6px 14px; }
.hist-item strong { display: block; }
.hist-item p { margin: 4px 0 0; }
.hist-meta { font-size: .9rem; color: var(--ink-3); }
.hist-car { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }

/* ---------- Formularios ---------- */
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .7em .9em; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select option { background: var(--bg-2); color: var(--ink); }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(255, 95, 31,.18); }
[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: .875rem; color: var(--ink-3); margin: 6px 0 0; }
.error { font-size: .9rem; color: var(--danger); font-weight: 600; margin: 6px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.book-form {
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: .6em; align-items: center; font-weight: 600; }
.checklist .icon { color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: var(--violet); box-shadow: 0 10px 26px rgba(37,99,235,.10); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-2); font-size: 1.3rem; font-weight: 400; color: var(--cyan); transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.facts { margin: 0 0 20px; display: grid; gap: 16px; }
.facts div { display: grid; gap: 2px; }
.facts dt { display: flex; align-items: center; gap: .45em; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.facts dt .icon { color: var(--cyan); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { color: var(--ink); }
.facts-lg dd { font-size: 1.1rem; }
.map { border-radius: 24px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); background: var(--bg-3); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }
.map-placeholder {
  height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px;
  background:
    radial-gradient(400px 260px at 50% 45%, rgba(255, 159, 28,.22), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(27,31,59,.06) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(27,31,59,.06) 58px 60px),
    var(--bg-3);
}
.map-placeholder .icon-xl { color: var(--orange); animation: idle 2.5s ease-in-out infinite; }
.map-placeholder p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #fff1e2; border-top: 1px solid var(--line); padding: 48px 0 100px; }
.site-footer .muted { color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-grid nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-grid nav a:hover { color: var(--cyan); }
.footer-grid .small { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(22, 163, 74,.45); transition: transform .2s;
  animation: wa-bounce 6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-hover); }
.wa-float .icon { width: 32px; height: 32px; }
@keyframes wa-bounce { 0%, 90%, 100% { transform: none; } 93% { transform: translateY(-8px); } 96% { transform: translateY(0); } }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; pointer-events: none;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .km-grid, .form-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 68px 0; }
  .carousel-btn { display: none; }
}
@media (max-width: 600px) {
  .announce { font-size: .82rem; padding: 6px 44px 6px 14px; }
  .hero { padding: 40px 0 52px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .km-row { flex-direction: column; }
  .book-form { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hotspot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .promo { padding: 24px 20px 22px; min-height: 270px; }
  .status-sep { display: none; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 6px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Historial en tabla ---------- */
.hist-table-wrap {
  margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); overflow-x: auto; animation: pop .35s ease;
}
.hist-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hist-table caption {
  caption-side: top; text-align: left; padding: 18px 20px 6px;
  font-weight: 800; font-size: 1.05rem; color: var(--ink);
}
.hist-table th {
  text-align: left; padding: 12px 20px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.hist-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist-table tbody tr:last-child td { border-bottom: 0; }
.hist-table tbody tr:hover { background: #fff7ee; }
.hist-table .col-fecha { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; width: 1%; }
.hist-table .col-gar { width: 1%; white-space: nowrap; }
.col-desc strong { display: block; margin-bottom: 2px; }
.col-desc .desc-text { display: block; color: var(--ink-2); }
.hist-table .hist-meta { display: block; margin-top: 4px; }
.gar {
  display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .82rem; font-weight: 800;
  border: 1px solid transparent;
}
.gar-ok { background: #dcfce7; color: #15803d; border-color: #86efac; }
.gar-off { background: #ffe4e6; color: #be123c; border-color: #fda4af; }
.gar-none { background: var(--glass-2); color: var(--ink-2); font-weight: 600; }

@media (max-width: 640px) {
  .hist-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hist-table, .hist-table tbody, .hist-table tr, .hist-table td { display: block; width: 100%; }
  .hist-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .hist-table tbody tr:last-child { border-bottom: 0; }
  .hist-table td { padding: 6px 0; border: 0; white-space: normal; }
  .hist-table td::before {
    content: attr(data-label); display: block; font-size: .72rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px;
  }
  .hist-table caption { display: block; width: 100%; padding: 16px 16px 4px; }
}

/* ---------- Pinta tu auto (interactivo) ---------- */
.paint { display: none; }
.js .paint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 0; }
.paint-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.paint button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px rgba(27,31,59,.15);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.paint button:hover { transform: scale(1.15); }
.paint button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 6px 14px rgba(27,31,59,.2); transform: scale(1.1); }
.car .body-paint stop { transition: stop-color .5s ease; }
.hero h1 .grad-text { background-size: 200% 100%; animation: grad-move 6s linear infinite alternate; }
/* Texto con degradado: tonos mas oscuros para que se lea bien sobre fondo claro */
.grad-text { background-image: linear-gradient(120deg, #ea580c 0%, #e11d48 50%, #ea580c 100%); }

/* ---------- Logo ---------- */
.brand img { border-radius: 12px; object-fit: cover; }
.site-footer .brand img { border-radius: 16px; }

/* ---------- Siguenos (redes) ---------- */
.section-redes { background: linear-gradient(135deg, #fff4ea 0%, #eef4ff 55%, #fdf0ff 100%); }
.redes-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.redes-logo { width: 100%; max-width: 280px; height: auto; border-radius: 32px; box-shadow: 0 24px 50px rgba(27,31,59,.25); transform: rotate(-3deg); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.redes-logo:hover { transform: rotate(0) scale(1.04); }
.redes-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.red {
  display: inline-flex; align-items: center; gap: .55em; min-height: 50px; padding: .65em 1.25em; border-radius: 16px;
  color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(27,31,59,.16);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s;
}
.red .icon { width: 1.45em; height: 1.45em; }
.red:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 30px rgba(27,31,59,.24); }
.red-wa { background: #16a34a; }
.red-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.red-fb { background: #1877f2; }
.red-tt { background: #111827; }
.red-yt { background: #ff0000; }
.red-gg { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.red-gg .icon { color: #f59e0b; }
.redes-mini { display: flex; gap: 10px; margin-top: 14px; }
.red-mini { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.red-mini:hover { transform: translateY(-3px); }
.red-mini .icon { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .redes-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .redes-logo { max-width: 200px; margin: 0 auto; }
  .redes-botones, .redes-mini { justify-content: center; }
  .section-redes .kicker { justify-content: center; }
}

/* ---------- Electricos e hibridos ---------- */
.section-ev {
  background:
    radial-gradient(700px 380px at 85% 20%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(600px 360px at 10% 90%, rgba(132, 204, 22, .20), transparent 70%),
    linear-gradient(160deg, #ecfeff 0%, #f0fdf4 100%);
  overflow: hidden;
}
.ev-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.ev-pill {
  display: inline-flex; align-items: center; gap: .4em; margin: 0 0 14px; padding: .35em .9em; border-radius: 999px;
  background: #0f766e; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
}
.ev-pill .icon { color: #bef264; }
.ev-grad { background: linear-gradient(120deg, #0891b2, #16a34a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ev-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid rgba(15,118,110,.2); margin: 6px 0 14px; }
.ev-tabs button {
  font: inherit; font-weight: 800; border: 0; cursor: pointer; padding: .55em 1.1em; border-radius: 999px; min-height: 42px;
  background: transparent; color: #0f766e; display: inline-flex; align-items: center; gap: .35em; transition: background .25s, color .25s;
}
.ev-tabs button[aria-selected="true"] { background: linear-gradient(120deg, #0891b2, #16a34a); color: #fff; box-shadow: 0 8px 18px rgba(8,145,178,.3); }
.ev-lista { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ev-lista li { display: flex; gap: .6em; align-items: flex-start; font-weight: 600; background: rgba(255,255,255,.75); border: 1px solid rgba(15,118,110,.14); border-radius: 12px; padding: 10px 12px; animation: pop .35s ease both; }
.ev-lista li:nth-child(2) { animation-delay: .05s; } .ev-lista li:nth-child(3) { animation-delay: .1s; }
.ev-lista li:nth-child(4) { animation-delay: .15s; } .ev-lista li:nth-child(5) { animation-delay: .2s; } .ev-lista li:nth-child(6) { animation-delay: .25s; }
.ev-lista .icon { color: #16a34a; margin-top: .15em; }
.btn-ev { background: linear-gradient(120deg, #0891b2, #16a34a); color: #fff; box-shadow: 0 10px 24px rgba(8,145,178,.32); }
.btn-ev:hover { box-shadow: 0 14px 30px rgba(8,145,178,.42); }
.ev-visual { display: grid; justify-items: center; gap: 14px; }
.ev-bateria {
  position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1.7; border-radius: 34px; cursor: pointer;
  background: #fff; border: 6px solid #134e4a; box-shadow: 0 30px 60px rgba(19,78,74,.25); overflow: hidden;
  touch-action: manipulation;
}
.ev-bateria::before { content: ""; position: absolute; top: -6px; left: 50%; width: 38%; height: 18px; transform: translate(-50%, -100%); }
.ev-carga {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: calc((100% - 20px) * var(--carga, 0)); border-radius: 22px;
  background: linear-gradient(0deg, #16a34a, #22d3ee); transition: height .25s linear;
  box-shadow: 0 0 40px rgba(34,211,238,.5) inset;
}
.ev-carga::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 12px, transparent 12px 24px);
  animation: ev-rayas 1s linear infinite;
}
@keyframes ev-rayas { to { background-position: 34px 0; } }
.ev-rayo { position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; color: #facc15; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.ev-bateria.llena .ev-rayo { animation: ev-latido .9s ease-in-out infinite; }
@keyframes ev-latido { 50% { transform: scale(1.12); } }
.ev-pct { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-weight: 900; font-size: 1.6rem; color: #134e4a; font-variant-numeric: tabular-nums; }
.ev-bateria.media .ev-pct { color: #fff; }
.ev-nota { margin: 0; font-size: .9rem; font-weight: 700; color: #0f766e; }
.ev-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ev-chips span { padding: .3em .8em; border-radius: 999px; background: #fff; border: 1px solid rgba(15,118,110,.2); font-weight: 700; font-size: .85rem; color: #134e4a; }
.promo-electrico::before { background: linear-gradient(140deg, #0e7490, #16a34a); }
@media (max-width: 920px) {
  .ev-grid { grid-template-columns: 1fr; gap: 34px; }
  .ev-bateria { width: min(70%, 230px); }
}

/* ---------- Historial al inicio (resaltado) ---------- */
.hist-top { padding: 34px 0 40px; background: linear-gradient(120deg, #fff4ea 0%, #eef4ff 100%); border-bottom: 1px solid var(--line); }
.hist-top .km-grid {
  background: #fff; border-radius: 26px; padding: 26px; gap: 28px;
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, #ff5f1f, #ff9f1c, #2563eb);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 22px 50px rgba(255, 95, 31, .18);
}
.hist-top .section-head { margin-bottom: 14px; }
.hist-top h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.hist-pill {
  display: inline-flex; align-items: center; gap: .4em; margin: 0 0 10px; padding: .35em .9em; border-radius: 999px;
  background: var(--grad); color: var(--on-accent); font-weight: 800; font-size: .82rem; letter-spacing: .04em;
}
.hist-top #hist-btn { animation: hist-pulso 2.4s ease-in-out infinite; }
@keyframes hist-pulso { 0%, 100% { box-shadow: 0 8px 22px rgba(255,95,31,.3); } 50% { box-shadow: 0 8px 30px rgba(255,95,31,.55), 0 0 0 6px rgba(255,159,28,.18); } }
.hist-top .km-result { box-shadow: none; background: #fffaf3; }
.hist-top .hist-table-wrap { background: #fff; }
.hist-resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.hist-dato { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.hist-dato span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hist-dato strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hist-prox { grid-column: 1 / -1; background: linear-gradient(120deg, #ecfdf5, #eff6ff); border-color: #86efac; }
.hist-prox.vencida { background: linear-gradient(120deg, #fff1f2, #fff7ed); border-color: #fda4af; }
.hist-prox strong { color: #15803d; } .hist-prox.vencida strong { color: #be123c; }
.hist-prox small { display: block; color: var(--ink-2); margin-top: 2px; }
.hist-table .col-km { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
@media (max-width: 600px) { .hist-top .km-grid { padding: 18px; } .hist-resumen { grid-template-columns: 1fr; } }
