:root {
  --red: #ed0018;
  --ink: #0b0d10;
  --carbon: #111314;
  --black: #111314;
  --muted: #6f7780;
  --line: #dfe3e7;
  --soft: #f6f7f8;
  --white: #fff;
}
.conoce-section {
  position: relative;
  width: 100%;
  height: 120vh;
  min-height: 850px;
  background-image:
    url("../images/dmax/conoce-bg-1.png"), url("../images/dmax/conoce-bg-2.png");
  background-position:
    left top,
    right bottom;
  background-size:
    70% auto,
    70% auto;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}

.conoce-truck-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 69%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  transform-origin: bottom right;
}

.dmax-hero-wave {
  transform: translateY(1.5%) !important;
}

.hero-wave {
  animation: waveReveal 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.hero-section.is-playing .hero-wave {
  animation: waveHide 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes waveHide {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
}

@keyframes waveReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.section-intermedio {
  width: 100%;
  height: 15vh;
  background-color: #ffffff;
}

.conoce-title {
  position: absolute;
  top: 15%;
  left: 5%;
  color: #000000;
  z-index: 3;
}

.conoce-title h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.conoce-title h2 strong {
  font-weight: 700;
}

.conoce-title h2 span {
  font-size: 0.75em;
  font-weight: 400;
}

@media (max-width: 1400px), (max-height: 800px) {
  .conoce-title h2 {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .conoce-title h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .conoce-title h2 {
    font-size: 1.6rem;
  }
}

.conoce-subtitle {
  position: absolute;
  bottom: 15%;
  right: 15%;
  display: flex;
  align-items: baseline;
  gap: 15px;
  color: #ffffff;
  z-index: 3;
}

.conoce-subtitle p {
  font-family: "Barlow Condensed", sans-serif;
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 400;
  text-align: left;
}

.conoce-triangle {
  width: 25px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .conoce-subtitle {
    right: 5%;
    bottom: 5%;
  }
  .conoce-subtitle p {
    font-size: 1.2rem;
  }
}

/* SECTION COMPARA */
.compara-section {
  width: 100%;
  position: relative;
}

.compara-module-1 {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.compara-header {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .compara-header {
    padding: 0 10%;
  }
}

.compara-header h2 {
  color: #ffffff;
  font-family: "EurostileExt", sans-serif;
  font-size: 2.5rem;
  margin: 0;
  text-transform: uppercase;
}

.compara-header p {
  color: #ffffff;
  font-size: 0.6rem;
  opacity: 0.6;
  margin: 5px 0 0 0;
}

.compara-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* --- COMPARA MODULE 2 CLIPPED BG --- */
.compara-module-2 {
  width: 100%;
  aspect-ratio: 3840 / 4258;
  position: relative;
  background-color: #0e0e0e;
  z-index: 1; /* Establish stacking context */
}

.compara-module-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    url("../images/dmax/union-background.png"),
    linear-gradient(
      to top,
      #e50014 0,
      #e50014 60vh,
      transparent 20vh,
      transparent 100%
    );
  background-size:
    100% 100%,
    100% 100%;
  background-position:
    top center,
    bottom center;
  background-repeat: no-repeat, no-repeat;
  clip-path: polygon(0 0, 100% 20vw, 100% 100%, 0 100%);
  z-index: -1;
}

/* PARALLAX TRUCK SECTION */
.parallax-truck-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
}

.plx-layer {
  position: absolute;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.plx-bg {
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}
.plx-m1 {
  bottom: 14%;
  left: 0;
  width: 65%;
  z-index: 2;
}
.plx-m2 {
  bottom: 12%;
  right: -10%;
  width: 60%;
  z-index: 2;
}

.plx-ground {
  bottom: -35%;
  left: -5%;
  width: 110%;
  height: 60%;
  object-fit: cover;
  object-position: center top;
  z-index: 3;
}

.plx-title-wrapper {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 4; /* Delante del suelo y montañas de atrás, detrás de la camioneta */
}

.plx-title {
  text-align: center;
  color: #2a2a2a;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.plx-title strong {
  font-weight: 700;
  font-size: 1.4em;
}

/* Car Container */
.plx-car-container {
  position: absolute;
  bottom: 16%;
  left: 30%;
  width: 40%;
  z-index: 5;
}

.plx-car-body {
  width: 100%;
  position: relative;
  z-index: 5;
}
.plx-car-shadow {
  position: absolute;
  bottom: -70%;
  left: 0;
  width: 100%;
  z-index: 6;
}
.plx-car-tire {
  position: absolute;
  width: 17%;
  z-index: 6;
}
.tire-back {
  bottom: -12%;
  left: 8%;
}
.tire-front {
  bottom: -9%;
  right: 16%;
}

.plx-m3-wrapper {
  bottom: -48%;
  left: -35%;
  width: 75%;
  z-index: 6;
}
.plx-m3-img {
  width: 100%;
  height: auto;
  display: block;
}
.plx-m3-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, #0f0f0f 100%);
  pointer-events: none;
}

.plx-master-fade {
  position: absolute;
  bottom: -35%;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to bottom, transparent 0%, #0f0f0f 70%);
  z-index: 10;
  pointer-events: none;
}

/* TRANSICION SECTION */
.transicion {
  width: 100%;
  height: 40vh;
  background-color: #0f0f0f;
  position: relative;
  z-index: 1;
}

/* DESCUBRE SLIDER SECTION */
.descubre-slider-section {
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background-color: #0f0f0f;
  position: relative;
  display: flex;
  flex-direction: column;
}

.descubre-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, #0f0f0f 10%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

.descubre-slider-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to top, #0f0f0f 40%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

.descubre-header-area {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  z-index: 30; /* Ensure it stays above the gradient and stack area */
  pointer-events: none; /* Permitir que los clics pasen a la capa inferior */
}

/* Reactivar los eventos de puntero solo para los elementos interactivos dentro de header-area */
.descubre-header-area > * {
  pointer-events: auto;
}

.descubre-disclaimer {
  align-self: flex-end;
  font-size: 0.6rem;
  color: #ffffff;
  font-style: italic;
  text-align: right;
  margin-top: -10px;
  opacity: 0.6;
}

.descubre-status {
  display: flex;
  align-items: center;
  width: 100%;
}

.descubre-status-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e50013;
  margin-right: 20px;
  white-space: nowrap;
}

.descubre-progress-bar {
  flex: 1;
  height: 2px;
  background-color: #d3d3d3;
  position: relative;
}

.descubre-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.33%;
  background-color: #e50013;
  transition: width 0.4s ease;
}

.descubre-controls {
  display: flex;
  gap: 15px;
}

