/* ==========================================================================
   Punto Fijo Cars Service — sistema de diseño
   Modo claro por defecto y modo oscuro opcional (html[data-theme]).
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg: #f4f5f2;
  --bg-2: #eceee9;
  --surface: #ffffff;
  --surface-2: #f7f8f6;
  --surface-3: #eceeea;
  --line: rgba(12, 18, 12, .08);
  --line-2: rgba(12, 18, 12, .14);
  --line-3: rgba(12, 18, 12, .24);
  --text: #0d100e;
  --text-2: #4a524d;
  --text-3: #7a837e;
  --accent: #39ff14;
  --accent-hover: #2fe60e;
  --accent-ink: #061400;
  --accent-text: #138a00;
  --accent-soft: rgba(19, 138, 0, .08);
  --accent-line: rgba(19, 138, 0, .3);
  --red: #d92d20;
  --red-soft: rgba(217, 45, 32, .08);
  --amber: #b45309;
  --amber-soft: rgba(245, 158, 11, .12);
  --glass: rgba(255, 255, 255, .82);
  --field: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 16, .05);
  --shadow: 0 1px 2px rgba(16, 24, 16, .04), 0 12px 32px -14px rgba(16, 24, 16, .16);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 16, .3);
  --map-filter: none;
  color-scheme: light;
}

[data-theme="dark"],
.scope-dark,
.svc:not(.svc--spec),
.shot figcaption,
.cta,
.footer,
.float-card {
  --bg: #0a0b0c;
  --bg-2: #0f1113;
  --surface: #141619;
  --surface-2: #1a1d21;
  --surface-3: #24282d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .24);
  --text: #f3f5f4;
  --text-2: #b6bdb9;
  --text-3: #858d89;
  --accent-text: #39ff14;
  --accent-soft: rgba(57, 255, 20, .1);
  --accent-line: rgba(57, 255, 20, .32);
  --red: #ff6b5f;
  --red-soft: rgba(255, 107, 95, .12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, .12);
  --glass: rgba(16, 18, 21, .8);
  --field: #0f1114;
  --shadow-sm: none;
  --shadow: 0 16px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95);
  color-scheme: dark;
}

:root {
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-plate: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --plate-blue: #0b3a9e;
  --titan: #c8102e;
  --maxw: 1200px;
  --gutter: clamp(20px, 3vw, 40px);
  --section: clamp(40px, 5vw, 64px);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .3s, color .3s;
}
main, .admin__main { overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
mark { background: rgba(57, 255, 20, .45); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Utilidades ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-variant-numeric: tabular-nums; }
.volt, .neon { color: var(--accent-text); }
.chrome { color: var(--text-3); }
.muted { color: var(--text-2); }
.checker { background: conic-gradient(#e9ecee 25%, #111 0 50%, #e9ecee 0 75%, #111 0) 0 0 / 12px 12px; }
@media (max-width: 599px) { .hide-sm { display: none !important; } }
@media (min-width: 900px) { .only-mobile { display: none !important; } }
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* ---------- Tipografía ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.025em; line-height: 1.15; }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; animation: pulse 2.2s infinite; }
.live-dot.is-closed { background: var(--red); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.section { position: relative; padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.section-head .lead { max-width: 48ch; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; } .section-head--split .lead { justify-self: end; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn--volt { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--volt:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bd: var(--accent-line); --btn-fg: var(--accent-text); }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--text-2); }
.btn--danger:hover { --btn-fg: var(--red); --btn-bd: var(--red); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--xl { min-height: 52px; padding: 0 24px; font-size: 16px; }
.form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.table-actions { display: grid; grid-template-columns: 1fr; gap: 6px; min-width: 190px; align-items: stretch; }
.table-actions .btn { width: 100%; min-width: 0; padding-inline: 10px; }
.table-actions--stack { grid-template-columns: 1fr; min-width: 0; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }
.icon-btn svg { width: 20px; height: 20px; }
.text-btn { padding: 8px; font-size: 14px; font-weight: 600; color: var(--accent-text); text-align: center; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip--volt { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.chip--amber { border-color: rgba(245, 158, 11, .35); background: var(--amber-soft); color: var(--amber); }
.chip--red { border-color: rgba(217, 45, 32, .3); background: var(--red-soft); color: var(--red); }

/* ---------- Barra de progreso ---------- */
.scroll-meter { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-meter span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--accent); }

