/* VALXEM Drive only: shared navigation, footer and WhatsApp are unchanged. */
.drive-premium {
  --drive-paper: #f8f7f4;
  --drive-ink: #18191b;
  --drive-gold: #e0bb76;
}
.drive-premium section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.drive-premium .drive-light {
  background: var(--drive-paper);
  color: var(--drive-ink);
}
.drive-premium .drive-dark {
  background: #101214;
  color: #f8f7f4;
}
.drive-premium h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 22px 0;
}
.drive-premium h1 span {
  color: var(--drive-gold);
}
.drive-premium h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -.03em;
  margin: 16px 0 22px;
}
.drive-premium h3 {
  font-size: 1.13rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.drive-premium p {
  line-height: 1.75;
}
.drive-premium .drive-light p {
  color: #555651;
}
.drive-premium .drive-dark p {
  color: #c9c8c3;
}
.drive-premium .section-tag {
  display: block;
  font-size: .73rem;
  letter-spacing: .13em;
  font-weight: 700;
  text-transform: uppercase;
  color: #95600b;
}
.drive-dark .section-tag {
  color: var(--drive-gold);
}
.drive-heading {
  max-width: 790px;
  margin-bottom: 36px;
}
.drive-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.drive-hero-grid > *,
.drive-grid > * {
  min-width: 0;
}
.drive-back {
  display: inline-block;
  color: #c9c8c3;
  font-size: .83rem;
  margin-bottom: 28px;
}
.drive-lead {
  max-width: 670px;
  font-size: 1.05rem;
}
.drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.drive-premium .btn-primary {
  background: #ddb366;
  color: #17130d;
  border-color: #ddb366;
  box-shadow: none;
}
.drive-premium .btn-primary:hover {
  background: #ebc783;
}
.drive-premium .btn-secondary {
  background: transparent;
  color: #f8f7f4;
  border-color: #74674f;
}
.drive-premium .drive-note {
  font-size: .86rem;
  margin-top: 26px;
}
.drive-visual {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #514735;
  border-radius: 24px;
  background: linear-gradient(145deg, #24282c, #131517);
}
.drive-visual-label {
  color: #eee8dc;
  font-size: .9rem;
}
.drive-car {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0;
}
.drive-route {
  fill: none;
  stroke: #65573d;
  stroke-width: 2;
}
.drive-car-body {
  fill: #272c30;
  stroke: #e0bb76;
  stroke-width: 3;
  stroke-linejoin: round;
}
.drive-car-window {
  fill: #121517;
  stroke: #9b978d;
  stroke-width: 2;
}
.drive-car-detail {
  fill: none;
  stroke: #d2c5ac;
  stroke-width: 2;
}
.drive-wheel {
  fill: #111315;
  stroke: #c9c5bb;
  stroke-width: 3;
}
.drive-wheel-inner {
  fill: #31383e;
  stroke: #b69c6d;
  stroke-width: 2;
}
.drive-visual-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #514735;
  color: #e0bb76;
  font-size: .84rem;
}
.drive-visual p {
  font-size: .8rem;
  margin-top: 18px;
}
.drive-grid {
  display: grid;
  gap: 22px;
}
.drive-vehicle-grid,
.drive-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.drive-two,
.drive-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drive-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #dedbd3;
  border-radius: 18px;
  background: #fff;
}
.drive-dark .drive-card {
  background: #1b1e21;
  border-color: #363a3e;
}
.drive-icon {
  width: 62px;
  height: 42px;
  color: #95600b;
  margin-bottom: 22px;
}
.drive-link {
  display: inline-block;
  color: #835509;
  font-weight: 600;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.drive-dark .drive-link {
  color: #e0bb76;
}
.drive-process {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.drive-step {
  border-top: 2px solid #b98a3b;
  padding-top: 23px;
}
.drive-transparency,
.drive-faq-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(26px, 5vw, 70px);
}
.drive-transparency p + p {
  margin-top: 18px;
}
.drive-premium .drive-faq-section {
  padding-top: 24px;
}
.drive-faq details {
  border-bottom: 1px solid #d8d4ca;
  padding: 19px 0;
}
.drive-faq summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
.drive-faq details p {
  padding-top: 14px;
}
.drive-final {
  text-align: center;
}
.drive-final h2,
.drive-final p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.drive-final .drive-actions {
  justify-content: center;
}
.drive-premium a:focus-visible,
.drive-premium summary:focus-visible {
  outline: 3px solid #b77915;
  outline-offset: 5px;
}
@media (max-width: 1050px) {
  .drive-hero-grid {
    grid-template-columns: 1fr;
  }
  .drive-visual {
    max-width: 650px;
    width: 100%;
    justify-self: center;
  }
  .drive-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .drive-vehicle-grid,
  .drive-two,
  .drive-three,
  .drive-benefits,
  .drive-process,
  .drive-transparency,
  .drive-faq-layout {
    grid-template-columns: 1fr;
  }
  .drive-premium .drive-actions a {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .drive-hero {
    padding-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drive-premium *,
  .drive-premium *::before,
  .drive-premium *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Product details, consultation and responsive comparison */
.drive-product h4 {
  margin: 24px 0 12px;
  font-size: .92rem;
  color: var(--drive-gold);
}
.drive-product ul {
  padding-left: 19px;
  margin-bottom: 20px;
  color: #c9c8c3;
  line-height: 1.65;
}
.drive-product li + li {
  margin-top: 10px;
}
.drive-comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.65;
}
.drive-comparison caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 18px;
}
.drive-comparison th,
.drive-comparison td {
  padding: 20px;
  border: 1px solid #d8d4ca;
  text-align: left;
  vertical-align: top;
  width: 25%;
}
.drive-comparison thead th {
  background: #181b1e;
  color: #eee8dc;
}
.drive-comparison tbody th {
  background: #ece9e1;
}
.drive-condition {
  border-left: 2px solid #c29b56;
  padding-left: 24px;
  margin: 28px 0;
}
.drive-initial-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  padding-left: 20px;
  color: #eee8dc;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .drive-comparison,
  .drive-comparison tbody,
  .drive-comparison tr,
  .drive-comparison th,
  .drive-comparison td {
    display: block;
    width: 100%;
  }
  .drive-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .drive-comparison tr + tr {
    margin-top: 24px;
  }
  .drive-comparison td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: #835509;
    margin-bottom: 8px;
  }
  .drive-initial-data {
    grid-template-columns: 1fr;
  }
}