.btn-descubre-control {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.btn-descubre-control:hover {
  transform: scale(1.1);
}

.descubre-stack-area {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.descubre-deck {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.descubre-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  background-color: #000;
}

.descubre-bg-img,
.descubre-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.descubre-layer-bg {
  z-index: 1;
  opacity: 0.1;
  object-position: bottom;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.descubre-card.show-info .descubre-layer-bg {
  opacity: 1;
}

.descubre-layer-form {
  z-index: 2;
  width: 50%;
  height: auto;
  object-fit: contain;
  top: auto;
  bottom: 10%;
  left: 0;
  transform-origin: left bottom;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#descubreDeck.is-sliding .descubre-layer-form {
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}

.descubre-card.show-info .descubre-layer-form {
  opacity: 0;
  transform: scale(1.1);
}

.descubre-layer-car {
  z-index: 3;
  width: 70%;
  height: auto;
  object-fit: contain;
  top: auto;
  bottom: 10%;
  left: -10%;
  transform-origin: left bottom;
  transform: scale(1.1);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.descubre-card[data-item="1"] .descubre-layer-car {
  left: -20%;
  width: 80%;
}

.descubre-card[data-item="2"] .descubre-layer-car {
  left: -10%;
  width: 80%;
  top: 25%;
  bottom: auto;
}

.descubre-card.show-info .descubre-layer-car {
  transform: scale(1);
}

.btn-descubre-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  margin-bottom: 10px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-descubre-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-descubre-toggle:hover {
  transform: scale(1.1);
}

.descubre-info-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.descubre-info-content {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 500px;
  gap: 20px;
}

.descubre-info-logo {
  max-width: 450px;
  height: auto;
  transform: scale(1.1);
  transform-origin: right center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.descubre-card.show-info .descubre-info-logo {
  transform: scale(1);
}

.descubre-info-text,
.descubre-info-content .btn-switch-container {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.descubre-card.show-info .descubre-info-text,
.descubre-card.show-info .descubre-info-content .btn-switch-container {
  opacity: 1;
  pointer-events: auto;
}

.btn-switch-container.switch-red {
  border-color: #e50014;
}

.btn-switch-container.switch-red:hover {
  border-color: #fff;
}

.switch-red .btn-switch-pill {
  background-color: #e50014;
  color: #fff;
}

.switch-red:hover .btn-switch-pill {
  background-color: #fff;
  color: #e50014;
}

/* EQUIPAMIENTO SECTION */
.equipamiento-section {
  position: relative;
  width: 100%;
  height: 105vh;
  min-height: 935px;
  background-color: #0f0f0f;
  background-image: url("../images/dmax/equipamiento-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
}

@media (min-width: 1600px) {
  .equipamiento-section {
    min-height: 1335px !important;
  }
}

.equipamiento-title {
  position: absolute;
  top: -5px;
  right: 0;
  width: 100%;
  height: calc(25vh + 5px);
  z-index: 10;
}

.equipamiento-title-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e50014;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
}

.equipamiento-truck {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  /* max-width: 1200px; */
  z-index: 20;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.equipamiento-title-text {
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 6.6rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.equipamiento-title-disclaimer {
  position: absolute;
  top: 30%;
  right: 50%;
  transform: translate(100%);
  font-size: 0.6rem;
  color: #ffffff;
  font-style: italic;
  text-align: right;
  opacity: 0.6;
  z-index: 2;
}

/* Equipamiento Carousel */
.equipamiento-carousel-container {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 20;
}

.equipamiento-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 5%;
  gap: 20px;
  padding: 0 5%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.equipamiento-carousel::-webkit-scrollbar {
  display: none;
}

.equipamiento-card {
  flex: 0 0 auto;
  /* 814px es el 42.4% de 1920px. 
     Usamos clamp para que escale hacia abajo de forma fluida, 
     pero sin bajar de 320px en móviles para que no quede invisible. */
  width: clamp(320px, 42.4vw, 814px);
  aspect-ratio: 814 / 357;
  position: relative;
  scroll-snap-align: start;
  /* El border-radius también escala para que no parezca una píldora en móviles */
  border-radius: clamp(20px, 3vw, 55px);
  overflow: hidden;
  background-color: #333;
}

.equipamiento-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.equipamiento-card-title {
  position: absolute;
  bottom: clamp(10px, 2vw, 30px);
  left: clamp(20px, 3vw, 40px);
  color: white;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(14px, 1.8vw, 30px);
  font-weight: normal;
  z-index: 10;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.bg-1 {
  background-image: url("../images/dmax/motor-card.png");
}
.bg-2 {
  background-image: url("../images/dmax/chasis-card.png");
}
.bg-3 {
  background-image: url("../images/dmax/diseno-card.png");
}
.bg-4 {
  background-image: url("../images/dmax/interior-card.png");
}
.bg-5 {
  background-image: url("../images/dmax/seguridad-card.png");
}

.btn-more-info {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}
.btn-more-info:hover {
  transform: scale(1.1);
}
.btn-more-info img {
  width: 40px;
  height: auto;
  display: block;
}

.equipamiento-controls-area {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* LOCALIZA SECTION */
.localiza-section {
  position: relative;
  width: 100%;
  min-height: 60vh;
  height: auto;
  background-color: #251912;
  --locator-map-start: 50%;
  overflow: hidden;
}

.localiza-title {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 10% auto 0;
  width: 90%;
  z-index: 5;
  position: relative;
}

.need-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.need-tabs button {
  position: relative;
  min-width: 190px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid #ccc;
  border-radius: 30px;
  color: #000;
  background: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.08;
  box-shadow: none;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.need-tabs button.active {
  color: #fff;
  background: #cc0000;
  border-color: #cc0000;
  box-shadow: none;
}

.need-tabs button:hover {
  background: #f0f0f0;
  border-color: #ccc;
  box-shadow: none;
  transform: scale(1.02);
}

.need-tabs button.active:hover {
  color: #fff;
  background: #cc0000;
  border-color: #cc0000;
}

.need-tabs.reveal-on-scroll {
  transform: translate(-50%, calc(-50% + 28px));
}

.need-tabs.reveal-on-scroll.is-visible {
  transform: translate(-50%, -50%);
}

.descubre-info-text {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Locator and Contact Form (Appended from snippet)
   ========================================================================== */
.locator__stage {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 118px auto 0;
}

.search-card {
  position: absolute;
  left: 0;
  top: 28px;
  z-index: 5;
  width: 300px;
  min-height: 220px;
  padding: 34px 16px 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.search-tabs {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.search-tabs button {
  min-height: 28px;
  border: 0;
  color: #555;
  background: #d5d6da;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.search-tabs button.active {
  color: #fff;
  background: #e50014;
}

.search-card h3 {
  margin: 0 0 14px;
  color: #555f69;
  font-size: 24px;
  line-height: 1.1;
}

.search-field {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 10px;
  margin-bottom: 14px;
}

.search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #bfc4ca;
  padding: 0 12px;
}

.search-field button {
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #e50014;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c8cdd2;
  background: #fff;
  color: #555;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.result-card strong {
  grid-column: 1 / 2;
  color: #777;
  font-size: 13px;
  line-height: 1.15;
}

.result-card small {
  grid-column: 2 / 3;
  grid-row: 1;
  justify-self: end;
  color: #888;
  font-weight: 800;
  white-space: nowrap;
}

.result-card span {
  grid-column: 1 / -1;
}

.result-card:hover,
.result-card.is-active {
  border-color: #e50014;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.results-status {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #e50014;
  background: #f5f6f8;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
}

.map-wrap {
  position: relative;
  margin-left: 56px;
  padding-bottom: 28px;
}

.dealer-map {
  height: 560px;
  border-radius: 42px 42px 72px 72px;
  overflow: hidden;
  background:
    linear-gradient(rgba(118, 216, 229, 0.7), rgba(118, 216, 229, 0.7)),
    url("/assets/camiones-hub/Isuzu_sitio_productos_mapa.jpg") center/cover;
}

.fallback-map {
  position: relative;
  height: 100%;
}

.fallback-marker {
  position: absolute;
  width: 45px;
  height: 59px;
  border: 0;
  background: url("/assets/camiones-hub/marker.png") center / contain no-repeat;
  transform: translate(-50%, -100%);
  cursor: pointer;
}

.fallback-popup {
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: 2;
  width: min(280px, calc(100% - 32px));
  padding: 13px 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.map-popup {
  display: grid;
  gap: 4px;
  max-width: 260px;
  color: #4b5563;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.map-popup b {
  color: #0b0d10;
  font-size: 13px;
  line-height: 1.15;
}

.map-popup strong {
  width: fit-content;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #e50014;
  font-size: 11px;
}

.nearby-btn {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e50014;
  cursor: pointer;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 10;
}

.nearby-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

.nearby-btn:hover {
  background: #c40010;
  transform: translateX(-50%) scale(1.05);
}

.locator__note {
  margin: 44px auto 0;
  color: #fff;
  text-align: center;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  font-weight: 700;
}

.contact {
  position: relative;
  margin-top: 0;
  padding: 0 0 170px;
  background: #251912;
}

.contact-form {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 0;
  text-align: center;
}

.form-message {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.form-message--success {
  color: #11693a;
}

.form-message--error {
  color: #e50014;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  animation: formGroupIn 0.28s ease both;
}

.form-grid[hidden] {
  display: none;
}

@keyframes formGroupIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid #9ea3a8;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 17px;
}

.form-grid textarea {
  grid-column: 1 / -1;
  height: 160px;
  padding-top: 18px;
  resize: vertical;
}

.contact-form p {
  margin: 34px 0 20px;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.submit-switch {
  --knob-width: 110px;
  --knob-shift: 68px;
  position: relative;
  min-width: 190px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid #e50014;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
  width: 20%;
  margin-left: auto;
  margin-right: auto;
}

.submit-switch:hover {
  border-color: #fff;
}

.submit-switch:hover::before {
  transform: translateX(var(--knob-shift));
  background: #fff;
}

.submit-switch:hover span {
  color: #e50014;
  transform: translate(var(--knob-shift), -50%);
}

.submit-switch::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: var(--knob-width);
  border-radius: 999px;
  background: #e50014;
  transition:
    transform 0.32s ease,
    background 0.32s ease;
}

.submit-switch span {
  position: absolute;
  left: 5px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knob-width);
  height: calc(100% - 10px);
  transform: translateY(-50%);
  transition: transform 0.32s ease;
  pointer-events: none;
}

@media (max-width: 900px) {
  .locator__stage {
    display: grid;
    gap: 18px;
  }
  .search-card {
    position: relative;
    top: auto;
    width: 100%;
  }
  .map-wrap {
    margin-left: 0;
  }
  .dealer-map {
    height: 430px;
    border-radius: 32px 32px 42px 42px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact {
    margin-top: -34px;
    padding-bottom: 118px;
    overflow: visible;
    z-index: 3;
  }
  .submit-switch {
    width: 20%;
    min-width: 190px;
    padding: 9px 24px;
    font-weight: 800;
  }
}

@media (max-width: 520px) {
  .locator__stage,
  .contact-form {
    width: min(100% - 28px, 1160px);
  }
  .contact {
    margin-top: -18px;
    padding-bottom: 86px;
  }
}

/* --- CLOSING SCENE & POST SALE CSS --- */

.post-sale {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.post-sale__intro {
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 32px;
  padding: clamp(90px, 10vw, 150px) 24px;
  color: #fff;
  text-align: center;
  background: #010811;
}

.post-sale__intro h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.post-sale__intro p {
  width: min(740px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 3.05vw, 40px);
  line-height: 1.08;
  font-weight: 400;
}

.post-sale__bar {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 14px 24px;
  color: #fff;
  background: var(--red);
  text-align: center;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
}

.post-sale__service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 660px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 36%, #fff 60%),
    linear-gradient(180deg, #fff 0 82%, #eef9fd 100%);
}

.post-sale__truck {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 58%, #fff 100%),
    linear-gradient(180deg, #f9fcfd, #fff 76%, #edf9fe 100%);
}

.post-sale__truck::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, #fff 100%);
  pointer-events: none;
}

.post-sale__truck img {
  position: relative;
  z-index: 1;
  width: min(720px, 92%);
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 0.68, 0.26, 1),
    filter 0.34s ease;
}

.post-sale__truck img.is-changing {
  opacity: 0;
  transform: translateX(-18px) scale(0.985);
  filter: blur(5px);
}

.post-sale__controls {
  display: grid;
  align-content: center;
  gap: clamp(72px, 9vw, 128px);
  padding: clamp(56px, 7vw, 98px) max(24px, calc((100vw - 1180px) / 2))
    clamp(58px, 7vw, 94px) clamp(32px, 5vw, 76px);
}

.post-sale__controls label {
  display: grid;
  gap: 10px;
}

.post-sale__controls span {
  color: #8b8f94;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.1;
  font-weight: 400;
}

.post-sale__controls select {
  width: min(420px, 100%);
  min-height: 44px;
  padding: 0 44px 0 10px;
  border: 2px solid #c7c9cc;
  border-radius: 0;
  color: #333;
  background:
    linear-gradient(45deg, transparent 50%, var(--red) 50%) calc(100% - 19px)
      52% / 8px 8px no-repeat,
    linear-gradient(135deg, var(--red) 50%, transparent 50%) calc(100% - 13px)
      52% / 8px 8px no-repeat,
    #fff;
  appearance: none;
  cursor: pointer;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 700;
}

.post-sale__controls p {
  justify-self: end;
  width: min(520px, 100%);
  margin: 0;
  color: #a5a8ac;
  text-align: right;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.post-sale__parts {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 56px 24px 0;
  background: transparent;
  text-align: center;
}

.post-sale__parts p {
  margin: 0;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.post-sale__button {
  --knob-width: 150px;
  --knob-shift: 108px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  min-height: 46px;
  padding: 6px;
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.post-sale__button::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: var(--knob-width);
  border-radius: 999px;
  background: var(--red);
  transition:
    transform 0.32s ease,
    background 0.32s ease;
}

.post-sale__button span {
  position: absolute;
  left: 5px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knob-width);
  height: calc(100% - 10px);
  transform: translateY(-50%);
  transition: transform 0.32s ease;
  white-space: nowrap;
}

.post-sale__button:hover::before {
  transform: translateX(var(--knob-shift));
  background: #050505;
}

.post-sale__button:hover span {
  transform: translate(var(--knob-shift), -50%);
}

.closing-scene {
  position: relative;
  min-height: 760px;
  padding: 0 0 10%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(
      180deg,
      #fff 0,
      rgba(255, 255, 255, 0.92) 8%,
      rgba(255, 255, 255, 0) 24%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.74) 78%,
      #fff 94%
    ),
    url("../images/dmax/cierre-bg.png") center -118px / cover no-repeat;
  overflow: hidden;
}

.closing-scene .contact-city {
  margin-top: 140px;
}

.contact-city {
  position: relative;
  width: min(980px, 88vw);
  margin: 0 auto;
  min-height: 270px;
  perspective: 1100px;
  isolation: isolate;
  overflow: visible;
}

.contact-city.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
}

.contact-city img:first-child {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  transform-origin: center bottom;
  transform: translate3d(0, 58px, -170px) scale(0.78);
  filter: blur(8px) saturate(0.9);
  transition:
    opacity 1.75s cubic-bezier(0.22, 0.68, 0.26, 1),
    transform 2.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 2.05s cubic-bezier(0.22, 0.68, 0.26, 1);
  will-change: opacity, transform, filter;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.contact-city.reveal-on-scroll img:first-child {
  opacity: 0;
}

.contact-city.reveal-on-scroll.is-visible img:first-child {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.22);
  filter: blur(0) saturate(1);
}

.contact-city img:last-child {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(390px, 48vw);
  z-index: 2;
  transform: translate3d(-50%, 34px, 0) scale(0.94);
  transform-origin: center bottom;
  opacity: 1;
  transition:
    opacity 1.55s cubic-bezier(0.22, 0.68, 0.26, 1),
    transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.52s;
  will-change: opacity, transform;
}

.contact-city.reveal-on-scroll img:last-child {
  opacity: 0;
}

.contact-city.reveal-on-scroll.is-visible img:last-child {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1.24);
}

.brand-footer {
  position: relative;
  margin-top: -46px;
  min-height: 600px;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  background: #fff;
  padding-top: 74px;
}

.brand-footer__logo {
  position: relative;
  z-index: 1;
  width: min(460px, 72vw);
  height: auto;
}

.footer-waves {
  position: absolute;
  /* left: 0;
  right: 0; */
  bottom: 0px;
  /* height: clamp(210px, 26vw, 340px); */
  width: 100%;
  height: 75%;
  background: url("../images/dmax/waves-footer.png") center bottom / cover
    no-repeat;
}

.footer-waves::before,
.footer-waves::after {
  display: none;
}

@media (max-width: 900px) {
  .post-sale__intro {
    min-height: 430px;
    padding: 78px 24px;
  }

  .post-sale__service {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .post-sale__truck {
    min-height: 410px;
    align-items: end;
  }

  .post-sale__truck img {
    width: min(620px, 92vw);
  }

  .post-sale__controls {
    gap: 42px;
    padding: 28px 24px 48px;
  }

  .post-sale__controls select {
    width: 100%;
  }

  .post-sale__controls p {
    justify-self: start;
    text-align: left;
  }

  .contact-city {
    width: 100%;
    margin-top: 0;
    min-height: 310px;
  }

  .contact-city img:first-child {
    position: relative;
    left: 50%;
    width: min(118vw, 1120px);
    max-width: none;
    transform: translate3d(-50%, 58px, -170px) scale(0.78);
  }

  .contact-city.reveal-on-scroll.is-visible img:first-child {
    transform: translate3d(-50%, 0, 0) scale(1.32);
  }

  .contact-city img:last-child {
    z-index: 20;
    bottom: -8px;
    width: min(460px, 72vw);
  }

  .contact-city.reveal-on-scroll.is-visible img:last-child {
    transform: translate3d(-50%, 0, 0) scale(1.26);
  }

  .brand-footer {
    margin-top: -82px;
    min-height: clamp(360px, 72vw, 520px);
    padding-top: 54px;
    isolation: isolate;
    z-index: 1;
  }

  .brand-footer__logo {
    position: relative;
    z-index: 10;
    transform: translateY(55px);
  }

  .brand-footer__logo.reveal-on-scroll.is-visible {
    transform: translateY(55px) scale(1);
  }

  .footer-waves {
    z-index: 0;
    pointer-events: none;
    height: min(72vw, 340px);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-city img,
  .pill-link,
  .submit-switch,
  .result-card {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .contact-city img:first-child,
  .contact-city img:last-child {
    opacity: 1 !important;
    filter: none !important;
  }

  .contact-city img:first-child {
    transform: none !important;
  }

  .contact-city img:last-child {
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 520px) {
  .post-sale__intro {
    min-height: 360px;
    gap: 22px;
    padding: 60px 18px;
  }

  .post-sale__intro p {
    font-size: 18px;
  }

  .post-sale__bar {
    min-height: 58px;
    font-size: 13px;
  }

  .post-sale__truck {
    min-height: 330px;
  }

  .post-sale__controls {
    padding-inline: 16px;
  }

  .post-sale__parts {
    padding-top: 42px;
  }

  .post-sale__button {
    min-height: 48px;
    border: 0;
    background: var(--red);
  }

  .post-sale__button::before {
    display: none;
  }

  .post-sale__button span {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }

  .post-sale__button:hover span {
    transform: none;
  }

  .closing-scene {
    min-height: 560px;
    background-position:
      center top,
      center -52px;
    z-index: 2;
  }

  .closing-scene .contact-city {
    margin-top: 84px;
  }

  .brand-footer {
    min-height: 340px;
    margin-top: -96px;
    padding-top: 46px;
  }

  .brand-footer__logo {
    transform: translateY(55px);
  }

  .brand-footer__logo.reveal-on-scroll.is-visible {
    transform: translateY(55px) scale(1);
  }

  .contact-city {
    min-height: 285px;
  }

  .contact-city img:first-child {
    width: min(142vw, 840px);
  }

  .contact-city img:last-child {
    width: min(470px, 84vw);
    bottom: -4px;
  }

  .footer-waves {
    bottom: 0;
    height: min(78vw, 300px);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
  }
}

/* --- EQUIPAMIENTO MODALS --- */

.equipamiento-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  background: #ffffff;
  display: none;
  overscroll-behavior: none;
}

.equipamiento-modal.is-active {
  display: block;
}

.modal-scroller {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: slideUpModal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(0);
  }
}

.modal-content {
  width: 100%;
  /* Removed height: 100% and overflow */
}

.modal-close-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #ed0018; /* Hardcoded red instead of variable */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
  padding: 0;
  box-shadow: 0 4px 12px rgba(237, 0, 24, 0.3);
}

.modal-close-btn:hover {
  transform: scale(1.1);
}

.highlight-sticky-wrapper {
  width: 100%;
  height: 300vh; /* 100vh of content + 200vh of scroll pinning */
  position: relative;
}

.modal-highlight {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  overflow: hidden; /* Evita que el título provoque scroll horizontal */
}

.motor-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-motor/motor-1.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 0;
}

.motor-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-motor/motor-bg-1.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 1;
}

.highlight-title {
  width: 100vw;
  font-size: 26vw;
  color: #9b9b9b;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  line-height: 0.85;
  position: relative;
  z-index: 2;
}

.motor-letter {
  display: inline-block;
  color: #9b9b9b;
}

.span-o-2 {
  position: relative;
}

.motor-img-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; /* Adapts to the width of the O */
  opacity: 0;
  pointer-events: none;
}

.motor-img-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 35vw;
  max-width: 1200px;
  z-index: 10;
  pointer-events: none;
}

/* CHASIS HIGHLIGHT CSS */
.chasis-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-chasis/chasis-bg.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 0;
}

.chasis-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-chasis/chasis-bg-1.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 1;
}

.chasis-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.chasis-letters-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.chasis-subtitle {
  font-size: 4rem;
  color: #000;
  font-weight: 700;
  margin-left: 2vw;
  opacity: 0; /* Will be animated in */
}

.chasis-letter {
  display: inline-block;
  color: #9b9b9b;
}

.span-s-i {
  position: relative;
}

.chasis-img-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%; /* Needs to cover S and I */
  opacity: 0;
  pointer-events: none;
}

.chasis-img-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 45vw;
  max-width: 1200px;
  z-index: 10;
  pointer-events: none;
}

.modal-details {
  width: 100%;
  height: auto;
  background-color: #000;
  background-image: url("../images/dmax/modal-details-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10% 5%;
}

.details-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 20px;
  margin-top: 10%;
}

.details-icon {
  width: auto;
  max-width: 80px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(100px);
}

.details-title {
  font-size: 4vw;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 30px 0;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100px);
}

.details-text {
  font-size: 1.5vw;
  font-weight: 400;
  opacity: 0;
  transform: translateY(100px);
}

.details-desc-img {
  display: block;
  margin: 0 auto 30px auto;
  width: 100vw;
  height: 50vh;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: translateY(100px);
}

#chasisDetails .details-desc-img {
  width: auto;
}

.modal-nav {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  gap: 8px;
  background-color: #000;
  padding: 8px;
  border-radius: 50px;
  align-items: center;
  max-width: 90vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-nav::-webkit-scrollbar {
  display: none;
}

.modal-nav-btn {
  background-color: #390005;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 200;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.modal-nav-btn.active {
  background-color: #e50013;
}

.modal-nav-btn:hover:not(.active) {
  background-color: #550008;
}

@media (max-width: 900px) {
  .modal-close-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;

  transition: opacity 1s ease;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero-section.is-playing .hero-video-overlay {
  opacity: 0;
}

.hero-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  animation: heroTitleReveal 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  pointer-events: none;
  transform: translateY(25.5%);
  clip-path: inset(0 100% 0 0);
  animation: waveReveal 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.hero-section.is-playing .hero-image {
  animation: heroTitleHide 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-section.is-playing .hero-wave {
  animation: waveHide 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-video-controls {
  position: absolute;
  bottom: 50px;
  left: 50px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .hero-video-controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
  }
}

.hero-section.controls-active .hero-video-controls {
  opacity: 1;
  visibility: visible;
}

.btn-hero-control {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  font-size: 1rem;
}

.btn-hero-control:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.btn-hero-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@keyframes heroTitleHide {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

.motor-video-section {
  width: 100%;
  height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding-bottom: 0 !important;
}

.motor-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.motor-cards-container {
  padding-top: 0;
}

.motor-card {
  width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  background-color: transparent !important;
}

.motor-card-img {
  width: 100%;
  aspect-ratio: 792 / 442 !important;
  border-radius: 20px !important;
  margin-bottom: 15px;
  object-fit: cover;
}

.motor-card-text {
  color: #000;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  width: 100%;
  padding: 10px 15px 0 15px;
}

.motor-card-wrapper {
  flex: 0 0 auto;
  width: clamp(320px, 42.4vw, 814px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

.motor-cards-container {
  position: relative !important;
  bottom: auto !important;
  padding-top: 0;
}

.equipamiento-carousel::after {
  content: "";
  flex: 0 0 auto;
  width: 50vw;
}

@media (max-width: 991px) {
  .equipamiento-carousel::after {
    width: 68vw;
  }
}

.motor-video-section {
  width: 100%;
  height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding-bottom: 0 !important;
}

.motor-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.motor-caracteristicas-section {
  position: relative;
  width: 100%;
  height: 80vh !important;
  min-height: 700px !important;
  background-image: url("../images/dmax/modal-motor/motor-caracteristicas-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 10vh;
  padding-bottom: 15vh;
}

.motor-cards-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 20;
}

.motor-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.motor-caracteristicas-section {
  position: relative;
  width: 100%;
  height: 80vh !important;
  min-height: 700px !important;
  background-image: url("../images/dmax/modal-motor/motor-caracteristicas-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 10vh;
  padding-bottom: 15vh;
}

.chasis-video-section {
  width: 100%;
  height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding-bottom: 0 !important;
}

.chasis-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.chasis-caracteristicas-section {
  position: relative;
  width: 100%;
  height: 80vh !important;
  min-height: 700px !important;
  background-image: url("../images/dmax/modal-motor/motor-caracteristicas-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 10vh;
  padding-bottom: 15vh;
}

.chasis-cards-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 20;
  padding-top: 0;
}

.chasis-card {
  width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  background-color: transparent !important;
}

.chasis-card-img {
  width: 100%;
  aspect-ratio: 792 / 442 !important;
  border-radius: 20px !important;
  margin-bottom: 15px;
  object-fit: cover;
}

.chasis-card-text {
  color: #000;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  width: 100%;
  padding: 10px 15px 0 15px;
}

.chasis-card-wrapper {
  flex: 0 0 auto;
  width: clamp(320px, 42.4vw, 814px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

/* DISEÑO MODAL HIGHLIGHT */
.diseno-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-diseno/diseno-bg-2.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 0;
}

.diseno-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-diseno/diseno-bg-1.jpg") center/cover
    no-repeat;
  opacity: 0;
  z-index: 1;
}

.diseno-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.diseno-letters-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.diseno-subtitle {
  font-size: 4rem;
  color: #000;
  font-weight: 700;
  margin-left: 2vw;
  opacity: 0; /* Will be animated in */
}

.diseno-letter {
  display: inline-block;
  color: #9b9b9b;
  transition: color 0.5s ease;
}

/* Images for Diseño modal highlight */
.diseno-images-container {
  position: absolute;
  top: 50%;
  right: -55%; /* Starts at -15% on the right */
  transform: translateY(-50%);
  width: 50vw;
  height: 50vh;
  z-index: 3;
  pointer-events: none;
}

.diseno-modal-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center; /* Align to the right screen edge */
}

.diseno-modal-1 {
  opacity: 1;
  z-index: 4;
}

.diseno-modal-2 {
  opacity: 0;
  z-index: 5; /* Superimposed above diseno-modal-1 */
}

/* DISEÑO MODAL DETAILS, VIDEO & CAROUSEL SECTIONS */
.diseno-video-section {
  width: 100%;
  height: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding-bottom: 0 !important;
}

.diseno-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.diseno-caracteristicas-section {
  position: relative;
  width: 100%;
  height: 80vh !important;
  min-height: 700px !important;
  background-image: url("../images/dmax/modal-motor/motor-caracteristicas-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 10vh;
  padding-bottom: 15vh;
}

.diseno-cards-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 20;
  padding-top: 0;
}

.diseno-card {
  width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  background-color: transparent !important;
}

.diseno-card-img {
  width: 100%;
  aspect-ratio: 792 / 442 !important;
  border-radius: 20px !important;
  margin-bottom: 15px;
  object-fit: cover;
}

.diseno-card-text {
  color: #000;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  margin: 0;
  width: 100%;
  padding: 10px 15px 0 15px;
}

.diseno-card-wrapper {
  flex: 0 0 auto;
  width: clamp(320px, 42.4vw, 814px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}

/* INTERIORES MODAL HIGHLIGHT */
.interiores-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-interiores/interiores-bg-2.jpg")
    center/cover no-repeat;
  opacity: 0;
  z-index: 0;
}

.interiores-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/dmax/modal-interiores/interiores-bg-1.jpg")
    center/cover no-repeat;
  opacity: 0;
  z-index: 1;
}

.interiores-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  width: 100%;
  font-size: 14vw !important; /* Reduce size to fit "INTERIORES" cleanly */
}

.interiores-letters-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.interiores-letter {
  display: inline-block;
  color: #9b9b9b;
  transition: color 0.5s ease;
}

/* Images for Interiores modal highlight */
.interiores-images-container {
  position: absolute;
  left: 32%;
  bottom: -15%;
  width: 33%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.interiores-modal-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.interiores-1 {
  opacity: 0;
  z-index: 4;
}

.interiores-2 {
  opacity: 0;
  z-index: 5; /* Superimposed above interiores-1 */
  bottom: -5%;
}

/* Red vertical line in Interiores details */
.red-vertical-line {
  width: 2px;
  height: 80px;
  background-color: #e50013;
  margin: 5% auto;
  opacity: 0;
  transform: translateY(100px);
}

#interioresDetails {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10vh 0 !important;
  overflow: hidden !important;
}

#interioresDetails .details-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

#interioresDetails .details-title {
  padding: 0 20px !important;
}

/* INTERIORES GALLERY SLIDER */
.interiores-gallery-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 40px !important;
  position: relative !important;
  overflow: hidden !important;
  opacity: 0;
  transform: translateY(100px);
}

#interioresGallery {
  display: flex !important;
  gap: 0px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 0 20px 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

#interioresGallery::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.interiores-gallery-item {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  scroll-snap-align: start !important;
  border-radius: 0px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Layout Split (Two columns) */
.interiores-gallery-item.layout-split {
  display: flex;
  min-height: 450px;
  align-items: stretch;
}

.gallery-left-col {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.gallery-desc-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.gallery-desc-text {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

.gallery-right-col {
  flex: 1.2;
  position: relative;
  overflow: hidden;
}

.gallery-right-col .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout Full (Single full-width image) */
.interiores-gallery-item.layout-full {
  width: 100%;
  min-height: 450px;
  display: block;
}

.gallery-img-full {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0px;
  display: block;
}

/* Controls Styling */
.interiores-gallery-controls {
  margin-top: 30px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important; /* Stack vertically: arrows on top, status below */
  justify-content: flex-start !important;
  align-items: flex-start !important; /* Both flush left */
  gap: 15px !important; /* Vertical gap between rows */
  padding: 0 10% 5% !important;
  width: 100% !important;
}
.interiores-gallery-controls .descubre-controls {
  justify-content: flex-start;
  margin: 0;
}
.interiores-gallery-controls .descubre-status {
  justify-content: flex-start;
  margin: 0;
}

/* --- SEGURIDAD MODAL HIGHLIGHT --- */
.seguridad-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/dmax/modal-seguridad/seguridad-bg-2.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
}

.seguridad-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/dmax/modal-seguridad/seguridad-bg-1.jpg");
  background-size: cover;
  background-position: center;
  z-index: 2;
  opacity: 0;
}

.seguridad-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  position: relative;
  width: 100%;
  font-size: 14vw !important;
}

.seguridad-letters-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 5%;
}

.seguridad-letter {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  color: #9b9b9b;
  opacity: 1;
}

.seguridad-images-container {
  position: absolute;
  bottom: -15%;
  left: 50%;
  width: 26%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.seguridad-modal-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seguridad-img-1 {
  z-index: 4;
  opacity: 0;
}

.seguridad-img-2 {
  z-index: 5;
  opacity: 0;
}

.seguridad-intro-text,
.seguridad-feature-wrapper {
  opacity: 0;
  transform: translateY(100px);
}

#seguridadDetails {
  background-color: #0b0b0b;
}
#seguridadDetails .details-content {
  color: #fff;
}

#seguridadDetails .diseno-caracteristicas-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ==========================================================================
   SEGURIDAD ADAS SECTION (VIDEOPLAYER)
   ========================================================================== */
.seguridad-adas-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: url("../images/dmax/modal-seguridad/seguridad-video-bg.jpg")
    center center/cover no-repeat #111111;
  color: #ffffff;
  padding: 10vh 5%;
  font-family: "Inter", sans-serif;
}

.adas-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.adas-left {
  flex: 3;
  min-width: 320px;
}

.adas-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.adas-video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #222222;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
  color: #666666;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: bold;
}

