/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  /* Colores */
  --background: #ffffff;
  --foreground: #111111;
  --ink: #0b0b0b;
  --gradiend: linear-gradient(
    180deg,
    rgba(220, 24, 24, 0.877) 0%,
    rgba(5, 5, 5, 0.25) 43%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.79) 100%
  );
  --ink-fg: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.72);
  --ink-line: rgba(255, 255, 255, 0.16);
  --soft: #f4f4f4;
  --border: #e5e5e5;
  --muted-fg: #6b6b6b;
  --primary: #0b0b0b;
  --primary-fg: #ffffff;
  --accent: #292929;
  --accent-fg: #ffffff;
  --hero-fg: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-fg: #ffffff;

  /* Layout */
  --container: 1200px;
  --topbar-h: 32px;
  --nav-h: 80px;
  --nav-h-lg: 96px;

  /* Tipografía */
  --font: "Helvetica Neue", Arial, "Segoe UI", sans-serif;

  /* Transiciones */
  --t: 0.25s ease;
  --t-slow: 0.7s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}

/* ============================================================
   LAYOUT BASE
   ============================================================ */
.page {
  min-height: 100vh;
  overflow-x: hidden;
  margin-top: 0;
  background: var(--background);
  color: var(--foreground);
}
@media (min-width: 1025px) {
  .page {
    margin-top: 119px;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--background);
}

/* Topbar (solo desktop) */
.topbar {
  display: none;
  height: var(--topbar-h);
  background: var(--ink);
  color: var(--ink-fg);
}
@media (min-width: 1024px) {
  .topbar {
    display: block;
  }
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}
.topbar__links {
  display: flex;
  gap: 32px;
}
.topbar__links span,
.topbar__links a {
  opacity: 0.9;
  cursor: pointer;
  transition: opacity var(--t);
}
.topbar__links span:hover,
.topbar__links a:hover {
  opacity: 1;
}
.topbar__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__loc svg {
  width: 12px;
  height: 12px;
}

/* Navbar */
.navbar {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
@media (min-width: 1024px) {
  .navbar {
    height: var(--nav-h-lg);
    padding: 0 24px;
  }
}

.navbar__group {
  display: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 1024px) {
  .navbar__group {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--foreground);
  padding: 8px 0;
  position: relative;
  transition: color var(--t);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.navbar__divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
}

.kia-mark {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 6px;
  color: var(--ink);
  line-height: 1;
}
@media (min-width: 1024px) {
  .navbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--foreground);
  transition: background var(--t);
}
.navbar__toggle:hover {
  background: var(--soft);
}
.navbar__toggle svg {
  width: 24px;
  height: 24px;
}
@media (min-width: 1024px) {
  .navbar__toggle {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: calc(100svh - 80px);
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero {
    height: calc(100vh - 128px);
  }
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-slow);
}
.hero__slide.is-active {
  opacity: 1;
}

.hero__shade {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );*/
}

.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--hero-fg);
}
@media (min-width: 1024px) {
  .hero__content {
    padding: 96px 32px 48px;
  }
}

.hero__text {
  max-width: 720px;
}
.hero__text > * {
  animation: heroTextIn 0.6s ease both;
}
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
@media (min-width: 1024px) {
  .hero__kicker {
    font-size: 14px;
  }
}

.hero__title {
  font-size: 48px;
  font-weight: 500;
  line-height: 0.98;
}
@media (min-width: 640px) {
  .hero__title {
    font-size: 60px;
  }
}
@media (min-width: 1024px) {
  .hero__title {
    font-size: 72px;
  }
}

.hero__sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  .hero__sub {
    font-size: 30px;
  }
}

.hero__bottom {
  display: none;
  align-items: flex-end;
  justify-content: space-between;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  color: var(--hero-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--t),
    color var(--t);
}
.hero__btn:hover {
  background: var(--hero-fg);
  color: var(--ink);
}
.hero__btn svg {
  width: 18px;
  height: 18px;
}
.hero__btn--ghost {
  border: 0;
  background: transparent;
}
.hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--hero-fg);
}

