@import url("veqor-loader.css?v=featured-eq-2");

/* Metric-matched fallbacks reduce CLS when webfonts arrive late (or use optional). */
@font-face {
  font-family: "Barlow Condensed Fallback";
  src: local("Arial Narrow"), local("Helvetica Neue Condensed"), local("Arial");
  size-adjust: 102%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Segoe UI"), local("Helvetica Neue"), local("Arial");
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Michroma Fallback";
  src: local("Arial Black"), local("Helvetica Neue Bold"), local("Arial");
  size-adjust: 88%;
  ascent-override: 96%;
  descent-override: 20%;
  line-gap-override: 0%;
}

:root {
  --red: #c8102e;
  --red-dark: #9b0c24;
  /* On gray-900/black chrome, brand red/orange fail WCAG AA (~3:1). These stay ≥4.5:1. */
  --red-on-dark: #ff6b7a;
  --orange-on-dark: #fb923c;
  --orange: #c2410c;
  --black: #0f0f0f;
  --gray-900: #1a1a1a;
  --gray-700: #444;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --font-body: "Source Sans 3", "Source Sans 3 Fallback", "Segoe UI", sans-serif;
  /* Brand display: Michroma is the project standard for titles & notable UI */
  --font-brand: "Michroma", "Michroma Fallback", "Arial Black", "Helvetica Neue", sans-serif;
  --font-display: var(--font-brand);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --max: 1180px;
  --viewer-3d-bg: #f4f4f5;
  --header-min-h: 148px;
  --header-min-h-mobile: 112px;
}

/* Reserve chrome height so layout.js replace does not shift <main> */
#site-header {
  min-height: var(--header-min-h);
  position: sticky;
  top: 0;
  z-index: 400;
  /* Fondo propio: al pegarse no se “transparenta” el contenido de detrás */
  background: #f1f3f6;
}

#site-header.is-compact {
  min-height: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

#site-footer {
  min-height: 420px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 6.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
}

html.nav-open,
body.nav-open {
  overflow: hidden;
}

/* Project standard: Michroma for all headings */
h1, h2, h3, h4 {
  font-family: var(--font-brand);
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Scroll transitions */
.hero-content {
  animation: heroReveal 0.9s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease, transform 0.52s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  transform: translateX(-22px);
}

.reveal-right {
  transform: translateX(22px);
}

.reveal-zoom {
  transform: scale(0.98);
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  transform: none;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Top bar */
.topbar {
  background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f6 100%);
  border-bottom: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  font-size: 0.875rem;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.logo-block img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.logo-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1.3;
  max-width: 16.5rem;
}

.topbar-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
}

.meta-pill:hover {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.1);
  transform: translateY(-1px);
}

