/* ================================================================
   FCT v1.1.130 — MENÚ 1 FILA + +/- + BUSCADOR RESPONSIVE
   WEB    : menú 15px, una fila; buscador extendido en header.
   TABLET : menú 14px, una fila; buscador extendido en header.
   PHONE  : menú 13px, una fila horizontal; buscador completo debajo del hero.
   ================================================================ */

/* El viejo menú hamburguesa queda fuera en todos los modos. */
.m70-ui .m82-phone-menu{display:none!important}

/* Barra principal: SIEMPRE una sola fila. */
.m70-ui .m20-catbar.fct-compact-catbar{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  min-height:40px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  background:#050505!important;
  border-top:1px solid #202020!important;
  border-bottom:0!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.m70-ui .m20-catbar.fct-compact-catbar::-webkit-scrollbar{display:none!important}

.m70-ui .fct-compact-catbar .fct-nav-group{
  position:relative!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
}
.m70-ui .fct-compact-catbar .fct-nav-group>summary,
.m70-ui .fct-compact-catbar .fct-nav-direct{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  line-height:1!important;
  font-weight:600!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  list-style:none!important;
}
.m70-ui .fct-compact-catbar .fct-nav-group>summary::-webkit-details-marker{display:none!important}

/* + cerrado / − abierto. */
.m70-ui .fct-compact-catbar .fct-nav-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:16px!important;
  min-width:16px!important;
  margin-left:5px!important;
  color:#fff!important;
  font-size:1em!important;
  font-weight:800!important;
  line-height:1!important;
  transform:none!important;
}
.m70-ui .fct-compact-catbar .fct-nav-toggle::before{content:"+"!important}
.m70-ui .fct-compact-catbar .fct-nav-group[open]>.fct-nav-toggle::before,
.m70-ui .fct-compact-catbar .fct-nav-group[open]>summary .fct-nav-toggle::before{content:"−"!important}
.m70-ui .fct-compact-catbar .fct-nav-group[open]>summary,
.m70-ui .fct-compact-catbar .fct-nav-group:hover>summary,
.m70-ui .fct-compact-catbar .fct-nav-direct:hover{color:#FFC107!important}
.m70-ui .fct-compact-catbar .fct-nav-group[open]>summary .fct-nav-toggle{color:#FFC107!important}

/* WEB */
@media(min-width:1025px){
  .m70-ui .m20-catbar.fct-compact-catbar{
    justify-content:center!important;
    gap:24px!important;
    padding:3px 12px!important;
    overflow:visible!important;
  }
  .m70-ui .fct-compact-catbar .fct-nav-group>summary,
  .m70-ui .fct-compact-catbar .fct-nav-direct{font-size:15px!important}
  .m70-ui .m82-header-search.fct-header-search-simple{display:grid!important}
  .m70-ui .m20-actions .m82-header-search-mobile{display:none!important}
}

/* TABLET — buscador sigue EXTENDIDO dentro del header. */
@media(min-width:621px) and (max-width:1024px){
  .m70-ui .m20-top .m20-topin{
    display:grid!important;
    grid-template-columns:minmax(130px,160px) minmax(240px,1fr) auto!important;
    grid-template-rows:64px!important;
    align-items:center!important;
    column-gap:8px!important;
    width:100%!important;
    max-width:1440px!important;
    min-height:64px!important;
    padding:4px 8px!important;
    box-sizing:border-box!important;
  }
  .m70-ui .m20-top .m20-logo,
  .m70-ui .m20-top .m30-logo-full{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:160px!important;
    margin:0!important;
  }
  .m70-ui .m20-top .m20-logo img,
  .m70-ui .m20-top .m30-logo-full img{
    width:100%!important;
    max-width:155px!important;
    height:52px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .m70-ui .m82-header-search.fct-header-search-simple{
    display:grid!important;
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:40px!important;
    grid-template-columns:minmax(105px,1fr) minmax(135px,190px) 58px!important;
    margin:0!important;
    justify-self:stretch!important;
  }
  .m70-ui .m82-header-search.fct-header-search-simple input,
  .m70-ui .m82-header-search.fct-header-search-simple select,
  .m70-ui .m82-header-search.fct-header-search-simple .m82-header-search-submit{
    font-size:13px!important;
  }
  .m70-ui .m20-actions{
    grid-column:3!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    position:static!important;
    top:auto!important;
    width:auto!important;
    min-width:0!important;
    gap:3px!important;
    overflow:visible!important;
    white-space:nowrap!important;
  }
  .m70-ui .m20-actions .m82-header-search-mobile{display:none!important}

  .m70-ui .m20-catbar.fct-compact-catbar{
    justify-content:center!important;
    gap:16px!important;
    padding:3px 8px!important;
    overflow:visible!important;
  }
  .m70-ui .fct-compact-catbar .fct-nav-group>summary,
  .m70-ui .fct-compact-catbar .fct-nav-direct{font-size:14px!important}
}

/* Tablet angosta: preservar el buscador, comprimiendo logo/campos antes que ocultarlo. */
@media(min-width:621px) and (max-width:760px){
  .m70-ui .m20-top .m20-topin{
    grid-template-columns:118px minmax(220px,1fr) auto!important;
    column-gap:5px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
  .m70-ui .m20-top .m20-logo,
  .m70-ui .m20-top .m30-logo-full{max-width:118px!important}
  .m70-ui .m20-top .m20-logo img,
  .m70-ui .m20-top .m30-logo-full img{max-width:116px!important;height:46px!important}
  .m70-ui .m82-header-search.fct-header-search-simple{
    grid-template-columns:minmax(90px,1fr) minmax(112px,145px) 52px!important;
  }
  .m70-ui .m82-header-search.fct-header-search-simple input,
  .m70-ui .m82-header-search.fct-header-search-simple select,
  .m70-ui .m82-header-search.fct-header-search-simple .m82-header-search-submit{font-size:12px!important}
  .m70-ui .m20-actions a{padding-left:2px!important;padding-right:2px!important}
}

/* PHONE — barra de menú en una sola fila horizontal; no hamburguesa. */
@media(max-width:620px){
  .m70-ui .m20-catbar.fct-compact-catbar{
    display:flex!important;
    justify-content:flex-start!important;
    gap:12px!important;
    min-height:38px!important;
    padding:2px 8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    scroll-behavior:smooth!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .m70-ui .fct-compact-catbar .fct-nav-group>summary,
  .m70-ui .fct-compact-catbar .fct-nav-direct{font-size:13px!important;min-height:32px!important}
  .m70-ui .fct-compact-catbar .fct-nav-toggle{width:14px!important;min-width:14px!important;margin-left:3px!important}

  /* En phone el buscador original sale del header. */
  .m70-ui .m20-top .m82-header-search.fct-header-search-simple{display:none!important}
  .m70-ui .m20-actions .m82-header-search-mobile{display:none!important}

  /* BUSCADOR PHONE — REGLA CANÓNICA FCT v1.1.140
     110px total = 30px arriba + 50px buscador + 30px abajo.
     Esta es la única regla que controla la separación vertical. */
  .fct130-phone-search-below-slider{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:110px!important;
    min-height:110px!important;
    padding:0 8px!important;
    margin:0!important;
    box-sizing:border-box!important;
    background:#fff!important;
  }
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple{
    display:grid!important;
    position:static!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:50px!important;
    min-height:50px!important;
    grid-template-columns:minmax(0,1fr) minmax(118px,42%) 58px!important;
    margin:0!important;
    align-self:center!important;
    align-items:center!important;
    border:1px solid #d9dde3!important;
    border-radius:12px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
  }
  .fct130-phone-search-below-slider .m82-header-search input,
  .fct130-phone-search-below-slider .m82-header-search select,
  .fct130-phone-search-below-slider .m82-header-search .m82-header-search-submit{
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    min-width:0!important;
    box-sizing:border-box!important;
    font-size:14px!important;
    line-height:normal!important;
  }
  .fct130-phone-search-below-slider .m82-header-search input,
  .fct130-phone-search-below-slider .m82-header-search select{
    padding:0 8px!important;
  }
  .fct130-phone-search-below-slider .m82-header-search .m82-header-search-submit{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 6px!important;
    background:#FFC107!important;
    color:#111!important;
    border:0!important;
    font-weight:700!important;
  }

  /* Hero pegado al buscador en phone; la separación de 30 px queda después del buscador. */
  .fct114-main-slider{margin-bottom:0!important}

  /* Dropdown abierto en phone: fijo y fuera del overflow horizontal de la barra. */
  .m70-ui .fct-compact-catbar .fct-nav-dropdown{
    position:fixed!important;
    z-index:5000!important;
    top:var(--fct130-dropdown-top,108px)!important;
    left:var(--fct130-dropdown-left,8px)!important;
    width:var(--fct130-dropdown-width,min(260px,calc(100vw - 16px)))!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(62vh,460px)!important;
    overflow-y:auto!important;
    box-sizing:border-box!important;
  }
}

@media(min-width:621px){
  .fct130-phone-search-below-slider{display:none!important}
}

/* ================================================================
   FCT v1.1.132 — AJUSTE FINO DEL MENÚ
   - FantasyCarSHOW conserva exactamente sus altas/bajas.
   - ESCALA+ / PRODUCTOS+ sin espacio entre texto y signo.
   - El +/− NO cambia el formato histórico del desplegable.
   ================================================================ */

/* El signo queda pegado al texto: ESCALA+ / PRODUCTOS+. */
.m70-ui .fct-compact-catbar .fct-nav-group>summary{
  gap:0!important;
}
.m70-ui .fct-compact-catbar .fct-nav-toggle{
  width:auto!important;
  min-width:0!important;
  margin-left:0!important;
  padding-left:0!important;
  padding-right:0!important;
  flex:0 0 auto!important;
}

/* Respetar exactamente FantasyCarSHOW; nunca convertirlo a mayúsculas completas. */
.m70-ui .fct-compact-catbar .fct-nav-direct.fct-nav-show{
  text-transform:none!important;
  font-style:italic!important;
  text-decoration:underline!important;
}
.m70-ui .fct-mobile-primary-nav>.fct-mobile-nav-direct.fct-nav-show{
  text-transform:none!important;
}

/* RESTAURAR FORMATO HISTÓRICO DEL DESPLEGABLE.
   El control es +/−, pero el panel conserva el formato previo. */
.m70-ui .fct-compact-catbar .fct-nav-dropdown{
  z-index:900!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  min-width:150px!important;
  padding:5px!important;
  background:#0b0b0b!important;
  border:1px solid #292929!important;
  border-radius:8px!important;
  box-shadow:0 14px 34px rgba(0,0,0,.35)!important;
  box-sizing:border-box!important;
}
.m70-ui .fct-compact-catbar .fct-nav-products{min-width:210px!important}
.m70-ui .fct-compact-catbar .fct-nav-dropdown a{
  display:flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:5px 9px!important;
  color:#fff!important;
  background:transparent!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.15!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  border:0!important;
  border-radius:5px!important;
  white-space:nowrap!important;
}
.m70-ui .fct-compact-catbar .fct-nav-dropdown a:hover,
.m70-ui .fct-compact-catbar .fct-nav-dropdown a:focus-visible,
.m70-ui .fct-compact-catbar .fct-nav-dropdown a.active,
.m70-ui .fct-compact-catbar .fct-nav-dropdown a[aria-current="page"]{
  background:#FFC107!important;
  color:#000!important;
  border-color:#FFC107!important;
  text-shadow:none!important;
}

/* Web y tablet: exactamente el popup debajo del botón, como antes. */
@media(min-width:621px){
  .m70-ui .fct-compact-catbar .fct-nav-dropdown{
    position:absolute!important;
    left:-8px!important;
    top:31px!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* Phone mantiene la barra horizontal de v1.1.130, pero el panel visual
   es el mismo desplegable compacto de siempre. Fixed solo evita que el
   overflow horizontal lo recorte. */
@media(max-width:620px){
  .m70-ui .fct-compact-catbar .fct-nav-group>summary{gap:0!important}
  .m70-ui .fct-compact-catbar .fct-nav-toggle{
    width:auto!important;
    min-width:0!important;
    margin-left:0!important;
  }
  .m70-ui .fct-compact-catbar .fct-nav-dropdown{
    position:fixed!important;
    z-index:5000!important;
    top:var(--fct130-dropdown-top,108px)!important;
    left:var(--fct130-dropdown-left,8px)!important;
    width:var(--fct130-dropdown-width,auto)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(62vh,460px)!important;
    overflow-y:auto!important;
  }
}

/* ================================================================
   FCT v1.1.140 — TIPOGRAFÍA BUSCADOR + ESPACIADO PHONE CANÓNICO
   - Web / tablet: 16px.
   - Phone: 14px.
   - Phone: 30px arriba + 50px buscador + 30px abajo.
   - CATEGORÍAS no añade margen extra en phone.
   ================================================================ */
@media(min-width:621px){
  .m70-ui .m82-header-search.fct-header-search-simple input,
  .m70-ui .m82-header-search.fct-header-search-simple select,
  .m70-ui .m82-header-search.fct-header-search-simple .m82-header-search-submit{
    font-size:16px!important;
  }
  .m70-ui .m82-header-search.fct-header-search-simple input::placeholder{
    font-size:16px!important;
  }
}
@media(max-width:620px){
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple input,
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple select,
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple .m82-header-search-submit{
    font-size:14px!important;
  }
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple input::placeholder{
    font-size:14px!important;
  }
  body.m70-ui main.m70-home > .fct-catalog-section:first-child{
    margin-top:0!important;
  }
}

/* ================================================================
   FCT v1.1.143 — SELECTOR Marca / Categoría / Escala
   - Web / tablet: 14px.
   - Phone: 12px.
   - Peso: 600.
   ================================================================ */
@media(min-width:621px){
  .m70-ui .m82-header-search.fct-header-search-simple select{
    font-size:14px!important;
    font-weight:600!important;
  }
  .m70-ui .m82-header-search.fct-header-search-simple select option,
  .m70-ui .m82-header-search.fct-header-search-simple select optgroup{
    font-size:14px!important;
    font-weight:600!important;
  }
}
@media(max-width:620px){
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple select{
    font-size:12px!important;
    font-weight:600!important;
  }
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple select option,
  .fct130-phone-search-below-slider .m82-header-search.fct-header-search-simple select optgroup{
    font-size:12px!important;
    font-weight:600!important;
  }
}


/* ================================================================
   FCT v1.1.147 — ajuste fino vertical del header
   - Iconos/acciones: subir 2px respecto de su posición vigente.
   - Logo: subir 4px respecto de su posición vigente.
   ================================================================ */
.m70-ui .m20-top .m20-logo,
.m70-ui .m20-top .m30-logo-full{
  transform:translateY(-4px)!important;
}

.m70-ui .m20-actions{
  transform:translateY(-2px)!important;
}