/* Final rhythm: editorial blocks between the main product grids */
#movilidad-electrica .drive-card,
#flotillas .drive-card {
  background: transparent;
  border: 0;
  border-left: 2px solid #b98a3b;
  border-radius: 0;
  padding: 8px 24px;
}
#perfiles .drive-card {
  background: transparent;
  border: 0;
  border-top: 1px solid #645439;
  border-radius: 0;
  padding: 26px 0 8px;
}
#valor-valxem .drive-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #363a3e;
  border-radius: 0;
  padding: 22px 0;
}
#valor-valxem .drive-heading p + p {
  margin-top: 18px;
}
@media (min-width: 768px) and (max-width: 1050px) {
  .drive-comparison th,
  .drive-comparison td {
    padding: 14px;
  }
}

/* Menú móvil: destinos accesibles en ventanas de poca altura. */
@media (max-width: 1050px) {
  body:has(> main.drive-premium) > header #main-nav.is-open {
    max-height: calc(100dvh - 120px);
    flex-wrap: nowrap;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:has(> main.drive-premium) > header #main-nav.is-open > * {
    flex-shrink: 0;
  }
}

@media (max-width: 340px) {
  body:has(> main.drive-premium) > header #main-nav.is-open {
    max-height: calc(100dvh - 185px);
  }
}

/* El cierre conserva el mismo eje que sus botones y nota. */
.drive-final .drive-heading {
  margin-inline: auto;
}

/* Compensar el encabezado fijo únicamente en escritorio. */
@media (min-width: 1051px) {
  .drive-premium .drive-hero {
    padding-top: calc(89px + clamp(56px, 7vw, 96px));
  }
}

/* El título acompaña el ancho de la tabla convertida en bloques. */
@media (max-width: 767px) {
  .drive-comparison caption {
    display: block;
    width: 100%;
  }
}