.meta-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.meta-pill-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.meta-pill-text strong {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.meta-pill-text span {
  font-size: 0.82rem;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo img {
  height: 52px;
  width: auto;
}

.lang-toggle {
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.lang-toggle:hover {
  background: var(--red);
  color: var(--white);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile/nav: white on gray-900 (~17:1). Brand red text on navbar fails AA. */
.lang-toggle-nav {
  display: none;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.lang-toggle-nav:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.contact-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover strong,
.contact-link:hover span {
  color: var(--red);
}

/* Navigation — sticky lo lleva #site-header (opción A: topbar compacta + nav) */
.navbar {
  background: var(--black);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s ease;
}

.navbar-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: block;
  padding: 1rem 0.85rem;
  color: var(--white);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-links > li > button:hover {
  color: var(--red-on-dark);
}

.nav-links > li > a.active {
  box-shadow: inset 0 -3px 0 var(--red);
}

.has-dropdown.nav-active > button,
.has-dropdown.open > button[aria-expanded="true"] {
  color: var(--red-on-dark);
  box-shadow: inset 0 -3px 0 var(--red);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--gray-900);
  border-top: 3px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown a:hover {
  background: rgba(200, 16, 46, 0.15);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red);
}

.btn-outline {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.hero .btn-outline,
.page-hero .btn-outline {
  color: var(--white);
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover {
  color: var(--white);
}

.btn-outline-dark {
  border: 2px solid var(--gray-400);
  color: var(--gray-800);
  background: var(--gray-50);
}

.btn-outline-dark:hover:not(:disabled) {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
}

/* 3D button with spinner cube (Uiverse / AqFox, Veqor red) */
.btn-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(200, 16, 46, 0.55);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-3d:hover:not(:disabled) {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(200, 16, 46, 0.4);
  transform: translateY(-1px);
}

.btn-3d:active:not(:disabled) {
  transform: translateY(0);
}

.btn-3d:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-3d.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-3d-label {
  flex-shrink: 0;
}

.btn-3d .spinner {
  --slot: 32px;
  --sz: calc(var(--slot) * 0.7);
  --half: calc(var(--sz) / 2);
  width: var(--slot);
  height: var(--slot);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.btn-3d .spinner-cube {
  width: var(--sz);
  height: var(--sz);
  position: relative;
  animation: spinner-3d-y0fdc1 2s infinite ease;
  transform-style: preserve-3d;
}

.btn-3d .spinner-cube > div {
  background-color: rgba(200, 16, 46, 0.2);
  height: 100%;
  position: absolute;
  width: 100%;
  border: 2px solid var(--red);
  box-sizing: border-box;
}

.btn-3d .spinner-cube div:nth-of-type(1) {
  transform: translateZ(calc(var(--half) * -1)) rotateY(180deg);
}

.btn-3d .spinner-cube div:nth-of-type(2) {
  transform: rotateY(-270deg) translateX(50%);
  transform-origin: top right;
}

.btn-3d .spinner-cube div:nth-of-type(3) {
  transform: rotateY(270deg) translateX(-50%);
  transform-origin: center left;
}

.btn-3d .spinner-cube div:nth-of-type(4) {
  transform: rotateX(90deg) translateY(-50%);
  transform-origin: top center;
}

.btn-3d .spinner-cube div:nth-of-type(5) {
  transform: rotateX(-90deg) translateY(50%);
  transform-origin: bottom center;
}

.btn-3d .spinner-cube div:nth-of-type(6) {
  transform: translateZ(var(--half));
}

@keyframes spinner-3d-y0fdc1 {
  0% {
    transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
  }
  50% {
    transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
  }
  100% {
    transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
  }
}

.hero-actions .btn-3d,
.product-overlay-actions .btn-3d {
  align-self: center;
}

.btn-resend {
  border: 2px solid var(--orange);
  color: var(--orange);
  background: rgba(194, 65, 12, 0.14);
  min-width: 10.5rem;
  white-space: nowrap;
}

.btn-resend.is-cooling {
  min-width: 11.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-resend:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-resend:disabled,
.btn-resend.is-cooling {
  border-color: var(--gray-300);
  color: var(--gray-600);
  background: var(--gray-100);
  cursor: not-allowed;
  opacity: 1;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-with-video .hero-bg {
  background: #111;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 6rem;
  max-width: 760px;
}

.hero-kicker {
  color: var(--orange);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* Contrast on bright video frames (white cab, sky, dust) */
.hero-with-video .hero-kicker {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    1px 0 0 rgba(0, 0, 0, 0.85),
    -1px 0 0 rgba(0, 0, 0, 0.85),
    0 -1px 0 rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.45);
}

.hero-with-video .hero-content > h1 {
  text-shadow:
    0 1px 0 #000,
    1px 0 0 #000,
    -1px 0 0 #000,
    0 -1px 0 #000,
    0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-with-video .hero-content > p:not(.hero-kicker) {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.75),
    1px 0 0 rgba(0, 0, 0, 0.75),
    -1px 0 0 rgba(0, 0, 0, 0.75),
    0 -1px 0 rgba(0, 0, 0, 0.75),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-angle {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

.page-hero {
  min-height: 42vh;
  justify-content: center;
}

.page-hero .hero-content {
  width: 100%;
  max-width: 760px;
  text-align: center;
  margin-inline: auto;
}

.page-hero .hero-content p {
  margin-inline: auto;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.trust-bar {
  background: var(--gray-900);
  color: var(--white);
  padding: 1.25rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--orange);
  line-height: 1.1;
}

.trust-grid span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-band {
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 4rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band .section-title {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.section-label {
  color: var(--red);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.section-gray {
  background: var(--gray-100);
}

.home-products {
  padding-bottom: 3.5rem;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.home-products--featured {
  background: var(--white);
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.featured-series-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.featured-series-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.featured-series-title {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.38em;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.featured-series-veqor,
.featured-series-title-rest {
  font-family: var(--font-brand);
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: var(--gray-900);
}

.featured-series-veqor-q {
  color: var(--red);
}

:lang(en) .featured-series-veqor,
:lang(en) .featured-series-title-rest {
  text-transform: uppercase;
}

/* ES: "Series" before Veqor → reads "Series Veqor" */
:lang(es) .featured-series-title {
  flex-direction: row-reverse;
}

.featured-models-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Featured products carousel (home) */
.product-carousel {
  position: relative;
  margin-top: 0;
  width: 100%;
  padding-bottom: 2.25rem;
}

.home-products--featured .product-carousel {
  margin-inline: clamp(-0.5rem, -1vw, -0.25rem);
}

/* Featured coverflow (home) — fondo blanco, mismas medidas de tarjeta landscape */
.featured-cf-stage {
  position: relative;
  width: 100%;
  height: calc(var(--featured-card-h) + 3rem);
  /* visible: overflow:hidden + translateZ del centro hace desaparecer la tarjeta activa */
  overflow: visible;
  background: var(--white);
  /* pan-y (antes none): el arrastre horizontal es del carrusel, pero el gesto
   * vertical debe seguir scrolleando la página en móvil. */
  touch-action: pan-y;
  user-select: none;
}

/* Sombra de piso bajo la card central — sustituye a -webkit-box-reflect
 * (no estándar, invisible en Firefox y pintaba cada card dos veces).
 * Misma familia de sombras suaves difusas que el resto del sitio. */
.featured-cf-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(calc(var(--featured-card-w) * 1.15), 68%);
  height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(0, 0, 0, 0.1), transparent 72%);
  pointer-events: none;
}

.product-carousel--coverflow {
  --featured-card-w: calc((100% - 2.3rem) / 3);
  --featured-card-h: clamp(320px, 28vw, 400px);
  padding-bottom: 0.5rem;
  overflow-x: clip;
  overflow-y: visible;
}

/* Full-bleed moderado: las cards laterales respiran fuera de la columna del
 * contenedor. El clip horizontal lo pone overflow-x del propio coverflow. */
.home-products--featured .product-carousel--coverflow {
  margin-inline: clamp(-4.5rem, -4.5vw, -1rem);
}

@media (max-width: 992px) {
  .home-products--featured .product-carousel--coverflow {
    margin-inline: -0.5rem;
  }
}

.featured-cf-pin {
  position: relative;
  width: 100%;
}

/* Barra de controles bajo las cards: ‹  dots  › */
.featured-cf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.product-carousel--coverflow .featured-cf-controls .product-carousel-btn {
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
  opacity: 1;
  border: 1px solid var(--gray-200, #e5e7eb);
  background: var(--white);
  color: var(--gray-700, #374151);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.product-carousel--coverflow .featured-cf-controls .product-carousel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--red, #c41e24);
  color: var(--red, #c41e24);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(196, 30, 36, 0.14);
}

.product-carousel--coverflow .featured-cf-controls .product-carousel-btn:active {
  transform: translateY(0) scale(0.95);
}

.product-carousel--coverflow .featured-cf-controls .product-carousel-dots {
  position: static;
  transform: none;
}

.featured-cf-scroll-hint {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 6;
  width: 34px;
  height: 34px;
  padding: 0.35rem;
  box-sizing: content-box;
  color: var(--gray-700, #374151);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 1;
  animation: featured-cf-scroll-hint 4s ease-in-out infinite;
}

.featured-cf-scroll-hint.is-hidden {
  /* reservado; el hint del featured se deja siempre visible */
  opacity: 1;
  animation: featured-cf-scroll-hint 4s ease-in-out infinite;
}

/* Táctil: no hay rueda que insinuar y el icono tapa la esquina de la foto.
 * (pointer: coarse) en vez de ancho: detecta el dispositivo, no la ventana. */
@media (pointer: coarse) {
  .featured-cf-scroll-hint,
  .featured-cf-scroll-hint.is-hidden {
    display: none;
  }
}

@keyframes featured-cf-scroll-hint {
  0%, 25%, 50%, 100% {
    transform: translateY(0);
  }
  12.5%, 37.5% {
    transform: translateY(24%);
  }
}

.featured-cf-boxes {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  perspective: 1400px;
  touch-action: pan-y;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: var(--featured-card-w);
  height: var(--featured-card-h);
  min-height: var(--featured-card-h);
  margin: 0;
  cursor: grab;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  overflow: hidden;
  isolation: auto;
  contain: none;
  will-change: transform, opacity;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card:hover img {
  transform: none;
}

/* Sombra descendente en TODAS las cards: ancla cada una al "piso" y da
 * profundidad al abanico. La central la refuerza. */
.product-carousel--coverflow .featured-cf-boxes > .product-card {
  box-shadow: 0 14px 22px -16px rgba(0, 0, 0, 0.22);
  /* Solo box-shadow: transform y opacity son de GSAP (inline). */
  transition: box-shadow 0.25s ease;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card.is-center {
  box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  /* box-reflect retirado: no estándar (solo WebKit) y duplicaba el pintado.
   * El acento del centro ahora es la sombra de piso (.featured-cf-stage::after). */
}

.product-carousel--coverflow .featured-cf-boxes > .product-card.is-dragging,
.product-carousel--coverflow .featured-cf-boxes > .product-card:active {
  cursor: grabbing;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  -webkit-user-drag: none;
  /* Sin filter: calidad original de cada foto. */
}

.product-carousel--coverflow .featured-cf-boxes > .product-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card--link:focus-visible {
  outline: 2px solid var(--red, #c41e24);
  outline-offset: 3px;
}

.product-carousel--coverflow .featured-cf-boxes > .product-card:not(.is-center) .product-overlay {
  pointer-events: none;
}

/* Overlay liviano e idéntico en todas (sin velo oscuro que aplasta fotos negras). */
.product-carousel--coverflow .featured-cf-boxes > .product-card .product-overlay,
.product-carousel--coverflow .featured-cf-boxes > .product-card.is-center .product-overlay,
.product-carousel--coverflow .featured-cf-boxes > .product-card:hover .product-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    rgba(0, 0, 0, 0) 68%
  );
}

.featured-cf-drag-proxy {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.product-carousel--coverflow.featured-cf-fallback .featured-cf-boxes {
  position: relative;
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.15rem 0.05rem 0.5rem;
  inset: auto;
  transform: none;
  perspective: none;
}

.product-carousel--coverflow.featured-cf-fallback .featured-cf-boxes > .product-card {
  position: relative;
  top: auto;
  left: auto;
  display: block !important;
  flex: 0 0 var(--featured-card-w);
  transform: none !important;
}

@media (max-width: 992px) {
  .product-carousel--coverflow {
    --featured-card-w: calc((100% - 1.15rem) / 2);
    --featured-card-h: clamp(280px, 38vw, 340px);
  }
}

@media (max-width: 768px) {
  .product-carousel--coverflow {
    --featured-card-w: calc((100% - 0.75rem) / 1.08);
    --featured-card-h: clamp(260px, 62vw, 320px);
  }
}

.product-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  container-type: inline-size;
  container-name: product-carousel;
  width: 100%;
}

.product-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.product-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.product-carousel-viewport.is-dragging .product-overlay-actions a {
  pointer-events: auto;
}

.product-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
  padding: 0.15rem 0.05rem 0.5rem;
}

.product-carousel-track > .product-card {
  flex: 0 0 calc((100cqi - 2 * 1.15rem) / 3);
  scroll-snap-align: start;
  min-height: clamp(320px, 28vw, 400px);
}

.product-carousel-track > .product-card--landscape {
  min-height: clamp(320px, 28vw, 400px);
}

.product-card--landscape {
  aspect-ratio: 16 / 10;
  min-height: clamp(320px, 28vw, 400px);
  height: auto;
}

.product-card--landscape img {
  min-height: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-card--landscape .product-overlay {
  padding: 1rem 1.2rem 1.1rem;
  align-items: stretch;
  overflow: visible;
}

.product-card--landscape .product-overlay h3 {
  margin-bottom: 0.65rem;
  padding-inline: 0.08em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  word-break: normal;
  hyphens: none;
  white-space: normal;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
}

.product-card--landscape .product-overlay .btn {
  padding: 0.48rem 0.85rem;
  font-size: 0.74rem;
}

.product-carousel-btn {
  position: absolute;
  top: calc(50% - 1.1rem);
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.82;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.home-products--featured .product-carousel-btn:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  background: var(--white);
  opacity: 1;
}

.product-carousel-btn:hover {
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  background: var(--white);
}

.product-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.home-products--featured .product-carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.product-carousel-btn--prev {
  left: -0.45rem;
}

.product-carousel-btn--next {
  right: -0.45rem;
}

.product-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1rem;
}

.product-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  /* Hit area ≥44px sin agrandar el punto visual */
  position: relative;
}

.product-carousel-dot::before {
  content: "";
  position: absolute;
  inset: -17px;
}

.product-carousel-dot:hover {
  background: var(--gray-500);
}

.product-carousel-dot.is-active {
  background: var(--red);
  transform: scale(1.15);
}

.home-success {
  padding-top: 3.5rem;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split p {
  color: var(--gray-700);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  contain: layout paint;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

/* Skeleton space before layout.js injects cards */
#featured-products:empty {
  min-height: clamp(300px, 26vw, 380px);
}

#projects-grid:empty {
  min-height: calc(2 * 320px + 1.35rem);
}

/* projects.html — tarjeta entera abre el configurador; un solo CTA abajo */
#projects-grid .product-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#projects-grid .product-card--link:focus-visible {
  outline: 2px solid var(--red, #c41e24);
  outline-offset: 3px;
}

#projects-grid .product-card--grid .product-overlay {
  justify-content: space-between;
  padding-bottom: 1.35rem;
}

#projects-grid .product-card--grid .product-overlay h3 {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 1.5rem 0.5rem 0.75rem;
}

#projects-grid .product-card--grid .product-overlay-actions {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  contain: layout;
  isolation: isolate;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.12) 72%,
    rgba(0, 0, 0, 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.15rem 1.2rem 1.25rem;
  color: var(--white);
  overflow: visible;
  transform: translateZ(0);
  transition: background 0.3s ease;
}

.product-card:hover .product-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.18) 75%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.product-overlay h3 {
  font-family: var(--font-brand);
  font-weight: 400;
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}

.product-overlay .btn {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.product-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  width: 100%;
}

.product-overlay-actions .btn-primary {
  margin: 0;
  white-space: nowrap;
}

/* Rugged 3D experience CTA — industrial, not a soft pill */
.btn-3d-experience {
  --animate-duration: 2s;
  --animate-delay: 0s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.72rem 1.15rem;
  min-height: 2.75rem;
  border-radius: 2px;
  border: 1px solid #8a1a1f;
  background:
    linear-gradient(180deg, #2a2a2c 0%, #141416 48%, #0c0c0e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  position: relative;
  transform-origin: center center;
}

.btn-3d-experience::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-on-dark) 0%, var(--red) 55%, var(--red-dark) 100%);
}

.btn-3d-experience:hover,
.btn-3d-experience:focus-visible {
  color: #fff;
  border-color: #b01f28;
  background:
    linear-gradient(180deg, #343438 0%, #1a1a1d 48%, #101012 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 16, 46, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.42);
}

.btn-3d-experience:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.product-overlay-actions .btn-3d-experience {
  padding-left: 1.25rem;
}

/* Hero: same industrial look; slightly larger for the first viewport */
.btn-3d-experience--hero {
  padding: 0.88rem 1.35rem;
  min-height: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.home-products {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 520px) {
  .btn-3d-experience--hero {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    white-space: normal;
    line-height: 1.2;
    text-align: left;
  }

  .hero-actions .btn-outline {
    width: 100%;
  }
}

/* Banner */
.banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lazy-bg {
  background-image: none;
}

.banner .container {
  position: relative;
  z-index: 1;
}

.banner h2 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
}

/* Accordion specs */
.specs {
  display: grid;
  gap: 1.5rem;
}

.spec-model-title {
  margin: 2.5rem 0 1rem;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-model-title:first-of-type {
  margin-top: 0;
}

.spec-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.spec-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.spec-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--gray-100);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.spec-header span {
  color: var(--red);
  font-size: 1.4rem;
  line-height: 1;
}

.spec-content {
  display: none;
  padding: 1rem 1.25rem 1.25rem;
}

.spec-content.open {
  display: block;
}

.spec-content ul {
  display: grid;
  gap: 0.45rem;
}

.spec-content li {
  padding-left: 1rem;
  position: relative;
  color: var(--gray-700);
}

.spec-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.contact-list svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font: inherit;
  /* ≥16px: evita zoom automático de Safari iOS (labels heredan 0.92rem ≈ 14.7px). */
  font-size: 16px;
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(200, 16, 46, 0.25);
  border-color: var(--red);
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* Dealer Locators */
.dealer-locator-hero {
  min-height: 28vh;
}

.dealer-locator-hero .hero-content {
  padding-block: 2.25rem 2.75rem;
}

.dealer-locator-page {
  content-visibility: visible;
}

.dealer-brands-band {
  padding: 1.35rem 0 0.85rem;
  background: linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dealer-brands-intro {
  text-align: center;
  margin-bottom: 0.75rem;
}

.dealer-brands-intro .section-label {
  margin-bottom: 0.2rem;
}

.dealer-brands-intro .section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.dealer-brands-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.dealer-brands-track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  padding: 0.2rem 0 0.55rem;
  will-change: transform;
  animation: dealer-brands-scroll var(--marquee-duration, 32s) linear infinite;
}

.dealer-brands-marquee:hover .dealer-brands-track {
  animation-play-state: paused;
}

.dealer-brands-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 140px;
  color: inherit;
  cursor: default;
  user-select: none;
}

.dealer-brand-logo,
.dealer-locator-card-logo,
.dealer-locator-pin-inner,
.dealer-locator-popup-logo {
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.dealer-brand-logo {
  width: 140px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  padding: 0.45rem 0.65rem;
}

.dealer-brand-logo img,
.dealer-locator-card-logo img,
.dealer-locator-popup-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* West Valley: mismo tamaño que el resto (no priorizar). Badge oficial oscuro → fondo oscuro. */
.dealer-brand-logo.is-dark,
.dealer-locator-card-logo.is-dark,
.dealer-locator-pin-inner.is-dark,
.dealer-locator-popup-logo.is-dark {
  background: #0f1115;
}

.dealer-brand-logo.is-fallback,
.dealer-locator-card-logo.is-fallback,
.dealer-locator-pin-inner.is-fallback,
.dealer-locator-popup-logo.is-fallback {
  background: var(--gray-100, #f4f4f5);
}

.dealer-locator-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-700, #374151);
  text-transform: uppercase;
  user-select: none;
}

.dealer-locator-pin-inner.is-fallback .dealer-locator-logo-fallback {
  font-size: 0.62rem;
}

.dealer-brands-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600, #5b6470);
}

@keyframes dealer-brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-brands-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 72rem;
    margin: 0 auto;
    padding-inline: 1rem;
  }
}

.dealer-locator-main {
  padding: 1.75rem 0 1.5rem;
  background: #fff;
}

.dealer-locator-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.15rem;
}

.dealer-locator-heading .section-label {
  margin-bottom: 0.15rem;
}

.dealer-locator-heading .section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.dealer-locator-intro {
  max-width: none;
  margin: 0;
  color: var(--gray-600, #5b6470);
  font-size: 0.98rem;
  line-height: 1.45;
}

.dealer-locator-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.dealer-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dealer-filter-chip {
  appearance: none;
  border: 1px solid var(--gray-200, #e5e7eb);
  background: #fff;
  color: var(--gray-800, #1f2937);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dealer-filter-chip span {
  color: var(--gray-500, #6b7280);
  font-weight: 700;
}

.dealer-filter-chip.is-active {
  border-color: var(--red, #c8102e);
  background: rgba(200, 16, 46, 0.06);
  color: var(--red, #c8102e);
}

.dealer-filter-chip.is-active span {
  color: var(--red, #c8102e);
}

.dealer-filter-search input {
  width: 100%;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.dealer-locator-count {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600, #5b6470);
}

.dealer-locator-brand {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red, #c8102e);
}

.dealer-locator-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  color: var(--gray-600, #5b6470);
  text-align: center;
}

.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;
}

.dealer-locator-map .marker-cluster-small,
.dealer-locator-map .marker-cluster-medium,
.dealer-locator-map .marker-cluster-large {
  background-color: rgba(200, 16, 46, 0.18);
}

.dealer-locator-map .marker-cluster-small div,
.dealer-locator-map .marker-cluster-medium div,
.dealer-locator-map .marker-cluster-large div {
  background-color: var(--red, #c8102e);
  color: #fff;
  font-weight: 700;
}

.dealer-locator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.dealer-locator-map-wrap {
  margin-top: 0;
  min-height: 380px;
  height: 100%;
}

.dealer-locator-map {
  width: 100%;
  height: 380px;
  min-height: 380px;
  background: #e8ecf1;
}

.dealer-locator-map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-600, #5b6470);
}

.dealer-locator-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow: auto;
  padding-right: 0.2rem;
}

.dealer-locator-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dealer-locator-card.is-active {
  border-color: var(--red, #c8102e);
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.dealer-locator-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  padding: 0.3rem;
}

.dealer-locator-popup-logo {
  width: 88px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.4rem;
}

.dealer-locator-card-body h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dealer-locator-city {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800, #1f2937);
}

.dealer-locator-address,
.dealer-locator-phone {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--gray-600, #5b6470);
}

.dealer-locator-phone {
  display: inline-block;
  color: var(--red, #c8102e);
  text-decoration: none;
}

.dealer-locator-phone:hover {
  text-decoration: underline;
}

.dealer-locator-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.dealer-locator-pin {
  background: transparent !important;
  border: 0 !important;
}

.dealer-locator-pin-inner {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--red, #c8102e);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
  padding: 5px;
}

/* Leaflet sets max-width:none on marker imgs; pin logos must use fixed px. */
.dealer-locator-pin-inner img {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
}

.dealer-locator-pin-inner.is-dark {
  border-color: var(--red, #c8102e);
}

.dealer-locator-pin-tip {
  display: block;
  width: 0;
  height: 0;
  margin: -2px auto 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--red, #c8102e);
}

.dealer-locator-popup {
  min-width: 160px;
}

.dealer-locator-popup strong {
  display: block;
  margin-bottom: 0.25rem;
}

.dealer-locator-popup p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
}

.dealer-locator-cta.cta-band {
  padding: 1.75rem 0;
}

.dealer-locator-cta .cta-band-inner {
  gap: 1.25rem 2rem;
}

.dealer-locator-cta .section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin: 0 0 0.35rem;
}

.dealer-locator-cta p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .dealer-locator-heading {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .dealer-locator-filters {
    grid-template-columns: 1fr;
  }

  .dealer-locator-layout {
    grid-template-columns: 1fr;
  }

  .dealer-locator-list {
    max-height: none;
  }

  .dealer-locator-map,
  .dealer-locator-map-wrap {
    min-height: 300px;
    height: 300px;
  }

  .dealer-locator-cta .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */
.footer {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  padding: 3.25rem 0 1.25rem;
  overflow: hidden;
  background: #0c0e14;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 20, 0.82);
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin: 0 0 1.1rem;
  color: var(--orange);
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-links li {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

/* Natural logo-dark.png is 300×120 (2.5:1). Keep width:auto so height:56 → ~140×56, no squash. */
.footer-brand img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  margin: 0 0 1.15rem;
  max-width: 340px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--orange);
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-hours li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-hours svg {
  color: var(--orange);
  flex-shrink: 0;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-cookie-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: #fff;
}

/* Analytics consent — corner card; does not block the page */
.cookie-consent {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 12000;
  width: min(22.5rem, calc(100vw - 2rem));
  max-width: calc(100vw - 5.5rem);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(18, 20, 24, 0.96);
  color: #f3f4f6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(243, 244, 246, 0.92);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-consent-actions .btn {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cookie-consent-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.cookie-consent-reject:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 4.75rem;
    width: auto;
    max-width: none;
  }
}

body.showroom-fs-active .cookie-consent,
body.air-spin-active .cookie-consent,
body.model-viewer-dealer-fs .cookie-consent,
body.veqor-event-banner-open .cookie-consent {
  display: none;
}

.footer-social {
  margin-top: 1.75rem;
}

.footer-social-title {
  margin-bottom: 0.9rem;
}

.footer-social-links {
  display: flex;
  justify-content: flex-start;
  gap: 0.85rem;
}

.footer a.footer-social-btn {
  color: var(--orange);
}

.footer-social-btn {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--orange);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer a.footer-social-btn:hover,
.footer-social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Floating actions — above NATDA banner (10050) and modals */
.float-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 11000;
  pointer-events: auto;
}

.float-btn {
  min-height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem 0 0.85rem;
  box-shadow: var(--shadow);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(200, 16, 46, 0.28);
}

.float-btn.email {
  background: var(--red);
}

.float-btn-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Responsive */
@media (max-width: 980px) {
  .split,
  .contact-grid,
  .footer-grid,
  .products-grid,
  .stats-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-carousel-track > .product-card {
    flex-basis: calc((100cqi - 1.15rem) / 2);
    min-height: clamp(280px, 38vw, 340px);
  }

  .product-card--landscape {
    min-height: clamp(280px, 38vw, 340px);
  }

  #projects-grid:empty {
    min-height: calc(4 * 320px + 3 * 1.35rem);
  }
}

@media (max-width: 768px) {
  #site-header {
    min-height: var(--header-min-h-mobile);
  }

  #site-header.is-compact {
    min-height: 0;
  }

  #site-footer {
    min-height: 560px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    text-align: left;
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 0;
    align-items: center;
  }

  .topbar {
    min-height: 0;
  }

  .navbar-inner {
    min-height: 52px;
  }

  .logo-block {
    flex-direction: row;
    gap: 0.35rem;
    align-items: center;
  }

  .logo-tagline {
    display: none;
  }

  /* Contacto ya está en utility-bar / footer — ahorra ~150px de chrome. */
  .topbar-meta {
    display: none;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .topbar .lang-toggle {
    display: none;
  }

  .lang-toggle-nav {
    display: inline-flex;
  }

  .mobile-toggle {
    display: block;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding-bottom: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .split,
  .contact-grid,
  .footer-grid,
  .stats-grid,
  .products-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stable height (was min-height:auto) — prevents font/content CLS in home hero */
  .hero:not(.page-hero) {
    min-height: 70vh;
  }

  .hero.hero-with-video {
    min-height: max(70vh, 440px);
  }

  .hero.page-hero {
    min-height: 42vh;
  }

  .hero-content {
    padding: 4rem 0 5rem;
  }

  .product-carousel-track > .product-card {
    flex-basis: calc((100cqi - 0.75rem) / 1.08);
    min-height: clamp(260px, 62vw, 320px);
  }

  .featured-series-header {
    margin-bottom: 2rem;
  }

  .featured-series-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.7rem;
  }

  .featured-series-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    gap: 0.38em;
    letter-spacing: 0.12em;
  }

  .product-card--landscape {
    min-height: clamp(260px, 62vw, 320px);
  }

  .home-products--featured .product-carousel {
    margin-inline: 0;
  }

  .product-carousel-btn {
    width: 44px;
    height: 44px;
  }

  .product-carousel-btn--prev {
    left: 0.15rem;
  }

  .product-carousel-btn--next {
    right: 0.15rem;
  }

  #featured-products:empty {
    min-height: clamp(260px, 62vw, 320px);
  }

  #projects-grid:empty {
    min-height: calc(8 * 320px + 7 * 1.35rem);
  }

  .utility-links {
    justify-content: center;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .float-btn {
    width: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .float-btn-label {
    display: none;
  }
}

/* Utility bar */
.utility-bar {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
}

.utility-inner {
  display: flex;
  justify-content: flex-end;
  padding: 0.45rem 0;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.utility-links a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.utility-links a:hover {
  color: var(--orange-on-dark);
}

/* Empty utility strip keeps a visible black band */
.utility-inner:empty {
  min-height: 0.55rem;
}

/*
 * Home: white topbar (opaque). Video starts below it.
 * Navbar stays glass and sits over the top of the hero.
 */
body[data-page="home"] {
  --home-nav-h: 52px;
  --home-solid-h: 96px; /* utility + white topbar (desktop) */
}

body[data-page="home"] #site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  min-height: 0;
  background: transparent;
}

body[data-page="home"] #site-header.is-compact {
  background: #ffffff;
}

body[data-page="home"] .utility-bar {
  background: var(--gray-900);
}

body[data-page="home"] .topbar {
  background: #ffffff;
  border-top: none;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 3;
}

body[data-page="home"] .navbar {
  position: relative;
  z-index: 2;
  background: rgba(12, 12, 14, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body[data-page="home"] #site-header.is-compact .navbar {
  background: var(--black);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-page="home"] .hero.hero-with-video {
  /* Pull under glass nav only — never under the white topbar */
  margin-top: calc(-1 * var(--home-nav-h));
  padding-top: var(--home-nav-h);
  min-height: calc(100svh - var(--home-solid-h));
}

body[data-page="home"] .hero-with-video .hero-content {
  padding-top: 2.75rem;
  padding-bottom: 6rem;
}

/* B10: poster-only hasta 960px (mismo umbral showroom móvil). */
@media (max-width: 960px) {
  .hero-with-video .hero-video {
    display: none;
  }
}

/* B5: Air Spin solo desktop (>960). Teléfonos/tablets: ocultar CTA. */
@media (max-width: 960px) {
  .btn-3d--air-spin,
  .product-models-item [data-air-spin] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] {
    --home-solid-h: 112px; /* utility + compact topbar (sin meta pills) */
    --home-nav-h: 52px;
  }

  body[data-page="home"] .hero.hero-with-video {
    min-height: max(calc(100svh - var(--home-solid-h)), 420px);
  }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  contain: layout paint;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  color: var(--gray-700);
  font-style: italic;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Manufacturing */
.mfg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mfg-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.mfg-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-700);
}

.mfg-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.mfg-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mfg-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* FAQ */
.faq-block {
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Services page */
.service-cards,
.fabric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card,
.fabric-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.service-card h3,
.fabric-card h3 {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.service-card p,
.fabric-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.6;
}

.services-note {
  margin: 1.75rem 0 0;
  max-width: 760px;
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.6;
}

.fabric-card.is-pending {
  position: relative;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 55%);
  /* Solid (no dashed): less “broken WIP” for owner demos */
  border-style: solid;
  border-color: var(--gray-200);
}

.fabric-card-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.home-services-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.home-services-list li {
  color: var(--gray-700);
  padding-left: 1.35rem;
  position: relative;
}

.home-services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 980px) {
  .service-cards,
  .fabric-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .service-cards,
  .fabric-cards {
    grid-template-columns: 1fr;
  }
}

/* Spec tables */
.spec-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--gray-200);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.spec-table th {
  background: var(--gray-100);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.spec-table tr:nth-child(even) td {
  background: #fafafa;
}

.spec-variant-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: 2rem 0 0.5rem;
  color: var(--red);
}

.product-narrative {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 720px;
  margin-bottom: 1rem;
}

/* Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid-2 .full {
  grid-column: 1 / -1;
}

.form-required-note {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin: 0.35rem 0 1.25rem;
}

.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-turnstile {
  margin: 0.75rem 0 1rem;
  min-height: 65px;
}

.intent-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}

.intent-option {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.intent-option.is-active {
  background: var(--white);
  border-color: rgba(200, 16, 46, 0.45);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.08);
}

.intent-panel-intro {
  color: var(--gray-600);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.intent-panel[hidden] {
  display: none !important;
}

.form-help {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  max-width: 720px;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.45;
}

.form-section {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-section legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 1rem;
  padding: 0;
}

.form-section-grid {
  width: 100%;
}

.field-label {
  gap: 0.45rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.field-required {
  color: var(--red);
  font-weight: 700;
  line-height: 1;
}

.form-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.dealer-form,
.portal-form {
  max-width: 760px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.portal-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.92rem;
  text-align: center;
}

.dealer-password-hint {
  margin: -0.25rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
}

@media (max-width: 980px) {
  .mfg-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Dealer application flow */
/* Dealer privacy notice modal + consent */
.dealer-privacy-consent {
  display: grid;
  gap: 1rem;
}

.dealer-consent-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fafafa;
}

.dealer-consent-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.dealer-consent-status {
  margin: 0;
  font-weight: 700;
  color: var(--gray-800, #1f2937);
}

.dealer-consent-status.is-accepted,
.dealer-consent-status.is-on {
  color: #166534;
}

.dealer-consent-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--gray-500);
}

.dealer-consent-block .btn {
  flex: 0 0 auto;
  white-space: normal;
  text-align: center;
}

.dealer-privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.dealer-privacy-modal[hidden] {
  display: none !important;
}

.dealer-privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.dealer-privacy-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.dealer-privacy-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-200);
}

.dealer-privacy-header h2 {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.3;
}

.dealer-privacy-lang {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.dealer-privacy-lang-btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: var(--gray-600, #4b5563);
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.dealer-privacy-lang-btn.is-active {
  background: var(--gray-900, #111827);
  color: #fff;
}

.dealer-privacy-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
}

.dealer-privacy-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.15rem 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.dealer-privacy-article h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}

.dealer-privacy-article h3:first-child {
  margin-top: 0;
}

.dealer-privacy-article p {
  margin: 0;
  color: var(--gray-600, #4b5563);
  line-height: 1.55;
  font-size: 0.94rem;
}

.dealer-privacy-footer {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1.15rem 1.1rem;
  border-top: 1px solid var(--gray-200);
  background: #fafafa;
}

.dealer-privacy-scroll-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--gray-500);
}

.dealer-privacy-scroll-hint.is-ready {
  color: #166534;
}

.dealer-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.dealer-privacy-actions .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.dealer-file-warning {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.dealer-file-warning p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.dealer-file-warning-url code {
  word-break: break-all;
  font-size: 0.85rem;
}

.dealer-file-warning .btn {
  margin-top: 0.75rem;
}

.dealer-file-ok {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

.dealer-flow-steps {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  flex-wrap: wrap;
}

.dealer-flow-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.dealer-flow-step > span:first-child {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  font-size: 0.8rem;
}

.dealer-flow-step.is-active {
  background: rgba(194, 65, 12, 0.12);
  color: var(--orange);
}

.dealer-flow-step.is-active > span:first-child,
.dealer-flow-step.is-done > span:first-child {
  background: var(--orange);
  color: #fff;
}

.dealer-flow-step.is-done {
  color: var(--gray-700);
}

.dealer-flow-panel {
  max-width: 520px;
  margin: 0 auto;
}

.dealer-flow-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.65rem;
}

.dealer-flow-panel p {
  margin: 0 0 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.dealer-dev-code {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 3px solid #f59e0b;
  background: #fef3c7;
  color: #78350f;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.dealer-dev-code-value {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
}

.dealer-verify-form input[name="code"] {
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  text-align: center;
  font-weight: 700;
}

.dealer-flow-panel--success {
  text-align: center;
}

.dealer-flow-success .btn {
  margin-top: 0.5rem;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-success {
  color: #15803d;
}

.dealer-verify-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dealer-dashboard-label {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
}

.dealer-dashboard-meta {
  margin: 0.25rem 0 0;
  color: var(--gray-600);
}

/* Dealer portal (catalog + cart) */
.dealer-portal-section {
  padding-top: 2.5rem;
}

.dealer-portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.dealer-portal-title {
  margin: 0.15rem 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
}

.dealer-portal-catalog-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(20, 24, 33, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

.dealer-portal-catalog-intro-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.dealer-stock-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1d24;
  cursor: pointer;
  user-select: none;
}

.dealer-stock-filter input {
  width: 1rem;
  height: 1rem;
  accent-color: #c41230;
}

.dealer-card-actions-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 24, 33, 0.08);
}

.dealer-card--compact .dealer-card-actions-block {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
}

.dealer-card-path-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.dealer-avail.is-low {
  background: #b45309;
  color: #fff;
}

.dealer-cart-kind {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.dealer-cart-kind.is-stock {
  background: #e8f5e9;
  color: #1b5e20;
}

.dealer-cart-kind.is-mto {
  background: #eef2ff;
  color: #3730a3;
}

.dealer-cf-buy .dealer-card-path-label {
  width: 100%;
  margin-bottom: 0.35rem;
}

.dealer-portal-mode-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.5rem;
  border: 2px solid rgba(200, 16, 46, 0.22);
  border-left: 5px solid var(--red);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.06) 0%, rgba(255, 255, 255, 0.98) 42%, var(--white) 100%);
  box-shadow:
    0 4px 0 rgba(200, 16, 46, 0.08),
    0 14px 40px rgba(200, 16, 46, 0.1),
    0 8px 28px rgba(17, 24, 39, 0.06);
}

.dealer-portal-mode-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.dealer-portal-mode-copy .dealer-dashboard-label {
  margin-bottom: 0.35rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dealer-portal-mode-hint {
  max-width: 520px;
  margin: 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.dealer-portal-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  flex: 0 0 auto;
  width: min(100%, 420px);
  padding: 0.45rem;
  border: 2px solid rgba(200, 16, 46, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dealer-portal-mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.dealer-portal-mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--gray-500);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dealer-portal-mode-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dealer-portal-mode-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
}

.dealer-portal-mode-tab small {
  color: var(--gray-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
  text-wrap: balance;
}

.dealer-portal-mode-tab:hover:not(.is-active) {
  background: var(--white);
  border-color: rgba(200, 16, 46, 0.2);
  color: var(--gray-900);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.dealer-portal-mode-tab:hover:not(.is-active) .dealer-portal-mode-icon {
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
}

.dealer-portal-mode-tab.is-active {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  border-color: var(--red-dark);
  color: var(--white);
  box-shadow:
    0 6px 20px rgba(200, 16, 46, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.dealer-portal-mode-tab.is-active .dealer-portal-mode-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.dealer-portal-mode-tab.is-active small {
  color: rgba(255, 255, 255, 0.88);
}

.dealer-portal-mode-tab:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 3px;
}

.dealer-portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.dealer-portal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.dealer-portal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dealer-chip {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  max-width: 100%;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dealer-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.dealer-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.dealer-portal-search {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 240px;
}

.dealer-portal-search:focus {
  outline: none;
  border-color: var(--red);
}

.dealer-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.95rem;
  align-items: stretch;
}

.dealer-catalog-empty {
  color: var(--gray-500);
  padding: 2rem 0;
}

/* ── Series / Special Edition section dividers ── */
.dealer-series-header {
  grid-column: 1 / -1;
  padding: 0.35rem 0 0.2rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 0.15rem;
}
.dealer-series-header--se {
  margin-top: 0.35rem;
  border-bottom-color: #c9a84c;
}
.dealer-series-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.dealer-series-header--se .dealer-series-title {
  color: #8b6914;
}
.dealer-se-subtitle {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.dealer-series-grid {
  display: contents;
}
.dealer-card.is-3d-mode .dealer-card-cart-action .btn-3d,
.dealer-card.is-3d-mode .dealer-3d-primary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: var(--orange, #c2410c);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
}

.dealer-card.is-3d-mode .dealer-3d-primary:hover:not(:disabled) {
  background: #a3380a;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.28);
  transform: translateY(-1px);
}

.dealer-card.is-3d-mode .dealer-3d-primary .spinner {
  --slot: 22px;
  flex-shrink: 0;
}

.dealer-card.is-3d-mode .dealer-3d-primary .btn-3d-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.dealer-card-stock-meta {
  display: grid;
  gap: 0.25rem;
  margin: 0.1rem 0 0.15rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: #f3f5f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dealer-card-stock-color {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--gray-700);
  line-height: 1.25;
}

.dealer-card-stock-color strong {
  color: var(--gray-900);
  font-weight: 700;
}

.dealer-card-stock-color em {
  font-style: normal;
  color: #15803d;
  font-weight: 600;
}

.dealer-card-stock-more {
  font-size: 0.65rem;
  color: var(--gray-500);
}

.dealer-color-dot--lg {
  width: 14px;
  height: 14px;
}

.dealer-card-3d-soon {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.8rem;
}
.dealer-card.is-special-edition {
  border-color: #c9a84c;
}

.dealer-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}

.dealer-card--compact {
  font-size: 0.88rem;
}

.dealer-card.is-out {
  opacity: 0.96;
}

.dealer-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.dealer-card-media {
  position: relative;
  aspect-ratio: 16 / 8;
  background: var(--gray-100);
  overflow: hidden;
}

.dealer-card--compact .dealer-card-media {
  aspect-ratio: 16 / 7;
  max-height: 88px;
}

.dealer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
}

.dealer-card-noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eceff3 0%, #dfe3ea 100%);
}

.dealer-avail {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  max-width: calc(100% - 1.2rem);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--gray-700);
  white-space: normal;
  text-wrap: balance;
}

.dealer-avail.is-available { background: #15803d; }
.dealer-avail.is-soon { background: #b45309; }
.dealer-avail.is-order { background: #6d28d9; }
.dealer-avail.is-none { background: var(--gray-500); }

.dealer-card-body {
  padding: 0.55rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.dealer-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.dealer-card-sku {
  margin: 0;
  font-size: 0.68rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dealer-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--gray-500);
}

.dealer-card-opts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dealer-card-opts:empty {
  display: none;
}

.dealer-stock.is-ok {
  color: #15803d;
  font-weight: 600;
  font-size: 0.75rem;
}

.dealer-stock.is-none {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.75rem;
}

.dealer-order-kind {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dealer-order-kind.is-stock {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

.dealer-order-kind.is-mto {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

.dealer-spec strong {
  color: var(--gray-900);
}

.dealer-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dealer-card.is-highlight {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.45);
  transform: translateY(-2px);
}

.dealer-card-cart-action {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.dealer-card--compact .dealer-card-cart-action .add-to-cart {
  max-width: 100%;
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  overflow: visible;
  box-sizing: border-box;
}

.dealer-card--compact .dealer-card-cart-action .add-to-cart span {
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: normal;
  text-wrap: balance;
}

.dealer-card-cart-action.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.dealer-card-actions-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dealer-card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
}

.dealer-card--compact .dealer-card-footer {
  flex-direction: column;
  align-items: stretch;
}

.dealer-card--compact .dealer-card-footer .dealer-qty {
  align-self: flex-end;
}

.dealer-card--compact .dealer-qty-input {
  width: 3.2rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.8rem;
}

.dealer-se-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  color: #5c4810;
  background: #f5e6b8;
}

.dealer-card-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--red);
}

.dealer-card-price--quote {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gray-800);
  line-height: 1.25;
  text-wrap: balance;
}

.dealer-card--compact .dealer-card-price:not(.dealer-card-price--quote) {
  font-size: 0.98rem;
}

.dealer-price-estimate {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500, #64748b);
  line-height: 1.3;
}

.dealer-catalog-empty--stock {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.dp-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-500, #64748b);
}
.dp-empty-state p { margin: 0 0 0.5rem; }
.dp-empty-hint { font-size: 0.875rem; opacity: 0.8; }

/* ── Stock section compact cards ── */
#dealer-stock .dp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 192px));
  justify-content: start;
  gap: 0.65rem;
}
.dealer-stock-card {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  max-width: 192px;
  transition: box-shadow 0.15s ease;
  font-size: 0.82rem;
}
.dealer-stock-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dealer-stock-card-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 108px;
  max-height: 108px;
  background: var(--gray-100);
  overflow: hidden;
}
@supports (aspect-ratio: 16 / 9) {
  .dealer-stock-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 108px;
  }
}
.dealer-stock-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 108px;
  object-fit: cover;
  object-position: center;
}
.dealer-stock-card-media .dealer-avail {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}
.dealer-stock-card-body {
  padding: 0.45rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-height: 0;
}
.dealer-stock-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dealer-stock-card-meta {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin: 0;
}
.dealer-stock-incomplete {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--amber-700, #b45309);
  background: var(--amber-50, #fffbeb);
  border: 1px solid var(--amber-200, #fde68a);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin-top: 0.15rem;
  align-self: flex-start;
}
.dealer-stock-card-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.dealer-stock-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-900);
}
.dealer-stock-price.is-request {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.dealer-stock-card-footer .btn,
.dealer-stock-card-footer .add-to-cart {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  margin-left: auto;
  max-width: 100%;
}

.dealer-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dealer-qty-input {
  width: 3.5rem;
  min-width: 3.5rem;
  box-sizing: border-box;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.35rem 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--gray-900);
  -moz-appearance: textfield;
  appearance: textfield;
}

.dealer-qty-input::-webkit-outer-spin-button,
.dealer-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dealer-qty-input:disabled {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* Stock real por producto */
.dealer-stock {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
  margin: 0.15rem 0 0.1rem;
}

.dealer-stock.is-none {
  color: var(--red);
  font-weight: 700;
}

.dealer-stock.is-order {
  color: var(--gray-700);
}

.dealer-stock-mto-hint {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gray-600);
}

.dealer-stock-included {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 600;
  color: #15803d;
}

.model-cart-nostock {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.22);
  color: var(--gray-800);
  font-size: 0.82rem;
  line-height: 1.35;
}

