/* Shineray Argentina — estilos unificados (build optimizado) */
/* ============================================================
   SHINERAY ARGENTINA — sistema de diseño compartido
   ============================================================ */

:root {
  /* Tipografía (tweakable) */
  --font: "Work Sans", system-ui, sans-serif;

  /* Color */
  --ink:       #101012;
  --ink-soft:  #1a1a1f;
  --ink-2:     #232329;
  --paper:     #ffffff;
  --paper-2:   #f4f4f5;
  --paper-3:   #ebebed;
  --text:      #17171b;
  --muted:     #6c6c74;
  --muted-2:   #9a9aa2;
  --line:      rgba(16,16,18,.10);
  --line-soft: rgba(16,16,18,.06);
  --on-dark-line: rgba(255,255,255,.12);
  --on-dark-muted: rgba(255,255,255,.62);

  /* Acento (tweakable) */
  --accent:    #e4181f;
  --accent-d:  #b9131a;
  --accent-ink:#ffffff;

  /* Densidad (tweakable: multiplicador) */
  --d: 1;
  --section-y: calc(92px * var(--d));
  --gap: calc(28px * var(--d));

  /* Forma */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  /* Tarjetas (tweakable vía body.card-*) */
  --card-bg: #ffffff;
  --card-border: 1px solid transparent;
  --card-shadow: 0 1px 2px rgba(16,16,18,.04), 0 18px 40px -24px rgba(16,16,18,.28);
  --card-radius: var(--r);

  --maxw: 1200px;
}

/* ---- Variantes de tarjeta ---- */
body.card-shadow { --card-border: 1px solid var(--line-soft); --card-shadow: 0 1px 2px rgba(16,16,18,.04), 0 22px 48px -28px rgba(16,16,18,.32); }
body.card-border { --card-border: 1px solid var(--line); --card-shadow: none; }
body.card-flat   { --card-border: 1px solid transparent; --card-shadow: none; --card-bg: var(--paper-2); }
body.card-sharp  { --card-radius: 4px; --card-border: 1px solid var(--line); --card-shadow: 0 18px 40px -28px rgba(16,16,18,.28); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1,h2,h3,h4 { margin: 0; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto calc(40px * var(--d)); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 14px 22px; border-radius: 10px; cursor: pointer; border: 0;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.4); }