/* ---------- Navegación ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: 10px; transition: transform .4s var(--ease); }
.site-nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 8px 0 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
}
.site-nav.is-hidden { transform: translateY(-120%); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.site-nav__links { display: none; align-items: center; gap: 2px; }
.site-nav__links a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.site-nav__links a:hover { color: var(--text); background: var(--surface-3); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.site-nav__actions .chip { display: none; }
.site-nav__actions .btn { min-height: 44px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.nav-toggle span { position: relative; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
  .nav-toggle { display: none; }
  .site-nav__actions .chip { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 24px;
  background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .4s var(--ease), visibility 0s linear .4s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), visibility 0s; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.mobile-menu nav a:hover { color: var(--accent-text); }
.mobile-menu__foot { display: grid; gap: 10px; }
.nav-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Loader ---------- */
.loader { display: none; }
.has-loader .loader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 22px; background: #0a0b0c; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.has-loader.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader img { width: min(240px, 60vw); animation: fade-in .5s var(--ease) both; }
.loader__bar { width: min(240px, 60vw); height: 3px; border-radius: 3px; background: #24282d; overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; animation: ignite .9s var(--ease) .1s both; }
@keyframes ignite { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Revelado ---------- */
body.motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease-expo); transition-delay: var(--d, 0s); }
body.motion-ready [data-reveal="scale"] { transform: scale(.96); }
body.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.hero__fade { opacity: 0; transform: translateY(16px); }
.is-ready .hero__fade { animation: fade-up .8s var(--ease-expo) forwards; animation-delay: var(--d, .1s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ==========================================================================
   HERO — foto del local de fondo
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 32px; background: #0a0b0c; color: var(--text); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; contain: paint; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(calc(1.04 + var(--hero-p, 0) * .06)); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, .72) 0%, rgba(8, 9, 10, .8) 45%, rgba(8, 9, 10, .9) 100%); }
.hero__grid { display: grid; gap: 24px; align-items: end; }
.hero__copy { display: grid; gap: 14px; align-content: start; }
.hero__title { font-size: clamp(2.4rem, 9.6vw, 4.6rem); }
.hero__copy .lead { margin-bottom: 6px; color: var(--text-2); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero__side { display: none; }
.hero__rail { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-card { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--text); }
.float-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; overflow: hidden; }
.float-card__icon--logo { background: #fff; padding: 4px; }
.float-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.float-card strong { display: block; font-size: 13.5px; line-height: 1.2; }
.float-card div > span { font-size: 12px; color: var(--text-3); }
.float-card__icon--star svg { width: 20px; height: 20px; color: #f5b301; }
@media (min-width: 1024px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 56px; min-height: min(100svh, 820px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(8, 9, 10, .94) 0%, rgba(8, 9, 10, .82) 38%, rgba(8, 9, 10, .35) 70%, rgba(8, 9, 10, .2) 100%), linear-gradient(180deg, rgba(8, 9, 10, .4), transparent 30%, transparent 75%, rgba(8, 9, 10, .55)); }
  .hero__bg img { object-position: 50% 6%; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .hero__copy { max-width: 600px; }
  .hero__side { display: block; }
}

/* ==========================================================================
   PATENTE MERCOSUR — buscador
   ========================================================================== */
#consulta { position: relative; z-index: 20; }
.plate-form { position: relative; display: grid; gap: 10px; max-width: 480px; }
.plate-form__label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.plate-form__row { display: grid; gap: 12px; align-items: end; }
.plate-form__row > .btn { width: 100%; }
.plate-form__field { position: relative; width: 100%; min-width: 0; }
.plate-form__hints { display: grid; gap: 2px; }
.plate-form__hint { font-size: 13.5px; color: var(--text-2); }
.plate-form__hint b, .plate-form__hint strong { color: var(--text); font-weight: 700; }
.plate-form__hint--sub { font-size: 12.5px; color: var(--text-3); }
@media (min-width: 640px) {
  .plate-form__row { grid-template-columns: minmax(0, 1fr) auto; }
  .plate-form__row > .btn { width: auto; min-width: 156px; }
}
@media (max-width: 639px) {
  .form-actions { grid-template-columns: 1fr; }
}

.plate {
  --plate-h: clamp(88px, 23vw, 104px);
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr;
  height: var(--plate-h);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 60%, #e6e9ec 100%);
  border: 2px solid #0f1012;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .2s var(--ease);
}
.plate:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 14px 30px -18px rgba(0, 0, 0, .45); }
.plate__band {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 10px;
  background: linear-gradient(180deg, #1449c2, var(--plate-blue));
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
}
.plate__band::before, .plate__band::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); }
.plate__band::before {
  left: 8px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Ccircle cx='10' cy='4' r='2'/%3E%3Ccircle cx='15' cy='9' r='1.6'/%3E%3Ccircle cx='9' cy='15' r='2.2'/%3E%3Ccircle cx='5' cy='9' r='1.4'/%3E%3Cpath d='M2 17 C6 9 12 5 19 3' stroke='white' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plate__band::after { right: 8px; width: 18px; height: 12px; border-radius: 1px; background: linear-gradient(180deg, #74acdf 33%, #fff 33% 66%, #74acdf 66%); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.plate__input, .plate__text {
  width: 100%; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px 2px; border: 0; outline: 0; background: transparent;
  color: #0e0f11; caret-color: var(--plate-blue);
  font-family: var(--font-plate); font-weight: 600;
  font-feature-settings: 'zero' 1; font-variant-numeric: slashed-zero;
  font-size: clamp(2.1rem, 10vw, 3.2rem); line-height: 1;
  letter-spacing: .06em; text-align: center; text-transform: uppercase;
}
.plate__input:focus-visible { outline: none; }
.plate__input::placeholder { color: #c2c8cd; }
.plate__shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .8) 48%, transparent 60%); transform: translateX(-120%); animation: plate-shine 6s var(--ease) 1.4s infinite; mix-blend-mode: soft-light; }
@keyframes plate-shine { 0% { transform: translateX(-120%); } 20%, 100% { transform: translateX(120%); } }
.plate.is-key { transform: translateY(1px); }
.plate--static { --plate-h: auto; height: auto; width: max-content; max-width: 100%; justify-self: start; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .5); }
.plate--static .plate__text { padding: 6px 14px 8px; }
.plate--md .plate__band { height: 17px; padding: 0 24px; font-size: 7px; letter-spacing: .16em; }
.plate--md .plate__band::before { width: 11px; height: 11px; left: 6px; }
.plate--md .plate__band::after { width: 13px; height: 9px; right: 6px; }
.plate--md .plate__text { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.plate--sm { border-width: 1.5px; border-radius: 8px; }
.plate--sm .plate__band { height: 8px; padding: 0; font-size: 0; }
.plate--sm .plate__band::before, .plate--sm .plate__band::after { display: none; }
.plate--sm .plate__text { padding: 3px 10px 4px; font-size: 1.1rem; letter-spacing: .05em; }
.plate--xs { border-width: 1.5px; border-radius: 6px; box-shadow: none; }
.plate--xs .plate__band { height: 6px; padding: 0; font-size: 0; }
.plate--xs .plate__band::before, .plate--xs .plate__band::after { display: none; }
.plate--xs .plate__text { padding: 2px 8px 3px; font-size: .86rem; letter-spacing: .04em; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  padding: 6px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  animation: drop .3s var(--ease-expo);
  max-height: min(360px, 60vh); overflow-y: auto;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.suggest__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; transition: background-color .15s; }
.suggest__item:hover, .suggest__item:focus-visible { background: var(--accent-soft); outline: none; }
.suggest__info { display: grid; min-width: 0; flex: 1; }
.suggest__info strong { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__info span { font-size: 12.5px; color: var(--text-3); }
.suggest__go { color: var(--accent-text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.suggest__empty, .suggest__more { padding: 10px 12px; font-size: 13.5px; color: var(--text-2); }
.suggest__more { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.status.is-error { color: var(--red); }
.status.is-error::before { background: var(--red); }

/* ==========================================================================
   Marcas
   ========================================================================== */
.brands { position: relative; padding: 20px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.brands::before, .brands::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 2; pointer-events: none; }
.brands::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.brands::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.brands__row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.brands__row ul { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.brands:hover .brands__row { animation-play-state: paused; }
.logo-tile { display: grid; place-items: center; width: 150px; height: 72px; padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid rgba(12, 18, 12, .08); }
.logo-tile img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.logo-tile span { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: #1b1f1c; text-align: center; line-height: 1.1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.checker-strip { height: 12px; }

/* ==========================================================================
   Cifras
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.stat { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--surface); }
.stat__tag { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.stat__value { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .45em; color: var(--accent-text); margin-left: 4px; letter-spacing: 0; }
.stat__label { font-size: 13.5px; color: var(--text-2); max-width: 26ch; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat { padding: 24px; } }

/* ==========================================================================
   Servicios
   ========================================================================== */
.bento { display: grid; gap: 12px; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.svc__img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, 0) 30%, rgba(8, 9, 10, .55) 58%, rgba(8, 9, 10, .92) 100%); }
.svc__body { position: relative; z-index: 2; display: grid; gap: 8px; padding: 20px; }
.svc h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.svc p { font-size: 14.5px; color: var(--text-2); max-width: 46ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svc__tags li { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 9, 10, .45); font-size: 12px; color: var(--text-2); }
.svc__logos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svc__logos span { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 5px 9px; border-radius: 8px; background: #fff; }
.svc__logos img { max-height: 21px; max-width: 70px; width: auto; height: auto; object-fit: contain; }
.svc--spec { justify-content: space-between; color: var(--text); }
.svc--spec .svc__body { gap: 12px; }
.svc--spec h3 { margin-bottom: 4px; }
.spec-list { display: grid; gap: 8px; }
.spec-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.spec-list li svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.svc--wolver { background: #a50d24; }
.svc__img--product img { object-fit: contain; object-position: 50% 0; padding: 18px 18px 112px; }
.svc--wolver .svc__img::after { background: linear-gradient(180deg, transparent 50%, rgba(120, 6, 22, .55) 72%, #a50d24 100%); }
.svc--wolver p { color: rgba(255, 255, 255, .9); }
.wolver-logo { display: inline-flex; justify-self: start; padding: 8px 12px; border-radius: 10px; background: #fff; }
.wolver-logo img { height: 26px; width: auto; }
.wolver-mark { font-size: 2rem; font-weight: 800; letter-spacing: .02em; color: #fff; }
@media (max-width: 719px) {
  .bento { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  /* En el carrusel las tarjetas se muestran enteras desde el inicio: la animación de entrada las recortaba arriba y abajo. */
  body.motion-ready .bento [data-reveal] { opacity: 1; transform: none; transition: none; }
  .svc { scroll-snap-align: start; min-height: 380px; }
}
@media (min-width: 720px) and (max-width: 1023px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc--oil { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, 250px); grid-template-areas: "oil oil bat brake" "oil oil bat filt" "add add det wolver"; }
  .svc { min-height: 0; }
  .svc--oil { grid-area: oil; } .svc--bat { grid-area: bat; } .svc--brake { grid-area: brake; } .svc--filt { grid-area: filt; }
  .svc--add { grid-area: add; } .svc--det { grid-area: det; } .svc--wolver { grid-area: wolver; }
  .svc--oil h3 { font-size: 2rem; }
}
.scroll-hint { margin-top: 10px; font-size: 13px; color: var(--text-3); }
@media (min-width: 720px) { .scroll-hint { display: none; } }

/* ==========================================================================
   Intervalos
   ========================================================================== */
.intervals { display: grid; gap: 12px; }
.interval { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.interval__name { font-size: 1.05rem; font-weight: 700; }
.interval__km { font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.interval__km small { font-size: .42em; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.meter { position: relative; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.meter__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v, 1)); border-radius: inherit; background: var(--accent); transition: transform 1.4s var(--ease-expo) .2s; }
body.motion-ready [data-reveal]:not(.is-visible) .meter__fill { transform: scaleX(0); }
.meter__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.interval p:not(.interval__km) { font-size: 14px; color: var(--text-2); }
.interval-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 16px 20px; border-radius: var(--r); border: 1px dashed var(--line-3); color: var(--text-2); font-size: 14.5px; }
.interval-note svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
@media (min-width: 900px) { .intervals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==========================================================================
   Cómo funciona
   ========================================================================== */
.how { display: grid; gap: 24px; align-items: center; }
.steps { position: relative; display: grid; gap: 4px; margin-top: 24px; }
.steps__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps__line span { display: block; width: 100%; height: 100%; background: var(--accent-text); transform-origin: 50% 0; transform: scaleY(var(--draw, 0)); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 10px 0; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; transition: background-color .4s, color .4s, border-color .4s; }
.step.is-active .step__num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.step p { margin-top: 4px; color: var(--text-2); font-size: 15px; max-width: 44ch; }
@media (min-width: 1024px) { .how { grid-template-columns: 1fr 1fr; gap: 64px; } }

.phone { position: relative; width: min(320px, 100%); margin: 36px auto 0; padding: 10px; border-radius: 44px; background: #1b1e22; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.phone__screen { position: relative; overflow: hidden; border-radius: 35px; background: var(--bg); color: var(--text); padding: 44px 14px 18px; display: grid; gap: 10px; }
.phone__notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.phone__label { position: absolute; top: -40px; right: 6px; z-index: 3; }
.demo-card { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.demo-card--volt { border-color: var(--accent-line); display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-k { font-size: 11px; font-weight: 600; color: var(--text-3); }
.demo-v { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.demo-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; }
.demo-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-mini div { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.demo-mini b { font-size: 13px; font-weight: 600; }

/* Medidor circular */
.gauge { --p: .6; --c: var(--accent-text); position: relative; width: 100%; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.gauge__track, .gauge__value { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge__track { stroke: var(--surface-3); stroke-dasharray: 212 283; }
.gauge__value { stroke: var(--c); stroke-dasharray: calc(212 * var(--p)) 283; transition: stroke-dasharray 1.6s var(--ease-expo) .2s; }
.gauge.is-idle .gauge__value { stroke-dasharray: 0 283; }
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.gauge__num { font-size: clamp(1.8rem, 22cqi, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.gauge__unit { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.gauge--demo .gauge__num { font-size: 1.5rem; }

/* ==========================================================================
   Galería
   ========================================================================== */
.gallery { position: relative; }
.gallery + .section { padding-top: 0; }
.gallery__head { margin-bottom: 20px; }
.gallery__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) var(--section); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: none; width: 76vw; max-width: 400px; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--surface-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-expo); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font-size: 14px; font-weight: 600; }
.gallery.is-pinned { margin-top: calc(var(--nav-h) * -1); }
.gallery.is-pinned .gallery__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 8px); }
.gallery.is-pinned .gallery__track { flex: 1; min-height: 0; overflow: visible; width: max-content; padding-bottom: 64px; will-change: transform; }
.gallery.is-pinned .shot { width: auto; height: 100%; max-width: none; }
.gallery__progress { display: none; }
.gallery.is-pinned .gallery__progress { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; height: 3px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.gallery__progress span { display: block; height: 100%; background: var(--accent-text); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* ==========================================================================
   Opiniones
   ========================================================================== */
.reviews { display: grid; gap: 24px; }
.reviews__aside { display: grid; gap: 14px; align-content: start; }
.rating { display: flex; align-items: center; gap: 14px; }
.rating__num { font-size: clamp(3.2rem, 9vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stars { display: flex; gap: 3px; color: #f5b301; }
.stars svg { width: 20px; height: 20px; }
.stars--sm svg { width: 15px; height: 15px; }
.reviews__list { display: grid; gap: 12px; }
.review { display: grid; gap: 16px; align-content: space-between; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.review blockquote { font-size: 1.05rem; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.review figcaption strong { display: block; font-size: 14px; }
.review figcaption div span { font-size: 12.5px; color: var(--text-3); }
@media (min-width: 720px) { .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reviews__list .review:first-child { grid-column: span 2; } }
@media (min-width: 1024px) { .reviews { grid-template-columns: 320px 1fr; gap: 48px; } .reviews__aside { position: sticky; top: calc(var(--nav-h) + 24px); } }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.location { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.location > * { min-width: 0; }
.info-card { display: grid; gap: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.info-row__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row__k { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.info-row__v { font-size: 15.5px; font-weight: 700; margin-top: 1px; }
.info-row__s { font-size: 13.5px; color: var(--text-2); }
.hours { display: grid; gap: 2px; margin-top: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hours li.is-today { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.info-card__actions { display: grid; gap: 8px; }
.map { position: relative; min-height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.map__top { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (min-width: 1024px) { .location { grid-template-columns: 380px minmax(0, 1fr); } .map { min-height: 100%; } }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 16px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); background: #0d0f10; color: var(--text); }
.cta__flag { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; z-index: -1; opacity: .14; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta .lead { color: var(--text-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer { padding-top: 48px; background: #0a0b0c; color: var(--text); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand { display: grid; gap: 14px; max-width: 340px; }
.footer__brand img { width: 170px; }
.footer__brand p { color: var(--text-2); font-size: 14.5px; }
.footer__col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.footer__col a:hover { color: var(--accent-text); }
.socials { display: flex; gap: 8px; }
.footer .icon-btn { background: transparent; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding: 20px 0 calc(20px + var(--dock-h, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.footer__bottom a:hover { color: var(--accent-text); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Dock móvil ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease-expo);
}
.dock.is-visible { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 13px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.dock a svg { width: 20px; height: 20px; }
.dock a.is-primary { flex-direction: row; gap: 8px; background: var(--accent); color: var(--accent-ink); font-size: 14.5px; font-weight: 700; }
.has-dock { --dock-h: 80px; }
@media (min-width: 900px) { .dock { display: none; } .has-dock { --dock-h: 0px; } }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 28px) 0 28px; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 0% 0%, var(--accent-soft), transparent 70%); }
.page-hero__inner { display: grid; gap: 12px; max-width: 720px; align-content: start; }
.page-hero--compact .h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero__split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .page-hero__split { grid-template-columns: minmax(0, 1fr) 480px; gap: 40px; align-items: center; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }
.search-panel { position: relative; z-index: 5; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-panel .plate-form { max-width: none; }
.search-panel--compact .plate { --plate-h: 84px; }
.search-panel--compact .plate__input { font-size: clamp(1.9rem, 8vw, 2.5rem); }
.page-main { padding-bottom: var(--section); }
#search-result:empty { display: none; }

.results { display: grid; gap: 16px; }
.results__head { display: grid; gap: 6px; }
.results__grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plate-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: var(--r); text-align: left; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; animation: fade-up .6s var(--ease-expo) both; animation-delay: var(--d, 0s); opacity: 0; transform: translateY(12px); }
.plate-card:hover, .plate-card:focus-visible { border-color: var(--accent-line); outline: none; }
.plate-card__info { display: grid; flex: 1; min-width: 0; }
.plate-card__info strong { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate-card__info span { font-size: 13px; color: var(--text-3); }
.plate-card__go { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.plate-card__go svg { width: 18px; height: 18px; }
.empty-state { padding: 24px; border-radius: var(--r-lg); border: 1px dashed var(--line-3); color: var(--text-2); }

/* Ficha */
.ficha { display: grid; gap: 12px; animation: fade-up .7s var(--ease-expo) both; opacity: 0; transform: translateY(14px); }
.ficha__head { display: grid; gap: 16px; align-items: end; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ficha__title { font-size: clamp(2rem, 5.6vw, 3.4rem); margin-top: 6px; overflow-wrap: anywhere; }
.ficha__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
@media (min-width: 900px) { .ficha__head { grid-template-columns: 1fr auto; padding: 24px; } .ficha__head .plate { justify-self: end; } }
.ficha__top { display: grid; gap: 12px; }
@media (min-width: 1024px) { .ficha__top { grid-template-columns: 1.15fr 1fr; } }
.next { --c: var(--accent-text); display: grid; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.next--soon { --c: var(--amber); }
.next--late { --c: var(--red); }
.next .gauge { --c: inherit; width: min(190px, 56vw); justify-self: center; container-type: inline-size; }
.next .gauge__value { stroke: var(--c); }
.next__k { font-size: 13px; font-weight: 600; color: var(--text-3); }
.next__km { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.next__km small { font-size: .38em; color: var(--c); margin-left: 4px; letter-spacing: 0; }
.next__date { font-size: 1.05rem; font-weight: 600; margin-top: 8px; }
.next__date span { color: var(--text-3); font-weight: 400; }
.next__chip { margin-top: 12px; }
.next__chip .chip { border-color: color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); }
.next .live-dot { background: var(--c); animation: none; }
.next__hint { margin-top: 10px; font-size: 13.5px; color: var(--text-2); max-width: 40ch; }
@media (min-width: 640px) { .next { grid-template-columns: 180px 1fr; padding: 24px; } .next .gauge { width: 100%; } }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); min-width: 0; }
.spec__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.spec__icon svg { width: 18px; height: 18px; }
.spec__k { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.spec__v { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.panel { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .panel { padding: 24px; } }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel__title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.panel__sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--text-3); }
.checklist li i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.checklist li i svg { width: 13px; height: 13px; }
.checklist li.is-done { color: var(--text); font-weight: 600; border-color: var(--accent-line); background: var(--accent-soft); }
.checklist li.is-done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, .3); font-size: 14px; }
.note svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.timeline { position: relative; display: grid; gap: 8px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl { position: relative; padding-left: 40px; }
.tl__dot { position: absolute; left: 6px; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-3); }
.tl:first-child .tl__dot { border-color: var(--accent-text); background: var(--accent); }
.tl details { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s; }
.tl details[open] { border-color: var(--accent-line); }
.tl summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.tl summary::-webkit-details-marker { display: none; }
.tl summary strong { display: block; font-size: 15px; font-weight: 700; }
.tl summary > div > span { display: block; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.tl__chev { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform .3s var(--ease), border-color .2s, color .2s; }
.tl__chev svg { width: 16px; height: 16px; }
.tl details[open] .tl__chev { transform: rotate(180deg); border-color: var(--accent-line); color: var(--accent-text); }
.tl__body { display: grid; gap: 12px; padding: 0 16px 16px; }
.tl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.tl__grid div { min-width: 0; }
.tl__body .btn { justify-self: start; }
@media (min-width: 900px) { .tl__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   PANEL ADMINISTRATIVO
   ========================================================================== */
.auth { min-height: 100svh; display: grid; background: var(--bg); }
.auth__media { position: relative; isolation: isolate; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--gutter); }
.auth__media > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.auth__media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 10, .35), rgba(8, 9, 10, .1) 50%, var(--bg)); }
.auth__media .brand img { height: 48px; }
.auth__quote { display: none; }
.auth__panel { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 var(--gutter) 32px; margin-top: -48px; }
.auth__card { width: 100%; max-width: 420px; margin-inline: auto; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 6px; }
.auth__card h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin-top: 4px; }
.auth__card > p:not(.eyebrow) { color: var(--text-2); font-size: 15px; }
.auth__form { display: grid; gap: 14px; margin-top: 14px; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; font-size: 14px; color: var(--text-2); }
.auth__back:hover { color: var(--accent-text); }
.auth__back svg { width: 16px; height: 16px; }
.auth__tools { position: absolute; top: 20px; right: var(--gutter); z-index: 3; }
.form-error { font-size: 14px; color: var(--red); padding: 10px 12px; border-radius: 10px; background: var(--red-soft); }
.form-status { font-size: 14px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
@media (min-width: 1024px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
  .auth__media { min-height: 100svh; padding: 36px 40px; }
  .auth__media::after { background: linear-gradient(180deg, rgba(8, 9, 10, .55), rgba(8, 9, 10, .05) 35%, rgba(8, 9, 10, .75)); }
  .auth__quote { display: grid; gap: 12px; max-width: 520px; color: #fff; }
  .auth__quote .eyebrow, .auth__quote .neon { color: var(--accent); }
  .auth__quote .lead { color: rgba(255, 255, 255, .82); }
  .auth__panel { margin-top: 0; padding: 40px; }
  .auth__card { padding: 32px; }
}

.field-label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field-label .opt { font-weight: 400; color: var(--text-3); }
.field { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font-size: 15.5px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: var(--text-3); opacity: .8; }
.field:hover { border-color: var(--line-3); }
.field:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.field:disabled { opacity: .5; }
.field[readonly] { background: var(--surface-2); border-style: dashed; color: var(--text-2); }
.field--plate { font-family: var(--font-plate); font-weight: 600; font-feature-settings: 'zero' 1; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.5; }
select.field { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889089' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select.field option { background: var(--surface); color: var(--text); }
.field-help { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.field-help strong { color: var(--text-2); }
.pw { position: relative; }
.pw .field { padding-right: 50px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text-3); }
.pw button:hover { color: var(--accent-text); }
.pw button svg { width: 20px; height: 20px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); font-size: 14px; line-height: 1.25; color: var(--text-2); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.check:hover { border-color: var(--line-3); }
.check input { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-3); background: transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input::after { content: ''; width: 9px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.check--wide { grid-column: 1 / -1; }
.check--toggle { font-weight: 600; color: var(--text); }
@media (max-width: 360px) { .checks { grid-template-columns: 1fr; } }

.admin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.admin__side { display: none; }
.admin__main { min-width: 0; display: flex; flex-direction: column; }
.admin__top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 var(--gutter); background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.admin__top .brand img { height: 34px; }
.admin__top-right { display: flex; align-items: center; gap: 8px; }
.admin__content { width: 100%; max-width: 1280px; margin-inline: auto; padding: 20px var(--gutter) calc(100px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.admin__head { display: grid; gap: 14px; }
.admin__head .h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-top: 4px; }
.admin__head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin__date { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.admin__date::first-letter { text-transform: uppercase; }
@media (min-width: 900px) { .admin__head { grid-template-columns: 1fr auto; align-items: end; } }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: background-color .2s, color .2s; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { color: var(--text); background: var(--surface-3); }
.side-link.is-active { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.side-k { padding: 0 12px; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); }
@media (min-width: 1024px) {
  .admin { grid-template-columns: 248px minmax(0, 1fr); }
  .admin__side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); }
  .admin__side .brand { padding: 2px 8px 0; }
  .admin__side .brand img { height: 46px; }
  .admin__side nav { display: grid; gap: 2px; }
  .admin__side-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
  .admin__side-foot p { font-size: 13px; color: var(--text-2); }
  .admin__top .brand { display: none; }
  .admin__content { padding-bottom: 40px; }
}
.tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: var(--shadow-lg); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 13px; font-size: 11px; font-weight: 600; color: var(--text-3); transition: color .2s, background-color .2s; }
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.is-active { color: var(--accent-ink); background: var(--accent); }
@media (min-width: 1024px) { .tabbar { display: none; } }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 8px; align-content: space-between; min-height: 116px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi__k { font-size: 13px; color: var(--text-2); line-height: 1.3; }
.kpi__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.kpi__icon svg { width: 17px; height: 17px; }
.kpi__v { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.kpi__v--sm { font-size: clamp(1.1rem, 2.4vw, 1.3rem); letter-spacing: -.02em; line-height: 1.2; }
.kpi--volt { border-color: var(--accent-line); }
.kpi--volt .kpi__v { color: var(--accent-text); }
.kpi--amber .kpi__icon { color: var(--amber); background: var(--amber-soft); }
.kpi--wide { grid-column: 1 / -1; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi--wide { grid-column: span 2; } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpi--wide { grid-column: auto; } }

.admin-grid { display: grid; gap: 16px; align-items: start; }
.admin-grid > * { min-width: 0; }
@media (min-width: 1400px) { .admin-grid { grid-template-columns: 5fr 7fr; } .admin-grid .order-first-sm { order: 2; } .admin-grid > .panel--form:not(.order-first-sm) { position: sticky; top: 80px; } }
@media (max-width: 1399px) { .order-first-sm { order: -1; } }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.panel--form, .reveal-box { container-type: inline-size; }
@container (min-width: 440px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-step { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.form-step b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 12px; letter-spacing: 0; }
.panel--form { scroll-margin-top: 80px; }
.panel--accent { border-color: var(--accent-line); }
.sub-legend { display: block; width: 100%; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.reveal-box { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 12px; }
.combo { position: relative; }
.combo__btn { position: absolute; top: 4px; right: 4px; bottom: 4px; display: inline-flex; align-items: center; justify-content: center; width: 40px; border-radius: 9px; color: var(--text-2); }
.combo__btn:hover { background: var(--accent-soft); color: var(--accent-text); }
.combo__btn svg { width: 18px; height: 18px; }
.combo .field { padding-right: 52px; }
.combo .field::-webkit-search-cancel-button, .search-field .field::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: drop .25s var(--ease-expo); }
.combo__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.combo__opt:hover, .combo__opt.is-active { background: var(--accent-soft); }
.combo__opt[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--accent-line); }
.combo__opt span { color: var(--text-2); }
.combo__empty { padding: 10px 12px; font-size: 13.5px; color: var(--text-2); }
.telemetry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-line); overflow: hidden; }
.telemetry > div { padding: 14px 16px; background: var(--surface); display: grid; gap: 4px; }
.telemetry > .telemetry__title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.telemetry__k { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.telemetry strong { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; animation: drop .4s var(--ease-expo); }
.notice--success { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.notice--error { background: var(--red-soft); border: 1px solid rgba(217, 45, 32, .3); color: var(--red); }

.history { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.history__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.filters { display: grid; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.filters__bar p { font-size: 13.5px; color: var(--text-2); }
.filters__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters__bar { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field .field { padding-left: 40px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 12px 16px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.cell-strong { display: block; font-weight: 600; }
.cell-sub { display: block; color: var(--text-3); font-size: 13px; }
.cell-next { display: block; font-weight: 700; font-size: 1.05rem; color: var(--accent-text); letter-spacing: -.02em; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--surface-3); color: var(--text-2); }
.tag--volt { background: var(--accent-soft); color: var(--accent-text); }
.tag--muted { color: var(--text-3); }
.hist-cards { display: grid; }
.hist-card { display: grid; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hist-card:last-child { border-bottom: 0; }
.hist-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hist-card__date { font-size: 12.5px; color: var(--text-3); text-align: right; }
.hist-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hist-card__box { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.hist-card__box--volt { background: var(--accent-soft); border-color: var(--accent-line); }
.hist-empty { padding: 48px 20px; text-align: center; color: var(--text-2); }
.pager { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.pager p { font-size: 13.5px; color: var(--text-2); }
.pager nav { display: flex; align-items: center; gap: 8px; }
.pager__label { min-width: 100px; text-align: center; font-size: 13.5px; font-weight: 600; }
@media (min-width: 640px) { .pager { flex-direction: row; align-items: center; justify-content: space-between; } }
.admin__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(5, 6, 7, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .25s; }
.modal__card { position: relative; width: 100%; max-width: 540px; max-height: calc(100svh - 24px); overflow-y: auto; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: sheet .45s var(--ease-expo); }
@keyframes sheet { from { transform: translateY(30px); opacity: 0; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal__body { display: grid; gap: 18px; margin-top: 18px; }
.qr-tile { justify-self: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.modal__card--label { max-width: 880px; }
.service-label-preview { align-self: center; min-width: 0; width: 100%; max-width: 420px; justify-self: center; }
.service-label-preview img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.service-label-preview p { padding: 24px 12px; text-align: center; font-size: 14px; }
.modal__card--label .modal__actions { flex-wrap: wrap; }
.qr-info { display: grid; gap: 6px; }
.qr-info p { font-size: 14px; color: var(--text-2); }
.modal__actions { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 20px; }
@media (min-width: 600px) {
  .modal { align-items: center; padding: 24px; }
  .modal__card { padding: 28px; }
  .modal__body { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .modal__card--label .modal__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .modal__actions { flex-direction: row; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__fade { transform: none; opacity: 1; }
  .plate__shine { display: none; }
  .brands__row { animation: none; }
}
.auth { position: relative; }
.svc--filt .spec-list { grid-template-columns: 1fr 1fr; gap: 6px; }
.svc--filt .spec-list li { padding: 9px 10px; font-size: 13.5px; }

/* ==========================================================================
   Panel por secciones
   ========================================================================== */
.admin-view { display: grid; gap: 16px; align-content: start; }
.admin-view[hidden] { display: none; }
.workshop-qr { display: grid; gap: 28px; align-items: center; }
.workshop-qr__preview { display: grid; justify-items: center; gap: 14px; padding: 28px 12px; text-align: center; border: 1px solid #dce3d8; border-top: 5px solid #22db00; border-radius: var(--r-lg); background: #fff; color: #141914; }
.workshop-qr__preview p { max-width: 30ch; color: #525b50; font-size: 14px; }
.workshop-qr__logo { display: block; width: min(220px, 85%); height: auto; margin-bottom: 8px; }
.workshop-qr__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #42633a; }
.workshop-qr__preview .panel__title { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.02; letter-spacing: -.05em; }
.workshop-qr__preview .panel__title span { color: #168000; }
.workshop-qr__cta { font-size: 17px; }
.workshop-qr__image { display: block; width: 100%; max-width: 288px; height: auto; background: #fff; }
.workshop-qr__info { display: grid; gap: 16px; min-width: 0; }
.workshop-qr__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .workshop-qr { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); } }
.panel--narrow { width: 100%; max-width: 860px; }
.form-step svg { width: 16px; height: 16px; }
.next--none { --c: var(--text-3); }

.quick { display: grid; gap: 10px; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick__card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.quick__card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.quick__card > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.quick__card strong { font-size: 15.5px; }
.quick__card > span:nth-child(2) span { font-size: 13px; color: var(--text-2); }
.quick__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.quick__icon svg { width: 20px; height: 20px; }
.quick__card--volt .quick__icon { background: var(--accent); color: var(--accent-ink); }
.quick__go { width: 18px; height: 18px; color: var(--text-3); flex: none; }

.recent { display: grid; }
.recent__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent__row:last-child { border-bottom: 0; }
.recent__info { display: grid; flex: 1; min-width: 0; }
.recent__info strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__info span { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__date { font-size: 13px; color: var(--text-2); white-space: nowrap; }

.telemetry__hint { grid-column: 1 / -1; margin: 0; padding: 10px 16px; background: var(--surface); font-size: 13px; color: var(--text-2); }
#service-vehicle-picker.is-locked .field { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
#service-vehicle-picker.is-locked .combo__btn { opacity: .4; }

@media (min-width: 640px) { .filters--two { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1100px) { .filters--two { grid-template-columns: 2fr 1fr; } }

.table-actions--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 230px; }
.table-actions--grid .table-actions__wide { grid-column: 1 / -1; }
.hist-card .table-actions--grid { min-width: 0; }
.tbl--vehicles { min-width: 980px; }
.table-actions .btn:disabled { opacity: .45; }
.service-layout { display: grid; gap: 16px; align-items: start; }
.service-layout__col { min-width: 0; }
@container (min-width: 900px) { .service-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.history .table-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 220px; }
.history .table-actions .btn--danger { grid-column: 1 / -1; }
.history .table-actions--stack { min-width: 0; }