.model-cart-nostock strong {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.model-cart-stockstatus {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.model-cart-stockstatus.is-stock {
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.28);
  color: var(--gray-800);
}

.model-cart-stockstatus.is-stock strong {
  display: block;
  color: #15803d;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* Toast ligero del portal de dealers */
.dealer-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(1rem);
  background: #111;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 13050;
  max-width: min(90vw, 420px);
  text-align: center;
}

.dealer-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dealer-toast.is-success { background: #15803d; }
.dealer-toast.is-warn { background: #b45309; }
.dealer-toast.is-error { background: var(--red); }

/* Toast de notificaciones (estilo admin: título + cuerpo) */
.dealer-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 13060;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.dealer-toast-card {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  text-align: left;
  cursor: pointer;
  color: inherit;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dealer-toast-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dealer-toast-card.is-reviewed {
  border-left: 3px solid #2563eb;
}

.dealer-toast-card.is-closed {
  border-left: 3px solid #15803d;
}

.dealer-toast-card-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 16, 46, 0.08);
  color: var(--red);
}

.dealer-toast-card-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.dealer-toast-card-text strong {
  font-size: 0.88rem;
  color: var(--gray-900);
}

.dealer-toast-card-text span {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.35;
}

/* Modal de confirmación del pedido */
.dealer-confirm {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dealer-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(2px);
}

.dealer-confirm-panel {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 88vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: dealer-confirm-in 0.18s ease-out;
  box-sizing: border-box;
}

@keyframes dealer-confirm-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dealer-confirm-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.5rem;
}

.dealer-confirm-sub {
  margin: 0 0 1rem;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.dealer-confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dealer-confirm-table th,
.dealer-confirm-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.dealer-confirm-table th:first-child,
.dealer-confirm-table td:first-child {
  width: 46%;
  min-width: 0;
}

.dealer-confirm-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.dealer-confirm-num {
  text-align: right;
  white-space: nowrap;
}

.dealer-confirm-sku {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 400;
}

.dealer-confirm-notes {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  background: var(--gray-100);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
}

.dealer-confirm-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  min-width: 0;
}

.dealer-confirm-total strong {
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dealer-confirm-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: rgba(200, 16, 46, 0.06);
}

.dealer-confirm-notice__lead {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-900, #1a1a1a);
}

.dealer-confirm-notice__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gray-700);
}