.hero__counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}
.hero__counter-line {
  display: inline-block;
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.hero__counter-total {
  color: rgba(255, 255, 255, 0.65);
}

/* Botón toggle del hero: ícono según estado */
[data-hero-toggle][data-playing="false"] [data-icon-pause] {
  display: none;
}
[data-hero-toggle][data-playing="false"] [data-icon-play] {
  display: block;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 24px;
  height: 48px;
  border-radius: 0;
  transition:
    background var(--t),
    color var(--t),
    transform var(--t);
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}

.btn--hero {
  margin-top: 32px;
  background: var(--hero-fg);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn--hero:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn--primary:hover {
  background: #222;
}

.btn--outline {
  border: 1px solid var(--ink-fg);
  background: transparent;
  color: var(--ink-fg);
}
.btn--outline:hover {
  background: var(--ink-fg);
  color: var(--ink);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}
.btn--ghost:hover {
  background: var(--soft);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section {
  padding: 80px 0;
  scroll-margin-top: 96px;
}
@media (min-width: 1024px) {
  .section {
    padding: 112px 0;
  }
}
.section--soft {
  background: var(--soft);
}
.section--accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}
@media (min-width: 1024px) {
  .section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-fg);
}
.section-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}
@media (min-width: 1024px) {
  .section-title {
    font-size: 44px;
  }
}

/* ============================================================
   TABS (genéricas)
   ============================================================ */
.tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}
.tab {
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
  transition:
    color var(--t),
    border-color var(--t);
}
.tab:hover {
  color: var(--foreground);
}
.tab.is-active {
  border-color: var(--foreground);
  color: var(--foreground);
}
.tab__count {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-fg);
}
.tab.is-active .tab__count {
  color: var(--foreground);
}

/* ============================================================
   GRID DE MODELOS (grid simple)
   ============================================================ */
.models-grid {
  margin-top: 40px;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 640px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.model-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #111;
}
.model-card.is-hidden {
  display: none;
}
.model-card.is-showing {
  animation: modelIn 0.45s ease both;
}
@keyframes modelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.model-card:hover .model-card__img {
  transform: scale(1.05);
}

.model-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.model-card__content {
  position: relative;
  height: 100%;
  min-height: 430px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--hero-fg);
}
.model-card__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.model-card__name {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 500;
}
.model-card__tag {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.model-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.model-card__price {
  font-size: 14px;
  font-weight: 600;
}
.model-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--t),
    color var(--t);
}
.model-card:hover .model-card__arrow {
  background: var(--hero-fg);
  color: var(--ink);
}
.model-card__arrow svg {
  width: 16px;
  height: 16px;
}

.models-empty {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-fg);
}

/* ============================================================
   HERRAMIENTAS
   ============================================================ */
.tools-grid {
  margin-top: 48px;
  display: grid;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 288px;
  padding: 32px;
  background: var(--background);
  transition: background var(--t);
}
.tool-card:hover {
  background: #fafafa;
}
.tool-card svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}
.tool-card__title {
  margin-top: 0;
  font-size: 20px;
  font-weight: 600;
}
.tool-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-fg);
}
.tool-card__cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tool-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t);
}
.tool-card:hover .tool-card__cta svg {
  transform: translateX(4px);
}

/* ============================================================
   INSPIRACIÓN (split imagen + panel)
   ============================================================ */
.inspiration {
  display: grid;
  min-height: 720px;
  scroll-margin-top: 96px;
}
@media (min-width: 1024px) {
  .inspiration {
    grid-template-columns: 1fr 1fr;
  }
}

.inspiration__img-wrap {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .inspiration__img-wrap {
    min-height: 100%;
  }
}
.inspiration__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.inspiration__panel {
  display: flex;
  align-items: center;
  padding: 64px 28px;
  background: var(--ink);
  color: var(--ink-fg);
}
@media (min-width: 640px) {
  .inspiration__panel {
    padding: 64px 48px;
  }
}
@media (min-width: 1024px) {
  .inspiration__panel {
    padding: 64px 80px;
  }
}

.inspiration__inner {
  max-width: 576px;
}
.inspiration__inner .section-kicker {
  color: var(--ink-muted);
}
.inspiration__title {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .inspiration__title {
    font-size: 44px;
  }
}
@media (min-width: 1024px) {
  .inspiration__title {
    font-size: 56px;
  }
}

.inspiration__text {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.inspiration__inner .btn {
  margin-top: 36px;
}

/* ============================================================
   SERVICIO
   ============================================================ */
.service-layout {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .service-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}
.service-copy p {
  margin-top: 24px;
  max-width: 512px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-fg);
}
.service-copy .btn {
  margin-top: 32px;
}

