@media (max-width: 600px) {
  .swiper {
    height: 68vh !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .promo-title {
    font-size: 2.1rem !important;
    margin: .2rem 0 .7rem 0 !important;
  }

  .promo-sub {
    font-size: 1.05rem !important;
    margin: .18rem 0 .3rem 0 !important;
  }

  .promo-desc {
    font-size: 0.98rem !important;
    margin: .18rem 0 .6rem 0 !important;
    padding-right: 0 !important;
  }

  .promo-img .car-img {
    width: min(320px, 70vw) !important;
    margin: 0 auto !important;
    transform: scale(0.92) !important;
  }

  .cta.catalog-cta {
    font-size: 0.98rem !important;
    padding: 10px 18px !important;
  }

  .swiper-pagination {
    bottom: 18px !important;
  }
}

/* Banner horizontal de marcas de vehículos */
.brands-banner-section {
  width: 100%;
  background: #e73040;
  padding: 0;
  margin: 24px 0 48px 0;
  /* aumentado margen inferior de 0 a 48px */
  overflow: hidden;
  /* ocultar logos que salen del contenedor */
}

.brands-banner {
  width: 100%;
  padding: 0;
  margin: 0;
}

.brands-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: 36px 0;
  /* aumentado de 24px a 36px */
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brands-track {
  display: flex;
  gap: 48px;
  padding-left: 48px;
  animation: scroll-brands 8s linear infinite;
  /* más lento porque hay más logos */
  will-change: transform;
  flex-shrink: 0;
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-33.333% - 16px));
  }

  /* mover exactamente 1/3 del ancho (10 logos de 30) */
}

.brand-logo {
  height: 48px;
  width: auto;
  min-width: 60px;
  /* ancho mínimo para consistencia */
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, .12));
  transition: filter .18s;
  flex-shrink: 0;
  /* evitar que se compriman */
  pointer-events: none;
  /* evitar que se puedan clickear */
}

.brand-logo:hover {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, .12)) brightness(1.1);
}

@media (max-width: 700px) {
  .brands-row {
    padding: 28px 0;
    /* aumentado de 18px a 28px */
  }

  .brands-track {
    gap: 32px;
    padding-left: 32px;
    animation: scroll-brands 5s linear infinite;
    /* ajuste para móvil */
  }

  @keyframes scroll-brands {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-33.333% - 11px));
    }
  }

  .brand-logo {
    height: 36px;
    min-width: 50px;
  }
}

/* Ajustes responsivos finos para móviles 430x932 y 375x667 */
@media (max-width: 430px) {

  /* Altura y respiración del slider para que todo quepa debajo del nav */
  .swiper {
    height: 82vh !important;
    max-height: none !important;
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }

  .promo-content {
    gap: 12px;
    padding-top: 16px;
    flex-direction: column;
  }

  .promo-text {
    margin-top: 0;
    order: 1;
  }

  .promo-eyebrow {
    font-size: .78rem;
    margin-bottom: 4px;
  }

  .promo-title {
    font-size: 1.7rem !important;
    line-height: 1.08;
    margin: 2px 0 6px 0;
  }

  .promo-sub {
    font-size: .95rem !important;
    margin: 0 0 6px 0;
  }

  .promo-desc {
    font-size: .84rem !important;
    line-height: 1.35;
    margin: 0 0 10px 0;
    padding-right: 0 !important;
  }

  .promo-img {
    order: 2;
    margin: 6px 0 -8px 0;
  }

  .promo-img .car-img {
    width: min(377px, 94vw) !important;
    transform: scale(1.20) translateX(0) !important;
    margin: 0 auto;
  }

  .promo-cta-mobile {
    order: 3;
    font-size: .92rem !important;
    padding: 10px 20px !important;
    margin: -20px auto 30px auto;
    display: inline-block;
  }

  .swiper-pagination {
    display: none !important;
  }

  /* Dejar más espacio antes del banner de marcas para no competir con la CTA */
  .brands-banner-section {
    margin-top: 16px;
  }
}

@media (max-width: 380px) {

  /* Compactación extra para 375x667 */
  .swiper {
    height: 86vh !important;
  }

  .promo-content {
    padding-top: 12px;
    gap: 10px;
  }

  .promo-eyebrow {
    font-size: .76rem;
  }

  .promo-title {
    font-size: 1.6rem !important;
    margin: 2px 0 5px 0;
  }

  .promo-sub {
    font-size: .92rem !important;
    margin: 0 0 5px 0;
  }

  .promo-desc {
    font-size: .81rem !important;
    margin: 0 0 8px 0;
    line-height: 1.32;
  }

  .promo-img {
    margin: 6px 0 -10px 0;
  }

  .promo-img .car-img {
    width: min(270px, 70vw) !important;
    transform: scale(.88) translateX(0) !important;
  }

  .promo-cta-mobile {
    font-size: .9rem !important;
    padding: 9px 18px !important;
    margin-top: 0;
  }

  .swiper-pagination {
    display: none !important;
  }

  .brands-banner-section {
    margin-top: 18px;
  }
}

@media (max-width: 600px) {
  .swiper {
    margin-top: 112px !important;
    /* navbar + separación extra */
  }
}