.dealer-confirm-disclaimer {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: rgba(15, 15, 16, 0.04);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Override global label{display:grid} + input{width:100%} (estiraba el checkbox). */
.dealer-confirm-ack {
  display: flex !important;
  grid-template-columns: none;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.95rem 0 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100, #f4f4f5);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  color: var(--gray-900, #1a1a1a);
  box-sizing: border-box;
  max-width: 100%;
}

.dealer-confirm-ack span {
  min-width: 0;
  flex: 1 1 auto;
}

.dealer-confirm-ack input[type="checkbox"] {
  width: 1.15rem !important;
  min-width: 1.15rem;
  max-width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0 !important;
  flex-shrink: 0;
  align-self: flex-start;
  accent-color: var(--red, #c8102e);
  border: 1px solid var(--gray-300, #d4d4d8);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  appearance: auto;
}

.dealer-confirm-ack-hint {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--red, #c8102e);
}

.dealer-confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.dealer-confirm-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* Cart */
.dealer-cart {
  position: sticky;
  top: 1.5rem;
  padding: 1.35rem;
  transition: box-shadow 0.3s ease;
}

.dealer-cart.is-flash {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.35);
}

.dealer-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.dealer-cart-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.35rem;
}

.dealer-cart-sync-alert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(153, 27, 27, 0.1);
  border: 1px solid rgba(153, 27, 27, 0.35);
  color: #7f1d1d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.dealer-cart-count {
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.dealer-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dealer-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-100);
}