.service-cards {
  display: grid;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 640px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-card {
  padding: 32px;
  background: var(--soft);
}
.service-card svg {
  width: 32px;
  height: 32px;
}
.service-card__title {
  margin-top: 48px;
  font-size: 20px;
  font-weight: 600;
}
.service-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-fg);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .contact-layout {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.contact-title {
  margin-top: 16px;
  max-width: 768px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .contact-title {
    font-size: 44px;
  }
}
.contact-layout .btn {
  height: 56px;
  padding: 0 32px;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--ink-fg);
  padding: 64px 20px 48px;
}
@media (min-width: 1024px) {
  .site-footer {
    padding: 80px 32px 48px;
  }
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
  }
}
.site-footer .kia-mark {
  color: var(--ink-fg);
}
.site-footer__tag {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 56px;
  font-size: 14px;
}
@media (min-width: 640px) {
  .site-footer__links {
    grid-template-columns: repeat(3, auto);
  }
}
@media (min-width: 1024px) {
  .site-footer__links {
    gap: 16px 80px;
  }
}
.site-footer__links button {
  text-align: left;
  color: var(--ink-fg);
  opacity: 0.85;
  transition: opacity var(--t);
}
.site-footer__links button:hover {
  opacity: 1;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--ink-muted);
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.site-footer__legal {
  display: flex;
  gap: 24px;
}
.site-footer__legal span {
  cursor: pointer;
}
.site-footer__legal span:hover {
  color: var(--ink-fg);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--whatsapp-fg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform var(--t);
}
.whatsapp-btn:hover {
  transform: scale(1.05);
}
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

/* ============================================================
   SECCIÓN MODELOS (fondo + tabs + carrusel)
   ============================================================ */
.models-section {
  position: relative;
  overflow: hidden;
  background: var(--background);
  padding-bottom: 80px;
  scroll-margin-top: 96px;
}
@media (min-width: 1024px) {
  .models-section {
    padding-bottom: 112px;
  }
}

/* Fondo de montañas */
.models-section__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
}
@media (min-width: 1024px) {
  .models-section__bg {
    height: 540px;
  }
}
.models-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.models-section__bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.6) 0%,
    rgba(11, 11, 11, 0.2) 50%,
    var(--background) 100%
  );
}

/* Contenedor */
.models-section__inner {
  position: relative;
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .models-section__inner {
    padding: 0 32px;
  }
}

/* Encabezado */
.models-head {
  padding-top: 64px;
  text-align: center;
  color: #fff;
}
@media (min-width: 1024px) {
  .models-head {
    padding-top: 160px;
  }
}
.models-head__title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .models-head__title {
    font-size: 48px;
  }
}
@media (min-width: 1024px) {
  .models-head__title {
    font-size: 60px;
  }
}

/* Tabs del carrusel */
.models-tabs {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}
@media (min-width: 640px) {
  .models-tabs {
    justify-content: center;
    gap: 12px;
  }
}

.models-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    backdrop-filter 0.25s ease;
}
@media (min-width: 1024px) {
  .models-tab {
    font-size: 14px;
  }
}
.models-tab:hover {
  color: #fff;
}
.models-tab.is-active {
  background: rgba(11, 11, 11, 0.7);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   CARRUSEL
   ============================================================ */
.carousel {
  position: relative;
  margin-top: 60px;
}
@media (min-width: 1024px) {
  .carousel {
    margin-top: 24px;
  }
}

.carousel__arrow {
  position: absolute;
  top: 24%;
  z-index: 20;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}
.carousel__arrow:hover {
  background: #fff;
  transform: scale(1.05);
}
.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel__arrow svg {
  width: 18px;
  height: 18px;
}
.carousel__arrow--prev {
  left: -4px;
}
.carousel__arrow--next {
  right: -4px;
}
@media (min-width: 640px) {
  .carousel__arrow--prev {
    left: 0;
  }
  .carousel__arrow--next {
    right: 0;
  }
}

/* ============================================================
   STAGE DEL CARRUSEL (slider 3D)
   ============================================================ */
.car-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  height: 620px;
  overflow: hidden;
  perspective: 1200px;
  --card-w: 430px;
  --gap: 40px;
}
@media (min-width: 1024px) {
  .car-stage {
    height: 510px;
  }
}
@media (max-width: 640px) {
  .car-stage {
    --card-w: 320px;
    --gap: 24px;
    height: 560px;
  }
}

/* Tarjeta de auto */
.car-card {
  position: absolute;

  left: 50%;
  width: var(--card-w);
  max-width: 90vw;
  margin-left: calc(var(--card-w) / -2);
  transform-origin: center center;
  transition:
    transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
}

.car-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  filter: none;
}

.car-card.is-prev {
  transform: translateX(calc(-1 * (var(--card-w) + var(--gap)))) scale(0.78);
  opacity: 0.65;
  z-index: 2;
  filter: blur(0.4px) saturate(0.85);
}

.car-card.is-next {
  transform: translateX(calc(var(--card-w) + var(--gap))) scale(0.78);
  opacity: 0.65;
  z-index: 2;
  filter: blur(0.4px) saturate(0.85);
}

.car-card.is-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Imagen del auto */
.car-card__img-wrap {
  padding: 0 0px;
}

