/* =======================================
   MODELOS GEELY – styles (CORREGIDO)
======================================= */

.mg-models {
  padding: 72px 24px 80px;
  //background: linear-gradient(180deg, #C9D4FE 0%, #ECEFFD 35%, #D1ECF5 65%, #A3B7FF 100%);
  background: linear-gradient(180deg, rgba(163, 183, 255, 1) 0%, rgba(201, 212, 254, 1) 25%, rgba(220, 226, 254, 1) 60%, rgba(236, 239, 253, 1) 100%);
  color: #03050f;
  margin-top: 0 !important;
  overflow: hidden;
}

.mg-models__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;

}

/* Header */
.mg-models__header {
  text-align: center;
  margin-bottom: 40px;
}

.mg-models__title {
  margin: 0 0 16px;
  font-family: var(--font-geely);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 48px;
  line-height: 44px;
  color: #0B0C0C;
}

.mg-models__desc {
  margin: 0 auto;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #0B0C0C;
}

/* Tabs full width (desktop) */
.mg-models__tabs {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  width: auto;
  margin: 0 auto 40px;
  border-top: none;
  background: #e8eaf0;
  border-radius: 999px;
  padding: 4px;
}

.mg-models__tab {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 24px;
  text-align: center;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #667085;
  border-radius: 999px;
  position: relative;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}

.mg-models__tab.is-active {
  background: #fff;
  color: #101828;
  font-weight: 600;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.mg-models__tab.is-active::before,
.mg-models__tab.is-active::after {
  display: none;
}

/* .mg-models__tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: #027bff;
}

.mg-models__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  background: linear-gradient(
    180deg,
    rgba(2, 123, 255, 0.14) 0%,
    rgba(2, 123, 255, 0) 100%
  );
  pointer-events: none;
} */

/* Panels */
.mg-models__panels {
  margin: 0 70px;
}

.mg-models__panel {
  display: none;
}
.mg-models__panel.is-active {
  display: block;
}

.mg-models__empty {
  font-family: var(--font-inter);
  font-size: 14px;
  opacity: 0.7;
}

/* Swiper wrappers */
.mg-models__swiper-wrap--mobile {
  display: none;
}
.mg-models__swiper-wrap--desktop {
  display: block;
}

/* Desktop: 2x2 */
.mg-models__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Card */
.mg-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mg-card__media {
  position: relative;
  padding: 0;
  overflow: visible;
}

/* fondo verde sólo en la parte superior */
.mg-card__media::after {
  display: none;
}

/* meta dentro del recuadro */
.mg-card__meta {
  position: absolute;
  left: 40px;
  top: 24px;
  z-index: 2;
}

.mg-card__year {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 22px;
  color: #212529;
  margin-bottom: 6px;
}

.mg-card__name {
  font-family: var(--font-geely);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: #0B0C0C;
  text-transform: uppercase;
  letter-spacing: 0.06em;
 margin-top: 12px !important;
  padding-top: 48px !important;
}

/* flecha (desktop) */
.mg-card__arrow {
  position: absolute;
  top: 32px;
  right: 40px;
  width: 48px;
  height: 49px;
  z-index: 2;
}

/* imagen */
.mg-card__picture {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 246px;
  padding-top: 50px;
}

.mg-card__img {
  width: 100%;
  max-width: 460px;
  height: 190px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18));
}

.mg-card__body {
  padding: 12px 10px 10px 100px;
  text-align: left;
}

.mg-card__priceLabel {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 22px;
  color: #212529;
  margin-top: 2px;
  font-weight: 500;
}

.mg-card__prices {
  margin-top: 8px;
  font-family: var(--font-geely);
  font-weight: 800;
  font-size: 24px;
  line-height: 24px;
  color: #212529;
}

.mg-card__dot {
  margin: 0 8px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #212529;
}

/* Controls (base) */
.mg-models__controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.mg-models__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mg-models__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 0.35;
  background: #7c8693;
  margin: 0 4px !important;
}
.mg-models__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #027bff;
}