.link-accent {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.link-accent svg { width: 14px; height: 14px; transition: transform .15s ease; }
.link-accent:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid var(--on-dark-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 50px; height: 34px; display: grid; place-items: center; flex: none;
}
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand > span { display: flex; flex-direction: column; }
.brand-name { display: block; font-weight: 800; font-size: 20px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.brand-name img { height: 17px; width: auto; display: block; }
.brand-name b { color: var(--accent); font-weight: 800; }
.brand-tag { display: block; font-size: 10px; letter-spacing: .04em; color: var(--on-dark-muted); font-style: italic; margin-top: 3px; white-space: nowrap; }

.main-nav { display: flex; gap: 26px; margin-left: 18px; }
.main-nav a {
  color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 0; position: relative; transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
}
.header-social { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-social a { color: rgba(255,255,255,.7); display: grid; place-items: center; transition: color .15s ease; }
.header-social a:hover { color: #fff; }
.header-social svg { width: 17px; height: 17px; }
.nav-toggle { display: none; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(16,16,18,.04) 0 12px, transparent 12px 24px);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .04em; color: var(--muted-2);
  text-align: center; padding: 0 14px; line-height: 1.4;
}
.ph-dark {
  background: #18181c;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}
.ph-dark::after { color: rgba(255,255,255,.34); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 14px; max-width: 240px; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { color: rgba(255,255,255,.66); }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: var(--on-dark-muted); font-size: 14px; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--on-dark-line); padding: 22px 0; text-align: center;
  color: rgba(255,255,255,.5); font-size: 13px;
}

/* ---------- Feature row (iconos) ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .f-ico { width: 38px; height: 38px; flex: none; color: var(--ink); }
.feature.on-dark .f-ico { color: var(--accent); }
.feature .f-ico svg { width: 38px; height: 38px; }
.feature h4 { font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
.feature.on-dark h4 { color: #fff; }
.feature.on-dark p { color: var(--on-dark-muted); }

/* ---------- Tweaks panel ---------- */
#tweaks-panel {
  position: fixed; top: 16px; right: 16px; z-index: 1000; width: 300px;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.5);
  font-size: 14px; overflow: hidden; display: none;
}
#tweaks-panel.open { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tw-head b { font-size: 14px; letter-spacing: .02em; }
.tw-close { background: var(--paper-2); border: 0; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.tw-close:hover { background: var(--paper-3); color: var(--text); }
.tw-body { padding: 6px 16px 18px; max-height: 78vh; overflow: auto; }
.tw-group { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.tw-group:last-child { border-bottom: 0; }
.tw-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.tw-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-seg button {
  flex: 1; min-width: 0; padding: 9px 8px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text);
  transition: all .12s ease; white-space: nowrap;
}
.tw-seg button:hover { border-color: var(--ink); }
.tw-seg button.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.tw-swatches { display: flex; gap: 8px; }
.tw-swatches button { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; outline-offset: 2px; }
.tw-swatches button.sel { border-color: var(--ink); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  .main-nav, .header-social { display: none; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); padding: 8px 32px 20px; border-bottom: 1px solid var(--on-dark-line); margin: 0;
  }
  .main-nav.mobile-open a { padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SHINERAY ARGENTINA — estilos de secciones / páginas
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-track { position: relative; height: clamp(560px, 38vw, 680px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.72) 30%, rgba(8,8,10,.32) 52%, rgba(8,8,10,0) 72%);
}
.hero-bg .ph { width: 100%; height: 100%; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.24); transform-origin: 18% center;
  filter: brightness(1.18) saturate(1.05);
}
.hero-bg.composed img { transform: none; object-position: center 60%; filter: brightness(1.06) saturate(1.04); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-card {
  position: relative; max-width: 460px; padding: 6px 0 6px 26px;
  display: flex; flex-direction: column; min-height: 320px;
}
.hero-card .btn { margin-top: auto; align-self: flex-start; }
.hero-card::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
  background: var(--accent);
}
.hero-card .eyebrow { margin-bottom: 14px; color: #fff; opacity: .9; }
.hero-card h1, .hero-card .hero-title { margin: 0; font-weight: 800; letter-spacing: -.02em; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-card p { color: rgba(255,255,255,.82); margin: 14px 0 24px; font-size: 16px; max-width: 400px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

.hero-arrows { }
.hero-prev, .hero-next {
  position: absolute; bottom: 26px; z-index: 5;
  width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center;
  transition: background .15s ease;
}
.hero-prev:hover, .hero-next:hover { background: var(--accent); }
.hero-prev { right: 78px; } .hero-next { right: 24px; }
.hero-prev svg, .hero-next svg { width: 20px; height: 20px; }
.hero-dots { position: absolute; left: 32px; right: auto; bottom: 38px; display: flex; gap: 9px; justify-content: flex-start; z-index: 5; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: all .15s ease; }
.hero-dot.active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ---------- SECCIÓN MODELOS ---------- */
.section { padding: var(--section-y) 0; }
.sec-models { background: var(--paper-2); }
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto calc(36px * var(--d)); background: #fff; padding: 7px; border-radius: 999px; width: max-content; max-width: 100%; box-shadow: 0 1px 2px rgba(16,16,18,.05); border: 1px solid var(--line-soft); }
.filter-bar button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .14s ease;
}
.filter-bar button svg { width: 15px; height: 15px; }
.filter-bar button:hover { color: var(--text); }
.filter-bar button.active { background: var(--accent); color: #fff; }

.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.model-card {
  background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,16,18,.04), 0 30px 56px -28px rgba(16,16,18,.42); }
.mc-media { aspect-ratio: 16/11; width: 100%; }
img.mc-media { object-fit: cover; display: block; }
.veh-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-body { padding: 18px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.mc-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.mc-name { font-size: 22px; }
.mc-tag { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.mc-note { color: var(--accent); font-size: 12px; font-weight: 700; margin: -10px 0 16px; }
.mc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.mc-chip { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

.feature-band { padding: calc(44px * var(--d)) 0; background: var(--paper-2); }

/* ---------- Respaldo Ralitor ---------- */
.backing { background: var(--paper-2); color: var(--text); padding: calc(76px * var(--d)) 0; }
.backing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.backing-inner .eyebrow { color: var(--accent); margin-bottom: 16px; }
.backing-inner h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; color: var(--ink); }
.backing-inner p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 640px; }
.backing-inner p b { color: var(--ink); font-weight: 700; }
.backing-foot { margin-top: 22px !important; color: var(--ink) !important; font-weight: 600; font-style: italic; }
.iso-badge { display: flex; align-items: center; gap: 10px; margin: 28px auto 0; width: max-content; max-width: 100%; padding: 11px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-lg, 14px); color: var(--ink); font-size: 13.5px; font-weight: 500; text-align: left; }
.iso-badge svg { width: 21px; height: 21px; color: var(--accent); flex: 0 0 auto; }
.iso-badge b { font-weight: 700; }
.iso-badge span { white-space: nowrap; }
@media (max-width: 760px) { .iso-badge { width: auto; } .iso-badge span { white-space: normal; } }

/* ---------- CONCESIONARIO (split + mapa) ---------- */
.deal-split { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 420px; }
.deal-text { background: var(--paper-2); display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(28px, 5vw, 72px); }
.deal-text .eyebrow { margin-bottom: 18px; }
.deal-text h2 { font-size: clamp(28px, 3.2vw, 40px); }
.deal-text p { color: var(--muted); margin: 16px 0 28px; max-width: 380px; }
.deal-map { position: relative; background: #fff; display: grid; place-items: center; padding: 28px; }
.map-canvas { position: relative; width: 100%; max-width: 460px; aspect-ratio: 3/4; }
.map-canvas .ph { position: absolute; inset: 0; border-radius: 16px; }

/* ---------- Mapa geográfico (Leaflet) ---------- */
.geo-map { width: 100%; height: 100%; min-height: 440px; z-index: 0; background: var(--paper-2); }
.dealer-map .geo-map { min-height: 0; height: 100%; }
.sr-pin { color: var(--accent); width: 26px; height: 34px; display: block; transition: transform .12s ease; }
.sr-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.32)); }
.sr-pin.active { transform: scale(1.4); }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }
.leaflet-popup-content { margin: 12px 14px; }
.sr-pop b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.sr-pop span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.sr-pop a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.leaflet-container .sr-pop a, .leaflet-popup-content .sr-pop a { color: var(--accent); }
.leaflet-container { font-family: var(--font); }