.car-card__img {
  display: block;
  margin: 0 auto;
  width: 100%;

  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.car-card.is-active .car-card__img {
  transform: scale(1);
}
.car-card.is-prev .car-card__img,
.car-card.is-next .car-card__img {
  transform: scale(0.95);
}

.car-shadow {
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.18));
}

/* Info del auto */
.car-card__info {
  margin-top: 28px;
  transition: opacity 0.4s;
}
.car-card.is-active .car-card__info {
  opacity: 1;
}
.car-card.is-prev .car-card__info,
.car-card.is-next .car-card__info {
  opacity: 0.7;
}

.car-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.car-card__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--muted-fg);
}
.car-card.is-active .car-card__name {
  color: var(--foreground);
}

.car-card__disclaimer {
  display: none;
  font-size: 12px;
  color: var(--muted-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}
.car-card__disclaimer:hover {
  color: var(--foreground);
}

.car-card__label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-fg);
}
.car-card__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-fg);
}
.car-card.is-active .car-card__value {
  color: var(--foreground);
}

/* Badges */
.car-card__badges {

  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.car-badge {

  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--soft);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
}
.car-badge svg {
  width: 12px;
  height: 12px;
}

/* Acciones */
.car-card__actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-car {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn-car--outline {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}
.btn-car--outline:hover {
  background: var(--soft);
}
.btn-car--primary {
  border: 0;
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-car--primary:hover {
  background: #222;
}

/* ============================================================
   SECCIÓN INSPIRE (hero full-bleed con texto inferior)
   ============================================================ */
.inspire {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 735px;
  overflow: hidden;
  background: var(--gradiend);
  color: var(--hero-fg);
}
@media (min-width: 1024px) {
  .inspire {
    min-height: 1000px;
  }
}

.inspire__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.inspire__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.29) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.342) 100%
  );
}

.inspire__content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 48px;
}
@media (min-width: 1024px) {
  .inspire__content {
    padding: 96px 32px 64px;
  }
}

.inspire__top {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inspire__mark {
  color: var(--hero-fg);
  font-size: 24px;
}

.inspire__kicker {
  margin-top: 16px;
  color: var(--hero-fg);
  letter-spacing: 0.35em;
}
@media (min-width: 1024px) {
  .inspire__kicker {
    font-size: 14px;
  }
}

.inspire__title {
  margin-top: 20px;
  max-width: 900px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.02;
}
@media (min-width: 640px) {
  .inspire__title {
    font-size: 60px;
  }
}
@media (min-width: 1024px) {
  .inspire__title {
    font-size: 72px;
  }
}

.inspire__bottom {
  position: relative;
  width: 100%;
}

.inspire__row {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
@media (min-width: 1024px) {
  .inspire__row {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }
}

.inspire__text {
  max-width: 640px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 1024px) {
  .inspire__text {
    font-size: 16px;
  }
}

.inspire__cta {
  height: 48px;
  padding: 0 32px;
  justify-self: start;
}
@media (min-width: 1024px) {
  .inspire__cta {
    justify-self: end;
  }
}

/* ============================================================
   SECCIÓN NOTICIAS
   ============================================================ */
.news {
  background: var(--soft);
  padding: 80px 0;
}
@media (min-width: 1024px) {
  .news {
    padding: 112px 0;
  }
}

.news__title {
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  color: var(--muted-fg);
}
@media (min-width: 1024px) {
  .news__title {
    font-size: 60px;
  }
}

.news__grid {
  margin-top: 56px;
  display: grid;
  gap: 48px;
}
@media (min-width: 640px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ---------- Tarjeta ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.news-card__img-wrap {
  overflow: hidden;
}
.news-card__img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__img {
  transform: scale(1.03);
}

.news-card__date {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted-fg);
}

.news-card__headline {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .news-card__headline {
    font-size: 24px;
  }
}

.news-card__excerpt {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-fg);
}

.news-card__cta {
  margin: 24px auto 0;
  height: 44px;
  width: 112px;
  padding: 0;
}

/* ---------- Footer de la sección ---------- */
.news__footer {
  margin-top: 56px;
  text-align: center;
}
.news__view-all {
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 4px;
  transition: text-decoration var(--t);
}
.news__view-all:hover {
  text-decoration: underline;
}

.hero > .models-section__bg-gradient {
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.123) 50%,
    rgba(11, 11, 11, 0.133) 75%,
    #000000ed 100% 100%
  );
}

.inspire > .models-section__bg-gradient {
  background: linear-gradient(
    to top,
    rgb(11 11 11 / 21%) 50%,
    rgb(11 11 11 / 54%) 75%,
    #000000d4 100% 100%
  );
}