.play-btn-placeholder {
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(229, 0, 20, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn-placeholder:hover {
  transform: scale(1.1);
  background: rgba(229, 0, 20, 1);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #ffffff;
  margin-left: 6px;
}

.adas-video-caption {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cccccc;
}

.adas-video-caption strong {
  color: #ffffff;
}

.adas-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 75px; /* Aligns roughly below the title of left col */
}

.adas-list-item {
  padding: 10px 15px;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #888888;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.adas-list-thumb {
  width: 90px;
  height: 50px;
  background: #222;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.adas-list-thumb::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.5);
  margin-left: 3px;
}

.adas-list-text {
  flex: 1;
  line-height: 1.3;
}

.adas-list-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(229, 0, 20, 0.5);
}

.adas-list-item.active {
  border-left-color: #e50014;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 991px) {
  .adas-container {
    flex-direction: column;
  }
  .adas-right {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .conoce-section {
    height: 60vh;
    min-height: 0;
    background-size:
      100% auto,
      100% auto;
  }
  .plx-title {
    font-size: 2.5rem;
  }
  .plx-m3-wrapper {
    bottom: -38%;
    left: -105%;
    width: 190%;
    z-index: 6;
  }
  .plx-m1 {
    bottom: 14%;
    left: -80%;
    width: 150%;
    z-index: 2;
  }
  .plx-m2 {
    bottom: 14%;
    right: -20%;
    width: 120%;
    z-index: 2;
  }
  .plx-car-body {
    width: 150%;
  }
  .plx-car-shadow {
    width: 150%;
  }
  .plx-car-tire {
    width: 27%;
  }
  .tire-back {
    left: 12%;
  }
  .tire-front {
    right: auto;
    left: 100.5%;
  }

  /* DESCUBRE MOBILE */
  .descubre-header-area {
    align-items: center;
    bottom: 2%;
  }
  .btn-descubre-toggle {
    width: 60px;
    height: 60px;
    margin-bottom: -10px;
  }
  .descubre-layer-form {
    width: 100%;
    bottom: 20%;
  }
  .descubre-card[data-item="1"] .descubre-layer-car {
    left: -50%;
    width: 130%;
    bottom: 30%;
    top: 40%;
  }
  .descubre-info-content {
    top: 30%;
  }
  .descubre-info-logo {
    max-width: 350px;
  }

  .descubre-layer-car {
    top: 50%;
    bottom: 10%;
    left: -20%;
    width: 110%;
  }
  .descubre-card[data-item="2"] .descubre-layer-car {
    left: -10%;
    width: 130%;
    top: 45%;
  }

  .descubre-layer-car {
    top: 40%;
  }
  .descubre-card[data-item="2"] .descubre-layer-car {
    top: 40%;
  }
  .descubre-card[data-item="1"] .descubre-layer-car {
    top: 30%;
  }

  .descubre-info-logo {
    max-width: 300px !important;
  }
  .descubre-info-text {
    font-size: 1rem;
    text-align: center;
    padding: 0 5%;
  }
  .descubre-info-content {
    top: 0 !important;
    left: 0;
    right: auto;
    width: 100%;
    height: 100%;
    transform: none;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20%;
  }
  .descubre-info-content .btn-switch-container {
    position: absolute;
    bottom: 25%; /* Ajustado por el usuario para no quedar bajo el botón */
    left: 50%;
    transform: translateX(-50%);
  }

  .equipamiento-truck {
    top: 25%;
  }
  .equipamiento-title-text {
    top: -20%;
  }

  .equipamiento-title-text {
    font-size: 2.6rem;
  }

  .equipamiento-truck {
    width: 220%;
  }

  .modal-close-btn {
    top: auto;
    bottom: 20px;
    z-index: 10000;
  }

  .details-title {
    font-size: 6vw;
  }
  .details-text {
    font-size: 3.5vw;
  }
  .chasis-subtitle {
    font-size: 2.5rem;
  }

  #chasisDetails .details-desc-img {
    transform: scale(0.64) !important;
  }

  .diseno-subtitle {
    font-size: 3rem;
  }

  .interiores-images-container {
    width: 70%;
    left: 20%;
  }

  .interiores-gallery-item.layout-split {
    flex-direction: column;
  }
  .equipamiento-controls-area,
  .interiores-gallery-controls,
  .interiores-gallery-controls .descubre-controls,
  .interiores-gallery-controls .descubre-status {
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-width: 768px) {
  .descubre-slider-section .descubre-controls,
  .equipamiento-carousel-container .descubre-controls,
  .diseno-caracteristicas-section .descubre-controls,
  .equipamiento-controls-area .descubre-controls {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .modal-nav {
    flex-direction: column;
    align-items: center;
    height: 45px;
    width: 220px;
    padding: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    border-radius: 25px;
    top: 70px !important;
    gap: 5px;
    background-color: transparent !important;
  }
  .modal-nav.is-open {
    height: 230px;
    background-color: transparent !important;
  }
  .modal-nav-btn {
    order: 2;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 25px;
  }
  .modal-nav-btn:hover:not(.active) {
    background-color: rgba(50, 50, 50, 0.9);
  }
  .modal-nav-btn.active {
    order: 1;
    background-color: #e50013;
  }
  .modal-nav-btn.active::after {
    content: " \25BC"; /* Down arrow */
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
  }
  .modal-nav.is-open .modal-nav-btn.active::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .diseno-modal-img {
    object-position: center center !important;
  }
}

.equipamiento-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .diseno-images-container {
    width: 100vw !important;
    right: 0 !important;
    left: auto !important; /* Reset left if it was set */
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 768px) {
  .seguridad-feature-text {
    top: 5% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    width: 90% !important;
    font-size: 1.1rem !important; /* Aumentado */
  }
}

@media (max-width: 768px) {
  .seguridad-bg-main {
    background-image: url("../images/dmax/modal-seguridad/seguridad-bg-2-mob.jpg") !important;
  }
  .seguridad-bg-1 {
    background-image: url("../images/dmax/modal-seguridad/seguridad-bg-1-mob.jpg") !important;
  }
}

@media (max-width: 768px) {
  .diseno-bg-main {
    background: url("../images/dmax/modal-diseno/diseno-bg-2-mob.jpg")
      center/cover !important;
  }
  .diseno-bg-1 {
    background: url("../images/dmax/modal-diseno/diseno-bg-1-mob.jpg")
      center/cover !important;
  }
}

@media (max-width: 768px) {
  #disenoDetails .details-desc-img {
    object-fit: contain !important;
    height: auto !important;
    width: 90vw !important;
    margin: 0 auto 30px auto !important;
  }
}

@media (max-width: 768px) {
  .motor-bg-main {
    background: url("../images/dmax/modal-motor/motor-1-mob.jpg") center/cover
      no-repeat !important;
  }
  .motor-bg-1 {
    background: url("../images/dmax/modal-motor/motor-bg-1-mob.jpg")
      center/cover no-repeat !important;
  }
}

@media (max-width: 768px) {
  .interiores-modal-img {
    height: auto !important;
  }
}

/* --- ADDED FROM SE.CSS --- */
.compare-section {
  position: relative;
  z-index: 3;
  margin-top: clamp(-720px, -42vw, -430px);
  padding-bottom: clamp(160px, 15vw, 280px);
  color: #fff;
  background: transparent;
  overflow: visible;
}

.compare-section::before {
  content: "";
  position: absolute;
  top: clamp(-340px, -18vw, -190px);
  right: 0;
  bottom: clamp(-320px, -20vw, -190px);
  left: 0;
  background: url("/assets/dmax_modelo_SE/back_comparador.png") center top /
    100% 100% no-repeat;
  pointer-events: none;
}

.compare-section::after {
  display: none;
}

.compare-section__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 42px) 0 clamp(120px, 10vw, 180px);
  text-align: center;
  transform: translateY(clamp(-105px, -16vw, -184px));
}

