.mf {
  padding: 80px 24px;
   background: linear-gradient(180deg,
    rgba(201, 212, 254, 1) 0%,
    rgba(209, 236, 245, 1) 30%,
    rgba(201, 212, 254, 1) 65%,
    rgba(163, 183, 255, 1) 100%
  );
  color: #0b0c0c;
  margin-block-start: 0px;
}
.mf__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.mf__title {
  font-family: var(--font-geely);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 48px;
  margin: 0 0 24px;
  line-height: 120%;
}
.mf__desc {
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 120%;
  margin: 0 0 40px;
  font-weight: 400;
}
.mf__tabs {
   display: flex;
  gap: 0;
  margin: 18px 0 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
}
.mf__tab {
 border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 24px;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  min-width: auto;
  border-radius: 100px;
  color: #0b0c0c;
  font-weight: 400;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.mf__tab.is-active {
  font-weight: 700;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e8eeff 100%);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
}
.mf__tab.is-active::after {
display: none;
}

.mf__panel {
  display: none;
}
.mf__panel.is-active {
  display: block;
}

.mf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 72px;
  column-gap: 92px;
}

.mf__item.is-hidden {
  display: none;
}

.page-id-411 .mg-header .mg-nav__link,
.page-id-411 .mg-header .mg-nav__trigger {
  color:  #ffffff !important;
}


.mf-card {
  position: relative;
  border-radius: 16px;
  padding: 24px 16px;
  background: transparent;
  box-shadow: none;
  border: none;
  text-align: center;
}

.mf-card__top {
  justify-content: center;
}

.mf-card__title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  font-family: var(--font-geely);
  font-weight: 700;
  line-height: 120%;
}

.mf-card__title.is-compact {
  font-size: 21px;
  padding-bottom: 22px;
}

.mf-card__meta {
  justify-content: center;
}

