/* =====================================================================
   Artucars · Volante Propio — SISTEMA COMPARTIDO DE ESTILOS (idéntico en las dos carpetas)
   Todo color, fuente y radio sale de los tokens de css/marca.css. Aquí no va nada de marca.
   Sincronizar con: node sync.mjs push  ·  Comprobar: node sync.mjs check
   ===================================================================== */

:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* Con Lenis activo el suavizado lo hace él: si el navegador también suaviza, el scroll se queda quieto y luego salta */
html.has-motor, html.lenis, html.lenis body { scroll-behavior: auto !important; height: auto; }
html.lenis.lenis-stopped { overflow: hidden; }
html.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, button, output, textarea { font-family: inherit; }
strong { font-weight: 700; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

[hidden] { display: none !important; } /* el atributo hidden debe ganar a display:grid/flex de los componentes */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 600; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* Tipografía de display (titulares grandes, cifras, precios) */
.display, .section__title, .hero__title, .stat__num, .step__num, .sim__amount strong, .car__price strong, .ficha__price strong, .hero__title {
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
}
.section__title em, .hero__title em { font-style: normal; color: var(--brand); }
.section--dark .section__title em, .contact .section__title em { color: var(--on-dark-accent, #fff); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-primary-bg, var(--brand)); color: #fff; box-shadow: 0 6px 16px var(--brand-shadow); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 10px 22px var(--brand-shadow); }
.btn--outline { border-color: var(--brand); color: var(--brand-text); background: transparent; }
.btn--outline:hover { background: var(--brand-soft); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #000; }
.btn--dark-outline { border-color: var(--text); color: var(--text); }
.btn--dark-outline:hover { background: var(--text); color: var(--bg); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--light { background: #fff; color: var(--brand-text); }
.btn--light:hover { background: var(--brand-soft); }
.btn--wa { background: var(--wa-btn-bg); color: var(--wa-btn-fg); font-weight: 600; }
.btn--wa:hover { background: var(--wa-btn-hover); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-btn); flex: 0 0 auto; transition: background-color .2s, transform .2s; }
.btn-icon .ico { width: 22px; height: 22px; }
.btn-icon--wa { background: var(--wa); color: #fff; }
.btn-icon--wa:hover { background: var(--wa-hover); transform: translateY(-1px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-text); }
.link-arrow .ico { width: 20px; height: 20px; transition: transform .25s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Tarjetas, chips, pestañas, grillas ---------- */
.card { background: var(--surface-card); border-radius: var(--radius-card); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-card);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
.chip__ico { width: 36px; height: 18px; flex: 0 0 auto; stroke-width: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--mini { gap: 8px; }
.chips--mini li { padding: 6px 10px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs--center { justify-content: center; margin-top: 26px; }
.tab {
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-weight: 500; font-size: 14px; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--brand-text); background: var(--brand-soft); }
.tab.is-active { background: var(--brand); color: #fff; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: 14px;
}
.overline::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .9; }
.overline--light { color: rgba(255, 255, 255, .88); }
.section__title { font-size: clamp(28px, 3.6vw, 44px); line-height: var(--display-lh); text-wrap: balance; }
.section__lead { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 640px; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__cta { margin-top: 44px; text-align: center; }
.section--dark .section__lead { color: var(--on-dark-muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.nav--fixed { position: fixed; left: 0; right: 0; }
.nav--hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav__logo { font-family: var(--font-logo); font-size: var(--logo-size); font-weight: 700; letter-spacing: var(--logo-tracking); text-transform: var(--logo-transform); color: var(--brand); line-height: 1; }
.nav__logo span { color: var(--brand); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--brand-text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 18px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-btn); align-items: center; justify-content: center; color: var(--text); margin-left: auto; }
.nav__burger:hover { background: var(--surface); }
.nav__burger .ico { width: 24px; height: 24px; }
.nav__burger .ico--close { display: none; }
.nav.is-open .nav__burger .ico--menu { display: none; }
.nav.is-open .nav__burger .ico--close { display: block; }
.nav__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.nav__panel[hidden] { display: none; }
.nav__panel a:not(.btn) { display: block; padding: 14px 4px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--text); }
.nav__panel .btn { margin-top: 18px; width: 100%; }
/* Nav transparente sobre el hero (Volante Propio): se apaga al hacer scroll o abrir el menú */
.nav--over:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__logo, .nav--over:not(.is-scrolled):not(.is-open) .nav__logo span, .nav--over:not(.is-scrolled):not(.is-open) .nav__links a, .nav--over:not(.is-scrolled):not(.is-open) .nav__burger { color: #fff; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__links a:hover { color: #fff; opacity: .85; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__burger:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(80vh, 840px); min-height: 700px; background: var(--dark); color: #fff; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; z-index: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero__slide.is-active { opacity: 1; z-index: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.hero__slide img, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__slide img { transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__veil { position: absolute; inset: 0; background: var(--hero-veil); }
.hero__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; padding-bottom: 172px; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) .25s, transform .7s var(--ease) .25s; }
.hero__slide.is-active .hero__content { opacity: 1; transform: none; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: 20px; }
.hero__eyebrow::before { content: ""; width: 22px; height: 2px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
.hero__title { font-size: clamp(40px, 5.6vw, 72px); line-height: var(--hero-lh); max-width: 680px; text-wrap: balance; color: #fff; }
.hl { color: #fff; background: var(--brand-hl); padding: .02em .16em; border-radius: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__sub { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__dots-wrap { position: absolute; left: 0; right: 0; bottom: 140px; z-index: 3; pointer-events: none; }
.hero__dots { display: flex; gap: 8px; pointer-events: auto; }
.hero__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background-color .3s; }
.hero__dot:hover { background: rgba(255, 255, 255, .8); }
.hero__dot.is-active { width: 30px; background: #fff; }

/* Hero a pantalla completa (Volante Propio): una foto, titular centrado */
.hero--full { height: auto; min-height: max(620px, 100vh); display: grid; place-items: center; padding: calc(var(--nav-h) + 48px) 0 96px; }
.hero--full .hero__media { position: absolute; inset: 0; }
.hero--full .hero__content { display: block; height: auto; padding: 0 var(--gutter); text-align: center; max-width: 980px; margin: 0 auto; opacity: 1; transform: none; }
.hero--full .hero__title { max-width: none; margin: 26px auto 22px; font-size: clamp(44px, 9vw, 96px); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero--full .hero__sub { margin: 0 auto 36px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; max-width: 660px; }
.hero--full .hero__actions { justify-content: center; margin-top: 0; gap: 14px; }
.hero__pill { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; margin-top: 48px; font-size: 14px; font-weight: 700; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 2.4; }
.hero__cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 1px; height: 48px; overflow: hidden; background: rgba(255, 255, 255, .25); z-index: 2; }
.hero__cue::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: cae 2s ease-in-out infinite; }
@keyframes cae { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* Hero dividido: texto a la izquierda + mini-marketplace a la derecha (Volante Propio) */
.hero--split { padding: calc(var(--nav-h) + 40px) 0 72px; }
.hero--full.hero--split .hero__content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: clamp(28px, 4vw, 56px); align-items: center; text-align: left; max-width: var(--container); }
.hero--full.hero--split .hero__title { font-size: clamp(40px, 6vw, 80px); margin: 18px 0 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero--full.hero--split .hero__sub { margin: 0 0 22px; max-width: 560px; }
.hero--full.hero--split .hero__actions, .hero--full.hero--split .hero__facts { justify-content: flex-start; }
.hero--full.hero--split .hero__facts { margin-top: 26px; }
.hero__kpis { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 26px; }
.hero__kpis li { display: flex; flex-direction: column; }
.hero__kpis strong { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform); font-size: clamp(34px, 3.8vw, 52px); line-height: 1; color: #fff; }
.hero__kpis strong small { font-size: .5em; color: var(--brand); margin-right: .1em; vertical-align: .18em; }
.hero__kpis li > span { margin-top: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.market { position: relative; padding: 16px; color: var(--text); text-align: left; }
.market__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 4px; }
.market__head .overline { margin-bottom: 0; }
.market__count { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.market__viewport { position: relative; }
.market__slide { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateX(28px); pointer-events: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.market__slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.market__slide.skeleton { position: relative; opacity: 1; transform: none; }
.market__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-img); background: var(--surface); }
.market__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.market__media img.is-active { opacity: 1; }
.market__media .car__tag { top: 12px; left: 12px; }
.market__body { padding: 16px 6px 4px; display: flex; flex-direction: column; }
.market__body .car__price { margin-top: 10px; }
.market__body .car__actions { padding-top: 14px; }
.market__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 4px 12px; }
.market__dots { display: flex; gap: 6px; }
.market__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .25s var(--ease), background-color .2s; }
.market__dot.is-active { width: 22px; background: var(--brand); }
.market__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); transition: background-color .2s, border-color .2s, color .2s; }
.market__arrow:hover { border-color: var(--brand); color: var(--brand-text); background: var(--brand-soft); }
.market__arrow .ico { width: 20px; height: 20px; }
.market .skeleton-box { aspect-ratio: 16 / 10; border-radius: var(--radius-img); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-card) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.market .skeleton-line { height: 14px; border-radius: 6px; background: var(--surface); margin: 14px 6px 0; }

/* Carros a buscar (marketplace): tarjetas con solicitudes y barra de puntos */
.wish { display: flex; flex-direction: column; overflow: hidden; }
.wish__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.wish__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.wish__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.wish__body .car__price { margin-top: 12px; }
.wish__votes { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 13.5px; color: var(--muted); }
.wish__votes strong { color: var(--text); }
.wish__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; position: relative; }
.wish__bar::after { content: ""; position: absolute; inset: 0; width: var(--pct, 0%); background: var(--brand); border-radius: 999px; transition: width .6s var(--ease); }
.wish .btn { margin-top: auto; }
.wish.is-solicitado .btn { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }
.catalog__intro { margin-bottom: 22px; padding: 22px 26px; border-radius: var(--radius-card); background: var(--brand-soft); color: var(--text); }
.catalog__intro h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.catalog__intro p { font-size: 15px; color: var(--muted); max-width: 760px; }
.catalog.catalog--single { grid-template-columns: 1fr; }

/* Modal (solicitud de un carro a buscar) */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; position: relative; }
.modal__close { position: absolute; top: 12px; right: 12px; background: var(--surface); }
.modal .form h3 { padding-right: 48px; }

/* Ventanas de main.js (25/09/2026): "¿Cómo quieres seguir?" (app o WhatsApp) y las del marketplace (simulador,
   requisitos). Solo aparecen si la marca las configura en js/config.js (canales, catalogo.ventanas). */
.ventana { padding: 30px 28px 28px; color: var(--text); }
.ventana__titulo { font-size: 22px; font-weight: 700; line-height: 1.25; padding-right: 48px; margin-bottom: 16px; }
.ventana__cargando { color: var(--muted); }
.ventana.ventana--ancha { width: min(1040px, 100%); }
.ventana--ancha .sim { box-shadow: none; border: 1px solid var(--line); }
.catalog__ventanas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ventana__lista { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.ventana__lista li { display: flex; align-items: center; gap: 12px; }
.ventana__lista .ico { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); stroke-width: 2.4; flex: none; }
.ventana__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.canales__texto { color: var(--muted); margin-bottom: 20px; }
.canales__opcion h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tiendas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tienda { display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 10px 16px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 700; font-size: 17px; line-height: 1.15; }
.tienda small { font-size: 11.5px; font-weight: 500; opacity: .85; }
a.tienda:hover { opacity: .9; }
.tienda.is-pronto { background: var(--surface); color: var(--muted); border: 1.5px dashed var(--line); }
.canales__mas { margin-top: 12px; font-size: 14px; }
.canales__o { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.canales__o::before, .canales__o::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 420px) { .tiendas { grid-template-columns: 1fr; } .ventana { padding: 26px 20px 22px; } }

/* La "hoja": todo lo que sigue al hero. Con el motor activo, cubre al hero anclado (capa 1). */
.sheet { position: relative; z-index: 2; background: var(--bg); padding-top: 1px; }
@media (min-width: 768px) {
  html.has-motor .hero[data-hero-anclado] { position: sticky; top: 0; z-index: 0; }
  html.has-motor .sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .18); margin-top: -1px; }
}

/* Revelado al scroll: solo se ocultan si el motor está activo (sin JS todo se ve) */
html.has-motor [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); transition: none; }
/* Mientras GSAP mueve un elemento, ninguna transición CSS debe frenarlo */
html.has-motor .hero__content, html.has-motor .hero__slide img, html.has-motor .hero__media img, html.has-motor [data-parallax] img { transition: none; }
html.has-motor .hero__slide img { transform: none; }
/* hover con el motor activo: la foto la mueve GSAP, así que el zoom va en el contenedor */
html.has-motor .service:hover .service__media img, html.has-motor .photo-card:hover img { transform: none; }
html.has-motor .service:hover .service__media { transform: scale(1.03); transition: transform .6s var(--ease); }
/* titular partido por palabras con máscara (motor) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.w__in { display: inline-block; }
/* anillo de foco visible también sobre fondos de marca o fotos oscuras */
.hero :focus-visible, .sim__result :focus-visible, .stats--dark :focus-visible, .photo-card :focus-visible, .contact :focus-visible, .section--dark :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* ---------- Buscador flotante ---------- */
.search-wrap { position: relative; z-index: 4; margin-top: -104px; }
.search { padding: 28px 32px 30px; }
.search__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.search__title { font-size: 22px; font-weight: 600; flex: 0 0 auto; }
.search__form { flex: 1 1 380px; display: flex; gap: 10px; }
.search__field { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--surface-input); color: var(--muted); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.search__field:focus-within { border-color: var(--brand); background: var(--surface-card); box-shadow: 0 0 0 4px var(--brand-soft); }
.search__field .ico { width: 20px; height: 20px; }
.search__field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; color: var(--text); outline: none; }
.search__field input::placeholder { color: var(--muted); }
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.search__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; min-width: 96px; }
.brands { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; transition: color .2s; }
.brand:hover { color: var(--brand-text); }