.compare-section h2 {
  position: relative;
  z-index: 5;
  margin: 0 0 clamp(118px, 8vw, 150px);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
}

.compare-grid {
  display: grid;
  width: min(1080px, 100%);
  margin: clamp(-130px, -8vw, -82px) auto 0;
  overflow: visible;
  border-radius: 0 0 26px 26px;
  background: transparent;
}

.compare-models {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: clamp(12px, 2vw, 28px);
  min-height: 320px;
  padding: 92px 36px 22px;
  background: transparent;
}

.compare-models::before {
  content: "";
  position: absolute;
  inset: clamp(82px, 6.2vw, 116px) 0 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 27, 28, 0) 0,
    rgba(23, 27, 28, 0.64) 46px,
    #171b1c 112px,
    #171b1c 100%
  );
  pointer-events: none;
}

.compare-grid.reveal-on-scroll {
  transition-delay: var(--compare-delay, 0ms);
}

.compare-model-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: end;
  min-height: 226px;
  padding-top: 102px;
}

.compare-model-card__visual {
  position: absolute;
  top: -112px;
  left: 50%;
  z-index: 2;
  width: min(300px, 126%);
  aspect-ratio: 1;
  margin: 0;
  transform: translateX(-50%);
}

.compare-card__triangle,
.compare-card__truck {
  position: absolute;
  display: block;
  width: 100%;
  object-fit: contain;
}