/* Banner motivacional debajo de la hero-person */
.drive-banner {
  margin: 100px 20% 0px 20% !important;
  width: 60%;
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  text-align: center;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.drive-banner-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drive-banner-question {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.icon-drive {
  font-size: 2.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.drive-banner-statement {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.icon-check {
  font-size: 1.8rem;
}

.drive-banner-emphasis {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.drive-banner-emphasis strong {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.icon-strong {
  font-size: 2rem;
}

.drive-banner-cta {
  margin-top: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.drive-banner-cta-whatsapp {
  background: #25D366;
  border: 2px solid #25D366;
}

.drive-banner-cta-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.icon-phone {
  font-size: 2.2rem;
  animation: ring 3s infinite;
}

@keyframes ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-15deg);
  }

  20%,
  40% {
    transform: rotate(15deg);
  }
}

.cta-text {
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* Responsive para el banner */
@media (max-width: 768px) {
  .drive-banner {
    margin: 60px 5% 0px 5% !important;
    width: 90%;
    padding: 30px 20px;
  }

  .drive-banner-question {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 8px;
  }

  .drive-banner-statement,
  .drive-banner-emphasis {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 8px;
  }

  .drive-banner-cta {
    font-size: 1.1rem;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .icon-drive {
    font-size: 2rem;
  }

  .icon-phone {
    font-size: 1.8rem;
  }
}

/* =========================================================
   NAVBAR MODERNO (estilo superpower)
========================================================= */
.logo {
  max-width: 140px;
}


.custom-navbar {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  padding: 0 32px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 48px;
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-primary) 100%);
  box-shadow: 0 2px 16px 0 #0005;
  z-index: 100;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  z-index: 120;
  /* por encima del nav y del menú desplegable */
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-only {
  display: none;
}

.custom-navbar ul.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-navbar ul.nav-menu li a {
  color: var(--color-white);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
}

.custom-navbar ul.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

.custom-navbar .nav-logo {
  flex: 1 1 0;
  text-align: center;
  color: var(--color-white);
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #0008;
}

.custom-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.custom-navbar .nav-login {
  color: var(--color-white);
  font-size: 1.13rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
}

.custom-navbar .nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

.custom-navbar .nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.13rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 40px;
  margin-left: 6px;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.18s, color 0.18s;
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
  display: inline-block;
}

.custom-navbar .nav-cta:hover {
  background: var(--color-white);
  color: var(--color-accent);
}

/* Botón de llamada móvil (verde) */
.nav-call-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.22s ease;
  text-decoration: none;
  font-size: 20px;
}

.nav-call-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

@media (max-width: 900px) {
  .custom-navbar {
    flex-direction: row;
    padding: 10px 12px;
    justify-content: space-between;
    align-items: center;

    /* Volver a grid de Bootstrap; sólo ajustar centrado y gap */
    .categories-section .row {
      row-gap: 1.5rem;
    }

    .categories-section .row>[class*="col-"] {
      display: block !important;
      padding-left: .75rem;
      padding-right: .75rem;
    }

    min-height: 105px;
    border-radius: 24px;
  }

  /* Mostrar botón de llamada en móvil */
  .nav-call-btn {
    display: flex;
    order: 1;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .custom-navbar .nav-actions {
    display: none;
  }

  /* Logo al centro en móvil */
  .custom-navbar .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .custom-navbar .logo {
    height: 95px;
    /* ~15% más grande que 44px */
    max-width: none;
    /* evitar que límites previos restrinjan el tamaño */
    display: block;
  }

  .custom-navbar ul.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 8px auto 0;
    width: calc(100% - 24px);
    background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-primary) 100%);
    border-radius: 16px;
    box-shadow: 0 12px 30px #0006;
    display: grid;
    gap: 0;
    /* sin separación para que los separadores sean continuos */
    padding: 12px;
    transform-origin: top right;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    text-align: center;
    /* centra textos por defecto */
  }

  .custom-navbar ul.nav-menu.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .mobile-only {
    display: block;
  }

  /* Centrado de enlaces y separadores */
  .custom-navbar ul.nav-menu li a {
    display: block;
    text-align: center;
    padding: 14px 10px;
    /* un poco más de aire para los separadores */
  }

  /* Separadores blancos entre enlaces (excluye la CTA) */
  .custom-navbar ul.nav-menu li:not(:last-child) a:not(.nav-cta) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* La CTA queda sin borde y con margen superior para respirar */
  .custom-navbar ul.nav-menu li a.nav-cta {
    border: 0;
    margin-top: 8px;
  }
}

/* styles.css - Estilos principales para el slider automotriz */

:root {
  --color-primary: #24378b;
  /* Azul principal */
  --color-accent: #e73040;
  /* Rojo/acento */
  --color-white: #fff;
  /* Blanco */
  --color-dark: #18205a;
  /* Azul oscuro para degradados */
}


* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  /* Fondo global más claro */
  background: linear-gradient(120deg, #3b4e9a 60%, #2a3a70 100%);
  color: var(--color-white);
  /* Elimina cualquier padding/margen superior para que el navbar flote sobre el slider */
  padding-top: 0 !important;
}

/* Encabezado principal catálogo */
.catalogo-main-title {
  text-align: center;
  font-family: 'Montserrat', 'Oswald', Arial, sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  font-weight: 800;
  margin: 0 auto;
  padding: 20px 40px;
  color: #ffffff;
  background: #1e2d6b;
  /* Azul oscuro de la marca */
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  letter-spacing: .8px;
  line-height: 1.05;
  max-width: fit-content;
}

.catalogo-main-title .title-mobile {
  display: none;
}

.catalogo-main-title .title-desktop {
  display: inline;
}

/* Overlay geométrico global, misma textura que el slider */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/overlay91.svg') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
  /* detrás del contenido */
}

.swiper {
  width: 100%;
  height: 76vh;
  max-height: 700px;
  position: relative;
  margin-top: 118px;
  padding-bottom: 48px;
}

@media (max-height: 820px) {
  .swiper {
    height: 92vh;
  }
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* comparte el fondo global */
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.swiper-slide::before {
  content: none;
}

.promo-content {
  width: 100%;
  max-width: 1200px;
  /* Eliminamos margin-top para permitir centrado vertical real */
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  z-index: 1;
  /* por encima del overlay del slide */
  min-height: calc(100% - 80px);
  /* menos espacio vertical para optimizar */
  padding-top: 0;
}

/* Centrado equivalente para el slide de ofertas embebido */
.hero-offers-inline .hero-grid {
  margin-top: 0;
  min-height: calc(100% - 160px);
  align-items: center;
}

/* Ajuste responsive: reducir la resta en pantallas pequeñas donde el navbar ocupa menos proporción visual */
@media (max-width: 980px) {

  .promo-content,
  .hero-offers-inline .hero-grid {
    min-height: calc(100% - 140px);
  }

  .swiper {
    height: 92vh;
  }
}

/* Subir la paginación y las flechas acorde a la nueva altura */
.swiper-pagination {
  display: none !important;
}

/* Ocultar puntos de paginación */
.swiper-button-next,
.swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
}

.promo-text {
  max-width: 520px;
}

.promo-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  font-size: .9rem;
}

.promo-title {
  font-size: 2.2rem;
  margin: .35rem 0 1rem;
  line-height: 1.15;
}

.promo-sub {
  color: var(--color-white);
  opacity: .9;
  font-weight: 600;
  margin: .25rem 0 .5rem;
}

.promo-desc {
  opacity: 1;
  line-height: 1.5;
  margin: .25rem 0 1rem;
  padding-right: 140px;
}

.cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* CTA extra bajo la imagen (aparece solo en móvil) */
.promo-cta-mobile {
  display: none;
}

@media (max-width: 980px) {
  .promo-cta-desktop {
    display: none !important;
  }

  /* Ocultar CTA dentro del texto en móvil */
  .promo-cta-mobile {
    display: inline-block !important;
  }

  /* Mostrar CTA debajo de imagen */
}