/* ---------- Beneficios / condiciones ---------- */
.benefit { padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.benefit__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.benefit__icon .ico { width: 26px; height: 26px; }
.benefit h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.benefit p { font-size: 15px; color: var(--muted); }

/* ---------- Cifras ---------- */
.stats { padding: 72px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 8px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { display: block; font-size: clamp(36px, 4.6vw, 56px); color: var(--brand); line-height: 1.05; }
.stat__num small { font-size: .5em; margin-right: .1em; vertical-align: .12em; }
.stat__num small.tras { margin-right: 0; margin-left: .08em; }
.stat__label { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.stats--dark { background: var(--dark); color: var(--on-dark); }
.stats--dark .stat { text-align: left; border-left-color: var(--on-dark-line); }
.stats--dark .stat__num { color: var(--on-dark); font-size: clamp(52px, 6vw, 88px); }
.stats--dark .stat__num small { color: var(--brand); }
.stats--dark .stat__label { color: var(--on-dark-muted); }

/* ---------- Tarjeta de auto (home, catálogo, similares) ---------- */
.car { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.car:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.car[hidden] { display: none; }
.car__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car:hover .car__media img { transform: scale(1.04); }
.car__tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.car__tag--ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 7px; vertical-align: 1px; }
.car__badge { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; }
.car__badge--reservado { background: var(--dark); color: var(--on-dark); }
.car__figure { position: relative; }
.car__dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; z-index: 1; }
.car__dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.car__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: width .25s var(--ease), background-color .2s; }
.car__dot:hover::before, .car__dot.is-active::before { background: #fff; }
.car__dot.is-active::before { width: 20px; }
.car__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.car__title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.2; }
.car__title span { color: var(--muted); font-weight: 500; text-transform: none; }
.car__version { margin-top: 4px; font-size: 14px; color: var(--muted); }
.car__price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.1; }
.car__price strong { font-size: var(--price-size); color: var(--brand); }
.car__price span { font-weight: 500; color: var(--muted); font-size: 15px; }
.car__price small { flex-basis: 100%; margin-top: 5px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.car__specs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.car__specs li { display: inline-flex; align-items: center; gap: 6px; }
.car__specs .ico { width: 18px; height: 18px; color: var(--brand); }
.car__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; }
.car__actions .btn { flex: 1; }
/* Estados del marketplace (24/09/2026): Próximamente · Ya adquirido · tarjeta final "¿No ves tu carro?" */
.car__tag--proximo::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--star); margin-right: 7px; vertical-align: 1px; }
.car__tag--entregado { background: var(--dark); color: var(--on-dark); }
.btn-icon--ver { border: 1.5px solid var(--line); color: var(--brand-text); }
.btn-icon--ver:hover { border-color: var(--brand); background: var(--brand-soft); }
.car__price--plan small { color: var(--text); }
.car__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 8, 6, .62); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .25s var(--ease), background-color .2s; }
.car__play .ico { width: 28px; height: 28px; margin-left: 3px; }
.car--entregado .car__media:hover .car__play, .car--entregado .car__media:focus-visible .car__play { transform: scale(1.08); background: var(--brand); }
.car__entregado { margin-top: 10px; color: var(--muted); font-size: 15px; }
.car__sin-video { margin: 0; font-size: 14px; color: var(--muted); align-self: center; }
.car--entregado .btn .ico { width: 18px; height: 18px; flex: none; }
/* "Ver el video de la entrega" y "Avísame cuando llegue" son más largos que "Ver opciones": que partan línea en vez de
   salirse de la tarjeta (medido: a 1280 px la tarjeta mide ~262 px y el botón se cortaba) */