.compare-card__triangle {
  z-index: 1;
  inset: -6%;
  height: 100%;
  width: 112%;
}

.compare-card__truck {
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 16%;
  height: 68%;
  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.3));
  transition:
    opacity 0.24s ease,
    filter 0.24s ease;
}

.compare-card__truck.is-changing {
  opacity: 0;
  filter: blur(5px) drop-shadow(0 13px 12px rgba(0, 0, 0, 0.3));
}

.compare-card__logo {
  display: block;
  width: min(200px, 74%);
  height: 72px;
  margin: 34px 0 14px;
  object-fit: contain;
}

.compare-select {
  width: min(190px, 100%);
  margin: -8px 0 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.compare-select span {
  color: #d9d9d9;
  font-size: 11px;
  font-weight: 700;
}

.compare-select select {
  width: 100%;
  min-height: 26px;
  border: 1px solid #555;
  border-radius: 4px;
  color: #fff;
  background: #25292b;
  font-size: 12px;
}

.compare-select--placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.compare-card__logo + .compare-card__swatches {
  margin-top: 0;
}

.compare-card__swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  margin: 0;
}

.compare-card__swatches button {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.compare-card__swatches button.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.compare-card__swatches button.is-hidden {
  display: none;
}

.compare-bottom {
  background: #171b1c;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}

.compare-table {
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}

.compare-table__tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--red);
}

.compare-table__tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.compare-table__tabs button.active {
  color: var(--red);
  background: #fff;
}

.compare-table__versions {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.82fr 1fr;
  min-height: 38px;
  align-items: center;
  color: #a6aaae;
  background: #111516;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.compare-table__body {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.82fr 1fr;
  height: clamp(500px, 36vw, 560px);
  padding: 30px 0 34px;
  color: #2d3135;
  background: #fff;
  border-radius: 0 0 0 0;
  overflow: hidden;
}

.compare-table__column {
  display: grid;
  grid-auto-rows: minmax(84px, auto);
  align-content: start;
  gap: 0;
  min-height: 100%;
  padding: 0 clamp(18px, 2.3vw, 42px);
  border-right: 2px solid #d9d9d9;
}

