/* FACTORYRACING V12.65 · Ajustes sin reconstruir el HTML histórico.
   Se conservan los módulos de vídeo, catálogo, galería, damero y megamenú. */

/* Iconos sociales: tamaño coherente, centrado real y separación tras Taller. */
#mainNav .fr64-nav-socials {
  display: inline-flex !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 0 0 13px !important;
  padding: 0 !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
}
#mainNav .fr64-nav-socials .fr64-nav-separator {
  display: block !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 24px !important;
  flex: 0 0 1px !important;
  align-self: center !important;
  margin: 0 9px 0 0 !important;
  padding: 0 !important;
  background: currentColor !important;
  opacity: .42 !important;
}
#mainNav .fr64-nav-socials > a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 39px !important;
  width: 39px !important;
  min-width: 39px !important;
  max-width: 39px !important;
  height: 39px !important;
  min-height: 39px !important;
  max-height: 39px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  border-radius: 50% !important;
  color: inherit !important;
  background: rgba(255,255,255,.085) !important;
  opacity: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}
#mainNav .fr64-nav-socials > a svg {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
#mainNav .fr64-nav-socials > a:is(:hover,:focus-visible) {
  transform: translateY(-1px);
  border-color: currentColor !important;
  background: rgba(255,255,255,.17) !important;
}
#mainNav .fr64-nav-socials > a:focus-visible {outline:2px solid currentColor !important;outline-offset:2px !important;}
@media(min-width:1051px) and (max-width:1250px){
  #mainNav .fr64-nav-socials {gap: 5px !important;margin-left:8px !important;}
  #mainNav .fr64-nav-socials > a {flex-basis: 36px !important;width:36px !important;min-width:36px !important;max-width:36px !important;height:36px !important;min-height:36px !important;max-height:36px !important;}
}
/* Mantener el comportamiento anterior en tablet y móvil, sin introducir
   enlaces flotantes ni alterar el megamenú responsive. */
@media(max-width:1050px){#mainNav .fr64-nav-socials{display:none !important;}}

/* El único hero válido de Barcos es el vídeo .fr1204-boats-hero.
   El JS V12.65 identifica y marca la cabecera heredada dentro del catálogo. */
#fr1205-boats-catalog [data-fr65-secondary-hero="1"] {display:none !important;}

/* FACTORYRACING V12.66 - Solo las tres tarjetas del megamenú de Náutica.
   El diseño de las tarjetas sobre el vídeo y los demás menús sigue intacto. */
#bydMega #megaProducts .fr66-nautica-tile {
  position: relative !important;
  box-sizing: border-box !important;
  isolation: isolate;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 20px !important;
  padding: 23px 25px !important;
  color: #fff !important;
  background-color: #132538 !important;
  background-image:
      linear-gradient(180deg,rgba(5,16,28,.12) 0%,rgba(5,16,28,.28) 35%,rgba(4,13,25,.80) 100%),
      var(--fr66-nautica-photo,none) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 12px 30px rgba(10,25,40,.14) !important;
  text-decoration: none !important;
  transition: box-shadow .25s ease, filter .25s ease, transform .25s ease !important;
}
#bydMega #megaProducts .fr66-nautica-tile :is(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,em,div),
#bydMega #megaProducts .fr66-nautica-tile :is(svg,svg *) {
  color: #fff !important;
  fill: none;
}
#bydMega #megaProducts .fr66-nautica-tile :is(svg,svg *)[fill="currentColor"]{fill:currentColor}
#bydMega #megaProducts .fr66-nautica-tile :is(h1,h2,h3,h4,strong,span,p,small,div) {
  text-shadow: 0 1px 10px rgba(0,0,0,.26);
}
#bydMega #megaProducts .fr66-nautica-tile .fr66-nautica-tile-title {
  font-size: clamp(25px,2vw,32px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.035em !important;
  font-weight: 800 !important;
}
#bydMega #megaProducts .fr66-nautica-tile .fr66-nautica-tile-kicker {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  opacity: .92 !important;
}
/* La composición reproduce las tarjetas fotográficas de la cabecera:
   numeración y flecha arriba; título y descripción en la parte inferior. */
#bydMega #megaProducts .fr66-nautica-tile .fr66-nautica-tile-kicker {
  position: absolute !important;
  top: 22px !important;
  left: 25px !important;
  z-index: 2 !important;
}
#bydMega #megaProducts .fr66-nautica-tile .fr66-nautica-tile-arrow {
  position: absolute !important;
  top: 17px !important;
  right: 24px !important;
  font-size: 23px !important;
  line-height: 1 !important;
  z-index: 2 !important;
}
#bydMega #megaProducts .fr66-nautica-tile .fr66-nautica-tile-title {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}
#bydMega #megaProducts .fr66-nautica-tile:hover,
#bydMega #megaProducts .fr66-nautica-tile:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 38px rgba(7,19,33,.22) !important;
  filter: brightness(1.07);
}
#bydMega #megaProducts .fr66-nautica-tile:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -4px !important;
}
/* En PC, las tarjetas ganan unos 50-55px de alto. En móvil no crecen. */
@media (min-width:1051px) {
  #bydMega #megaProducts .fr66-nautica-tile {
    min-height: 210px !important;
  }
}
@media (max-width:1050px) {
  #bydMega #megaProducts .fr66-nautica-tile {
    min-height: 155px !important;
    padding: 18px 20px !important;
    border-radius: 16px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  #bydMega #megaProducts .fr66-nautica-tile {transition:none!important;transform:none!important;}
}
