/* FACTORYRACING V12.76 | Mobile experience. Solo presentación; no altera el menú JS. */
@media (max-width:1050px){
  html,body{max-width:100%;overflow-x:clip}
  .topbar.byd-header{box-sizing:border-box;max-width:calc(100% - 16px);margin-left:8px;margin-right:8px;min-height:62px;border-radius:23px}
  .topbar.byd-header .wordmark{flex-shrink:0;max-width:138px}
  .topbar.byd-header .wordmark img{max-width:100%;max-height:45px;object-fit:contain}
  .topbar.byd-header .byd-menu-toggle{min-width:44px;min-height:44px;flex:0 0 44px;border-radius:50%;touch-action:manipulation}
  .topbar.byd-header .byd-header-actions{display:flex;align-items:center;gap:6px;min-width:0}
  .topbar.byd-header .byd-header-actions .byd-search{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  /* Mantener la lógica de mostrar/ocultar del menú móvil existente. */
  .topbar.byd-header .byd-primary-nav{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .topbar.byd-header .byd-primary-nav:is(.open,.active,.is-open,[data-open="true"],[aria-hidden="false"]){max-height:calc(100dvh - 92px);overflow-y:auto}
  .topbar.byd-header .byd-primary-nav>.nav-entry>a{min-height:48px;display:flex;align-items:center;line-height:1.25;font-size:clamp(15px,1.65vw,18px);font-weight:650;letter-spacing:-.012em}
  .topbar.byd-header .fr64-nav-socials{align-items:center;gap:12px}
  .topbar.byd-header .fr64-nav-socials a{min-width:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
  .topbar.byd-header .fr64-nav-socials svg{width:19px;height:19px}
  .topbar.byd-header .fr-mobile-equip-links{gap:7px}
  .topbar.byd-header .fr-mobile-equip-links a{min-height:38px;display:inline-flex;align-items:center;padding:7px 12px;font-size:13px!important}
  .byd-mega,.byd-mega-inner{max-width:100%}
  :where(input,select,textarea){max-width:100%;min-height:43px;font-size:16px}
  :where(button,[role=button]){touch-action:manipulation}
  a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #d61c39;outline-offset:3px}
  /* Navegación y tarjetas de catálogo con espacio suficiente para pulsar */
  .fr40-category-nav{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .fr40-category-nav a{flex-shrink:0;scroll-snap-align:start;min-height:42px;display:inline-flex;align-items:center}
  .fr40-brand-nav{gap:7px;flex-wrap:wrap}
  .fr40-brand-nav a{min-height:40px;display:inline-flex;align-items:center}
  .fr47-filter-bar{gap:12px;align-items:stretch;flex-wrap:wrap}
  .fr47-search-form{width:100%;max-width:none}
  .fr47-search-box{width:100%;border-radius:999px;min-height:46px}
  .fr47-search-box input{font-size:16px}
  /* Fichas, taller y ocasión mantienen su contenido pero mejoran legibilidad */
  .fr1273-workshop .fr73-section-heading>p,.fr1273-workshop .fr73-card-body p{line-height:1.57}
  .fr1267-page,.fr1273-workshop,.fr1276-water{max-width:100%}
  .fr101-footer .fr101-footer-grid{column-gap:16px!important;row-gap:22px!important}
}
@media (max-width:700px){
  :root{--fr76-space:18px}
  .topbar.byd-header{max-width:calc(100% - 12px);margin-left:6px;margin-right:6px;border-radius:21px;min-height:58px;padding-left:9px;padding-right:9px}
  .topbar.byd-header .wordmark{max-width:122px;min-width:0}
  .topbar.byd-header .byd-header-actions{gap:4px}
  .topbar.byd-header .byd-header-actions .byd-contact{display:none}
  .topbar.byd-header .byd-header-actions .byd-search{min-width:38px;min-height:40px}
  .topbar.byd-header .byd-primary-nav{padding-bottom:env(safe-area-inset-bottom,0px)}
  .topbar.byd-header .byd-primary-nav:is(.open,.active,.is-open,[data-open="true"],[aria-hidden="false"]){max-height:calc(100dvh - 78px)}
  .topbar.byd-header .byd-primary-nav>.nav-entry>a{font-size:16px;min-height:50px}
  /* Portada inmersiva: textos más equilibrados y accesos menos recargados */
  .immersive .scene-copy{box-sizing:border-box;max-width:calc(100% - 32px)}
  .immersive .scene-copy h1{font-size:clamp(38px,10vw,60px);line-height:1.02;letter-spacing:-.045em;overflow-wrap:break-word}
  .immersive .scene-copy p{font-size:15px;line-height:1.53;max-width:38ch}
  .immersive .scene-actions{gap:9px;flex-wrap:wrap}
  .immersive .scene-button{font-size:12px;min-height:44px;padding:12px 16px}
  .hero-shortcuts{gap:8px}
  .hero-shortcut{min-height:66px;padding:10px 12px}
  .hero-shortcut .shortcut-body strong{font-size:14px;line-height:1.2}
  .hero-shortcut .shortcut-body small{display:none!important}
  /* Catálogo completo en dos columnas, sin textos cortados ni desbordamientos */
  .fr40-catalog .fr40-shell{width:calc(100% - 28px);max-width:none}
  .fr40-catalog .fr40-head h1,.fr40-catalog .fr40-head h2{font-size:clamp(34px,9vw,52px);line-height:1.05;letter-spacing:-.055em}
  .fr40-catalog .fr40-head p{font-size:14px;line-height:1.6}
  .fr40-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .fr40-card{min-width:0;overflow:hidden;border-radius:13px}
  .fr40-card-visual{min-height:0;aspect-ratio:1/.90}
  .fr40-card-visual img{max-width:100%;object-fit:contain}
  .fr40-card-info{padding:12px 10px 14px}
  .fr40-card-info h3,.fr40-card-info h2{font-size:14px;line-height:1.2;overflow-wrap:anywhere}
  .fr40-card-brand{font-size:10px;letter-spacing:.07em}
  .fr40-card-link{min-height:38px;font-size:12px}
  .fr47-filter-bar{margin-top:16px;gap:8px}
  .fr47-search-label{font-size:11px}
  /* Entradillas, titulares y botones genéricos */
  .page-intro{padding-left:var(--fr76-space);padding-right:var(--fr76-space)}
  .page-intro h1{font-size:clamp(36px,10vw,54px);line-height:1.04;letter-spacing:-.05em}
  .page-intro p{font-size:15px;line-height:1.57}
  .cards,.category-links{gap:12px}
  .product h2{font-size:clamp(17px,4.6vw,22px);line-height:1.2;overflow-wrap:anywhere}
  .product img{max-width:100%}
  /* La subnavegación acuática se desliza, sin reducir etiquetas a 9 px. */
  .fr1276-water .fr1276-tabs{flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain}
  .fr1276-water .fr1276-tab-name{display:none!important}
  .fr1276-water .fr1276-tabs a{flex:0 0 auto!important;min-width:108px;min-height:44px;font-size:11px!important;white-space:nowrap;scroll-snap-align:start}
  .fr1276-water .fr1276-description,.fr1276-water .fr1276-technical-lead{font-size:15px!important;line-height:1.65!important}
  .fr1276-water .fr1276-hero-caption{font-size:15px!important}
  .fr1276-water .fr1276-button{font-size:12px!important;min-height:44px}
  .fr1276-water .fr1276-gallery-heading p{font-size:15px!important}
  /* Página editorial de ocasión (independiente del catálogo de motocicletas nuevas) */
  .fr1267-page .fr1267-hero h1{font-size:clamp(39px,10vw,64px);line-height:1.03;overflow-wrap:anywhere}
  .fr1267-page .fr1267-hero-desc{font-size:14px;line-height:1.55}
  .fr1267-page .fr1267-hero-actions{gap:9px;flex-wrap:wrap}
  .fr1267-page .fr1267-btn{min-height:45px;font-size:12px}
  /* Taller: ninguna ficha se queda con letras diminutas */
  .fr1273-workshop .fr73-hero h1{font-size:clamp(43px,10.7vw,61px)!important}
  .fr1273-workshop .fr73-section-heading h2{font-size:clamp(36px,9.3vw,50px)!important}
  .fr1273-workshop .fr73-card-body h3{font-size:22px;line-height:1.17}
  .fr1273-workshop .fr73-card-body p{font-size:15px!important;line-height:1.6}
  .fr1273-workshop .fr73-card-features li{font-size:12px;line-height:1.35}
  /* Nautica y barcos */
  .fr120-nautica-hero h1,.fr120-nautica-hero h2{font-size:clamp(42px,11vw,66px);line-height:1.01}
  .fr194-nautica-heading h2{font-size:clamp(34px,9vw,52px);line-height:1.03}
  .fr194-nautica-card{min-height:220px}
  /* Footer real generado por fr-v101-frontend.php */
  .fr101-footer .fr101-footer-inner{width:calc(100% - 32px);max-width:none}
  .fr101-footer .fr101-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px!important}
  .fr101-footer .fr101-foot-brand{grid-column:1/-1}
  .fr101-footer .fr101-foot-details{grid-column:1/-1}
  .fr101-footer .fr101-foot-col h2{font-size:13px;line-height:1.25}
  .fr101-footer .fr101-foot-col a,.fr101-footer .fr101-foot-col p{font-size:13px;line-height:1.45!important;overflow-wrap:anywhere}
  .fr101-footer .fr101-foot-bottom{align-items:center;row-gap:10px!important}
  .fr101-footer .fr1276-admin-icon{margin-left:0}
}
@media(max-width:380px){
  .topbar.byd-header .wordmark{max-width:105px}
  .fr40-grid{gap:8px!important}
  .fr40-card-info{padding:10px 9px}
  .fr40-card-info h3,.fr40-card-info h2{font-size:13px}
  .fr1276-water .fr1276-tabs{padding-left:3px;padding-right:3px}
  .fr1276-water .fr1276-tabs a{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
  .fr40-card,.hero-shortcut,.fr1273-workshop .fr73-card,.fr1267-page *{scroll-behavior:auto!important;transition-duration:0.01ms!important;animation-duration:0.01ms!important}
}