.compare-table__column:nth-child(2) {
  border-right: 0;
}

.compare-table__column:last-child {
  border-right: 0;
}

.compare-spec {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 84px;
  color: #9a9ea2;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 800;
}

.compare-spec strong {
  color: #2e3337;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 800;
}

.compare-spec::after {
  content: "";
  display: block;
  width: 66px;
  height: 2px;
  background: rgba(237, 0, 24, 0.46);
}

.compare-spec:last-child::after {
  display: none;
}

.compare-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
  width: min(930px, calc(100% - 48px));
  margin: 24px auto 30px;
}

.compare-actions div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.compare-actions a:not(.pill-link) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.compare-disclaimer {
  display: grid;
  justify-items: center;
  gap: 3px;
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.24;
  font-weight: 400;
  text-align: center;
}

.compare-disclaimer strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}

.compare-disclaimer span,
.compare-disclaimer small {
  display: block;
}

.compare-mobile {
  display: none;
}

.pill-link {
  --knob-width: 116px;
  --knob-shift: 58px;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  min-height: 46px;
  margin-top: 12px;
  padding: 6px;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 800;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.pill-link::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: var(--knob-width, 62%);
  border-radius: 999px;
  background: var(--red);
  transition:
    transform 0.32s ease,
    background 0.32s ease;
}

.pill-link span {
  position: absolute;
  left: 5px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knob-width, 62%);
  height: calc(100% - 10px);
  transform: translateY(-50%);
  transition: transform 0.32s ease;
  pointer-events: none;
}

.pill-link:hover {
  color: #fff;
  border-color: #050505;
}

.pill-link:hover::before {
  transform: translateX(var(--knob-shift, 52%));
  background: #050505;
}

.pill-link:hover span {
  transform: translate(var(--knob-shift, 52%), -50%);
}

.pill-link--light {
  --knob-width: 116px;
  --knob-shift: 44px;
  min-width: 170px;
  min-height: 34px;
  color: var(--red);
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 11px;
}

.pill-link--light::before {
  background: #fff;
}

.pill-link--light:hover::before {
  background: var(--red);
}

.pill-link--light:hover {
  border-color: #fff;
}

.pill-link--red {
  --knob-width: 310px;
  --knob-shift: 0px;
  min-width: min(420px, 100%);
  min-height: 58px;
  color: var(--red);
  border-color: rgba(237, 0, 24, 0.45);
  font-size: clamp(16px, 1.5vw, 20px);
}

.pill-link--red::before {
  background: #fff;
}

.pill-link--red span {
  width: calc(100% - 10px);
}

.pill-link--red:hover {
  border-color: var(--red);
}

.pill-link--red:hover::before,
.pill-link--red:hover span {
  transform: translateY(-50%);
}

.dealer-cta {
  --dealer-cut-left: clamp(58px, 6vw, 112px);
  --dealer-cut-right: clamp(150px, 13vw, 250px);
  position: relative;
  z-index: 4;
  min-height: clamp(520px, 48vw, 760px);
  display: grid;
  place-items: center;
  margin-top: clamp(-430px, -24vw, -300px);
  padding: clamp(190px, 17vw, 300px) 24px clamp(80px, 8vw, 130px);
  color: #fff;
  background:
    url("/assets/dmax_modelo_SE/6_parallax/Isuzu_sitio_DMAX_SE_INT_mapa.jpg")
      center / cover fixed no-repeat,
    #e50013;
  clip-path: polygon(
    0 var(--dealer-cut-left),
    100% var(--dealer-cut-right),
    100% 100%,
    0 100%
  );
  overflow: hidden;
}

.dealer-cta::before {
  display: none;
}

.dealer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16),
      transparent 38%,
      rgba(0, 0, 0, 0.12)
    ),
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.14),
      transparent 34%
    );
  pointer-events: none;
}

.dealer-cta__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2vw, 28px);
}

.dealer-cta__pin {
  display: block;
  width: clamp(90px, 9vw, 142px);
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.48));
}

.related-section {
  position: relative;
  padding: clamp(74px, 9vw, 126px) 0 clamp(78px, 10vw, 136px);
  color: #fff;
  background: url("/assets/dmax_modelo_SE/7_otrosModelos/Isuzu_sitio_cierre_back.jpg")
    center / cover no-repeat;
  overflow: hidden;
}

.related-section::before {
  display: none;
}

.related-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(330px, 45vw);
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: var(--red);
  transform: translateX(-50%);
}

.related-section__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.related-section h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1;
  font-weight: 900;
}

.related-section__inner > i {
  width: 280px;
  margin: 34px auto 58px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 8vw, 124px);
  align-items: start;
}

.related-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.related-card img {
  width: min(420px, 100%);
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.related-card__logo {
  position: absolute;
  top: clamp(8px, 2vw, 28px);
  right: clamp(-10px, 1.5vw, 24px);
  z-index: 2;
  width: min(240px, 58%) !important;
  object-fit: contain;
  pointer-events: none;
}

.related-card:hover img:not(.related-card__logo) {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 18px rgba(237, 0, 24, 0.18));
}
.dmax-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  background: #f4f4f4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.48s cubic-bezier(0.22, 0.68, 0.26, 1);
}

.dmax-gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dmax-gallery-modal__rail,
.dmax-gallery-modal__stage {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 0.52s cubic-bezier(0.22, 0.68, 0.26, 1),
    transform 0.52s cubic-bezier(0.22, 0.68, 0.26, 1),
    filter 0.52s cubic-bezier(0.22, 0.68, 0.26, 1);
}

.dmax-gallery-modal.is-open .dmax-gallery-modal__rail,
.dmax-gallery-modal.is-open .dmax-gallery-modal__stage {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.dmax-gallery-modal__rail {
  grid-column: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--red);
}