/* CTA WhatsApp */
.whatsapp-cta {
  --wa: #25D366;
  background: var(--wa) !important;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  animation: pulse-cta 2.2s ease-in-out infinite;
}

.whatsapp-cta .wa-ico {
  display: inline-block;
  color: currentColor;
}

.whatsapp-cta:focus-visible {
  outline: 3px solid #b2f5c6;
  outline-offset: 2px;
}

.whatsapp-cta:hover {
  filter: brightness(0.96);
  transform: translateY(-2px);
}

@keyframes pulse-cta {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  }

  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  }
}

/* CTA verde para el slider con la misma animación que WhatsApp */
.catalog-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(231, 48, 64, 0.35);
  animation: pulse-cta-red 2.2s ease-in-out infinite;
  text-transform: uppercase;
  font-size: 1.06rem;
  padding: 14px 26px;

}

.catalog-cta:focus-visible {
  outline: 3px solid #ffc9ce;
  outline-offset: 2px;
}

.catalog-cta:hover {
  filter: brightness(0.96);
  transform: translateY(-2px);
}

@keyframes pulse-cta-red {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(231, 48, 64, 0.35);
  }

  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 24px rgba(231, 48, 64, 0.45);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 18px rgba(231, 48, 64, 0.35);
  }
}

.promo-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.car-enter {
  opacity: 0;
  transform: translateX(30px);
}

.car-float {
  animation: floatY 4s ease-in-out infinite;
  will-change: transform;
}