.mf-card__type {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 140%;
  font-weight: 500;
  color: rgba(25, 75, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: capitalize;
}
.mf-card__versions {
  display:none;
}


.mf-card__media {
  padding-top: 30px;
  position: relative;
  overflow: hidden;
}


/* El <a> siempre debe poder recibir clicks, en desktop y mobile */
.mf-card__hover {
  position: absolute;
  inset: 0;
  text-decoration: none;
  z-index: 5;
}

/* El botón visual "Ver modelo" arranca oculto */
.mf-card__hover-btn {
 opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  padding: 10px 10px 10px 20px;
  color: #0b0c0c;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 16px;
  backdrop-filter: blur(4px);
  white-space: nowrap
} 
 

/* Solo en desktop con mouse real se muestra el botón al hacer hover */
@media (hover: hover) and (pointer: fine) {
  .mf-card:hover .mf-card__hover-btn {
    opacity: 1;
  }
}

/* En mobile/touch: el botón nunca se muestra, pero el link sigue activo */
@media (hover: none), (pointer: coarse) {
  .mf-card__hover-btn {
    opacity: 0 !important;
  }
}


.mf-card:hover .mf-card__hover {
  opacity: 1;
  pointer-events: auto;
}



.mf-card__hover-icon {
  z-index: 10; 
   width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(2, 123, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mf-card:hover .mf-card__hover-icon {
  opacity: 1;
}


.mf-card__img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}
.mf-card__label {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 140%;
  color: rgba(130, 130, 130, 1);
  text-align: center;
  font-weight: 500;
}
.mf-card__prices {
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content:center;
  gap: 8px;
  font-family: var(--font-geely);
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: rgba(33, 37, 41, 1);
}
.mf-card__dot {
  font-size: 16px;
  line-height: 22px;
  color: #212529;
}

.mf-card__actions {
   position: relative;
  z-index: 10;
}
.mf-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  text-decoration: none;
  font-family: var(--font-inter);
  border: 1px solid #0b0c0c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}
.mf-btn--ghost {
 display:none;
}
.mf-btn--solid {
  background: #0b0c0c;
  color: #fff;
  width: 60%;
  border-radius: 5px;
}

.mf-btn--solid:hover {
  background: rgba(25, 75, 255, 1);
  color: #fff;
}

.mf__more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.mf__moreBtn {
  border: 1px solid #0b0c0c;
  background: #fff;
  height: 40px;
  padding: 0 18px;
  cursor: pointer;
  font-family: var(--font-inter);
  font-weight: 700;
}

@media (max-width: 767px) {
  .mf__title {
    font-size: 32px;
    line-height: 40px;
  }
  .mf__desc {
    font-size: 16px;
    line-height: 22px;
    margin: 0 0 24px;
  }
  .mf-modal__model {
    font-size: 20px;
    line-height: 24px;
  }
  .mf-modal__specTitle {
    font-size: 18px;
    line-height: 24px;
  }
  .mf__grid {
    gap: 16px;
  }
  .mf__tabs {
     overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
    gap: 0;
  }


  .mf__tabs::-webkit-scrollbar {
    display: none;
  }
  .mf__tab {
     flex-shrink: 0;
    padding: 10px 16px;
    white-space: nowrap;
  }
  .mf-card {
    padding: 24px;
  }
  .mf-card__title {
    font-size: 18px;
    line-height: 24px;
  }
  .mf-card__versions,
  .mf-card__type,
  .mf-card__label {
    font-size: 14px;
    line-height: 20px;
  }
  .mf-card__prices {
    font-size: 16px;
    line-height: 20px;
    margin: 8px 0 16px;
  }
  .mf-card__dot {
    font-size: 14px;
    line-height: 20px;
  }
  .mf-card__actions {
    grid-template-columns: 1fr;
  }
  .mf-btn {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
  }
}
@media (max-width: 900px) {
  .mf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .mf {
    padding: 40px 16px;
  }
  .mf__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MF MODAL (FORZADO)
========================= */

body.mf-modal-open {
  overflow: hidden;
}

/* Por defecto: NO se muestra */
.mf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 999999;
  display: none; /* 👈 clave */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Solo se muestra cuando el JS lo marca como abierto */
.mf-modal[data-open="1"] {
  display: flex;
}

.mf-modal__dialog {
  width: min(900px, 100%);
  padding: 36px;

  position: relative;
  background-color: #ffffff;
  background-image: url("/wp-content/themes/theme-attach/assets/img/fondo-modal-versiones.png");
  background-repeat: no-repeat;
  background-position: top center !important;
  background-size: cover !important;

  border-radius: 36px;
  overflow: hidden;

  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.mf-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 44px;
  cursor: pointer;
}

.mf-modal__title {
  margin: 0 0 24px;
  font-family: var(--font-geely);
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  color: #212529;
}

.mf-modal__model {
  font-family: var(--font-geely);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 16px;
  color: #0b0c0c;
}

.mf-modal__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.mf-modal__img {
  font-family: var(--font-inter);
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.mf-modal__priceLabel {
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 20px;
  margin-top: 24px;
}

.mf-modal__price {
  font-family: var(--font-geely);
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  color: #0b0c0c;
}

.mf-modal__selectWrap {
  margin-top: 16px;
}

.mf-modal__select {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 0px;
  padding: 0 14px;
  font-family: var(--font-geely);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #027bff;
  background: #fff;
  box-shadow: 0px 4px 4px 0px #bdbdbd80;
  text-transform: uppercase;
}

.mf-modal__select:focus {
  outline: none;
}

.mf-modal__right {
  margin-top: 8px;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0px 4px 4px 0px #bdbdbd80;
}

.mf-modal__specBox {
  background: #f6f6f6;
  border-radius: 16px;
  padding: 18px;
}

.mf-modal__specTitle {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
  color: #0b0c0c;
  line-height: 24px;
  margin-bottom: 16px;
}

.mf-modal__specRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 0.5px solid #afb6b9;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 20px;
  color: #0b0c0c;
  min-height: 56px;
  margin-top: 16px;
  place-content: center;
}

.mf-modal__specRow:first-child {
  border-top: none;
  margin-top: 0;
}

.mf-modal__specRow strong {
  font-weight: 700;
  align-self: anchor-center;
}

.mf-modal__specRow span {
  font-size: 14px;
}

/* Si todavía existe un modal estático con id=mfModal, que NO aparezca nunca */
#mfModal {
  display: none !important;
}

@media (min-width: 1024px) {
  .mf-modal__dialog {
    background-size: 520px auto;
    background-position: right -40px bottom -40px;
    background-size: cover !important;
    background-position: center top !important;
  }
}

@media (max-width: 768px) {
  .mf-modal__dialog {
    padding: 24px;
    background-size: cover !important;
    background-position: center top !important;
  }
  .mf-modal[data-open="1"] {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.62);
    overflow-y: scroll;
  }

  .page-id-411 .mg-header .mg-nav__link,
.page-id-411 .mg-header .mg-nav__trigger {
  color:  #111 !important;
}

  .mf-modal__dialog {
    width: min(420px, 100%);
    border-radius: 0;
    min-height: 100vh;
    padding: 22px 18px;
  }

  .mf-modal__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-modal__title {
    font-size: 28px;
  }

  .mf-modal__price {
    font-size: 20px;
  }

  .mf-modal__specBox {
    padding: 16px;
  }

  .mf-modal__specTitle {
    font-size: 18px;
    line-height: 24px;
  }

  .mf-modal__specRow {
    font-size: 14px;
    line-height: 18px;
  }

  .mf-modal__specRow span {
    font-size: 12px;
    line-height: 16px;
  }
}



/* Header transparente sobre el banner en página futuro */
.page-id-411 .mg-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Hero sube para cubrir el header */
.page-id-411 .gf-future-hero {
  margin-top: calc(-1 * var(--mg-header-h-desktop));
}

/* Links y logo en blanco */
.page-id-411 .mg-header .custom-logo {
  filter: brightness(0) invert(1);
}



.page-id-411 .mg-header .wp-block-button__link {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid #ffffff !important;
}

.page-id-411 .mg-header .wp-block-button__link:hover {
  color: #ffffff !important;
  background: rgba(25, 75, 255, 1) !important;
  border-color: #ffffff;
  /* border-color: rgba(25, 75, 255, 1) !important; */
}


/* Links en negro cuando el mega está abierto */
.page-id-411 .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .mg-nav__link,
.page-id-411 .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .mg-nav__trigger {
  color: #0b0c0c !important;
}

/* Logo en negro cuando el mega está abierto */
.page-id-411 .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .custom-logo {
  filter: none !important;
}

/* Botón Cotizar en negro/blanco cuando el mega está abierto (opcional, si aplica el mismo patrón) */
.page-id-411 .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .wp-block-button__link {
  color: #0b0c0c !important;
  border-color: #0b0c0c !important;
  background: transparent !important;
}
.page-id-411 .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .wp-block-button__link:hover {
  background: rgba(25, 75, 255, 1) !important;
  border-color: rgba(25, 75, 255, 1) !important;
  color: #fff !important;
}

/* Mobile */
@media (max-width: 1013px) {
  .page-id-411 .mg-header {
    position: absolute;
  }
  .page-id-411 .gf-future-hero {
    margin-top: calc(-1 * var(--mg-header-h-mobile));
    height: 570px;
  }
}