.dealer-cart-item-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.dealer-cart-item-price {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.dealer-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dealer-step {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.dealer-step:hover {
  border-color: var(--red);
  color: var(--red);
}

.dealer-cart-item-qty {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
}

.dealer-cart-remove {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}

.dealer-cart-remove:hover {
  color: var(--red);
}

.dealer-cart-empty {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin: 0.5rem 0;
}

.dealer-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 1rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  min-width: 0;
}

.dealer-cart-total > span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

.dealer-cart-total strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  color: var(--red);
  text-align: right;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.dealer-cart-notes-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.dealer-cart-notes-label textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.55rem;
  font-family: inherit;
  resize: vertical;
}

.dealer-cart-submit {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-wrap: balance;
  line-height: 1.25;
  padding: 0.85rem 1rem;
}

.dealer-card--compact .dealer-quote-request-btn,
.dealer-card--compact .dealer-configure-btn,
.dealer-card--compact .dealer-card-cart-action .btn,
.dealer-card--compact .dealer-3d-primary,
.dealer-card--compact .dealer-card-cart-action .btn-3d-experience {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal !important;
  text-wrap: balance;
  line-height: 1.25;
  text-align: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.dealer-card--compact .dealer-configure-btn--compact {
  font-size: 0.76rem;
  padding: 0.5rem 0.6rem;
}

/* My requests */
.dealer-quotes {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}

.dealer-quotes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dealer-quotes-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
}

.dealer-quotes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.dealer-quotes-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.dealer-quotes-empty {
  color: var(--gray-500);
}

.dealer-quote-month {
  display: grid;
  gap: 0.55rem;
}

.dealer-quote-month-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dealer-quote-month-count {
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.7rem;
  text-align: center;
}

.dealer-quote-month-list {
  display: grid;
  gap: 0.55rem;
}

.dealer-quote {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

.dealer-quote-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dealer-quote-summary:hover {
  background: #fafafa;
}

.dealer-quote.is-open .dealer-quote-summary {
  border-bottom: 1px solid var(--gray-100);
  background: #fafafa;
}

.dealer-quote-summary-main {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.dealer-quote-summary-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}

.dealer-quote-type {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.dealer-quote-summary-meta {
  color: var(--gray-500);
  font-size: 0.74rem;
}

.dealer-quote-summary-total {
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
}

.dealer-quote-summary-total.is-pending {
  color: #9a3412;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.dealer-quote-chevron {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dealer-quote-chevron::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.16rem;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin 0.15s ease;
}

.dealer-quote-summary:hover .dealer-quote-chevron {
  border-color: var(--gray-500);
  background: var(--gray-100);
}

.dealer-quote.is-open .dealer-quote-chevron::before {
  margin-top: 0.16rem;
  transform: rotate(225deg);
}

/* Desplegable anidado: se lee como contenido de la tarjeta, no como otra tarjeta. */
.dealer-quote-body {
  padding: 0 1rem 1rem 1.85rem;
  background: #fafafa;
}

.dealer-quote-body-inner {
  position: relative;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  background: var(--white);
}

.dealer-quote-body-inner::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: -0.9rem;
  width: 0.9rem;
  height: 1.4rem;
  border-bottom: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
  border-bottom-left-radius: 8px;
}

.dealer-quote-body-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dealer-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.dealer-quote-ref {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.dealer-quote-date {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.dealer-quote-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--gray-500);
  white-space: nowrap;
}

.dealer-quote-status.is-submitted { background: #b45309; }
.dealer-quote-status.is-in-progress { background: #1d4ed8; }
.dealer-quote-status.is-quoted { background: #0369a1; }
.dealer-quote-status.is-accepted { background: #15803d; }
.dealer-quote-status.is-cancelled { background: #b91c1c; }
.dealer-quote-status.is-legacy-closed { background: #52525b; }

.dealer-quote-items {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--gray-700);
  list-style: none;
}

.dealer-quote-item {
  padding: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #f8fafc;
}

.dealer-quote-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dealer-quote-item-head strong {
  display: block;
  color: var(--gray-900);
  font-size: 0.92rem;
  line-height: 1.4;
}

.dealer-quote-qty {
  color: var(--red);
}

.dealer-quote-sku {
  display: block;
  margin-top: 0.12rem;
  color: var(--gray-500);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.dealer-quote-line-state {
  flex: 0 0 auto;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dealer-quote-line-state.is-pending {
  background: #fff7ed;
  color: #9a3412;
}

.dealer-quote-detail {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.dealer-quote-detail-label {
  padding-top: 0.22rem;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dealer-quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dealer-quote-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.55rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.72rem;
}

.dealer-quote-swatch {
  width: 0.68rem;
  height: 0.68rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  background: var(--swatch, transparent);
}

.dealer-quote-none {
  padding-top: 0.22rem;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.dealer-quote-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--gray-200);
}

.dealer-quote-prices > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.dealer-quote-prices span {
  color: var(--gray-500);
  font-size: 0.74rem;
}

.dealer-quote-prices strong {
  color: var(--gray-900);
  font-size: 0.8rem;
}

.dealer-quote-prices strong del {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 500;
}

.dealer-quote-prices .dealer-quote-discount {
  flex-basis: 100%;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
}

.dealer-quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.dealer-quote-total > div {
  display: grid;
  gap: 0.15rem;
}

.dealer-quote-total small {
  color: #9a3412;
  font-size: 0.72rem;
}

.dealer-quote-total strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.dealer-quote-total strong.is-pending {
  color: #9a3412;
  font-family: inherit;
  font-size: 0.88rem;
}

.dealer-quote-total.is-discounted {
  align-items: flex-end;
  gap: 1rem;
}

.dealer-quote-total-rows {
  flex: 1;
}

.dealer-quote-total-rows > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gray-600);
  font-size: 0.78rem;
}

.dealer-quote-total-rows em {
  font-style: normal;
}

.dealer-quote-total-rows b {
  color: var(--gray-800);
}

.dealer-quote-total-rows .is-discount,
.dealer-quote-total-rows .is-discount b {
  color: #15803d;
}

.dealer-quote-net {
  display: grid;
  gap: 0.15rem;
  text-align: right;
}

.dealer-quote-net > span {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dealer-official-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgb(29 78 216 / 24%);
  border-radius: 0.75rem;
  background: rgb(239 246 255 / 80%);
}

.dealer-official-quote > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.dealer-official-quote strong {
  color: #1e3a8a;
  font-size: 0.9rem;
}

.dealer-official-quote small {
  color: var(--gray-600);
  font-size: 0.75rem;
}

.dealer-official-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .dealer-quote-summary {
    flex-direction: column;
    padding: 0.85rem 0.9rem;
  }

  .dealer-quote-summary-side {
    width: 100%;
    justify-content: space-between;
  }

  .dealer-official-quote {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-quote-body {
    padding: 0 0.7rem 0.8rem 1.1rem;
  }

  .dealer-quote-body-inner::before {
    left: -0.65rem;
    width: 0.65rem;
  }

  .dealer-quote-item-head,
  .dealer-quote-prices > div {
    align-items: flex-start;
  }

  .dealer-quote-detail {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .dealer-quote-prices {
    grid-template-columns: 1fr;
  }

  .dealer-quote-total.is-discounted {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-quote-net {
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
  }
}

@media (max-width: 900px) {
  .dealer-portal-mode-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-portal-mode {
    width: 100%;
  }

  .dealer-portal-layout {
    grid-template-columns: 1fr;
  }

  .dealer-cart {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .dealer-portal-mode {
    grid-template-columns: 1fr 1fr;
  }

  .dealer-portal-mode-tab {
    align-items: center;
    padding: 0.65rem 0.45rem 0.55rem;
    text-align: center;
  }

  .dealer-portal-mode-label {
    font-size: 0.82rem;
  }

  .dealer-portal-mode-tab small {
    display: block;
    font-size: 0.6rem;
    margin-top: 0.1rem;
  }

  .dealer-catalog-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Product card overlay actions (shared with btn-3d on product pages) */
.product-overlay-actions .btn-3d {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  min-height: 2.35rem;
  line-height: 1;
}

.product-overlay-actions .btn-3d .spinner {
  --slot: 28px;
}

/* Product overview (compact) + immersive 3D configurator shell */
.product-overview-section {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  content-visibility: visible;
}

.product-overview-intro {
  max-width: 640px;
  margin-bottom: 0;
}

.product-overview-intro .section-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin-bottom: 0.65rem;
}

.product-overview-intro > p:not(.section-label) {
  margin: 0 0 1rem;
  color: var(--gray-700);
  max-width: 54ch;
}

.product-overview-intro .hero-actions {
  margin-top: 0.25rem;
}

.product-series-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  max-width: 28rem;
}

.product-series-actions .btn-3d-experience--hero {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  animation: none;
}

.product-series-actions .btn-3d-experience--hero.is-active {
  border-color: #c8102e;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 16, 46, 0.55),
    0 0 18px rgba(200, 16, 46, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.42);
}

.product-series-actions .btn-3d-experience--special::before {
  background: linear-gradient(180deg, #e8eef4 0%, #a8b4c0 55%, #7a8794 100%);
}

.product-series-actions .btn-3d-experience--special.is-active::before {
  background: linear-gradient(180deg, var(--red-on-dark) 0%, var(--red) 55%, var(--red-dark) 100%);
}

/* Series CTAs: always compact side-by-side (override hero full-width mobile). */
@media (max-width: 520px) {
  .product-series-actions {
    flex-direction: row;
    gap: 0.45rem;
    max-width: none;
  }

  .product-series-actions .btn-3d-experience--hero {
    width: auto;
    max-width: none;
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    line-height: 1.15;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

.product-overview-intro .product-overview-3d-title {
  --animate-duration: 2s;
  cursor: pointer;
}

/* Immersive configurator: ~63% viewer / ~37% options, almost full-bleed */
.product-configurator {
  --config-stage-h: min(72vh, 780px);
  width: 100%;
  margin: 0;
  padding: 0;
  border-block: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  scroll-margin-top: 5.5rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 820px;
}

.product-models-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 0;
  align-items: stretch;
  height: var(--config-stage-h);
  min-height: var(--config-stage-h);
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
}

.product-3d-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: var(--viewer-3d-bg, #f4f4f5);
}

.product-3d-panel > .section-label {
  display: none;
}

.product-3d-frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--viewer-3d-bg, #f4f4f5);
  border: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.product-3d-stage {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--viewer-3d-bg, #f4f4f5);
}

.product-3d-stage .three-3d-viewer {
  min-height: 0;
  height: 100%;
}

.product-3d-stage .three-3d-canvas-wrap {
  min-height: 0;
  height: 100%;
}

.product-config-panel {
  --config-panel-bg: var(--gray-100);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem clamp(0.95rem, 1.8vw, 1.45rem) 0.85rem;
  background: var(--config-panel-bg);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  min-height: 0;
  /* Fade hints when content overflows — makes scroll discoverable */
  background:
    linear-gradient(var(--config-panel-bg) 85%, rgba(244, 244, 245, 0)) center top / 100% 1.1rem no-repeat,
    linear-gradient(rgba(244, 244, 245, 0), var(--config-panel-bg) 70%) center bottom / 100% 2.25rem no-repeat,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.14), transparent) center top / 100% 10px no-repeat,
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), transparent) center bottom / 100% 14px no-repeat,
    var(--config-panel-bg);
  background-attachment: local, local, scroll, scroll, scroll;
  scrollbar-gutter: stable;
}

.product-config-panel > .section-label {
  margin: 0;
  font-size: 0.72rem;
}

.product-config-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--gray-900);
}

.product-config-lead {
  margin: -0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gray-700);
  max-width: 38ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-config-cta {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding: 0.65rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(244, 244, 245, 0) 0%, var(--gray-100) 28%, var(--gray-100) 100%);
}

.product-config-cta .btn {
  width: 100%;
  justify-content: center;
}

.product-3d-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.product-3d-loading[hidden] {
  display: none;
}

.product-3d-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--viewer-3d-bg, #f4f4f5);
  z-index: 1;
}

.product-3d-placeholder.is-coming-soon {
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(196, 30, 58, 0.06), transparent 70%),
    var(--viewer-3d-bg, #f4f4f5);
}

.product-3d-placeholder.is-coming-soon .product-3d-coming-soon__kicker,
.product-3d-coming-soon__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.product-3d-placeholder.is-coming-soon .product-3d-coming-soon__title,
.product-3d-coming-soon__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.product-3d-placeholder.is-coming-soon .product-3d-coming-soon__body,
.product-3d-coming-soon__body {
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--gray-600);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.product-3d-coming-soon {
  display: grid;
  gap: 0.4rem;
  padding: 0.35rem 0.15rem 0.75rem;
}

.product-overview-3d-title.is-coming-soon {
  pointer-events: none;
  opacity: 0.85;
  cursor: default;
  animation: none !important;
}

.product-3d-placeholder[hidden] {
  display: none;
}

.product-3d-colors,
.product-config-panel .product-3d-colors {
  flex: 0 0 auto;
  order: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Models list scrolls on its own so body/fender/spare stay in view */
.product-config-panel .product-models {
  flex: 0 1 auto;
  max-height: min(28vh, 220px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-gutter: stable;
}

.product-3d-colors .model-color-panel {
  gap: 0.35rem;
  padding: 0.1rem 0 0;
}

.product-3d-colors .model-color-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.product-3d-colors .model-color-selected {
  display: none;
}

.product-3d-colors .color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  grid-template-columns: none;
}

.product-3d-colors .color-swatch {
  gap: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0.12rem;
  min-width: 0;
  border-radius: 2px;
}

.product-3d-colors .color-swatch-name {
  display: none;
}

.product-3d-colors .color-swatch-chip {
  width: 1.55rem;
  height: 1.55rem;
  aspect-ratio: auto;
  border-radius: 2px;
}

.product-config-panel .model-fender-colors,
.product-config-panel .model-color-panel--fenders,
.product-config-panel .model-accent-colors,
.product-config-panel .model-color-panel--accent {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
}

.product-config-panel .product-3d-spare {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  order: -1;
}

.product-config-panel .product-3d-spare-option {
  font-size: 0.78rem;
  gap: 0.5rem;
}

.product-3d-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  line-height: 1.3;
  flex-shrink: 0;
}

.product-3d-hint[hidden] {
  display: none;
}

.product-models {
  scroll-margin-top: 6rem;
  min-width: 0;
}

.product-models[hidden] {
  display: none;
}

.product-models-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.product-models-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.product-models-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  margin: 0 -0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease;
}

.product-models-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.product-models-item.is-active-3d {
  background: rgba(200, 16, 46, 0.05);
}

.product-models-item.is-active-3d .product-models-name {
  color: var(--red);
}

.product-models-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-900);
  line-height: 1.2;
}