/* ---------- POSTVENTA (dark band) ---------- */
.postventa-band { position: relative; background: var(--ink); overflow: hidden; min-height: clamp(440px, 38vw, 560px); }
.postventa-band .pv-bg { position: absolute; inset: 0; }
.postventa-band .pv-bg .ph { width: 100%; height: 100%; }
.postventa-band .pv-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; filter: brightness(1.22) saturate(1.04); }
.postventa-band .pv-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(12,12,14,.98) 0%, rgba(12,12,14,.97) 42%, rgba(12,12,14,.78) 56%, rgba(12,12,14,.32) 74%, rgba(12,12,14,0) 100%); }
.pv-inner { position: relative; padding-top: calc(76px * var(--d)); padding-bottom: calc(76px * var(--d)); }
.pv-head { max-width: 440px; margin-bottom: 52px; }
.pv-head .eyebrow { margin-bottom: 16px; }
.pv-head h2, .pv-head h1 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); text-shadow: 0 2px 22px rgba(0,0,0,.6); }
.pv-head p { color: var(--on-dark-muted); margin: 16px 0 28px; text-shadow: 0 1px 14px rgba(0,0,0,.55); }

/* ---------- PAGE HERO (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 54px 0 56px; position: relative; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; }
.page-hero p { color: var(--on-dark-muted); margin: 16px 0 0; max-width: 560px; font-size: 17px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--on-dark-muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- VEHÍCULO (detalle) ---------- */
.veh-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: var(--section-y) 0; }
.veh-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/11; box-shadow: var(--card-shadow); }
.veh-media .ph { width: 100%; height: 100%; }
.veh-info .eyebrow { margin-bottom: 12px; }
.veh-info h1 { font-size: clamp(40px, 5vw, 64px); }
.veh-info .veh-tag { font-size: 19px; color: var(--muted); margin: 8px 0 22px; }
.veh-info .veh-intro { font-size: 17px; color: var(--text); margin-bottom: 28px; }
.veh-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.spec-section { background: var(--paper-2); }
.spec-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; }
.spec-head-row h2 { letter-spacing: -.02em; }
.spec-toggle { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.spec-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .14s ease; }
.spec-toggle button:hover { color: var(--text); }
.spec-toggle button.active { background: var(--accent); color: #fff; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-cell { background: #fff; padding: 26px 24px; }
.spec-cell .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.spec-cell .v { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.spec-cell .v .v-sub { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 5px; }

.high-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.veh-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 22px 24px; }
.veh-note .vn-ico { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 1px; }
.veh-note .vn-ico svg { width: 26px; height: 26px; }
.veh-note h3 { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.veh-note p { font-size: 14px; color: var(--muted); margin: 0; max-width: 720px; }
.veh-note-mini { font-size: 13px; color: var(--muted); font-style: italic; margin: 14px 0 0; }
.high-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.high-item .hi-check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.high-item .hi-check svg { width: 15px; height: 15px; }
.high-item span { font-weight: 600; font-size: 15px; padding-top: 2px; }

.other-models { background: var(--paper-2); }

/* ---------- CONCESIONARIOS (página) ---------- */
.dealer-layout { display: grid; grid-template-columns: 380px 1fr; gap: 0; height: 640px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dealer-list { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.dealer-search { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.dealer-search input, .dealer-search select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.dealer-search input:focus, .dealer-search select:focus { outline: none; border-color: var(--ink); }
.dealer-items { overflow-y: auto; flex: 1; min-height: 0; }
.dealer-item { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .12s ease; }
.dealer-item:hover { background: var(--paper-2); }
.dealer-item.active { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--accent); }
.dealer-item .di-prov { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dealer-item .di-name { font-size: 16px; font-weight: 700; margin: 3px 0; }
.dealer-item .di-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.dealer-item .di-tel { color: var(--accent); font-weight: 700; }
.dealer-item .di-tel:hover { text-decoration: underline; }
.dealer-map { position: relative; background: var(--paper-2); display: grid; place-items: center; padding: 32px; }
.dealer-map .map-canvas { max-width: 520px; }
.dealer-empty { padding: 28px 20px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- POSTVENTA (página) ---------- */
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.pv-card .pc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.pv-card .pc-ico svg { width: 24px; height: 24px; }
.pv-card h3 { font-size: 20px; margin-bottom: 8px; }
.pv-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Bloque repuestos (canal WhatsApp) */
.pv-parts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 44px 48px; }
.pv-parts-txt .eyebrow { color: var(--accent); margin-bottom: 12px; }
.pv-parts-txt h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; color: var(--ink); }
.pv-parts-txt p { color: var(--muted); font-size: 16px; margin: 0; max-width: 460px; }
.pv-parts-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pv-parts-phone { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.pv-parts .btn svg { width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--ink); }
.step .step-n { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.step h4 { font-size: 18px; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- CONTACTO ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: var(--section-y) 0; }
.contact-info h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; max-width: 420px; }
.contact-rows { display: flex; flex-direction: column; gap: 4px; }
.contact-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row .cr-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--paper-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-row .cr-ico svg { width: 20px; height: 20px; }
.contact-row .cr-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-row .cr-v { font-size: 17px; font-weight: 700; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--card-shadow); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { background: #f0faf2; border: 1px solid #bfe6c8; color: #1c7a3a; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; display: none; }
.form-ok.show { display: block; }
.form-err { background: #fdf0f0; border: 1px solid #f0c2c2; color: #b3261e; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; display: none; }
.form-err.show { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-split { grid-template-columns: 1fr; }
  .veh-hero { grid-template-columns: 1fr; gap: 28px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .high-grid { grid-template-columns: 1fr; }
  .dealer-layout { grid-template-columns: 1fr; height: auto; }
  .dealer-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 460px; }
  .dealer-map .geo-map { height: 420px; }
  .pv-cards { grid-template-columns: 1fr; }
  .pv-parts { grid-template-columns: 1fr; gap: 24px; padding: 34px 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-track { height: 620px; }
}
@media (max-width: 640px) {
  .model-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Portada apilada en celular: foto arriba, texto en panel oscuro abajo */
  .hero-track { height: 600px; }
  .hero-slide { display: flex; flex-direction: column; }
  .hero-bg { position: relative; inset: auto; height: 220px; flex: none; overflow: hidden; }
  .hero-bg img, .hero-bg.composed img { transform: none; object-position: center; filter: brightness(1.1) saturate(1.04); }
  /* Encuadre por imagen: centrar el vehículo de cada portada en celular */
  .hero-bg img[src*="t50-hero"] { object-position: 82% center; transform: none; }
  .hero-bg img[src*="t50box-hero"] { object-position: 88% center; }
  .hero-bg img[src*="m7furgon-hero"] { object-position: 95% center; }
  .hero-bg::after { background:
    linear-gradient(90deg, rgba(10,10,12,.8) 0%, rgba(10,10,12,0) 22%, rgba(10,10,12,0) 78%, rgba(10,10,12,.8) 100%),
    linear-gradient(180deg, rgba(10,10,12,0) 58%, rgba(10,10,12,.5) 100%); }
  .hero-inner { flex: 1; height: auto; background: var(--ink); align-items: stretch; display: flex; }
  .hero-card { background: transparent; box-shadow: none; padding: 24px 0 40px 18px; max-width: 100%; display: flex; flex-direction: column; }
  .hero-card .btn { margin-top: auto; align-self: flex-start; }
  .hero-card::before { top: 26px; bottom: 40px; height: auto; }
  .hero-card .eyebrow { color: var(--accent); }
  .hero-card h1 { color: #fff; font-size: 27px; }
  .hero-card p { color: rgba(255,255,255,.74); }
  .hero-card .btn-dark { background: var(--accent); }
  .hero-card .btn-dark:hover { background: var(--accent-d); }
  .hero-prev, .hero-next { display: none; }
  .hero-dots { bottom: 14px; }

  /* Banda de Postventa apilada en celular: foto arriba, texto en panel oscuro */
  .postventa-band { min-height: 0; }
  .postventa-band .pv-bg { position: relative; inset: auto; height: 270px; }
  .postventa-band .pv-bg::after { background: linear-gradient(180deg, rgba(12,12,14,0) 48%, rgba(12,12,14,.55) 100%); }
  .postventa-band .pv-bg img { object-position: center 42%; }
  .pv-inner { padding-top: 40px; padding-bottom: 48px; }
  .pv-head { margin-bottom: 40px; }
  .pv-head h2 { font-size: 28px; }
}

/* accesibilidad / SEO */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- Burbuja flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); transition: transform .16s ease, box-shadow .16s ease; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px -10px rgba(0,0,0,.5); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } .wa-float svg { width: 29px; height: 29px; } }

/* Postventa (página): imagen a la derecha, texto sobre negro sólido a la izquierda — solo desktop */
@media (min-width: 821px) {
  .pv-hero .pv-bg { left: 46%; right: 0; }
  .pv-hero .pv-bg::after { background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 8%, rgba(16,16,18,.6) 34%, transparent 72%); }
  .pv-hero .pv-bg img { object-position: 50% 36%; }
}