.dmax-gallery-modal__arrow {
  width: 30px;
  height: 24px;
  padding: 0;
  background-color: #fff;
  background-size: 25px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.dmax-gallery-modal__stage {
  position: relative;
  grid-column: 2;
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #e6e8ea;
}

.dmax-gallery-modal__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.dmax-gallery-modal__stage.is-changing::after {
  opacity: 1;
}

.dmax-gallery-modal__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dmax-gallery-modal__close {
  position: absolute;
  right: 34px;
  top: 34px;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.dmax-gallery-modal__close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dmax-gallery-modal figcaption {
  display: none;
}

@media (max-width: 980px) {
  .dmax-hero {
    min-height: 590px;
    height: 82vh;
  }

  .dmax-hero__bg {
    height: 68%;
  }

  .dmax-hero__brand {
    top: 54px;
    width: min(590px, 82vw);
  }

  .dmax-hero__truck {
    bottom: 82px;
    width: min(760px, 98vw);
  }

  .dmax-quote-float {
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .work-section {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 70px 86px;
  }

  .work-section__copy {
    justify-self: start;
    width: auto;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .work-section__copy p {
    margin-left: 0;
  }

  .work-section__media--left {
    width: min(600px, 116vw);
    margin-left: -34vw;
    margin-top: 0;
  }

  .work-section__media--right {
    grid-column: auto;
    width: min(780px, 122vw);
    margin: 0 -30vw 0 auto;
  }

  .work-section__note {
    grid-column: auto;
    margin: 0;
    width: min(720px, 100%);
    font-size: clamp(17px, 3vw, 22px);
  }

  .features-section__body {
    grid-template-columns: 1fr;
    width: min(100% - 48px, 1160px);
    margin: 0 auto;
  }

  .dmax-gallery__tabs {
    position: static;
    width: min(100% - 48px, 520px);
    max-width: none;
    margin: 22px 0 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmax-gallery__strip {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-top: 0;
  }

  .dmax-gallery-card {
    flex-basis: 78vw;
  }

  .terrain-section {
    min-height: 1180px;
  }

  .terrain-section__bg {
    object-position: center top;
  }

  .terrain-section__copy {
    top: clamp(700px, 96vw, 850px);
    width: min(520px, 68vw);
    transform: translateX(-50%);
  }

  .terrain-section__copy.reveal-on-scroll {
    transform: translate(-50%, 28px);
  }

  .terrain-section__copy.reveal-on-scroll.is-visible {
    transform: translate(-50%, 0);
  }

  .compare-section__inner {
    padding-top: 28px;
    width: calc(100% - 42px);
    transform: translateY(-196px);
  }

  .compare-section {
    padding-bottom: 190px;
  }

  .compare-section::before {
    bottom: -260px;
  }

  .dealer-cta {
    --dealer-cut-left: 44px;
    --dealer-cut-right: 118px;
    min-height: 560px;
    margin-top: -318px;
    padding-top: 188px;
  }

  .compare-grid {
    width: min(100%, 940px);
    overflow-x: auto;
    margin: 0 auto;
  }

  .compare-section h2 {
    margin-bottom: 124px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .related-card__logo {
    top: 22px;
    right: 8%;
    width: min(220px, 48%) !important;
  }
}

@media (max-width: 560px) {
  .dmax-hero {
    min-height: 520px;
    height: 74vh;
  }

  .dmax-hero__brand span {
    font-size: clamp(48px, 17vw, 82px);
  }

  .dmax-hero__brand {
    width: min(350px, 78vw);
  }

  .dmax-hero__brand strong {
    font-size: clamp(38px, 14vw, 66px);
  }

  .dmax-hero__truck {
    left: 50%;
    bottom: 82px;
    width: 112vw;
    transform: translate(-86%, -18px) scale(0.98);
    animation-name: dmaxTruckInMobile;
  }

  .dmax-scroll-dot {
    bottom: 74px;
  }

  .work-section,
  .features-section__body,
  .compare-section__inner,
  .related-section__inner {
    width: min(100% - 28px, 1160px);
  }

  .work-section {
    padding-inline: 0;
  }

  .features-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
  }

  .features-list img {
    width: 42px;
    height: 42px;
  }

  .dmax-section-heading {
    width: min(100% - 28px, 1160px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dmax-section-heading i {
    width: 46%;
  }

  .dmax-gallery__tabs {
    position: static;
    width: min(100% - 28px, 1160px);
    margin: 22px 0 20px 14px;
    padding: 6px 8px;
  }

  .dmax-gallery__tabs button {
    min-height: 38px;
    padding: 5px 16px;
    font-size: 16px;
  }

  .dmax-gallery__ui {
    width: min(100% - 28px, 1160px);
    margin-left: 14px;
  }

  .slider-progress {
    grid-template-columns: auto minmax(120px, 1fr);
    width: min(280px, 100%);
  }

  .dmax-gallery-card {
    flex-basis: 86vw;
    height: 250px;
    border-radius: 18px;
  }

  .terrain-section {
    min-height: 920px;
    padding-top: 54px;
  }

  .terrain-section__copy {
    top: clamp(560px, 148vw, 700px);
    width: min(320px, 76vw);
    transform: translateX(-50%);
  }

  .terrain-section__copy.reveal-on-scroll {
    transform: translate(-50%, 28px);
  }

  .terrain-section__copy.reveal-on-scroll.is-visible {
    transform: translate(-50%, 0);
  }

  .compare-section__inner {
    width: calc(100% - 28px);
    padding-top: 18px;
    transform: translateY(-166px);
  }

  .compare-section {
    padding-bottom: 160px;
  }

  .compare-section::before {
    bottom: -54px;
  }

  .dealer-cta {
    --dealer-cut-left: 34px;
    --dealer-cut-right: 94px;
    min-height: 520px;
    margin-top: -268px;
    padding-top: 168px;
  }

  .pill-link,
  .pill-link--light,
  .pill-link--red {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
  }

  .pill-link::before {
    display: none;
  }

  .pill-link span {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }

  .pill-link:hover,
  .pill-link:hover span {
    transform: none;
  }

  .pill-link--red {
    color: #fff;
  }

  .dmax-gallery-modal {
    grid-template-columns: 1fr;
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .dmax-gallery-modal__rail {
    grid-column: 1;
    grid-row: 1;
    grid-auto-flow: column;
    align-content: center;
  }

  .dmax-gallery-modal__stage {
    grid-column: 1;
    grid-row: 2;
    height: calc(100vh - 64px);
  }

  .dmax-gallery-modal__close {
    top: 18px;
    right: 18px;
  }

  .dmax-gallery-modal figcaption {
    left: 22px;
    bottom: 22px;
    font-size: 20px;
  }
}

.dealer-cta .pill-link--red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(430px, 86vw);
  min-height: 48px;
  padding-inline: 24px;
  color: var(--red);
  text-align: center;
  border: 1px solid rgba(237, 0, 24, 0.3);
  background: #fff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.dealer-cta .pill-link--red::before {
  display: none;
}

.dealer-cta .pill-link--red span {
  position: static;
  width: auto;
  height: auto;
  text-align: center;
  line-height: 1.15;
  transform: none;
}

.dealer-cta .pill-link--red:hover,
.dealer-cta .pill-link--red:hover span {
  color: #fff;
  background: var(--red);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll,
  .dmax-hero__shade,
  .dmax-hero__brand,
  .dmax-hero__truck {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
/* --- INLINE DEALER COMPONENT --- */
.inline-dealer-component {
  width: 100%;
  margin-top: 30px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inline-dealer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  /* max-width: 1080px; */
  margin-inline: auto;
  /* padding: 0 10%; */
  align-items: stretch;
  width: min(1160px, 80%);
}

.inline-dealer-banner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.inline-dealer-selector {
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  color: #333;
}

.inline-dealer-selector label {
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.inline-dealer-selector span {
  color: #585d63;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.inline-dealer-selector select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #c8cbce;
  border-radius: 8px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' color='%23020812' fill='none'%3E%3Cpath d='M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E")
    right 12px center / 24px no-repeat;
  color: #020812;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.inline-dealer-selector select[size] {
  padding: 8px;
  background-image: none;
  font-size: 14px;
  font-weight: 500;
  overflow-y: auto;
}

.inline-dealer-selector select[size] option {
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.inline-dealer-selector select[size] option:checked {
  background: #d32027;
  color: #fff;
}

.inline-dealer-notice {
  font-size: 13px;
  font-weight: 500;
  color: #d32027;
}

.inline-dealer-disclaimer {
  font-size: 11px;
  color: #6b7280;
  opacity: 0.8;
  line-height: 1.3;
  margin-top: 8px;
}

.inline-dealer-map-stage {
  position: relative;
  z-index: 1;
  width: min(1160px, 80%);
  margin-inline: auto;
  min-height: clamp(450px, 60vh, 650px);
}

.inline-dealer-map-wrap {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: 46px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
}

.inline-dealer-map {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(116, 214, 224, 0.34), rgba(116, 214, 224, 0.34)),
    url("../images/dmax/comparador/Isuzu_site_Home_googlemaps_back.jpg")
      center / cover no-repeat;
}

.inline-dealer-panel {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 2;
  width: min(360px, calc(100vw - 56px));
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .inline-dealer-component {
    padding: 24px 16px;
  }
  .inline-dealer-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
    max-width: 100%;
    padding: 0 20px;
  }
  .inline-dealer-banner {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 220px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  .inline-dealer-selector {
    aspect-ratio: auto;
    height: auto;
    padding: 22px 18px;
    border-radius: 14px;
    gap: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  }
  .inline-dealer-selector select[size] {
    max-height: 160px;
  }
  .inline-dealer-map-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    gap: 20px !important;
  }
  .inline-dealer-panel {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    order: 1 !important;
  }
  .inline-dealer-map-wrap {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: 420px !important;
    min-height: 420px !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25) !important;
    order: 2 !important;
  }
  .locations-card {
    max-height: unset !important;
  }
}

/* --- INLINE DEALER PANEL (Search & Results) --- */

.location-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.location-tabs button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #585d63;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.location-tabs button.active {
  background: #d32027;
  color: #fff;
}

.locations-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  flex-grow: 1;
  max-height: calc(100% - 60px);
}

.locations-card h2 {
  margin: 0 0 16px;
  color: #333;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.locations-search {
  display: flex;
  position: relative;
  margin-bottom: 16px;
}

.locations-search input {
  flex-grow: 1;
  padding: 12px 16px;
  padding-right: 48px;
  border: 1px solid #c8cbce;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.locations-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  background: #e50014; /* Rojo Isuzu */
  border: none;
  border-radius: 6px;
  display: flex;
  flex-direction: column; /* Rayas apiladas verticalmente (horizontales) */
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.locations-search button:hover {
  background: #c40010;
}

/* Rayas horizontales blancas */
.locations-search button span {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.locations-status {
  font-size: 13px;
  color: #d32027;
  font-weight: 600;
  margin-bottom: 12px;
}

.locations-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 8px;
}
.locations-results::-webkit-scrollbar {
  width: 6px;
}
.locations-results::-webkit-scrollbar-thumb {
  background: #c8cbce;
  border-radius: 4px;
}

.locations-results button {
  display: block;
  text-align: left;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.locations-results button:hover {
  background: #fff;
  border-color: #d32027;
  box-shadow: 0 4px 12px rgba(211, 32, 39, 0.15);
}

.locations-results button strong {
  display: block;
  font-size: 15px;
  color: #d32027;
  margin-bottom: 4px;
}

.locations-results button span {
  display: block;
  font-size: 13px;
  color: #585d63;
  line-height: 1.4;
}

.locations-results button a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  pointer-events: auto;
}
.locations-results button a:hover {
  color: #d32027;
}

@media (max-width: 768px) {
  .locations-card {
    max-height: 400px;
  }
}

/* --- USER REQUESTED FIXES --- */
.locator {
  background: #251912 !important;
}

/* --- LIMIT RESULTS TO 2 ITEMS HEIGHT --- */
.inline-dealer-panel .locations-results {
  max-height: 230px !important;
}

/* --- ADJUST PANEL SPACING & RADIUS --- */
.inline-dealer-panel {
  gap: 0 !important;
}

.inline-dealer-panel .locations-card {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.inline-dealer-panel .location-tabs {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* --- MORE TAB ADJUSTMENTS --- */
.inline-dealer-panel .location-tabs {
  padding: 0 !important;
}

.inline-dealer-panel .location-tabs button {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
}

/* --- LOCATOR INTRO OVERRIDES --- */
.locator__intro {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.locator__intro h2,
.locator__intro p,
.locator__intro span {
  color: #ffffff !important;
}

/* --- POSTVENTA SECTION OVERRIDES --- */
.post-sale-closing {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 650px;
  padding-top: 80px;
  padding-bottom: 120px;
  background-color: white;
  background-image: url("../images/dmax/postventa-bg.png");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  /* clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 1vw)); */
  margin-top: -4px;
}

@media (max-width: 768px) {
  .post-sale-closing {
    height: 200vh !important;
    min-height: 200vh !important;
  }
}

.post-sale-closing .post-sale__message {
  color: #ffffff !important;
}

/* --- EXTRACTED POST-SALE CSS FROM CAMIONES.CSS --- */
.post-sale__hero {
  position: relative;
  z-index: 2;
  min-height: clamp(330px, 34vw, 430px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: clamp(72px, 8vw, 120px) 24px clamp(110px, 9vw, 150px);
  color: #fff;
  text-align: center;
  background: #1a0306;
  overflow: hidden;
}
.post-sale__hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(0.9);
}
.post-sale__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(237, 0, 24, 0.26);
  pointer-events: none;
}
.post-sale__hero > :not(.post-sale__hero-video) {
  position: relative;
  z-index: 2;
}
.post-sale__hero h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;
}
.post-sale__hero p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.14;
  font-weight: 700;
}
.post-sale__body {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0 24px clamp(36px, 5vw, 72px);
  margin-top: 0;
  text-align: center;
  top: -35%;
}
.post-sale__gallery {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  justify-content: center;
  gap: clamp(28px, 4vw, 54px);
  width: min(840px, 100%);
  margin-bottom: clamp(42px, 5vw, 70px);
}
.post-sale__gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* good measure */
}
.post-sale__message {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 0 0 28px;
  color: #ffffff;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.2;
  font-weight: 800;
}
.post-sale__body .post-sale__button {
  --knob-width: 126px;
  --knob-shift: 74px;
  position: relative;
  z-index: 1;
  min-width: 220px;
  min-height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid var(--red, #e50014);
  transition: border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 0 24px;
}
.post-sale__body .post-sale__button:hover {
  background: var(--red, #e50014);
}

@media (max-width: 900px) {
  .post-sale__hero {
    min-height: 370px;
    gap: 18px;
    padding: 64px 18px 120px;
  }
  .post-sale__hero h2 {
    font-size: 34px;
  }
  .post-sale__hero p {
    font-size: 16px;
  }
  .post-sale__body {
    margin-top: 0;
    padding-right: 18px;
    padding-left: 18px;
    padding-bottom: 42px;
  }
  .post-sale__gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(280px, 100%);
    margin-bottom: 36px;
  }
  .post-sale__message {
    font-size: 17px;
  }
}

/* --- POST-SALE TWEAKS (SLIDING PILL) --- */
.post-sale__message {
  font-weight: normal !important;
}

.post-sale__body .post-sale__button {
  --knob-width: 156px;
  --knob-shift: 84px;
  position: relative;
  display: inline-block;
  min-width: 250px;
  min-height: 46px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: transparent !important;
}

/* The sliding background pill */
.post-sale__body .post-sale__button::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: var(--knob-width);
  border-radius: 999px;
  background: #ffffff;
  transition:
    transform 0.32s ease,
    background 0.32s ease;
}

/* The text that moves with the pill */
.post-sale__body .post-sale__button span {
  position: absolute;
  left: 4px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knob-width);
  height: calc(100% - 8px);
  transform: translateY(-50%);
  transition:
    transform 0.32s ease,
    color 0.32s ease;
  white-space: nowrap;
  color: #000000;
}

/* Hover effects */
.post-sale__body .post-sale__button:hover::before {
  transform: translateX(var(--knob-shift));
  background: #000000;
}

.post-sale__body .post-sale__button:hover span {
  transform: translate(var(--knob-shift), -50%);
  color: #ffffff;
}

/* --- POST-SALE TWEAKS 2 --- */
/* Text that says "Más información" */
.post-sale__body .post-sale__button span {
  font-weight: normal !important;
  color: #e50119 !important;
}

/* On hover, outer border turns black (and text turns white from previous rule) */
.post-sale__body .post-sale__button:hover {
  border-color: #000000 !important;
}

/* "Descubre el mejor servicio..." paragraph */
.post-sale__hero p {
  font-weight: normal !important;
}

/* "Servicio Post Venta" H2 and divider */
.post-sale__hero h2 {
  font-weight: 600 !important;
  display: inline-block !important; /* match width to text */
  position: relative;
  margin-bottom: 32px !important; /* pushes the paragraph down to create space below the divider */
}

.post-sale__hero h2::after {
  content: "";
  position: absolute;
  bottom: -16px; /* exact middle of the 32px margin */
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e50119;
}

/* Hide the old generic divider */
.post-sale__hero i {
  display: none !important;
}

/* --- MOBILE POST-SALE OVERRIDES --- */
@media (max-width: 900px) {
  .post-sale-closing {
    height: 200vh !important;
    min-height: 200vh !important;
  }
  .post-sale__body {
    top: 0 !important;
    margin-top: 0 !important;
  }
  .post-sale__body .post-sale__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    height: 48px !important;
    min-height: 48px !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 999px !important;
    padding: 0 28px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
  }
  .post-sale__body .post-sale__button::before {
    display: none !important;
  }
  .post-sale__body .post-sale__button span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    color: #e50014 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  .post-sale__body .post-sale__button:hover {
    background: #e50014 !important;
    border-color: #e50014 !important;
  }
  .post-sale__body .post-sale__button:hover span {
    color: #ffffff !important;
    transform: none !important;
  }
}
.needs__tabs {
  position: relative;
  z-index: 1 !important;
}

/* --- MOBILE COMPARE SECTION CSS --- */

.compare-spec {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 84px;
  color: #9a9ea2;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 800;
}

.compare-spec strong {
  color: #2e3337;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 800;
}

.compare-spec::after {
  content: "";
  display: block;
  width: 66px;
  height: 2px;
  background: rgba(237, 0, 24, 0.46);
}

.compare-spec:last-child::after {
  display: none;
}

.compare-mobile {
  display: none;
}

.compare-mobile {
  display: block;
  width: 100%;
  color: #fff;
  background: #171b1c;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.compare-mobile__models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 28px 12px 18px;
  background: linear-gradient(
    180deg,
    rgba(23, 27, 28, 0) 0,
    rgba(23, 27, 28, 0.6) 18px,
    #171b1c 46px,
    #171b1c 100%
  );
}

.compare-mobile__model {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
}

.compare-mobile__visual {
  position: relative;
  justify-self: center;
  width: min(150px, 40vw);
  aspect-ratio: 1;
  margin: 0 0 -2px;
}

.compare-mobile__model:first-child .compare-mobile__visual {
  justify-self: center;
  margin-left: 0;
}

.compare-mobile__model:last-child .compare-mobile__visual {
  justify-self: center;
  margin-right: 0;
}

.compare-mobile__model:first-child .compare-card__triangle,
.compare-mobile__model:last-child .compare-card__triangle {
  left: 50%;
  width: 110%;
  transform: translateX(-50%);
}

.compare-mobile__visual .compare-card__truck {
  left: 50%;
  bottom: 20%;
  width: 94%;
  height: auto;
  transform: translateX(-50%);
}

.compare-mobile__logo {
  display: block;
  width: min(128px, 36vw);
  height: 48px;
  margin: 4px 0 8px;
  object-fit: contain;
}

.compare-mobile__select {
  position: relative;
  width: min(150px, 100%);
  margin: 0 0 12px;
}

.compare-mobile__select span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.compare-mobile__select select {
  width: 100%;
  min-height: 28px;
  padding: 0 24px 0 8px;
  border: 1px solid #565b5f;
  border-radius: 3px;
  color: #c7cbce;
  background: #202426;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}

.compare-mobile__swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
}

.compare-mobile__swatches button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: var(--swatch);
}

.compare-mobile__swatches button.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.compare-mobile__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 6px;
  padding: 12px 10px 10px;
  background: var(--red);
}

.compare-mobile__tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 900;
}