.product-models-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--font-body, inherit);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(200, 16, 46, 0.35);
  vertical-align: middle;
}

.product-models-item .btn-3d {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  min-height: 2.75rem;
  /* Michroma is wide; old 6.5rem clipped "3D EXPERIENCE" */
  min-width: 10.25rem;
  max-width: none;
  width: max-content;
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  overflow: visible;
}

.product-models-item .btn-3d .btn-3d-label {
  white-space: nowrap;
}

.product-models-item.is-active-3d .btn-3d:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: none;
}

.product-models-item.is-active-3d .btn-3d:not(:disabled):hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: none;
  transform: none;
}

.product-models-item .btn-3d .spinner {
  --slot: 26px;
}

/* —— Air Spin (Beta) —— */
.air-spin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(4px);
}

.air-spin-overlay[hidden] {
  display: none !important;
}

.air-spin-dialog {
  width: min(28rem, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 4px;
  border: 1px solid rgba(200, 16, 46, 0.45);
  background: linear-gradient(180deg, #1c1c1f 0%, #101012 100%);
  color: #f2f2f2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.air-spin-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-on-dark, #e23);
}

.air-spin-dialog h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.air-spin-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.air-spin-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.air-spin-status {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #c8e6c9;
}

.air-spin-status.is-error {
  color: #ff8a80;
}

.air-spin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.air-spin-pip {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 12020;
  width: min(160px, 42vw);
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(200, 16, 46, 0.5);
  background: rgba(12, 12, 14, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.air-spin-pip[hidden] {
  display: none !important;
}

.air-spin-pip-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  transform: scaleX(-1);
  background: #000;
}

.air-spin-pip-label {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.air-spin-pip-stop {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.air-spin-pip.is-grabbing {
  border-color: #4caf50;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.35);
}

.air-spin-pip.is-grabbing .air-spin-pip-label {
  color: #a5d6a7;
}

.air-spin-chrome {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 12030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.air-spin-chrome[hidden] {
  display: none !important;
}

.air-spin-chrome-label {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
  background: rgba(12, 12, 14, 0.72);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.air-spin-close {
  pointer-events: auto;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  background: rgba(12, 12, 14, 0.85);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.air-spin-close:hover {
  border-color: rgba(200, 16, 46, 0.85);
  background: rgba(200, 16, 46, 0.9);
}

body.air-spin-tutorial-open,
body.air-spin-active {
  overflow: hidden !important;
}

/* —— Showroom fullscreen (experimento Telescopic): 3D + dock config —— */
body.showroom-fs-active {
  overflow: hidden !important;
}

.showroom-fs-shell {
  position: fixed;
  inset: 0;
  z-index: 11900;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 34vw);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--viewer-3d-bg, #f4f4f5);
  overflow: hidden;
}

.showroom-fs-shell .product-3d-frame {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  grid-column: 1;
  grid-row: 1;
}

.showroom-fs-shell .product-3d-stage,
.showroom-fs-shell .product-3d-stage .three-3d-viewer,
.showroom-fs-shell .product-3d-stage .three-3d-canvas-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
}

.showroom-fs-shell .product-3d-stage .three-3d-canvas {
  width: 100% !important;
  height: 100% !important;
}

.showroom-fs-shell .showroom-fs-config-dock,
.showroom-fs-shell [data-product-config-panel].showroom-fs-config-dock {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
  background: rgba(244, 244, 245, 0.97);
  backdrop-filter: blur(8px);
}

body.showroom-fs-active .site-header,
body.showroom-fs-active #site-header,
body.showroom-fs-active header.site-header,
body.showroom-fs-active .page-hero,
body.showroom-fs-active .product-overview-section,
body.showroom-fs-active .cta-band,
body.showroom-fs-active #site-footer,
body.showroom-fs-active #product-gallery,
body.showroom-fs-active .float-actions,
body.showroom-fs-active .float-btn,
body.showroom-fs-active .veqor-event-banner {
  visibility: hidden !important;
  pointer-events: none !important;
}

.showroom-fs-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: min(22rem, 34vw);
  z-index: 11950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  pointer-events: none;
}

.showroom-fs-chrome[hidden] {
  display: none !important;
}

.showroom-fs-chrome-label {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.55);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.showroom-fs-close {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.showroom-fs-close:hover {
  background: rgba(15, 15, 16, 0.9);
}

@media (max-width: 860px) {
  .showroom-fs-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) min(42vh, 22rem);
  }

  .showroom-fs-shell .product-3d-frame {
    grid-column: 1;
    grid-row: 1;
  }

  .showroom-fs-shell .showroom-fs-config-dock,
  .showroom-fs-shell [data-product-config-panel].showroom-fs-config-dock {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .showroom-fs-chrome {
    right: 0;
  }
}

body.air-spin-active .product-configurator,
body.air-spin-active .product-models-layout,
body.air-spin-active .product-3d-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 0 !important;
}

/* Oculta chrome de página detrás del shell. */
body.air-spin-active .product-config-panel,
body.air-spin-active .site-header,
body.air-spin-active #site-header,
body.air-spin-active header.site-header,
body.air-spin-active .page-hero,
body.air-spin-active .product-overview-section,
body.air-spin-active .cta-band,
body.air-spin-active #site-footer,
body.air-spin-active #product-gallery,
body.air-spin-active .float-actions,
body.air-spin-active .float-btn,
body.air-spin-active .veqor-event-banner {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.air-spin-active .air-spin-pip {
  bottom: 1.35rem;
  z-index: 12020;
}

body.air-spin-active .air-spin-chrome {
  z-index: 12030;
}

@media (max-width: 960px) {
  .product-configurator {
    --config-stage-h: min(52vh, 420px);
  }

  .product-models-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  /* En móvil el 3D va a modal: el stage sticky vacío (~420px) es espacio muerto. */
  .product-3d-panel {
    display: none;
  }

  .product-3d-frame {
    display: none;
  }

  .product-config-panel {
    height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 0;
    padding: 1.25rem 1rem 1.75rem;
    gap: 1rem;
  }

  .product-config-cta {
    margin-top: 0.35rem;
  }
}

/* Google Model Viewer modal */
body.model-viewer-open {
  overflow: hidden;
}

/* FAB email encima del modal 3D / lightbox (z 11000 vs modal ~1200). */
body.model-viewer-open .float-actions,
body.model-viewer-open .float-btn,
body.gallery-open .float-actions,
body.gallery-open .float-btn {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Toast de error 3D (scripts / WebGL) — visible en móvil sin depender de console. */
.veqor-3d-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 1400;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  background: #1a1a1c;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.veqor-3d-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.veqor-3d-toast[hidden] {
  display: none;
}

.model-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.model-viewer-modal[hidden] {
  display: none;
}

.model-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(4px);
}

.model-viewer-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: min(100dvh - 1rem, 920px);
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--red);
}

.model-viewer-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.model-viewer-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
}

/* —— Dealer fullscreen: stage dominante + config a la derecha —— */
.model-viewer-modal--dealer-fs {
  padding: 0;
  place-items: stretch;
  z-index: 13000;
}

.model-viewer-modal--dealer-fs .model-viewer-backdrop {
  background: #0c0e14;
  backdrop-filter: none;
}

.model-viewer-modal--dealer-fs .model-viewer-dialog {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border-top: 0;
  box-shadow: none;
  display: block;
}

.model-viewer-modal--dealer-fs .model-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: min(22rem, 34vw);
  z-index: 5;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 55%, transparent 100%);
  pointer-events: none;
}

.model-viewer-modal--dealer-fs .model-viewer-close {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(15, 15, 16, 0.78);
  color: #fff;
}

.model-viewer-modal--dealer-fs .model-viewer-close:hover {
  background: var(--red);
}

.model-viewer-modal--dealer-fs .model-viewer-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 34vw);
  grid-template-rows: minmax(0, 1fr);
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

.model-viewer-modal--dealer-fs .model-viewer-stage {
  margin: 0;
  border-radius: 0;
  border: 0;
  height: 100%;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
}

.model-viewer-modal--dealer-fs .model-viewer-stage .three-3d-viewer,
.model-viewer-modal--dealer-fs .model-viewer-stage .three-3d-canvas-wrap,
.model-viewer-modal--dealer-fs .model-viewer-stage .three-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
}

.model-viewer-modal--dealer-fs .model-viewer-sidebar {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.9rem 1.1rem;
  gap: 0.65rem;
  background: rgba(244, 244, 245, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
}

.model-viewer-modal--dealer-fs .model-viewer-colors,
.model-viewer-modal--dealer-fs .model-viewer-cart {
  flex: 0 0 auto;
}

.model-viewer-modal--dealer-fs .model-viewer-hint {
  margin-top: auto;
  padding: 0.35rem 0 0;
  text-align: left;
  font-size: 0.75rem;
}

.model-viewer-modal--dealer-fs .model-color-panel {
  padding: 0;
}

.model-viewer-modal--dealer-fs .model-cart-panel {
  padding: 0;
  gap: 0.65rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.model-viewer-modal--dealer-fs .model-cart-add {
  width: 100%;
  justify-content: center;
}

.model-viewer-modal--dealer-fs .model-cart-option,
.model-viewer-modal--dealer-fs .model-cart-rim-style {
  width: 100%;
}

.model-viewer-modal--dealer-fs .model-cart-upgrades {
  width: 100%;
}

.model-viewer-modal--dealer-fs .model-cart-upgrades .dealer-upgrades {
  width: 100%;
  margin: 0;
}

.model-viewer-modal--dealer-fs .model-cart-upgrades .dealer-upgrades-heading {
  color: var(--gray-500, #6b7280);
}

.model-viewer-modal--dealer-fs .model-cart-upgrades .dealer-upgrade-section {
  background: var(--gray-50, #fafafa);
  border-color: var(--gray-200, #e5e7eb);
}

.model-viewer-modal--dealer-fs .model-cart-upgrades .dealer-upgrade-option {
  background: #fff;
}

.model-cart-reference-picker {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.model-cart-reference-picker [data-reference-order-panel]:not(:empty) {
  padding-top: 0.9rem;
  border-top: 1px solid var(--gray-200, #e5e7eb);
}

.model-viewer-modal--dealer-fs .color-swatches {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

/* Nombre del color solo bajo la paleta (el elegido), no en cada swatch. */
.model-viewer-modal--dealer-fs .color-swatch-name {
  display: none !important;
}

.model-viewer-modal--dealer-fs .model-viewer-dialog .model-color-label,
.model-viewer-modal--dealer-fs .model-color-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-900);
}

.model-viewer-modal--dealer-fs .model-viewer-dialog .model-color-selected,
.model-viewer-modal--dealer-fs .model-color-selected {
  display: block !important;
  margin: 0.25rem 0 0;
  padding: 0.2rem 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  min-height: 1.2em;
}

.model-cart-model-select {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.model-cart-model-select.is-pending .model-cart-model-select__wrap {
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.35), 0 8px 20px rgba(200, 16, 46, 0.12);
  animation: model-select-pulse 1.6s ease-in-out infinite;
}

@keyframes model-select-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.28), 0 6px 16px rgba(200, 16, 46, 0.1); }
  50% { box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.5), 0 10px 24px rgba(200, 16, 46, 0.18); }
}

.model-cart-model-select__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-700);
}

.model-cart-model-select__hint {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.3;
}

.model-cart-model-select__wrap {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
}

.model-cart-model-select__input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 2.4rem 0.55rem 0.75rem;
  border: 1.5px solid var(--gray-400);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.model-cart-model-select__input:focus {
  outline: 2px solid rgba(200, 16, 46, 0.35);
  border-color: var(--red);
}

