/* FACTORYRACING V3.1 — ficha a pantalla completa y barra de cristal, CSS independiente. */
html:has(.fr-detail-hero), body:has(.fr-detail-hero) {margin:0;max-width:none;width:100%;overflow-x:clip;}
body:has(.fr-detail-hero) .fr-detail {width:100%;max-width:none;margin:0;padding:0;}
body:has(.fr-detail-hero) .fr-detail-hero {box-sizing:border-box;position:relative;inset:auto;display:flex;align-items:flex-end;isolation:isolate;overflow:hidden;width:100%;max-width:none;height:100vh;height:100svh;min-height:100vh;min-height:100svh;margin:0;padding:0;border:0;border-radius:0;background:#131b22;}
body:has(.fr-detail-hero) .fr-detail-hero>img,
body:has(.fr-detail-hero) .fr-detail-hero>video {position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0;}
/* iframe no admite object-fit: escalar geometría 16:9 hasta cubrir la ventana. */
body:has(.fr-detail-hero) .fr-detail-hero>iframe {position:absolute!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;width:max(100vw,177.78svh)!important;height:max(100svh,56.25vw)!important;min-width:100%;min-height:100%;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%)!important;border:0!important;pointer-events:none;}
body:has(.fr-detail-hero) .fr-detail-scrim {position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.47),rgba(0,0,0,.06) 78%),linear-gradient(0deg,rgba(0,0,0,.47),transparent 55%);pointer-events:none;}
body:has(.fr-detail-hero) .fr-detail-head {position:relative;z-index:2;width:100%;max-width:1080px;box-sizing:border-box;padding:0 clamp(24px,5vw,84px) clamp(54px,9vh,110px);margin:0;}
body:has(.fr-detail-hero) .fr-detail-back {display:inline-block;margin-bottom:clamp(18px,4vh,42px);}
@media(max-width:780px){body:has(.fr-detail-hero) .fr-detail-head {padding:0 6% 8vh;}body:has(.fr-detail-hero) .fr-detail-head h1{font-size:clamp(34px,9vw,66px)}body:has(.fr-detail-hero) .fr-detail-hero>iframe{width:max(100vw,177.78svh)!important;height:max(100svh,56.25vw)!important;}}

/* V4.0: ficha inmersiva, mismas proporciones que el index, sin interferir en navegación pública. */
html:has(.fr-detail-hero) .fr-detail,body:has(.fr-detail-hero) .fr-detail{width:100vw!important;max-width:100vw!important;margin:0!important;padding:0!important;}
body:has(.fr-detail-hero) .fr-detail-hero{height:100svh!important;min-height:100svh!important;width:100vw!important;margin:0!important;border-radius:0!important;}
body:has(.fr-detail-hero) .fr-detail-head h1{font-family:Montserrat,Arial,sans-serif!important;font-size:clamp(36px,4vw,64px)!important;font-weight:600!important;letter-spacing:-.035em!important;color:#fff!important;}
body:has(.fr-detail-hero) .fr-detail-head p{font-family:Montserrat,Arial,sans-serif!important;color:#fff!important;font-size:clamp(17px,1.5vw,23px)!important;font-weight:400!important;}