.car-img {
  width: min(560px, 46vw);
  max-width: 100%;
  transform: translateX(-70px) scale(1.1);
  transform-origin: center;
  display: block;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes revealCar {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealText {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-slide .promo-text {
  opacity: 0;
  transform: translateY(12px);
}

.swiper-slide-active .promo-text {
  animation: revealText 620ms ease 120ms both;
}

.swiper-slide-active .car-enter {
  animation: revealCar 620ms ease-out both;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-accent);
}

.swiper-pagination-bullet {
  background: var(--color-accent);
  opacity: .7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 980px) {
  .promo-content {
    flex-direction: column;
    text-align: center;
  }

  .promo-text {
    max-width: 92vw;
    padding: 0 16px;
    margin: 0 auto;
    order: 1;
  }

  .promo-img {
    order: 2;
  }

  .promo-cta-mobile {
    order: 3;
  }

  /* CTA móvil después de imagen */
  .promo-desc {
    padding-right: 0;
  }

  .car-img {
    width: min(520px, 80vw);
    transform: translateX(0) scale(1.05);
  }

  .car-float {
    animation: floatY 4s ease-in-out infinite;
  }

  /* Reducir ~30% el título del vehículo en móvil para ganar compactación visual */
  .promo-title {
    font-size: clamp(2.5rem, 8.5vw, 3.2rem);
    line-height: 1.12;
  }

  /* Aumentar ~50% el texto complementario en móvil */
  .promo-desc {
    font-size: clamp(1.1rem, 4.2vw, 1.5rem);
  }
}

/* ==============================
   Sección Hero Ofertas
============================== */
.hero-offers {
  position: relative;
  background: transparent;
  /* usa el fondo global */
  color: var(--color-white);
  /* Reducimos padding-bottom para compactar el salto hacia referidos */
  padding: 72px 0 88px;
  /* antes 120px */
  overflow: hidden;
  /* Gap horizontal reservado para centrar la persona entre columnas */
  --person-gap: 260px;
  /* Offset para bajar la figura un poco respecto al borde inferior */
  --person-offset-bottom: -116px;
}

.hero-offers-inline {
  padding: 40px 0 40px;
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-offers-inline {
    padding: 46px 0 50px;
  }
}

.hero-offers::before {
  content: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
  z-index: 1;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 0.95;
  margin: 0 0 20px;
}

.hero-title .accent {
  color: var(--color-accent);
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: grid;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.benefits .ico {
  margin-right: 8px;
}

.benefits-stacked {
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.benefits-stacked li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: flex-start;
}

.benefits-stacked .ico {
  flex-shrink: 0;
  margin-right: 0;
  font-size: 1.2rem;
  margin-top: 2px;
}

.benefits-stacked .benefit-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefits-stacked strong {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  display: block;
  text-transform: uppercase;
}

.benefits-stacked .benefit-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
}

@media (max-width: 1100px) {
  .benefits-stacked {
    font-size: 0.85rem;
  }

  .benefits-stacked li {
    justify-content: center;
  }

  .benefits-stacked .benefit-content {
    text-align: center;
  }

  .benefits-stacked strong {
    font-size: 0.9rem;
  }

  .benefits-stacked .benefit-text {
    font-size: 1rem;
  }
}

.hero-cta {
  margin: 18px 0 22px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .85;
  font-size: .95rem;
}

.trust-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  display: inline-block;
}

.hero-cards {
  display: grid;
  gap: 22px;
}

.hero-right {
  position: relative;
  display: grid;
  align-items: center;
}

.hero-left {
  padding-right: var(--person-gap);
}

.hero-right .hero-cards {
  padding-left: var(--person-gap);
}

.offer-card {
  position: relative;
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.offer-card.badge-dark {
  background: linear-gradient(90deg, var(--color-dark) 0%, var(--color-primary) 100%);
}

.discount-badge {
  position: absolute;
  left: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ff2d2d;
  color: #fff;
  /* Centramos perfectamente los textos en el círculo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  text-align: center;
}

.discount-badge strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  margin: 0;
}

.discount-badge small {
  font-size: .75rem;
  letter-spacing: .06em;
  line-height: 1;
  margin: 1px 0 0;
}

.pill-label {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.pill-dark {
  background: #171717;
  color: #fff;
}

.pill-light {
  background: #fff;
  color: #171717;
}

.pill-brand {
  background: #ffffff;
  color: #202020;
}

.offer-sub {
  margin-top: 8px;
  opacity: .95;
  font-size: 1.05rem;
  font-weight: 600;
}

.offer-description {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
  font-weight: 400;
}

.hero-figure {
  position: absolute;
  left: 50%;
  bottom: var(--person-offset-bottom);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;

}

.hero-photo {
  width: min(370px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .4));
  position: relative;
  z-index: 2;
}

/* Ajuste específico para el slide embebido de ofertas: centrado vertical real de la figura */
.hero-offers-inline .hero-figure {
  bottom: auto;
  /* anulamos anclaje inferior */
  top: 50%;
  transform: translate(-50%, -54%);
  /* ligero lift (-54% en vez de -50%) para que la parte superior no quede tan baja */
}

.hero-offers-inline .hero-photo {
  width: min(400px, 40vw);
  /* un poco mayor dentro del slide para equilibrio */
}

@media (max-width: 1100px) {
  .hero-offers-inline .hero-figure {
    position: static;
    transform: none;
    top: auto;
  }

  .hero-offers-inline .hero-photo {
    width: min(480px, 70vw);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'left'
      'figure'
      'cards';
    row-gap: 0;
    /* sin espacio entre la figura y las tarjetas */
  }

  /* Oculta CTA del bloque de texto (slider) y muestra CTA bajo la imagen en móvil */
  .promo-cta-desktop {
    display: none;
  }

  .promo-cta-mobile {
    display: inline-block;
    margin-top: 12px;
  }

  .hero-left {
    grid-area: left;
    padding-right: 0;
    text-align: center;
  }

  .hero-title {
    align-items: center;
    font-size: clamp(2.1rem, 12vw, 4.6rem);
  }

  .benefits {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 560px;
  }

  .trust-row {
    justify-content: center;
  }

  .hero-offers {
    padding-bottom: 72px;
    --person-offset-bottom: 0;
  }

  .hero-figure {
    grid-area: figure;
    position: static;
    display: grid;
    place-items: center;
    margin-top: 0;
    transform: none;
  }

  .hero-photo {
    width: min(480px, 76vw);
    margin-bottom: -21px;
    margin-top: 30px;
  }

  /* visualmente pegada a la caja */
  .hero-right {
    grid-area: cards;
  }

  .hero-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    /* más espacio entre tarjetas */
    /* Centramos el contenedor; sin márgenes negativos ni 100vw */
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
    width: 100%;
    justify-items: center;
    /* centra cada tarjeta */
  }

  /* Anula padding-left heredado en desktop para que ocupe todo el ancho */
  .hero-right .hero-cards {
    padding-left: 19px !important;
  }

  .offer-card {
    width: 80%;
    margin: 7px auto;
    padding: 24px;
    overflow: visible;
  }

  /* centrar tarjetas */
  .discount-badge {
    left: -10px;
    top: -10px;
    width: 60px;
    height: 60px;
  }

  /* ajuste para móvil */
  /* Elementos internos a todo el ancho de la tarjeta */
  .offer-card .pill-label {
    display: block;
    width: 100%;
    text-align: left;
  }

  .offer-card .offer-sub {
    display: block;
    width: 100%;
  }

  .pill-label {
    font-size: 1.05rem;
    padding: 12px 18px;
  }

  .offer-sub {
    font-size: 1rem;
  }
}

@media (min-width: 1101px) {
  .hero-cards {
    grid-template-rows: repeat(3, 1fr);
  }

  /* En desktop, que los elementos internos ocupen todo el ancho y su texto centrado */
  .offer-card .pill-label {
    display: block;
    width: 100%;
    text-align: center;
  }

  .offer-card .offer-sub {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ==============================
   Sección Testimonios
============================== */
/* Banner Intro Testimonios */
.testimonials-intro-banner {
  background: linear-gradient(135deg, #1e2d6b 0%, #2a3a7a 100%);
  padding: 50px 0;
  margin: 60px 0 40px;
}

.testimonials-intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-intro-image {
  flex: 0 0 380px;
  margin: -48px 0 -48px -48px;
}

.testimonials-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

@media (max-width: 768px) {
  .testimonials-intro-image {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .testimonials-intro-image img {
    border-radius: 16px;
  }
}

.testimonials-intro-text {
  flex: 1;
  color: var(--color-white);
}

.testimonials-intro-title {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  color: var(--color-white);
}

.testimonials-intro-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.testimonials-intro-question {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .testimonials-intro-banner {
    padding: 40px 20px;
    margin: 40px 0 30px;
  }

  .testimonials-intro-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .testimonials-intro-image {
    flex: 0 0 auto;
    max-width: 250px;
  }
}

/* Seccion Testimonios */
.testimonials-section {
  position: relative;
  padding: 70px 0 90px;
  background: transparent;
  color: var(--color-white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header .section-title {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
  line-height: 1.2;
}

.testimonials-header .section-title .accent {
  color: var(--color-accent);
  font-weight: 800;
}

.testimonials-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(231, 48, 64, 0.4);
}

.testimonial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .testimonials-section {
    padding: 50px 0 70px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }
}

/* ==============================
   Banner de Reseñas después de Testimonios
============================== */
.reviews-banner {
  padding: 60px 20px;
  background: transparent;
  text-align: center;
}

.reviews-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  background: rgba(30, 45, 107, 0.3);
  border: 3px solid #e73040;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(231, 48, 64, 0.3);
}

.reviews-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: white;
  margin: 0 0 20px 0;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.reviews-accent {
  color: #e73040;
  display: inline-block;
}

.reviews-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: white;
  margin: 0;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .reviews-banner {
    padding: 40px 15px;
  }

  .reviews-box {
    padding: 35px 25px;
  }

  .reviews-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .reviews-subtitle {
    font-size: 1.1rem;
  }
}

/* ==============================
   Sección Formulario de Contacto
============================== */
.contact-form-section {
  position: relative;
  padding: 0 0 60px 0;
  background: transparent;
  color: var(--color-white);
}

.contact-form-section .catalogo-main-title {
  margin-bottom: 40px;
}

/* Banner rojo del título del formulario */
.form-title-banner {
  background: var(--color-accent);
  padding: 32px 24px;
  margin-bottom: 50px;
  width: 100%;
}

.banner-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.banner-logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.form-banner-title {
  text-align: left;
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Grid del formulario e imagen */
.form-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* Contenedor de la imagen lateral */
.form-image-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: sticky;
  top: 100px;
  order: -1;
}

/* Imagen de Ed sobre el sedan */
.form-hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1200px) {
  .form-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-image-side {
    position: static;
    order: -1;
  }

  .form-hero-image {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .form-title-banner {
    padding: 24px 20px;
    margin-bottom: 30px;
  }

  .banner-content {
    flex-direction: column;
    gap: 20px;
  }

  .banner-logo {
    width: clamp(150px, 35vw, 220px);
  }

  .form-banner-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .form-hero-image {
    max-width: 100%;
  }

  .form-content-grid {
    gap: 20px;
  }
}

.form-wrapper {
  max-width: 900px;
  margin: 80px auto 0;
  background: #1e2d6b;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
}

.contact-form .form-label {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  color: #2d3748;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.25rem rgba(231, 48, 64, 0.25);
  outline: none;
}

.contact-form .form-control::placeholder {
  color: #6b7280;
  opacity: 0.7;
}

.form-submit-btn {
  padding: 16px 48px !important;
  font-size: 1.1rem;
  background: var(--color-accent) !important;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #ff4757, var(--color-accent)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 48, 64, 0.4);
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 24px 20px;
    margin-top: 40px;
  }

  .contact-form-section {
    padding: 40px 0;
  }
}

/* ==============================
   Sección Promocional (Referidos)
============================== */
.promo-referral {
  position: relative;
  padding: 48px 0;
  /* menos alto para que el banner destaque */
  background: transparent;
  /* usa el fondo global */
  color: var(--color-white);
}

.promo-strip {
  position: relative;
  width: 100%;
  min-height: 300px;
  /* altura objetivo */
  display: grid;
  place-items: center;
}

.promo-referral .ref-card {
  position: relative;
  width: min(100%, 900px);
  /* ancho objetivo en desktop */
  min-height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  padding: 24px 28px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.promo-referral .promo-heading {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  margin: 0 0 10px;
}

.promo-referral .promo-heading .line1 {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.promo-referral .promo-heading .line2 {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--color-accent);
  text-transform: uppercase;
}

.promo-referral .promo-sub {
  margin: 4px 0 0;
  opacity: .9;
}

.promo-referral .promo-name {
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 4px 0 0;
}

/* PNG laterales decorativos */
.promo-deco {
  position: absolute;
  width: clamp(90px, 14vw, 140px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .32));
}

.promo-deco-left {
  left: max(12px, 4vw);
  transform: translateY(10px) rotate(-8deg);
}

.promo-deco-right {
  right: max(12px, 4vw);
  transform: translateY(-10px) rotate(8deg);
}

@media (max-width: 980px) {
  .promo-referral {
    padding: 36px 0;
  }

  .promo-referral .ref-card {
    margin: 0 12px;
    min-height: 240px;
    border-radius: 18px;
    padding: 20px;
  }

  .promo-deco {
    width: clamp(72px, 22vw, 110px);
  }

  .promo-deco-left {
    left: 4px;
    transform: translateY(6px) rotate(-6deg);
  }

  .promo-deco-right {
    right: 4px;
    transform: translateY(-6px) rotate(6deg);
  }
}

/* ==============================
   Sección de Garantía
============================== */
.warranty-banner-section {
  padding: 80px 20px;
  background: #2e3a8f;
  text-align: center;
}

.warranty-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.warranty-red-badge {
  display: inline-block;
  background-color: #e73040;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 8px;
  padding: 20px 70px;
  border-radius: 18px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(231, 48, 64, 0.5);
  text-transform: uppercase;
}

.warranty-big-text {
  font-family: 'Oswald', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: white;
  margin: 0 0 25px 0;
  line-height: 1;
  letter-spacing: 3px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.warranty-small-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: white;
  margin: 0;
  line-height: 1.5;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .warranty-banner-section {
    padding: 60px 15px;
  }

  .warranty-red-badge {
    font-size: 2rem;
    padding: 15px 40px;
    letter-spacing: 4px;
    margin-bottom: 30px;
  }

  .warranty-big-text {
    font-size: 2.5rem;
    margin-bottom: 20px;
    white-space: normal;
  }

  .warranty-small-text {
    font-size: 1.2rem;
  }

}

/* ==============================
   Nueva sección Garantía (panel rojo)
============================== */

.warranty-img {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

/* ==============================
   Nueva sección Referidos (panel rojo)
============================== */
.referral-hero {
  position: relative;
  padding: 80px 0 48px;
  margin-top: 0;
  z-index: 2;
}

.ref2-canvas {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  background: #1e2b77;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .ref2-canvas {
    padding: 32px 20px;
    margin: 0 15px;
    max-width: calc(100% - 30px);
  }
}

.ref2-panel {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  text-align: center;
  order: 1;
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 900px;
  width: 100%;
}

.ref2-panel .hero-title {
  margin: 0 0 20px;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.1;
  text-align: center;
}

.ref2-panel .hero-title .accent {
  white-space: nowrap;
}

.ref2-panel .benefits {
  margin: 20px 0 30px;
  max-width: 100%;
  gap: 15px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ref2-panel .benefits li {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ref2-eyebrow {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--color-accent);
  text-align: center;
}

.ref2-text {
  margin: 10px 0;
  color: var(--color-white);
  text-align: center;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}

.ref2-text.strong {
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.ref2-steps {
  margin: 6px 0 8px;
  padding-left: 0;
  list-style: none;
  color: var(--color-white);
}

.ref2-steps li {
  margin: 2px 0;
}

.ref2-sign {
  font-weight: 800;
  margin: 8px 0 2px;
  color: var(--color-white);
}

.ref2-contact {
  margin: 0 0 12px;
  color: var(--color-white);
}

.ref2-wa {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
}

.ref2-wa:hover {
  text-decoration: underline;
}

.ref2-heading {
  margin: 0 0 10px;
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
}

.ref2-heading .l1 {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.ref2-heading .l2 {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-top: 6px;
}

.ref2-sub {
  margin: 6px 0 0;
  opacity: .95;
}

.ref2-name {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  margin: 2px 0 0;
}

.ref2-art {
  position: relative;
  background: transparent;
  overflow: visible;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0;
}

.ref2-flash-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen flotante anticipando */
.floating-teaser {
  position: relative;
  max-width: 1200px;
  margin: 80px auto -80px;
  padding: 0 20px;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.teaser-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, .3));
  animation: floatTeaser 3s ease-in-out infinite;
}

@keyframes floatTeaser {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 768px) {

  .warranty-img {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    margin: 50px auto 0 auto;

  }

  .floating-teaser {
    margin: 40px auto -40px;
    padding: 0 15px;
    max-width: 100%;
  }

  .teaser-image {
    width: 100%;
    max-width: 400px;
  }

  /* Asegurar que ningún elemento se salga del viewport */
  section,
  div {
    max-width: 100%;
  }
}

/* Animación de 2 imágenes alternando */
.ref2-bills {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .25));
  opacity: 0;
  animation: rotateTwoImages 4s infinite;
}

.ref2-img-1 {
  animation-delay: 0s;
}

.ref2-img-3 {
  animation-delay: 2s;
}

@keyframes rotateTwoImages {
  0% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.ref2-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  background: #25D366;
  color: #fff;
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: center;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  transition: all 0.3s ease;
}

.ref2-cta:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 1100px) {
  .referral-hero {
    margin-top: 36px;
  }

  .ref2-canvas {
    grid-template-columns: 1fr;
    grid-template-areas: 'panel' 'art';
    min-height: initial;
    gap: 24px;
    padding: 28px 20px;
  }

  .ref2-panel {
    order: 1;
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .ref2-panel .hero-title {
    align-items: center;
    text-align: center;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .ref2-panel .benefits {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 100%;
  }

  .ref2-text {
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .ref2-art {
    order: 2;
    min-height: initial;
    margin: 0;
  }

  .ref2-flash-container {
    min-height: 300px;
    height: 300px;
  }

  .ref2-bills {
    width: 100%;
    max-width: 480px;
    max-height: 300px;
    height: auto;
    object-fit: contain;
  }

  .ref2-cta {
    align-self: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 14px 24px;
  }
}

/* Banner Renovamos Autos */
.renewal-banner {
  background: var(--color-accent);
  padding: 28px 24px;
  margin: 48px 0;
  overflow: hidden;
}

.renewal-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.renewal-emoji {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  animation: pulse 2s ease-in-out infinite;
  line-height: 1;
}

.renewal-text {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

.renewal-subtitle {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.95;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 600px) {
  .renewal-banner {
    padding: 24px 16px;
    margin: 32px 0;
  }

  .renewal-content {
    gap: 16px;
    flex-direction: column;
  }

  .renewal-emoji {
    font-size: 3rem;
  }

  .renewal-text {
    font-size: 1.4rem;
  }

  .renewal-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  .renewal-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
}

/* ==============================
   Catálogo (categorías + galería)
============================== */
.categories-section {
  padding: 20px 15px 50px;
}

.category-card {
  cursor: pointer;
  position: relative;
  --thumb-h: 220px;
  /* altura imagen estándar */
  --label-h: 56px;
  /* altura barra */
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  grid-template-rows: var(--thumb-h) var(--label-h);
  height: calc(var(--thumb-h) + var(--label-h));
}

.category-thumb {
  position: relative;
  height: var(--thumb-h);
  overflow: hidden;
  background: transparent;
  border-radius: 16px;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform .3s ease;
}

.category-card:hover .category-thumb img {
  transform: scale(1.05);
}

.category-label {
  grid-row: 2;
  height: var(--label-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  margin-top: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: filter .22s ease;
}

/* Hover glow */
.category-title {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  text-decoration: none;
}

.category-card:hover .category-label {
  filter: brightness(1.1);
}

@media (max-width: 900px) {
  .catalogo-main-title .title-desktop {
    display: none;
  }

  .catalogo-main-title .title-mobile {
    display: inline;
  }
}

@media (max-width: 576px) {
  .category-card {
    --thumb-h: 240px;
    --label-h: 52px;
  }

  .categories-section .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .categories-section .row {
    justify-content: center;
    margin: 0 auto;
    max-width: 500px;
  }
}

.vehicle-gallery {
  background: transparent;
}

.filters-container {
  background: #1e2d6b;
  /* Azul de la marca más oscuro */
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

/* Botón de limpiar filtros con contraste */
#clear-filters {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  transition: all 0.3s ease;
}

#clear-filters:hover {
  background: linear-gradient(135deg, #ff4757, var(--color-accent)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 48, 64, 0.4);
}

.vehicle-card {
  background: #1e2d6b;
  /* Azul de la marca más oscuro */
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, .3),
    0 4px 12px rgba(0, 0, 0, .2),
    0 2px 6px rgba(0, 0, 0, .15);
  /* Efecto 3D con múltiples capas de sombra */
}

/* Animación de entrada de tarjetas */
.vehicle-card.fade-enter {
  opacity: 0;
  transform: translateY(14px);
}

.vehicle-card.fade-enter-active {
  transition: opacity .55s ease, transform .55s ease;
  opacity: 1;
  transform: translateY(0);
}

.vehicle-image {
  height: 230px;
  position: relative;
  overflow: hidden;
}

/* +30px para mostrar más de la parte baja */
.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ajustar posición para mostrar más abajo */
.vehicle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .8rem;
}

.vehicle-content {
  padding: 0;
  color: #1e294f;
}

/* Barra de título con fondo rojo - ancho completo */
.vehicle-title-bar {
  background: var(--color-accent);
  padding: 12px 16px;
  text-align: center;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  /* Efecto 3D con sombra interior */
}

.vehicle-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fila de precio y garantía centrados */
.vehicle-price-warranty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  flex-wrap: wrap;
}

.vehicle-price-warranty-row .warranty-badge {
  height: 50px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
  flex-shrink: 0;
}

/* Estilos antiguos que ya no se usan */
.vehicle-top {
  display: none;
}

.price-row {
  display: none;
}

.warranty-badge {
  height: 34px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
  margin-top: 4px;
}

@media (max-width: 900px) {
  .warranty-badge {
    height: 32px;
    max-width: 100px;
  }
}

@media (max-width: 600px) {
  .warranty-badge {
    height: 28px;
    max-width: 90px;
  }

  .vehicle-image {
    height: 200px;
  }

  /* reducir un poco en móvil */
  .vehicle-title {
    font-size: 1.1rem;
  }

  .vehicle-title-bar {
    padding: 10px 12px;
  }

  .vehicle-price-warranty-row {
    padding: 12px;
    gap: 10px;
  }

  .vehicle-price-warranty-row .warranty-badge {
    height: 42px;
    max-width: 85px;
  }

  .vehicle-price {
    font-size: 1.1rem;
    padding: 8px 44px 8px 18px;
  }
}

.vehicle-details {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 10px;
  color: #6c757d;
}

.vehicle-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #2d8cff, #1b6ed6);
  /* azul suave */
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 10px 50px 10px 22px;
  border-radius: 6px;
  line-height: 1;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.vehicle-price::after {
  /* círculo blanco */
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 0 0 6px rgba(255, 255, 255, .15);
}

.vehicle-price.badge-small {
  font-size: .9rem;
  padding: 6px 36px 6px 14px;
}

.vehicle-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0 16px;
  justify-content: center;
  /* Centrar los badges */
}

/* Meta badges (año y kilometraje) */
.meta-badge {
  background: #ffffff;
  color: #4a4a4a;
  font-size: .58rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
}

.meta-badge i {
  font-size: .7rem;
  color: #4a4a4a;
}

.meta-badge.year-badge {
  background: #ffffff;
}

.meta-badge.mileage-badge {
  background: #ffffff;
}

/* Feature badges ahora conviven aquí, ligeramente más grandes para diferenciarse */
.feature-badge {
  background: #ffffff;
  color: #4a4a4a;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  display: inline-flex;
  align-items: center;
}

.vehicle-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.btn-view-details,
.btn-contact {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-view-details {
  background: linear-gradient(135deg, #2d8cff, #1b6ed6);
  color: #fff;
}

.btn-contact {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* Verde para conversión */
.btn-view-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 140, 255, 0.4);
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Estilos para detalle del modal (catálogo) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* 4 columnas fijas */
.detail-item {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  /* degradado blanco a whitesmoke */
  padding: 16px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  /* sombra para destacar */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  /* centrar contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.detail-icon {
  font-size: 1.5rem;
  color: #495057;
  margin-bottom: 4px;
}

.detail-label {
  font-weight: 800;
  color: #495057;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  text-align: center;
}

/* +20% */
.detail-value {
  color: #212529;
  font-size: 1.08rem;
  text-align: center;
  word-break: break-word;
}

/* +20% */
.image-carousel {
  margin-bottom: 20px;
  position: relative;
}

.vehicle-detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.modal-swiper {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f173a;
  margin: 0;
}

.modal-swiper .swiper-slide {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 320px;
  padding: 16px;
}

.modal-swiper img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.image-counter {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 10;
  font-size: 14px;
}

/* Botón de cerrar modal flotante */
.modal-content .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1060;
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.modal-content .btn-close:hover {
  background: #fff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ajustes visuales del modal para coincidir con la marca */
.modal-dialog.modal-xl {
  max-width: 900px;
}

/* Reducir ancho del modal */
.modal-content {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  padding: 0;
  /* Forzar sin padding */
}

.modal-header,
.modal-footer {
  background: transparent;
  border: 0;
  color: var(--color-white);
  padding: 20px 24px;
  display: none;
}

/* Ocultar header y footer */
.modal-header .btn-close {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-title {
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
}

/* El slider (primera fila) con padding lateral */
.modal-body {
  padding: 0;
}

/* Sin padding en móviles será 0 total */

/* Wrapper para el contenido después del carousel */
.modal-content-wrapper {
  padding: 0 12px 12px;
}

/* Espaciado para el contenido debajo del carousel */
.modal-body .row:not(:first-child) {
  padding: 0 8px;
  text-align: center;
}

/* Barra de título con fondo rojo */
.modal-title-bar {
  background: var(--color-accent);
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-right: -12px;
  margin-top: 0;
  padding: 20px 24px;
  text-align: center;
}

.modal-title-bar .modal-vehicle-name {
  font-family: 'Oswald', sans-serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Fila de precio y garantía */
.modal-price-warranty-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Alinear a la izquierda */
  padding: 20px 8px;
  gap: 20px;
}

.modal-price-spacer {
  flex: 1;
  /* Empuja todo a la izquierda */
}

.modal-price-warranty-row .modal-vehicle-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #2d8cff, #1b6ed6);
  color: #fff;
  font-size: 2.52rem;
  font-weight: 700;
  padding: 16px 80px 16px 32px;
  border-radius: 8px;
  line-height: 1;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
  flex-shrink: 0;
}

.modal-price-warranty-row .modal-vehicle-price::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 0 0 8px rgba(255, 255, 255, .15);
}

.modal-warranty-badge {
  height: 85px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, .4));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.modal-warranty-badge:hover {
  transform: scale(1.05);
}

/* Header del vehículo con nombre y precio en horizontal - DEPRECATED */
.modal-vehicle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.modal-vehicle-name {
  font-family: 'Oswald', sans-serif;
  font-size: 3.6rem;
  /* doble de 1.8rem */
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
  flex: 1;
  min-width: 250px;
}

.modal-vehicle-price {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #2d8cff, #1b6ed6);
  color: #fff;
  font-size: 2.52rem;
  /* doble de 1.26rem */
  font-weight: 700;
  padding: 16px 80px 16px 32px;
  border-radius: 8px;
  line-height: 1;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
  flex-shrink: 0;
}

.modal-vehicle-price::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 0 0 8px rgba(255, 255, 255, .15);
}

/* Imagen de garantía como detalle */
.detail-item-warranty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-warranty-image {
  width: auto;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}

/* Contenedor de imagen de garantía centrada */
.modal-warranty-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
  padding: 0 8px;
}

.modal-warranty-image-large {
  width: auto;
  height: 100px;
  /* imagen más grande */
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3));
  transition: transform 0.3s ease;
}