.model-cart-model-select__chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gray-700);
  border-bottom: 2px solid var(--gray-700);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.model-cart-pick-prompt {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.08);
  border: 1px dashed rgba(200, 16, 46, 0.35);
  color: var(--gray-800);
  font-size: 0.84rem;
  line-height: 1.35;
}

.model-viewer-stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--viewer-3d-bg, #f4f4f5);
  color: var(--gray-600);
  text-align: center;
  z-index: 1;
}

.model-viewer-stage-placeholder p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.model-viewer-3d-disclaimer {
  --disclaimer-accent: var(--red, #c8102e);
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
}

/* Dealer: modelo precargando detrás del disclaimer (visible + blur). */
.model-viewer-stage.is-disclaimer-preload .three-3d-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(7px) saturate(0.92);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}

.model-viewer-stage.is-disclaimer-preload .three-3d-toolbar {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.model-viewer-stage.is-disclaimer-preload .model-viewer-3d-disclaimer__backdrop {
  background:
    radial-gradient(ellipse 85% 70% at 50% 38%, rgba(255, 255, 255, 0.1) 0%, transparent 58%),
    linear-gradient(168deg, rgba(17, 24, 39, 0.42) 0%, rgba(15, 23, 42, 0.5) 48%, rgba(9, 12, 20, 0.58) 100%);
  backdrop-filter: blur(2px) saturate(1.05);
}

.model-viewer-3d-disclaimer__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% 38%, rgba(255, 255, 255, 0.14) 0%, transparent 58%),
    linear-gradient(168deg, rgba(17, 24, 39, 0.72) 0%, rgba(15, 23, 42, 0.82) 48%, rgba(9, 12, 20, 0.88) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
}

.model-viewer-3d-disclaimer__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 15%, transparent 72%);
}

.model-viewer-3d-disclaimer__card {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  padding: 0 0 1.35rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(200, 16, 46, 0.08);
  text-align: center;
  overflow: hidden;
  animation: model-viewer-disclaimer-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes model-viewer-disclaimer-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.model-viewer-3d-disclaimer__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--disclaimer-accent) 0%, #e63950 55%, var(--disclaimer-accent) 100%);
}

.model-viewer-3d-disclaimer__icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin: 1.15rem auto 0.85rem;
  border-radius: 999px;
  color: var(--disclaimer-accent);
  background: linear-gradient(145deg, rgba(200, 16, 46, 0.1) 0%, rgba(200, 16, 46, 0.04) 100%);
  border: 1px solid rgba(200, 16, 46, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.model-viewer-3d-disclaimer__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.model-viewer-3d-disclaimer__kicker {
  margin: 0 1.25rem 0.35rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--disclaimer-accent);
}

.model-viewer-3d-disclaimer__title {
  margin: 0 1.25rem 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.22rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--gray-900, #111827);
}

.model-viewer-3d-disclaimer__note {
  margin: 0 1.15rem 1.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f5f7 0%, #eef0f3 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.model-viewer-3d-disclaimer__body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--gray-700, #374151);
  text-wrap: pretty;
}

.model-viewer-3d-disclaimer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1.15rem;
}

.model-viewer-3d-disclaimer__actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}

.model-viewer-3d-disclaimer__accept {
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.22);
}

.model-viewer-3d-disclaimer__accept:hover:not(:disabled) {
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.28);
  transform: translateY(-1px);
}

.model-viewer-3d-disclaimer__catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #fff;
  border-color: var(--gray-300, #d1d5db);
  color: var(--gray-800, #1f2937);
}

.model-viewer-3d-disclaimer__catalog:hover:not(:disabled) {
  background: var(--gray-50, #f9fafb);
  border-color: var(--gray-400, #9ca3af);
  color: var(--gray-900, #111827);
}

.model-viewer-3d-disclaimer__catalog-arrow {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.72;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.model-viewer-3d-disclaimer__catalog:hover:not(:disabled) .model-viewer-3d-disclaimer__catalog-arrow {
  transform: translateX(2px);
  opacity: 1;
}

@media (min-width: 520px) {
  .model-viewer-3d-disclaimer__card {
    width: min(100%, 29rem);
  }

  .model-viewer-3d-disclaimer__actions {
    flex-direction: row;
    align-items: stretch;
  }

  .model-viewer-3d-disclaimer__accept {
    flex: 1.15 1 0;
  }

  .model-viewer-3d-disclaimer__catalog {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-viewer-3d-disclaimer__card {
    animation: none;
  }

  .model-viewer-3d-disclaimer__accept:hover:not(:disabled),
  .model-viewer-3d-disclaimer__catalog:hover:not(:disabled) .model-viewer-3d-disclaimer__catalog-arrow {
    transform: none;
  }
}

.model-cart-add--quote {
  letter-spacing: 0.04em;
}

body.model-viewer-dealer-fs .float-actions,
body.model-viewer-dealer-fs .float-btn {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 860px) {
  .model-viewer-modal--dealer-fs .model-viewer-header {
    right: 0;
  }

  .model-viewer-modal--dealer-fs .model-viewer-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) min(42vh, 22rem);
  }

  .model-viewer-modal--dealer-fs .model-viewer-stage {
    grid-column: 1;
    grid-row: 1;
  }

  .model-viewer-modal--dealer-fs .model-viewer-sidebar {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0.85rem 1rem;
  }
}

.model-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem 0.35rem;
  flex-shrink: 0;
}

.model-viewer-kicker {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.model-viewer-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--black);
}

.model-viewer-close {
  border: 0;
  background: var(--gray-100);
  color: var(--gray-800);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.model-viewer-close:hover {
  background: var(--red);
  color: var(--white);
}

.model-viewer-stage {
  position: relative;
  margin: 0 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--viewer-3d-bg);
  border: 1px solid var(--gray-200);
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.model-viewer-stage .three-3d-viewer {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  height: 100%;
}

.three-3d-viewer {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(70vh, 620px);
  height: min(70vh, 620px);
}

.three-3d-canvas-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
}

.three-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--viewer-3d-bg);
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Overlay de carga: centro de pantalla, blur del modelo, bloquea interacción. */
.three-3d-viewer.is-loading .three-3d-canvas {
  filter: blur(10px);
  transform: scale(1.02);
}

.three-3d-load-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(244, 244, 245, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  cursor: wait;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

/* Misma UX de carga en modal showroom / dealer / stage de producto. */
.model-viewer-stage .three-3d-load-overlay,
.product-3d-stage .three-3d-load-overlay,
.showroom-fs-shell .three-3d-load-overlay {
  z-index: 12;
}

.three-3d-load-overlay[hidden] {
  display: none;
}

.three-3d-viewer:not(.is-loading) .three-3d-load-overlay {
  pointer-events: none;
}

.three-3d-load-status {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  right: auto;
  z-index: 1;
  width: min(280px, 78vw);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.three-3d-load-status[hidden] {
  display: none;
}

.three-3d-load-status.is-done {
  opacity: 0;
  transform: translateY(6px);
}

.three-3d-load-status__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.three-3d-load-status__label {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.three-3d-load-status__pct {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.three-3d-load-status__track {
  height: 3px;
  width: 100%;
  border-radius: 0;
  background: rgba(15, 15, 16, 0.14);
  overflow: hidden;
}

.three-3d-load-status__fill {
  height: 100%;
  width: 0%;
  border-radius: 0;
  background: var(--red);
  transition: width 0.25s ease;
}

.three-3d-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.three-3d-toolbar .three-action-btn {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem 0.45rem 0.55rem;
}

/* Botón de acción del visor 3D (rampas / puertas) — familia btn-3d */
.three-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.65rem;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(200, 16, 46, 0.55);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.three-action-btn:hover {
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(200, 16, 46, 0.45);
  transform: translateY(-1px);
}

.three-action-btn:active {
  transform: translateY(0);
}

.three-action-btn.is-open {
  border-color: var(--orange);
  background: rgba(28, 18, 16, 0.96);
  box-shadow: 0 0 12px rgba(194, 65, 12, 0.28);
}

.three-action-btn.is-open:hover {
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(194, 65, 12, 0.4);
}

.three-action-btn.is-pressed {
  animation: three-action-pulse 0.45s ease;
}

.three-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: rgba(200, 16, 46, 0.18);
  color: var(--red);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.three-action-btn.is-open .three-action-icon {
  background: rgba(194, 65, 12, 0.22);
  color: var(--orange);
}

.three-action-svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  overflow: visible;
}

.three-action-label {
  white-space: nowrap;
}

/* Rampas: chevrons bajan (desplegar) / suben (guardar) */
.three-action-svg--ramps .three-action-chevron {
  transition: transform 0.35s ease;
  transform-origin: 12px 12px;
}

.three-action-btn.is-open .three-action-svg--ramps {
  transform: rotate(180deg);
}

.three-action-svg--ramps {
  transition: transform 0.35s ease;
}

.three-action-btn:hover .three-action-svg--ramps .three-action-chevron--a {
  transform: translateY(1px);
}

.three-action-btn:hover .three-action-svg--ramps .three-action-chevron--b {
  transform: translateY(-1px);
}

/* Puertas: paneles se abren hacia los lados */
.three-action-panel {
  transition: transform 0.35s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.three-action-btn.is-open .three-action-panel--left {
  transform: translateX(-1.5px) rotate(-12deg);
}

.three-action-btn.is-open .three-action-panel--right {
  transform: translateX(1.5px) rotate(12deg);
}

.three-action-btn:hover .three-action-panel--left {
  transform: translateX(-0.5px);
}

.three-action-btn:hover .three-action-panel--right {
  transform: translateX(0.5px);
}

.three-action-btn.is-open:hover .three-action-panel--left {
  transform: translateX(-2px) rotate(-14deg);
}

.three-action-btn.is-open:hover .three-action-panel--right {
  transform: translateX(2px) rotate(14deg);
}

@keyframes three-action-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .three-action-btn,
  .three-action-icon,
  .three-action-svg--ramps,
  .three-action-svg--ramps .three-action-chevron,
  .three-action-panel {
    transition: none;
  }

  .three-action-btn.is-pressed {
    animation: none;
  }
}

.pdf-3d-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  min-height: min(70vh, 620px);
  padding-bottom: 0.5rem;
}

.pdf-3d-iframe {
  flex: 1;
  width: 100%;
  min-height: min(64vh, 560px);
  border: 0;
  border-radius: 8px;
  background: #111;
}

.pdf-3d-note {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
}

.pdf-3d-download {
  align-self: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.pdf-3d-download:hover {
  text-decoration: underline;
}

/* Trailer color configurator */
.section-intro {
  max-width: 720px;
  margin: 0 0 1.75rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.model-color-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-900);
}

.model-color-selected {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  min-height: 1.25em;
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 60px));
  gap: 0.6rem 0.55rem;
  justify-content: start;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.3rem 0.15rem;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.color-swatch:hover {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.035);
}

.color-swatch:hover .color-swatch-chip {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 10px 14px rgba(255, 255, 255, 0.28);
}

.color-swatch-chip {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--swatch);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 8px 12px rgba(255, 255, 255, 0.22),
    inset 0 -10px 14px rgba(0, 0, 0, 0.16);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: grid;
  place-items: center;
}

.color-swatch-check {
  width: 12px;
  height: 12px;
  color: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.color-swatch.is-active .color-swatch-chip {
  box-shadow:
    0 0 0 2px var(--white),
    0 0 0 4px var(--red),
    0 8px 16px rgba(0, 0, 0, 0.25),
    inset 0 8px 12px rgba(255, 255, 255, 0.22),
    inset 0 -10px 14px rgba(0, 0, 0, 0.16);
  transform: scale(1.04);
}

.color-swatch.is-active .color-swatch-check {
  opacity: 1;
  transform: scale(1);
}

.color-swatch-name {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gray-700);
  line-height: 1.15;
}

.color-swatch.is-active .color-swatch-name {
  color: var(--black);
}

.model-color-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.5rem 1.25rem;
}

.model-color-panel--fenders,
.model-color-panel--accent {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.model-fender-colors,
.model-accent-colors {
  width: 100%;
}

/* Public product 3D: spare tire toggle (no price) */
.product-3d-spare {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-200);
}

.product-3d-spare-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-900);
  user-select: none;
}

.product-3d-spare-option input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--red);
  cursor: pointer;
}

.product-3d-rim-option {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.4rem;
}

.product-3d-rim-option legend {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.model-cart-rim-style {
  width: 100%;
  display: grid;
  gap: 0.35rem;
}

.model-cart-rim-style__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.dealer-rim-style {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

.dealer-rim-style__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
}

.dealer-rim-style__opt {
  margin: 0;
}

.model-viewer-colors .color-swatches {
  max-width: 100%;
}

.model-color-selected {
  padding: 0 1.5rem 0.25rem;
  font-size: 0.9rem;
}

/* Modal 3D: compactar controles para caber en una sola pantalla */
.model-viewer-dialog .model-viewer-colors,
.model-viewer-dialog .model-viewer-cart,
.model-viewer-dialog .model-viewer-hint {
  flex-shrink: 0;
}

.model-viewer-dialog .model-color-panel {
  gap: 0.35rem;
  padding: 0.35rem 0.85rem 0.45rem;
}

.model-viewer-dialog .model-color-panel--fenders,
.model-viewer-dialog .model-color-panel--accent {
  margin-top: 0.15rem;
  padding-top: 0.45rem;
}

.model-viewer-dialog .model-color-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-900);
}