.car__actions .btn--parte { min-width: 0; white-space: normal; text-align: center; padding-left: 14px; padding-right: 14px; }
.car--pedido { border: 2px dashed var(--line); box-shadow: none; background: var(--surface); }
.car--pedido:hover { border-color: var(--brand); }
.car__pedido { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 34px 26px; text-align: center; min-height: 320px; }
.car__pedido p { color: var(--muted); max-width: 280px; }
.car__pedido .btn { margin-top: 8px; }
.car__pedido-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.car__pedido-ico .ico { width: 26px; height: 26px; }
.ficha__entregado { font-size: 17px; font-weight: 600; color: var(--text); }
/* Plazo e inicial dentro de la tarjeta del marketplace (24/09/2026) */
.car__plan { margin-top: 14px; padding: 12px 14px 4px; border-radius: 12px; background: var(--surface); }
/* La nota del precio cambia de largo al mover la barra (2 líneas ↔ 1): con el alto reservado, la barra no se mueve
   debajo del dedo mientras se arrastra (se vio en el panel a 800 px: subía ~18 px) */
.car--plan .car__price small { min-height: 2.5em; }
/* Barras de la tarjeta que SE PUEDAN AGARRAR (24/09, "prácticamente no la puedo mover"): la barra global mide 6 px de
   alto y la tarjeta sube 4 px al pasar el ratón, así que la barra se escapaba de debajo del puntero (medido con arrastre
   real: 0 de 3 barras se movían). Aquí la zona sensible mide 30 px (la raya se sigue viendo de 6 px, dibujada en el
   centro) y la tarjeta con barras no se levanta. */