.modal-warranty-image-large:hover {
  transform: scale(1.05);
}

/* Contenedor del botón de contacto */
.modal-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 0 8px;
}

.btn-modal-contact {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  /* verde para conversión */
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 20px 60px;
  /* doble de tamaño */
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-modal-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-modal-contact:active {
  transform: translateY(0);
}

/* Animación de pulso para el botón */
@keyframes pulse-button {
  0% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.7), 0 0 0 8px rgba(34, 197, 94, 0.2);
  }

  100% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  }
}

.pulse-animation {
  animation: pulse-button 2s ease-in-out infinite;
}

.modal-body .detail-grid {
  padding: 16px 8px;
}

/* Paginación y flechas del swiper en modal con colores de marca */
.modal-swiper .swiper-pagination-bullet {
  background: var(--color-accent);
  opacity: .6;
}

.modal-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent);
  opacity: 1;
}

.modal-swiper .swiper-button-prev,
.modal-swiper .swiper-button-next {
  color: var(--color-accent);
}

@media (max-width: 768px) {

  /* Optimizar espacio en tablets */
  .modal-swiper {
    max-height: 400px;
  }

  .modal-swiper img {
    max-height: 380px;
  }

  .modal-content-wrapper {
    padding: 0 16px 16px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 2 columnas en tablets */
  .modal-vehicle-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-title-bar {
    padding: 16px 20px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .modal-title-bar .modal-vehicle-name {
    font-size: 2.5rem;
  }

  .modal-price-warranty-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 8px;
  }

  .modal-price-warranty-row .modal-vehicle-price {
    font-size: 2rem;
    padding: 14px 60px 14px 26px;
  }

  .modal-price-warranty-row .modal-vehicle-price::after {
    width: 14px;
    height: 14px;
    right: 16px;
  }

  .modal-warranty-badge {
    height: 75px;
    max-width: 180px;
  }

  .modal-price-spacer {
    display: none;
  }

  .detail-icon {
    font-size: 1.3rem;
  }

  .detail-item {
    padding: 14px 10px;
  }

  .btn-modal-contact {
    font-size: 1.2rem;
    padding: 16px 48px;
  }
}

@media (max-width: 576px) {

  /* Modal optimizado para móviles - pantalla completa */
  .modal-dialog {
    margin: 0 !important;
    max-width: 100vw !important;
    height: 100vh !important;
  }

  .modal-content {
    height: 100vh !important;
    overflow-y: auto;
    border-radius: 0 !important;
    padding: 0 !important;
    /* Forzar padding 0 */
  }

  /* Body completamente sin padding */
  .modal-body {
    padding: 0 !important;
  }

  /* Wrapper con padding solo lateral y bottom */
  .modal-content-wrapper {
    padding: 0 12px 12px;
  }

  /* Image carousel sin margin ni padding */
  .image-carousel {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Carrusel pegado al top - ancho completo */
  .modal-swiper {
    width: 100% !important;
    max-height: 300px;
    min-height: 260px;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #0f173a;
  }

  .modal-swiper .swiper-slide {
    min-height: 260px;
    padding: 0;
    display: grid;
    place-items: center;
  }

  .modal-swiper img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
  }

  /* Título compacto */
  .modal-title-bar {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px 12px;
    margin-top: 0;
  }

  .modal-title-bar .modal-vehicle-name {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  /* Precio y garantía compactos */
  .modal-price-warranty-row {
    padding: 8px 4px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal-price-warranty-row .modal-vehicle-price {
    font-size: 1.4rem;
    padding: 6px 35px 6px 14px;
  }

  .modal-price-warranty-row .modal-vehicle-price::after {
    width: 10px;
    height: 10px;
    right: 10px;
  }

  .modal-warranty-badge {
    height: 45px;
    max-width: 110px;
  }

  .modal-price-spacer {
    display: none;
  }

  /* Grid optimizado */
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px 4px 8px !important;
  }

  .detail-item {
    padding: 8px 6px;
    min-height: 75px;
  }

  .detail-icon {
    font-size: 1rem;
  }

  .detail-label {
    font-size: 0.75rem;
    margin: 4px 0 2px;
  }

  .detail-value {
    font-size: 0.8rem;
    font-weight: 600;
  }

  /* Botón compacto */
  .modal-cta-container {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .btn-modal-contact {
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 8px;
  }

  /* Elementos UI */
  .modal-header,
  .modal-footer {
    padding: 10px;
  }

  .image-counter {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .modal-content .btn-close {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
  }
}

/* Ajuste para pantallas medianas como 390x844 */
@media (min-width: 381px) and (max-width: 420px) and (min-height: 800px) {

  /* Carrusel tamaño medio */
  .modal-swiper {
    max-height: 260px !important;
    min-height: 240px !important;
  }

  .modal-swiper .swiper-slide {
    min-height: 240px;
  }

  .modal-swiper img {
    max-height: 260px;
  }

  /* Ajustes de texto intermedios */
  .modal-title-bar {
    padding: 9px 12px;
  }

  .modal-title-bar .modal-vehicle-name {
    font-size: 1.5rem;
  }

  .modal-price-warranty-row {
    padding: 7px 4px;
  }

  .modal-price-warranty-row .modal-vehicle-price {
    font-size: 1.3rem;
    padding: 6px 32px 6px 14px;
  }

  .modal-warranty-badge {
    height: 42px;
  }

  .detail-grid {
    gap: 5px;
    padding: 5px 4px 7px !important;
  }

  .detail-item {
    padding: 7px 5px;
    min-height: 70px;
  }

  .detail-icon {
    font-size: 0.95rem;
  }

  .detail-label {
    font-size: 0.72rem;
  }

  .detail-value {
    font-size: 0.78rem;
  }

  .btn-modal-contact {
    font-size: 0.92rem;
    padding: 9px 26px;
  }
}

/* Ajuste para pantallas pequeñas como 360x740 */
@media (max-width: 400px) and (max-height: 780px) {

  /* Reducir altura del carrusel para pantallas más pequeñas */
  .modal-swiper {
    max-height: 220px !important;
    min-height: 200px !important;
  }

  .modal-swiper .swiper-slide {
    min-height: 200px;
  }

  .modal-swiper img {
    max-height: 220px;
  }

  /* Reducir tamaños de texto y espacios */
  .modal-title-bar {
    padding: 8px 12px;
  }

  .modal-title-bar .modal-vehicle-name {
    font-size: 1.4rem;
  }

  .modal-price-warranty-row {
    padding: 6px 4px;
  }

  .modal-price-warranty-row .modal-vehicle-price {
    font-size: 1.2rem;
    padding: 5px 30px 5px 12px;
  }

  .modal-warranty-badge {
    height: 40px;
  }

  .detail-grid {
    gap: 5px;
    padding: 5px 4px 6px !important;
  }

  .detail-item {
    padding: 6px 4px;
    min-height: 65px;
  }

  .detail-icon {
    font-size: 0.9rem;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.75rem;
  }

  .btn-modal-contact {
    font-size: 0.9rem;
    padding: 8px 24px;
  }
}

/* ==============================
   Footer
============================== */
.main-footer {
  background: linear-gradient(135deg, #0f1633 0%, #1e2d6b 100%);
  color: var(--color-white);
  padding: 60px 0 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #ff6b7a 50%, var(--color-accent) 100%);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

/* Logo Section */
.footer-logo-section {
  margin-bottom: 24px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(231, 48, 64, 0.4);
  border-color: var(--color-accent);
}

/* Footer Titles */
.footer-title {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 24px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

.footer-links li a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.footer-links li a:hover {
  color: var(--color-white);
  padding-left: 26px;
}

.footer-links li a:hover::before {
  transform: translateX(4px);
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-contact li svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact li a:hover {
  color: var(--color-white);
}

/* Payment Section */
.footer-payment {
  margin-top: 20px;
}

.payment-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Montserrat', Arial, sans-serif;
  transition: all 0.3s ease;
}

.payment-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding: 48px 0 0;
    margin-top: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links li a {
    padding-left: 0;
  }

  .footer-links li a::before {
    display: none;
  }

  .footer-links li a:hover {
    padding-left: 0;
  }

  .footer-contact li {
    justify-content: center;
  }

  .payment-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 16px;
  }

  .footer-grid {
    gap: 32px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }
}

/* Fix para imágenes de categorías en móvil */
.category-thumb img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ajuste de alineación para el contenedor de vehículos */
#vehicles-container {
  margin-left: 0 !important;
}

/* Fix para el ancho de la barra de título del modal */
.modal-title-bar {
  max-width: none !important;
}