.model-viewer-dialog .model-color-selected {
  display: none;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-600);
}

.model-viewer-dialog .color-swatches {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.35rem;
  justify-content: stretch;
}

.model-viewer-dialog .color-swatch {
  gap: 0;
  min-width: 0;
}

.model-viewer-dialog .color-swatch-name {
  display: none;
}

.model-viewer-dialog .color-swatch-chip {
  width: 100%;
  aspect-ratio: 1;
  max-width: 2rem;
  height: auto;
  margin: 0 auto;
}

.model-viewer-dialog .color-swatch-check {
  width: 11px;
  height: 11px;
}

.model-viewer-dialog .three-action-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.model-viewer-dialog .model-viewer-hint {
  padding: 0.2rem 0.85rem 0.35rem;
  font-size: 0.75rem;
}

.model-viewer-dialog .model-cart-panel {
  gap: 0.55rem;
  padding: 0.25rem 0.85rem 0.55rem;
}

.model-viewer-dialog .model-cart-total {
  font-size: 0.82rem;
}

.model-viewer-dialog .model-cart-option {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
}

.model-viewer-dialog .model-cart-option-text strong {
  font-size: 0.7rem;
}

.model-viewer-dialog .model-cart-add {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .model-viewer-dialog .color-swatches {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .color-swatches,
  .model-viewer-colors .color-swatches {
    grid-template-columns: repeat(auto-fill, minmax(46px, 52px));
  }
}

.model-viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--gray-800);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.model-viewer-loading[hidden] {
  display: none;
}

.model-viewer-hint {
  margin: 0;
  padding: 0.85rem 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  text-align: center;
}

.model-viewer-cart[hidden] {
  display: none;
}

.model-cart-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1.5rem 1.1rem;
}

.model-cart-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gray-800);
}

.model-cart-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
  cursor: pointer;
}

.model-cart-option-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.model-cart-option-text strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.model-cart-option-text em {
  font-style: normal;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.8rem;
}

.model-cart-total {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--gray-900);
}

.model-cart-pricing {
  width: 100%;
  max-width: 320px;
  margin: 0.15rem 0 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 15, 16, 0.04);
  border: 1px solid var(--gray-200);
}

.model-cart-total {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.model-cart-total__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 600;
}

.model-cart-total__value {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--gray-900);
  font-weight: 700;
}

.model-cart-total__each {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-600);
}

.model-cart-breakdown {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0.45rem 0 0;
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 0.28rem;
}

.model-cart-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--gray-700);
}

.model-cart-breakdown em {
  font-style: normal;
  font-weight: 700;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}

.model-cart-demo-note {
  max-width: 520px;
  margin: 0;
  color: var(--gray-600);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.model-cart-reference-note {
  max-width: 520px;
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gray-100) 88%, #c9a227 12%);
  border: 1px solid color-mix(in srgb, var(--gray-200) 70%, #c9a227 30%);
  color: var(--gray-800);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
}

.model-cart-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.25rem 0.35rem;
  min-width: 0;
}

.model-cart-step {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-800);
  transition: background 0.15s ease;
}

.model-cart-step:hover {
  background: var(--gray-200);
}

.model-cart-qty-input {
  flex: 1 1 auto;
  width: 3.75rem;
  min-width: 3.25rem;
  max-width: 4.5rem;
  box-sizing: border-box;
  padding: 0.2rem 0.15rem;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  -moz-appearance: textfield;
  appearance: textfield;
}

.model-cart-qty-input::-webkit-outer-spin-button,
.model-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.model-cart-add {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .model-cart-panel {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .model-viewer-modal {
    padding: 0;
    place-items: stretch;
  }

  .model-viewer-dialog {
    width: 100%;
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .model-viewer-stage {
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
  }

  .model-viewer-stage .three-3d-viewer {
    min-height: 0;
    height: 100%;
  }

  .model-viewer-header {
    padding: 0.55rem 0.75rem;
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
  }

  .model-viewer-close {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .model-viewer-dialog .model-viewer-colors,
  .model-viewer-dialog .model-viewer-cart {
    flex-shrink: 0;
    max-height: min(22dvh, 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.75rem;
  }

  .model-viewer-dialog .model-viewer-hint {
    display: none;
  }

  /* Toolbar puertas/rampas: solo icono (aria-label) — menos wrap, más canvas. */
  .three-3d-toolbar {
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .three-3d-toolbar .three-action-btn {
    padding: 0.4rem;
    gap: 0;
  }

  .three-3d-toolbar .three-action-label {
    display: none;
  }
}

/* Product photo gallery */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-tab {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gallery-tab:hover {
  border-color: rgba(200, 16, 46, 0.35);
  color: var(--red);
}

.gallery-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.25);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--gray-200);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

body.gallery-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(4px);
}

.gallery-lightbox-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.gallery-lightbox-image {
  grid-column: 1 / -1;
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gallery-lightbox-close:hover {
  background: var(--red);
}

.gallery-lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav:hover {
  background: var(--red);
}

.gallery-lightbox-caption {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .photo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .gallery-lightbox-nav.prev {
    left: 0.25rem;
  }

  .gallery-lightbox-nav.next {
    right: 0.25rem;
  }
}

/* Product video embed */
.product-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  aspect-ratio: 16 / 9;
}

.product-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================================
   Dealer Portal · Header/Footer aislados del sitio público
   ========================================================================= */
.dealer-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dealer-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
}

.dealer-logo-block {
  gap: 0.85rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(48%, 22rem);
}

.dealer-portal-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 2px solid var(--gray-200);
  padding-left: 0.75rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.dealer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.dealer-nav a {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.dealer-nav a:hover {
  color: var(--gray-900);
  border-bottom-color: var(--red);
}

.dealer-topbar-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dealer-notify {
  position: relative;
}

.dealer-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-900);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dealer-notify-btn:hover,
.dealer-notify-btn[aria-expanded="true"] {
  border-color: var(--red);
  color: var(--red);
  background: rgba(200, 16, 46, 0.04);
}

.dealer-notify-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.dealer-notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.dealer-notify-panel[hidden] {
  display: none !important;
}

.dealer-notify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.dealer-notify-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.dealer-notify-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.dealer-notify-mark {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.2rem 0;
}

.dealer-notify-mark:hover {
  text-decoration: underline;
}

.dealer-notify-mark[hidden] {
  display: none !important;
}

.dealer-notify-list {
  overflow: auto;
  padding: 0.35rem;
}

.dealer-notify-empty {
  margin: 0;
  padding: 1.75rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #6b7280;
}

.dealer-notify-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.dealer-notify-item:hover {
  background: rgba(17, 17, 17, 0.04);
}

.dealer-notify-item.is-unread {
  background: rgba(200, 16, 46, 0.04);
}

.dealer-notify-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--gray-900);
  position: relative;
}

.dealer-notify-item.is-unread .dealer-notify-icon {
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
}

.dealer-notify-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 2px #fff;
}

.dealer-notify-item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
}

.dealer-notify-item-title time {
  font-size: 0.72rem;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
}

.dealer-notify-item-body {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.35;
}

.dealer-quote.is-notify-flash {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  transition: outline-color 0.3s ease;
}

/* Ancla: evita que el header sticky tape el inicio de la sección */
body[data-page="dealer-dashboard"],
body[data-page="dealer-portal"] {
  scroll-padding-top: 7.5rem;
}

#dealer-filters,
#dealer-catalog,
#dealer-cart,
#dealer-quotes,
#dealer-coverflow,
#dealer-families,
#dealer-inventory {
  scroll-margin-top: 7.5rem;
}

.dealer-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.25rem 0;
  margin-top: 2.5rem;
}

.dealer-footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dealer-footer-inner img {
  height: 34px;
  width: auto;
}

.dealer-footer-inner > span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.dealer-footer-rights {
  margin-left: auto;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

@media (max-width: 640px) {
  .dealer-topbar-inner {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .dealer-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 0.5rem;
  }

  .dealer-nav a {
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .dealer-portal-badge {
    font-size: 0.72rem;
    padding-left: 0.5rem;
    letter-spacing: 0.06em;
  }

  .dealer-footer-rights {
    margin-left: 0;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * VEQOR MOTION — animaciones de scroll (fase 1 visual, 2026-08-11)
 * Módulo: assets/js/veqor-motion.js · Doc: docs/es/motion-fase1.md
 * Todo aquí es aditivo: las clases las pone el JS, así que sin JS el
 * contenido queda en su estado final. Nada se oculta por CSS solo.
 * ══════════════════════════════════════════════════════════════════ */

/* 1 · Línea de corte bajo los títulos de sección ─────────────────── */
.veqor-cut {
  position: relative;
}

.veqor-cut::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  height: 2px;
  width: 0;
  background: var(--red, #c8102e);
  /* El punto final imita la chispa del corte láser. */
  box-shadow: 2px 0 5px rgba(200, 16, 46, 0.55);
  transition: width 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section-title.veqor-cut,
.product-config-title.veqor-cut {
  padding-bottom: 0.15rem;
}

.veqor-cut.is-cut::after {
  width: clamp(48px, 8%, 96px);
}

/* Títulos centrados: el trazo nace del centro. */
.section-header--center .veqor-cut::after,
.home-products--featured .veqor-cut::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 2 · Revelado de imágenes por barrido ───────────────────────────── */
.veqor-wipe {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.veqor-wipe.is-wiped {
  clip-path: inset(0 0 0 0);
}

/* 3 · Entrada escalonada de listas y rejillas ─────────────────────── */
.veqor-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--veqor-i, 0) * 70ms);
}

.veqor-stagger.is-staggered > * {
  opacity: 1;
  transform: none;
}

/* 4 · Header compacto al bajar (sticky en #site-header) ─────────── */
#site-header .topbar,
#site-header .utility-bar,
#site-header .logo-block img,
#site-header .topbar-meta,
#site-header .logo-tagline,
#site-header .topbar-inner {
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    padding 0.28s ease,
    margin 0.28s ease,
    height 0.28s ease,
    min-height 0.28s ease;
}

#site-header .utility-bar {
  max-height: 2.5rem;
  overflow: hidden;
}

#site-header .topbar-meta {
  max-height: 5rem;
  overflow: hidden;
}

#site-header .logo-tagline {
  /* Solo tope alto para animar el colapso; no debe recortar el texto expandido */
  max-height: 6rem;
  overflow: hidden;
}

#site-header.is-compact .utility-bar,
#site-header.is-compact .topbar-meta,
#site-header.is-compact .logo-tagline {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  pointer-events: none;
}

#site-header.is-compact .topbar-inner {
  padding-block: 0.3rem;
  gap: 0.75rem;
  grid-template-columns: auto auto;
  justify-content: space-between;
}

#site-header.is-compact .topbar-meta {
  /* Fuera de flujo al terminar el colapso visual — evita altura fantasma en grid */
  position: absolute;
  visibility: hidden;
}

#site-header.is-compact .utility-inner {
  min-height: 0;
  padding: 0;
}

#site-header.is-compact .topbar {
  border-top-width: 2px;
}

#site-header.is-compact .logo-block {
  gap: 0.5rem;
}

#site-header.is-compact .logo-block img {
  height: 34px;
  width: auto;
}

#site-header.is-compact .navbar-inner {
  min-height: 48px;
}

/* 5 · Profundidad del hero ────────────────────────────────────────── */
.hero .hero-bg {
  will-change: transform;
}

/* ── Accesibilidad: quien pide menos movimiento no ve ninguno ────── */
@media (prefers-reduced-motion: reduce) {
  .veqor-cut::after {
    transition: none;
    width: clamp(48px, 8%, 96px);
  }

  .veqor-wipe,
  .veqor-wipe.is-wiped {
    clip-path: none;
    transition: none;
  }

  .veqor-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #site-header .topbar,
  #site-header .utility-bar,
  #site-header .logo-block img,
  #site-header .topbar-meta,
  #site-header .logo-tagline,
  #site-header .topbar-inner {
    transition: none;
  }

  .hero .hero-bg {
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * VEQOR GSAP MOTION — fase 2 (2026-08-11)
 * Módulo: assets/js/veqor-gsap-motion.js · Doc: docs/es/gsap-motion-fase2.md
 * Aditivo: sin el JS estas clases no se usan / no ocultan contenido.
 * ══════════════════════════════════════════════════════════════════ */

.veqor-gsap-mask {
  display: block;
  overflow: hidden;
  vertical-align: top;
}

.veqor-model-pip {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  border: 2px solid var(--red, #c8102e);
  border-radius: 6px;
  opacity: 0;
  z-index: 1;
  box-sizing: border-box;
}

.product-models-list {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .veqor-gsap-mask {
    overflow: visible;
  }

  .veqor-model-pip {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * VEQOR GSAP WOW — capa llamativa (2026-08-11)
 * Módulo: assets/js/veqor-gsap-wow.js · Doc: docs/es/gsap-wow.md
 * Animaciones vía GSAP only.
 * ══════════════════════════════════════════════════════════════════ */

.veqor-count-cell {
  position: relative;
  display: inline-block;
}

.veqor-count-line {
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 0.35rem;
  background: var(--red, #c8102e);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.35);
}

.hero .hero-bg {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .veqor-count-line {
    transform: none;
  }
}