/* Botones nav (cuando son imágenes) */
.mg-models__nav {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-models__nav img {
  width: 35px;
  height: 40px;
  display: block;
}

/* Rotación prev/next (asumiendo icon-arrow.png apunta a la derecha) */
.mg-models__nav--prev img {
  transform: rotate(180deg);
}
.mg-models__nav--next img {
  transform: rotate(0deg);
}

.mg-models__nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.mg-card .mg-card__fuel,
.mg-card--mobile .mg-card__fuel {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
  color: #027bff !important;
  font-family: var(--font-inter) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding-right: 60px;
  padding-top: 15px;
}

.mg-card__fuel-icon {
  font-size: 16px;
}

/* Hover CTA */
.mg-card {
  position: relative;
  overflow: hidden;
}

.mg-card__hover-cta {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 10px 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 10;
}

.mg-card__hover-text {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px;
  color: #0B0C0C;
}

.mg-card:hover .mg-card__hover-cta {
  opacity: 1;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1280px) {
  .mg-models__panels {
    margin: 0px;
  }
  .mg-models__grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mg-models {
    padding: 36px 16px 16px;
  }

  .mg-models__header {
    text-align: left;
    margin-bottom: 18px;
  }

  .mg-models__title {
    font-size: 31px;
    line-height: 40px;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
  }

  .mg-models__desc {
    text-align: center;
    font-size: 16px;
    line-height: 22px;
    margin: 10px 0 24px;
    max-width: none;
  }

  .mg-models__tabs {
    display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  width: fit-content;
  max-width: 100%;
  margin: 16px auto 18px;
  background: #e8eaf0;
  border-radius: 999px;
  padding: 4px;
  border-top: none;
  gap: 4px;
  justify-content: start;
  }
  .mg-models__tabs::-webkit-scrollbar {
    display: none;
  }

  .mg-models__tab {
    flex: 0 0 auto;
  min-width: auto;
  white-space: nowrap;
  padding: 10px 18px;

  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  font-weight: 500;
  text-transform: none;
  border-radius: 999px;
  color: #667085;
  background: transparent;
  border: none;
  }

  /* IMPORTANTE: la línea azul debe respetar el ancho del tab */
 .mg-models__tab.is-active {
  background: #fff;
  color: #101828;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

  .mg-models__swiper-wrap--desktop {
    display: none;
  }
  .mg-models__swiper-wrap--mobile {
    display: block;
  }

  /* 4 cards en columna dentro del slide */
  .mg-models__mcol {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  /* Card compacta en mobile para que entren 4 */
  .mg-card--mobile .mg-card__media {
    padding: 14px 14px 10px;
    border-radius: 18px;
  }

  .mg-card--mobile .mg-card__media::after {
    height: 68%;
    border-radius: 18px;
  }

  .mg-card--mobile .mg-card__meta {
    left: 32px;
    top: 24px;
  }

  .mg-card--mobile .mg-card__year {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 8px;
  }

  .mg-card--mobile .mg-card__name {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-family: var(--font-geely);

  }

  .mg-card--mobile .mg-card__picture {
    height: 180px;
    padding-top: 22px;
  }

  .mg-card--mobile .mg-card__img {
    height: 170px;
    max-width: 280px;
  }

  .mg-card--mobile .mg-card__body {
    padding-left: 29px;
  }

  .mg-card--mobile .mg-card__priceLabel {
    font-size: 14px;
    line-height: 18px;
  }

  .mg-card--mobile .mg-card__prices {
    font-size: 16px;
    line-height: 20px;
    margin-top: 6px;
    font-family: var(--font-inter);
    font-weight: 700;
  }

  .mg-card--mobile .mg-card__dot {
    margin: 0 6px;
    font-size: 14px;
    line-height: 18px;
  }

  /* Controls en mobile: flechas + bullets */
  .mg-models__controls--mobile {
    margin-top: 40px;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .mg-models__nav img {
    width: 35px;
    height: 37px;
  }

  .mg-models__nav--prev-m img {
    transform: rotate(180deg);
  }
  .mg-models__nav--next-m img {
    transform: rotate(0deg);
  }

  .mg-card__arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    z-index: 2;
  }

  .mg-card {
    height: auto;
  }
}