.car--plan:hover { transform: none; }
.car__plan input[type="range"] { height: 30px; margin: 2px 0 8px; border-radius: 0; touch-action: pan-y;
  background: linear-gradient(var(--brand), var(--brand)) 0 50% / var(--pct, 50%) 6px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 6px no-repeat; }
.car__plan-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.car__plan-fila output { font-weight: 700; color: var(--brand-text); white-space: nowrap; }
/* Cuando una barra no tendría ninguna posición que cambie el precio, va un texto en su lugar */
.car__plan input[type="range"][hidden], .car__plan-texto[hidden] { display: none; }
.car__plan-texto { margin: 4px 0 12px; font-size: 12.5px; color: var(--muted); }
.car__plan-aviso { margin: 2px 0 10px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.car__plan-dato { margin: 2px 0 10px; }
.car__plan-dato strong { font-weight: 700; color: var(--text); white-space: nowrap; }
.catalog__plan-nota { margin: -6px 0 18px; font-size: 13.5px; color: var(--muted); }
.catalog__plan-nota[hidden] { display: none; }
/* Barra "Ajusta tu plan" del marketplace */
.plan-flota { padding: 20px 24px; margin-bottom: 22px; }
.plan-flota[hidden] { display: none; }
.plan-flota__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 16px; }
.plan-flota__titulo { font-size: 18px; font-weight: 700; }
.plan-flota__estado { flex: 1 1 260px; font-size: 14px; color: var(--muted); }
.plan-flota__controles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.plan-flota__control .sim__labels { margin-bottom: 8px; }
.plan-flota__nota { margin-top: 12px; font-size: 13px; color: var(--muted); }
.plan-flota__nota:empty { display: none; }
/* Barra sin tocar: los rótulos dicen "el de cada auto" y la barra se ve en reposo (no es un valor ya aplicado) */
.plan-flota output.is-neutro { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-flota input.is-neutro { opacity: .55; }
@media (max-width: 640px) { .plan-flota { padding: 18px; } .plan-flota__controles { grid-template-columns: 1fr; } }
.car.skeleton { min-height: 440px; }
.car.skeleton .car__media { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-card) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.car.skeleton .car__body span { display: block; height: 14px; border-radius: 6px; background: var(--surface); margin-top: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Servicios (tarjetas con foto arriba) ---------- */
.service { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__media img { transform: scale(1.04); }
.service__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.service__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.service__arrow .ico { width: 20px; height: 20px; }
.service:hover .service__arrow { background: var(--brand); color: #fff; transform: translateX(3px); }
.service p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- Proceso: tarjetas (Artucars) ---------- */
.steps[hidden] { display: none; }
.step { padding: 30px 28px; }
.step__num { display: block; font-size: 44px; color: var(--brand); line-height: 1; }
.step__num::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--brand-soft); margin: 16px 0 18px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Proceso: foto lateral + lista numerada (Volante Propio) ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.process__media { position: sticky; top: calc(var(--nav-h) + 24px); overflow: hidden; border-radius: var(--radius-img); }
.process__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; }
.process__badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; background: #fff; color: var(--text); border-radius: 18px; box-shadow: var(--shadow-hover); }
.process__badge .benefit__icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.process__badge strong { display: block; font-size: 15px; line-height: 1.2; }
.process__badge span { font-size: 13px; color: var(--muted); }
.process__list { border-top: 1px solid var(--line); }
.process__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process__num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 60px; line-height: .9; color: var(--brand); }
.process__item h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.process__item p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.process__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1.35fr 1fr; overflow: hidden; max-width: 1040px; margin: 0 auto; }
.sim__controls { padding: 40px; display: flex; flex-direction: column; gap: 30px; }
.sim__labels { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sim__labels label { font-weight: 600; font-size: 15px; }
.sim__labels output { font-family: var(--font-display); font-weight: var(--display-weight); color: var(--brand-text); font-size: var(--sim-output-size); white-space: nowrap; }
.sim__range { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.sim__foot { font-size: 13px; color: var(--muted); }
.sim__tramo { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
/* foto del auto de referencia en el simulador (una por tramo, apiladas; la elegida se funde) */
.sim__cars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 14px; }
.sim__car { position: relative; aspect-ratio: 4 / 3; max-height: 190px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.sim__car-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .45s ease, transform .8s ease; }
.sim__car-img.is-active { opacity: 1; transform: scale(1); }
.sim__car-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 34px 14px 12px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .64)); }
.sim__approx { font-size: 13.5px; color: var(--on-dark-muted); margin-top: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 999px; cursor: pointer; outline: none; background: linear-gradient(var(--brand), var(--brand)) 0 0 / var(--pct, 50%) 100% no-repeat, var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: grab; transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: grab; }
input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
.sim__result { background: var(--sim-result-bg); color: var(--on-dark); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background-image: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14), transparent 45%); }
.sim__result-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.sim__amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sim__amount strong { font-size: var(--sim-amount-size); line-height: 1; color: var(--sim-amount-color); }
.sim__amount span { font-size: 18px; font-weight: 500; color: var(--on-dark-muted); }
.sim__details { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); }
.sim__details li { flex: 1 1 30%; min-width: 120px; }
/* modo desarrollo (?dev=1 o modo edición): datos internos del plan, solo para el dueño */
.sim__dev { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #FFF4D6; border: 1px dashed #D9A400; font-size: 13px; color: #5B4300; }
.sim__dev strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.sim__dev dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.sim__dev dt { font-weight: 600; }
.sim__dev dd { margin: 0; }
.sim__details strong { display: block; font-size: 18px; }
.sim__details span { font-size: 12px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .06em; }
.sim__tea { margin-top: 10px; font-size: 16px; font-weight: 600; }
.sim__note { margin-top: 6px; font-size: 13px; color: var(--on-dark-muted); }
.sim__ref { margin-top: 14px; padding: 9px 12px; border: 1px dashed var(--on-dark-line); border-radius: 10px; font-size: 12.5px; color: var(--on-dark); }
.sim__result .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Tarjetas grandes con foto (Empresas / Compra-venta) ---------- */
.photo-card { position: relative; display: flex; align-items: flex-end; min-height: 500px; border-radius: var(--radius-img); overflow: hidden; color: #fff; background: var(--dark); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .38) 50%, rgba(10, 8, 6, .05) 100%); }
.photo-card__body { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); }
.tag-light { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.photo-card h3 { margin-top: 16px; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.photo-card p { margin-top: 12px; max-width: 460px; font-size: 15.5px; color: rgba(255, 255, 255, .85); }
.photo-card__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.photo-card .link-arrow { color: #fff; }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.coverage .section__head { margin-bottom: 0; }
.coverage__site { display: flex; gap: 12px; margin-top: 24px; padding: 18px 20px; background: var(--surface-card); border-radius: 18px; box-shadow: var(--shadow); }
.coverage__site .ico { color: var(--brand); width: 24px; height: 24px; }
.coverage__site strong { display: block; }
.coverage__site span { font-size: 14px; color: var(--muted); }
.districts { display: flex; flex-wrap: wrap; gap: 10px; }
.districts li { padding: 11px 18px; border-radius: 999px; background: var(--surface-card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; transition: border-color .2s, transform .2s; }
.districts li:hover { border-color: var(--text); transform: translateY(-2px); }
.districts li.is-main { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.districts li.is-more { background: var(--brand-soft); border-color: transparent; color: var(--brand-text); font-weight: 700; }
.coverage__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Testimonios ---------- */
.testi { padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 3px; color: var(--star); }
.stars .ico { width: 20px; height: 20px; }
.testi blockquote { font-size: 16px; line-height: 1.65; color: var(--text); flex: 1; }
.testi__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: 0 0 auto; }
.testi__name { display: block; font-size: 15px; font-weight: 600; }
.testi__place { display: block; font-size: 13px; color: var(--muted); }
.testi__car { display: flex; align-items: center; gap: 8px; margin-top: -4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.testi__car .ico { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { margin-bottom: 12px; background: var(--surface-card); border-radius: 18px; border: 1px solid var(--line-soft); box-shadow: var(--shadow); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-hover); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); transition: transform .3s, background-color .3s, color .3s; }
.faq__icon .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__answer { padding: 0 26px 24px; max-width: 720px; font-size: 15.5px; color: var(--muted); }
.faq__cta { margin-top: 32px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Contacto / postulación (fondo de marca) + formulario ---------- */
.contact { background: var(--contact-bg); color: #fff; background-image: radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .09), transparent 42%); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.contact .section__title { color: #fff; }
.contact .overline { color: rgba(255, 255, 255, .88); }
.contact__lead { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 520px; }
.contact .btn--wa { margin-top: 28px; }
.contact__list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .ico { width: 20px; height: 20px; opacity: .9; }
.contact__list--check .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .18); stroke-width: 2.4; opacity: 1; }
.contact__alt { margin-top: 32px; }
.contact .btn--ghost:hover { color: var(--brand-text); background: #fff; }
.contact :focus-visible { outline-color: #fff; }

.form { padding: 32px; color: var(--text); }
.form :focus-visible { outline-color: var(--brand); }
.form h3 { font-size: 20px; font-weight: 600; }
.form > p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.field { margin-top: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--surface-input); font-size: 15px; color: var(--text); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface-card); box-shadow: 0 0 0 4px var(--brand-soft); }
.field select { padding-right: 44px; cursor: pointer; }
.tel { display: flex; gap: 8px; }
.tel .select { flex: 0 0 132px; }
.tel .select select { padding-left: 12px; padding-right: 34px; }
.tel input { flex: 1; min-width: 0; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.option span:hover { border-color: var(--text); }
.option input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form .btn { margin-top: 24px; }
.form__ok { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-input); background: var(--brand-soft); color: var(--brand-text); font-weight: 500; font-size: 14.5px; }
.form__legal { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 28px; border-top: 1px solid var(--line); background: var(--footer-bg); color: var(--footer-text); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .nav__logo { color: var(--footer-logo); }
.footer .nav__logo span { color: var(--brand); }
.footer__brand p { margin-top: 16px; font-size: 14.5px; color: var(--footer-muted); max-width: 320px; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--footer-line); color: var(--footer-logo); transition: background-color .2s, border-color .2s, transform .2s, color .2s; }
.footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.footer__social .ico { width: 20px; height: 20px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; color: var(--footer-logo); }
.footer__col li + li { margin-top: 10px; }
.footer__col a { font-size: 15px; color: var(--footer-muted); transition: color .2s; }
.footer__col a:hover { color: var(--brand-text-footer); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--footer-muted); }
.footer__contact .ico { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--footer-line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--footer-muted); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transition: transform .2s, box-shadow .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: onda 2.4s ease-out infinite; }
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.wa-float .ico { width: 32px; height: 32px; }
/* Editor del simulador en el panel (29/09/2026; admin.html → pestaña Simulador) */
.simed { display: grid; gap: 16px; margin: 18px 0; }
.simed__bloque, .simed__op { min-inline-size: 0; margin: 0; padding: 16px 20px 20px; }
/* legend flotado: dentro de la tarjeta y no montado sobre su borde (así lo dibuja un fieldset por defecto) */
.simed__bloque legend, .simed__op legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 17px; font-weight: 700; }
.simed__bloque legend + *, .simed__op legend + * { clear: both; }
.simed__ayuda { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.simed__pct { display: flex; align-items: center; gap: 6px; }
.simed__pct input { flex: 1; min-width: 0; }
.simed__autos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.simed__auto { display: grid; gap: 8px; align-content: start; }
.simed__foto { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: center; }
.simed__foto img { width: 128px; height: 86px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.simed__foto-datos { display: grid; gap: 6px; justify-items: start; }
.simed__foto-datos input { width: 100%; font-size: 12px; }
/* El input de archivo va oculto a la vista pero NO con hidden: así el Tab llega a "Cambiar foto" (revisión del 29/09) */
.simed__subir { position: relative; }
.simed__archivo { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.simed__subir:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
/* El editor del simulador ensanchaba la columna del panel con su tabla y cortaba todo a la derecha (≤960 px): la
   columna no crece por su contenido y la tabla hace scroll dentro de su caja. */
.admin__main { min-width: 0; }
.simed__como ol { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.simed__ejemplo { margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.simed__previa { margin-top: 4px; padding: 18px 20px; }
.simed__previa-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.simed__previa-cab h2 { font-size: 18px; }
.simed__tabla-caja { margin-top: 12px; overflow-x: auto; }
.simed__tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.simed__tabla th, .simed__tabla td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.simed__tabla thead th { font-weight: 600; color: var(--muted); }
.simed__tabla th[scope="row"] { min-width: 190px; text-align: left; white-space: normal; }
.simed__tabla small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.simed__tabla td.is-cambio { background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 760px) { .simed__autos { grid-template-columns: 1fr; } }
/* En el teléfono "Guardar todo" quedaba fuera de la pantalla: la barra parte en dos líneas y el botón va a lo ancho */
@media (max-width: 640px) { .admin__bar-inner { flex-wrap: wrap; } #guardar { flex: 1 1 100%; justify-content: center; } }
/* Asistente con IA "muy pronto" en el botón flotante (29/09/2026; main.js → MARCA.asistente). Conserva la clase wa-float
   para heredar posición, tamaño en móvil y el ajuste de la barra de la ficha. El volante lo dibuja cada marca en
   css/marca.css sobre .asistente__icono; aquí queda un aro genérico. */
.wa-float.asistente { background: var(--dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.wa-float.asistente::before { border-color: var(--brand); }
.wa-float.asistente:hover, .wa-float.asistente.is-open { transform: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.wa-float.asistente.is-open::before { animation: none; opacity: 0; }
.asistente__boton { position: relative; width: 100%; height: 100%; border: 0; border-radius: 50%; padding: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.asistente__boton:hover { transform: translateY(-2px) scale(1.04); }
.asistente__boton:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.asistente__icono { width: 50%; height: 50%; border: 3px solid currentColor; border-radius: 50%; }
.asistente__ia { position: absolute; top: -5px; right: -7px; padding: 2px 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .04em; box-shadow: 0 0 0 2px var(--bg, #fff); }
/* max-height: con el teléfono en horizontal (360 px de alto) y la barra de la ficha, la burbuja se salía por arriba y
   tapaba su botón de cerrar (revisión del 29/09). Borde transparente: en alto contraste se vuelve visible. */
.asistente__burbuja { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); overflow-y: auto; padding: 18px 18px 16px; border: 1px solid transparent; border-radius: 16px; background: var(--surface-card, #fff); color: var(--text); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); text-align: left; cursor: default; }
.asistente__burbuja[hidden] { display: none; }
.asistente__cerrar { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.asistente__estado { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.asistente__titulo { margin: 0 36px 6px 0; font-size: 16px; font-weight: 700; outline: none; }
.asistente__texto { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.asistente__wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--brand-text); }
.wa-float .asistente__wa .ico { width: 18px; height: 18px; flex: none; }
@media (forced-colors: active) { .wa-float.asistente { border: 2px solid ButtonText; } }

/* ---------- Catálogo ---------- */
/* Solo vertical: con `padding: 40px 0 …` se pisaba el `padding: 0 var(--gutter)` de .container (misma especificidad
   y esta regla va después), y en <main class="page container"> el texto quedaba pegado a los dos bordes en móvil. */
.page { padding-top: 40px; padding-bottom: var(--section); }
.page__head { margin-bottom: 28px; }
.page__head h1 { font-size: clamp(30px, 3.8vw, 46px); }
.page__lead { margin-top: 10px; font-size: 16px; color: var(--muted); max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { align-self: start; padding: 22px 22px 26px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.filters__head h2 { font-size: 17px; font-weight: 700; }
.filters__close { display: none; }
.filters__group { padding: 16px 0; border-top: 1px solid var(--line); }
.filters__group:first-of-type { border-top: 0; padding-top: 10px; }
.filters__group legend, .filters__group > label.filters__legend { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: 0 0 auto; }
.check__count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-pair input, .filters select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-input); font-size: 14px; color: var(--text); -webkit-appearance: none; appearance: none; }
.range-pair input:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.filters__actions { display: flex; gap: 10px; margin-top: 18px; }
.filters__actions .btn { flex: 1; }
.filters__apply { display: none; }
.filters-toggle { display: none; align-items: center; gap: 8px; }
.filters__backdrop { display: none; }
.catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-bottom: 22px; }
.catalog__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.catalog__total { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.catalog__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.catalog__sort select { height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-card); font-size: 14px; font-weight: 500; color: var(--text); -webkit-appearance: none; appearance: none; }
.catalog__sort .select::after { right: 14px; }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }
.empty[hidden] { display: none; }

/* ---------- Ficha ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 40px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-img); background: var(--surface); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .car__tag { top: 18px; left: 18px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); transition: background-color .2s; }
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__nav .ico { width: 22px; height: 22px; }
.gallery__count { position: absolute; right: 16px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; font-weight: 600; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 96px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; border: 2px solid transparent; background: var(--surface); transition: border-color .2s; }
.gallery__thumbs button.is-active { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ficha__panel { position: sticky; top: calc(var(--nav-h) + 16px); padding: 28px; }
.ficha__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.ficha__version { margin-top: 6px; font-size: 15px; color: var(--muted); }
.ficha__price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ficha__price strong { font-size: clamp(34px, 3.6vw, 44px); color: var(--brand); line-height: 1; }
.ficha__price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.ficha__price small { flex-basis: 100%; margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ficha__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column; gap: 2px; }
.specs dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; font-weight: 600; }
.ficha__section { margin-top: 36px; }
.ficha__section h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.ficha__desc { font-size: 15.5px; color: var(--muted); max-width: 680px; }
.equip { display: flex; flex-wrap: wrap; gap: 8px; }
.equip li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; }
.similar { margin-top: var(--section); }
.cta-bar { display: none; }
.ficha--empty { max-width: 560px; margin: 0 auto; }

/* ---------- Panel de administración (admin.html) ---------- */
.admin { background: var(--surface); }
.admin__top { position: sticky; top: 0; z-index: 30; background: var(--surface-card); border-bottom: 1px solid var(--line); }
.admin__top-inner { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 24px; }
.admin__title { font-weight: 600; color: var(--muted); }
.admin__estado { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.admin__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 24px; padding-bottom: 110px; max-width: 1400px; margin: 0 auto; }
.admin__nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 88px; align-self: start; }
.admin__tab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--muted); text-align: left; transition: background-color .2s, color .2s; }
.admin__tab:hover { background: var(--surface-card); color: var(--text); }
.admin__tab.is-active { background: var(--brand); color: #fff; }
.admin__tab .ico { width: 20px; height: 20px; }
.admin__badge { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.admin__tab.is-active .admin__badge { background: rgba(255, 255, 255, .22); }
.admin__panel[hidden] { display: none; }
.admin__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.admin__buscar { flex: 1 1 320px; max-width: 460px; }
.admin__ayuda { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; max-width: 900px; }
.admin__lista { display: flex; flex-direction: column; gap: 10px; }
.admin__fila { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 16px; }
.admin__fila.is-oculto { opacity: .55; }
.admin__thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.admin__fila-info strong { font-size: 15px; display: block; }
.admin__fila-info strong span, .admin__meta { font-weight: 500; color: var(--muted); font-size: 13px; }
.admin__meta { display: block; margin-top: 2px; }
.admin__precio { font-size: 15px; white-space: nowrap; color: var(--brand-text); }
.admin__acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin__acciones .is-danger { border-color: #C0392B; color: #C0392B; }
.admin__acciones .is-danger:hover { background: #FDECEA; }
.admin__prox { font-style: normal; font-size: 12px; color: var(--brand-text); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.admin__solic { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin__solic input { width: 76px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-input); font-size: 14px; }
.admin__editor { padding: 24px; margin-bottom: 18px; }
.admin__editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.admin__editor-head h2 { font-size: 20px; font-weight: 700; }
.admin__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.admin__grid .field--wide { grid-column: 1 / -1; }
.admin__grid .field input, .admin__grid .field select { height: 44px; }
.admin__grid .field textarea { min-height: 84px; }
.admin__grid .field input[readonly] { color: var(--muted); }
.admin__editor-foot { display: flex; gap: 10px; margin-top: 20px; }
.admin__previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin__previews img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.admin__previews img.is-rota { outline: 2px solid #C0392B; }
.admin__grupo { margin-bottom: 12px; }
.admin__grupo summary { padding: 16px 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; }
.admin__grupo summary::-webkit-details-marker { display: none; }
.admin__grupo summary::before { content: "▸"; color: var(--brand); transition: transform .2s; }
.admin__grupo[open] summary::before { transform: rotate(90deg); }
.admin__grupo .admin__grid { padding: 0 20px 20px; }
.admin__grupo .field label em { font-style: normal; color: #C0392B; font-weight: 500; }
.admin__errores { margin-bottom: 16px; padding: 14px 18px; border-radius: 12px; background: #FDECEA; color: #7B241C; font-size: 14px; }
.admin__errores ul { padding-left: 18px; list-style: disc; margin-top: 4px; }
.admin__doc { padding: 28px; max-width: 860px; }
.admin__doc h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.admin__doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.admin__doc ol { padding-left: 20px; list-style: decimal; display: grid; gap: 8px; font-size: 15px; }
.admin__doc p { font-size: 14.5px; color: var(--muted); }
.admin__doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.admin__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface-card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .08); }
.admin__bar-inner { display: flex; align-items: center; gap: 10px; padding: 12px 24px; max-width: 1400px; margin: 0 auto; }
.admin__pend { margin-right: auto; font-size: 14px; color: var(--muted); }
.admin__pend.is-on { color: var(--brand-text); font-weight: 600; }
/* ---------- Panel: entrada, solicitudes, historial, usuarios, fotos ---------- */
.login__main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.login__card { width: min(440px, 100%); padding: 34px 32px; }
.login__logo { display: inline-block; margin-bottom: 18px; }
.login__title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login__lead { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.login__card .field { margin-bottom: 14px; }
.login__card .btn { margin-top: 6px; }
.login__error { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #7B241C; font-size: 14px; }
.login__nota { margin-top: 16px; font-size: 13px; color: var(--muted); }
.login__pie { font-size: 14px; }
.login__pie a { color: var(--muted); }
.admin__grid--una { grid-template-columns: minmax(0, 420px); }
.admin__filtros { display: flex; gap: 10px; flex-wrap: wrap; }
.admin__filtros .select select { height: 44px; }
.admin__fila--hist { grid-template-columns: minmax(0, 1fr) auto; }
.admin__lead { padding: 16px 18px; display: grid; gap: 10px; }
.admin__lead-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin__lead-cab strong { font-size: 15.5px; }
.admin__lead-datos { font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.admin__lead-datos a { color: var(--brand-text); font-weight: 600; }
.admin__lead-pie { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.admin__lead-pie input[type="text"], .admin__lead-pie select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-input); font-size: 14px; width: 100%; }
.admin__chip { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.admin__chip--solicitud { background: #FFF4D6; color: #6B4E00; }
.admin__chip--contacto { background: #E8F0FE; color: #1A3E8C; }
.admin__pre { max-height: 460px; overflow: auto; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface); font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin__foto-fila { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.admin__foto-fila img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.admin__subir { cursor: pointer; white-space: nowrap; }
.admin__bar[hidden] { display: none; }
@media (max-width: 960px) { .admin__lead-pie { grid-template-columns: 1fr 1fr; } .admin__lead-pie input[type="text"] { grid-column: 1 / -1; } .admin__foto-fila { grid-template-columns: 72px minmax(0, 1fr); } .admin__foto-fila .admin__subir { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Páginas legales ---------- */
.legal__main { padding: calc(var(--nav-h, 76px) + 56px) 0 96px; }
.legal__doc { max-width: 820px; }
.legal__doc .section__title { margin: 10px 0 18px; }
.legal__lead { font-size: 17px; color: var(--muted); margin-bottom: 8px; }
.legal__doc h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal__doc p, .legal__doc li { font-size: 15.5px; line-height: 1.65; }
.legal__doc ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; margin: 8px 0; }
.legal__pie { margin-top: 40px; }
.form__legal { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.form__legal a { color: inherit; text-decoration: underline; }

/* ---------- Modo edición sobre la página (js/editar.js, ?editar=1) ---------- */
.editando [data-txt] { outline: 1.5px dashed var(--brand); outline-offset: 3px; border-radius: 3px; cursor: text; transition: none; }
.editando [data-txt]:hover { outline-style: solid; background: rgba(0, 0, 0, .06); }
.editando [data-txt].editado { outline: 2px solid #1E8E3E; }
.editando [data-reveal] { opacity: 1 !important; transform: none !important; }
.editando .hero__slide { transition: none; }
.edit-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 210; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-radius: 999px; background: #141414; color: #fff; font-family: var(--font-body); font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; }
.edit-bar__hint { color: rgba(255, 255, 255, .7); }
.edit-bar__n { font-weight: 600; }
.edit-bar__n.is-on { color: #FFB4A8; }
.edit-bar__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; cursor: pointer; }
.edit-bar__btn:hover { background: rgba(255, 255, 255, .24); }
.edit-bar__btn--save { background: var(--brand); }
.edit-bar__btn--save:hover { background: var(--brand-hover, var(--brand)); }
.edit-bar__btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.edit-pop { position: absolute; z-index: 205; background: #fff; color: #141414; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 16px; font-family: var(--font-body); font-size: 14px; text-align: left; line-height: 1.4; }
.edit-pop__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.edit-pop__head strong { font-size: 14px; }
.edit-pop__head code { font-size: 11.5px; color: #777; font-family: ui-monospace, Menlo, Consolas, monospace; }
.edit-pop__in { width: 100%; border: 1px solid #ccc; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; color: #141414; background: #fff; resize: vertical; }
.edit-pop__in:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.edit-pop__hint { margin: 8px 0 12px; font-size: 12.5px; color: #777; }
.edit-pop__foot { display: flex; gap: 8px; }
.edit-pop .edit-bar__btn--ghost { color: #141414; border-color: #ccc; }
.edit-pop .edit-bar__btn--ghost:hover { background: #f2f2f2; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 95; padding: 12px 18px; border-radius: 12px; background: var(--dark); color: var(--on-dark); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-hover); max-width: min(560px, 92vw); }
.toast.is-error { background: #7B241C; color: #fff; }
@media (max-width: 960px) {
  .admin__layout { grid-template-columns: 1fr; padding: 16px; padding-bottom: 120px; }
  .admin__nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin__grid { grid-template-columns: 1fr 1fr; }
  .admin__fila { grid-template-columns: 72px minmax(0, 1fr); }
  .admin__precio, .admin__acciones { grid-column: 2; justify-content: flex-start; }
  .admin__top-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .admin__title { display: none; }
}
@media (max-width: 640px) { .admin__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__grid .footer__col:last-child { grid-column: 1 / -1; }
  .process, .coverage { grid-template-columns: 1fr; }
  .process__media { position: relative; top: auto; }
  .process__media img { aspect-ratio: 16 / 10; object-position: center; }
  .photo-card { min-height: 420px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { height: auto; min-height: 640px; }
  .hero__content { padding-bottom: 150px; }
  .hero--full.hero--split .hero__content { grid-template-columns: 1fr; }
  .hero--full.hero--split .market { max-width: 520px; width: 100%; }
  .hero__dots-wrap { bottom: 120px; }
  .search-wrap { margin-top: -84px; }
  .grid--2 { grid-template-columns: 1fr; }

  /* catálogo: filtros en panel deslizable */
  .catalog { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  /* overflow-y: el panel mide más que la pantalla (medido: 1.607 px en 844) y la página queda bloqueada mientras está
     abierto, así que sin scroll propio la mitad de los filtros y los botones Limpiar/Aplicar eran inalcanzables. */
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(360px, 88vw); max-height: none; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border-radius: 0; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
  .filters.is-open { transform: none; }
  .filters__close { display: inline-flex; }
  .filters__apply { display: inline-flex; }
  .filters__backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .filters__backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* ficha */
  .ficha { grid-template-columns: 1fr; gap: 28px; }
  .ficha__panel { position: static; }
  .cta-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--surface-card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .1); }
  .cta-bar .btn { flex: 1; }
  .has-cta-bar .wa-float { bottom: 92px; }
  .has-cta-bar { padding-bottom: 84px; }
}

@media (min-width: 961px) { .nav__panel { display: none !important; } }

@media (max-width: 640px) {
  .section__head { margin-bottom: 32px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .hero { min-height: 600px; }
  .hero__content { padding-top: 40px; padding-bottom: 72px; }
  .hero__title { max-width: none; }
  .hero__sub { font-size: 16px; margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__dots-wrap { bottom: 26px; }
  .hero--full { min-height: 0; padding: calc(var(--nav-h) + 40px) 0 56px; }
  .hero--full.hero--split .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .hero--full.hero--split .hero__facts { align-items: flex-start; }
  .hero__kpis { gap: 12px 28px; }
  .market { padding: 12px; }
  .hero--full .hero__title { font-size: clamp(44px, 13vw, 60px); }
  .hero--full .hero__sub { font-size: 16px; margin-bottom: 28px; }
  .hero--full .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__facts { flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }
  .hero__cue { display: none; }
  html.has-motor .sheet { border-radius: 20px 20px 0 0; }

  .search-wrap { margin-top: 20px; }
  .search { padding: 22px 18px 24px; }
  .search__top { gap: 14px; }
  .search__title { font-size: 20px; }
  .search__form { flex: 1 1 100%; flex-direction: column; }
  .search__label { min-width: 0; width: 100%; }
  .brands { gap: 2px 18px; }

  .stats { padding: 56px 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stat { border-left: 0; padding: 0; }
  .stats--dark .stat { padding-left: 0; }

  .section__head--row { align-items: flex-start; }
  .tabs--center { justify-content: flex-start; }
  .process__item { grid-template-columns: 1fr; gap: 10px; }
  .process__num { font-size: 48px; }
  .process__badge { left: 12px; bottom: 12px; padding: 12px 14px 12px 12px; }
  .sim__controls, .sim__result { padding: 28px 22px; }
  .sim__result .btn { align-self: stretch; }
  .sim__details li { flex-basis: 50%; }
  .photo-card { min-height: 380px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq__answer { padding: 0 18px 20px; }
  .form { padding: 24px 20px; }
  .contact .btn--wa { width: 100%; }
  .car__body { padding: 20px 18px 22px; }

  .footer { padding: 56px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid .footer__col:last-child { grid-column: auto; }
  .footer__bottom { flex-direction: column; margin-top: 40px; }

  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float .ico { width: 30px; height: 30px; }
  .page { padding-top: 24px; }
  .catalog__toolbar { align-items: flex-start; }
  .specs { grid-template-columns: 1fr 1fr; }
  .gallery__thumbs button { flex-basis: 76px; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero__slide img { transform: none !important; }
  html.has-motor [data-reveal] { opacity: 1; transform: none; }
}