.compare-mobile__tabs button.active {
  color: var(--red);
  background: #fff;
}

.compare-mobile__nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 0 20px 8px;
  background: var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.compare-mobile__nav-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.compare-mobile__nav-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  transition:
    width 0.22s ease,
    background 0.22s ease;
}

.compare-mobile__nav-dots span.active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.compare-mobile__nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(17, 19, 20, 0.1);
  border-radius: 0;
  appearance: none;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.9);
  background-position: center;
  background-size: 22px auto;
  background-repeat: no-repeat;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(17, 19, 20, 0.16);
}

.compare-mobile__nav button::before {
  content: "";
  display: block;
  width: 24px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(0 34%, 58% 34%, 58% 0, 100% 50%, 58% 100%, 58% 66%, 0 66%);
}

.compare-mobile__nav button[data-mobile-compare-prev],
.compare-mobile__nav button[data-mobile-compare-next] {
  background-color: #fff !important;
  background-position: center !important;
  background-size: 25px auto !important;
  background-repeat: no-repeat !important;
}

.compare-mobile__nav button[data-mobile-compare-prev] {
  background-image: url("/assets/dmax_modelo_SE/arrow-previo.png") !important;
}

.compare-mobile__nav button[data-mobile-compare-prev]::before {
  transform: rotate(180deg);
}

.compare-mobile__nav button[data-mobile-compare-next] {
  background-image: url("/assets/dmax_modelo_SE/arrow-siguiente.png") !important;
}

.compare-mobile__versions,
.compare-mobile__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-mobile__versions {
  min-height: 32px;
  align-items: center;
  color: #b8bdc0;
  background: #111516;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.compare-mobile__body {
  color: #2d3135;
  background: #fff;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.compare-mobile__column {
  display: grid;
  grid-auto-rows: minmax(76px, auto);
  align-content: start;
  padding: 18px 14px 22px;
  border-right: 1px solid #d9d9d9;
}

.compare-mobile__column:last-child {
  border-right: 0;
}

.compare-mobile .compare-spec {
  min-height: 76px;
  gap: 5px;
  font-size: 11px;
  line-height: 1.05;
}

.compare-mobile .compare-spec strong {
  font-size: 13px;
  line-height: 1.08;
}

.compare-mobile .compare-spec::after {
  width: 44px;
}

.compare-mobile__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 22px 14px 26px;
  background: #171b1c;
}

.compare-mobile__actions div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.compare-mobile__actions a:not(.pill-link) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
}

.compare-mobile__actions .pill-link--light {
  min-width: 112px;
  min-height: 32px;
  margin-top: 2px;
  font-size: 10px;
}

.compare-mobile__nav button,
.compare-mobile__nav button[data-mobile-compare-prev],
.compare-mobile__nav button[data-mobile-compare-next] {
  width: 42px;
  height: 34px;
  padding: 0;
  border: 0;
  background-color: transparent !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  box-shadow: none;
  overflow: visible;
}

.compare-mobile__nav button::before {
  display: none;
}

.compare-mobile__nav button[data-mobile-compare-prev] {
  background-image: url("/assets/dmax_modelo_SE/prev-arrow.png") !important;
}

.compare-mobile__nav button[data-mobile-compare-next] {
  background-image: url("/assets/dmax_modelo_SE/next-arrow.png") !important;
}

.compare-mobile__nav-dots {
  min-width: 0;
}

.compare-actions .pill-link--light:hover,
.compare-mobile__actions .pill-link--light:hover {
  border-color: var(--red);
}

/* Visibility Rules */
@media (max-width: 768px) {
  .compare-grid.reveal-on-scroll {
    display: block !important;
  }
  .compare-models {
    display: none !important;
  }
  .compare-mobile {
    display: block !important;
  }
  .compare-bottom {
    display: none !important;
  }
  .compare-section__inner {
    transform: translateY(clamp(-100px, -16vw, -184px));
  }
}
@media (min-width: 769px) {
  .compare-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .need-tabs {
    flex-direction: column;
    width: min(400px, calc(100% - 32px));
    margin: 40px auto 28px;
    padding: 15px;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
  }
  .need-tabs button {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    border: 2px solid #ccc;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-size: 16px;
  }
  .need-tabs button.active {
    border-color: #cc0000;
    box-shadow: none;
  }
  .need-tabs.reveal-on-scroll {
    transform: translateY(28px);
  }
  .need-tabs.reveal-on-scroll.is-visible {
    transform: none;
  }
}

@media (max-width: 768px) {
  .descubre-disclaimer {
    align-self: center;
    text-align: center;
  }
}
