/* Breakpoints finales para conservar el ancho real del viewport. */
html,body{max-width:100%;overflow-x:clip;}
img,button{max-width:100%;}
.motion-paused .ember-field:before,
.motion-paused .ember-field:after,
.motion-paused section.section-pad:before{animation-play-state:paused!important;}
.sparks-paused:before{animation-play-state:paused!important;}
/* En DevTools y en ventanas estrechas el ancho disponible puede ser menor
   aunque el navegador conserve un layout de escritorio. Colapsa la barra
   lateral antes de llegar al breakpoint de teléfono. */
@media(max-width:1200px){
  .sidebar{display:none!important;}
  .page{width:100%!important;max-width:100vw!important;margin:0!important;min-width:0!important;}
  .mobile-header{position:sticky!important;top:0;left:auto;right:auto;display:flex!important;width:100%;height:58px;z-index:50;padding:0 16px;background:#09070bf2;border-bottom:1px solid #ff26374a;backdrop-filter:blur(12px);}
  .mobile-header .side-logo{min-height:44px;font-size:15px;}
  .mobile-header .side-logo>b{font-size:14px;}
  .mobile-menu{display:block;flex:none;width:36px;height:34px;border:1px solid #ffffff6b;border-radius:5px;background:#08070bbd;color:#fff;font-size:19px;}
  .mobile-nav{display:none;position:absolute;top:58px;left:0;right:0;padding:17px 6%;background:#0b080df5;border-bottom:1px solid #f13a4b;}
  .mobile-nav.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 15px;}
  .mobile-nav a{padding:11px 9px;font-size:11px;border-bottom:1px solid #ffffff16;}
  .page>section{width:100%;min-width:0;}
}
@media(max-width:900px){
  .page{min-width:0;}
  .section-pad{padding-left:clamp(22px,5vw,54px);padding-right:clamp(22px,5vw,54px);}
  .team-cards{max-width:100%;}
  .places-grid{gap:12px;}
}
@media(max-width:760px){
  .sidebar{display:none!important;}
  .page{width:100%!important;max-width:100vw!important;margin:0!important;min-width:0!important;}
  .mobile-header{position:sticky!important;top:0;left:auto;right:auto;display:flex!important;width:100%;height:58px;z-index:50;padding:0 16px;background:#09070bf2;border-bottom:1px solid #ff26374a;backdrop-filter:blur(12px);}
  .mobile-header .side-logo{min-height:44px;font-size:15px;}
  .mobile-header .side-logo>b{font-size:14px;}
  .mobile-menu{display:block;flex:none;width:36px;height:34px;border:1px solid #ffffff6b;border-radius:5px;background:#08070bbd;color:#fff;font-size:19px;}
  .mobile-nav{display:none;position:absolute;top:58px;left:0;right:0;padding:17px 6%;background:#0b080df5;border-bottom:1px solid #f13a4b;}
  .mobile-nav.open{display:grid;grid-template-columns:1fr 1fr;gap:4px 15px;}
  .mobile-nav a{padding:11px 9px;font-size:11px;border-bottom:1px solid #ffffff16;}
  .page>section{width:100%;min-width:0;}
  .ember-field{display:block;opacity:.34;}
  .ember-field:before,.ember-field:after{mask-image:radial-gradient(ellipse at center,transparent 42%,#000 72%,#000 93%,transparent 100%);}
  .ember-field:before,.ember-field:after{will-change:auto;}
  section.section-pad:before{animation-duration:15s;opacity:.32;will-change:auto;}
  .top-play{display:none!important;}
  section.section-pad{padding:clamp(36px,8vw,58px) clamp(18px,5vw,34px);}
  .about,.mission-details,.route-section,.controls-section,.night-section{grid-template-columns:minmax(0,1fr)!important;gap:22px;}
  .about-copy,.mission-copy,.extra-heading,.controls-intro,.night-copy{max-width:680px;}
  .about-shot{height:clamp(190px,55vw,300px);}
  .mission-photo{height:clamp(210px,58vw,330px);}
  .mission-facts{grid-column:1;}
  .route-visual>img{height:clamp(205px,58vw,310px);}
  .control-board{width:100%;max-width:680px;min-width:0;}
  .night-image{height:clamp(215px,58vw,310px);}
  .places-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .place-card:last-child{grid-column:1/-1;}
  .team-section{grid-template-columns:minmax(0,1fr)!important;gap:16px;}
  .team-heading,.team-cards,.team-signoff{grid-column:1!important;min-width:0;}
  .team-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .team-photo{height:clamp(150px,34vw,230px);}
  .team-signoff{grid-row:auto;justify-self:end;}
  .footer{grid-template-columns:1fr auto;}
  .gallery-wrap{grid-template-columns:30px minmax(0,1fr) 30px;}
  .gallery-viewport,.gallery-track{min-width:0;}
}
@media(min-width:561px) and (max-width:760px){
  .hero{height:auto;min-height:0;max-height:none;aspect-ratio:1182/560;}
  .hero-intro{left:3%;top:39%;width:clamp(155px,25vw,205px);}
}
@media(max-width:560px){
  .mobile-header{padding-inline:12px;}
  .mobile-header .install-mobile{display:inline-flex;align-items:center;}
  .mobile-nav{position:absolute;top:58px;left:0;right:0;z-index:55;}
  .hero{height:auto;min-height:0;max-height:none;aspect-ratio:auto;display:flex;flex-direction:column;overflow:hidden;background:#09070b;}
  .hero-backdrop{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:1182/560;object-fit:cover;object-position:center;transform:none;filter:none;flex:none;}
  .hero-shade{display:none;}
  .hero-intro{position:relative;inset:auto;width:auto;max-width:none;padding:18px 6% 20px;margin:0;background:radial-gradient(ellipse at 5% 0,#261018,#0b090d 62%);border-top:1px solid #ff273b70;border-bottom:1px solid #ff273b55;text-shadow:none;}
  .hero-intro p{font-size:12px;line-height:1.45;}
  .feature-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
  .team-cards{grid-template-columns:minmax(0,1fr);gap:12px;}
  .team-card{display:grid;grid-template-columns:minmax(105px,36%) minmax(0,1fr);align-items:center;min-height:150px;padding:0;}
  .team-photo{height:150px;min-width:0;}
  .team-card-copy{min-width:0;padding:12px;}
  .team-card-copy h3{font-size:clamp(16px,5vw,20px);overflow-wrap:anywhere;}
  .team-card-copy>span{font-size:9px;}
  .places-grid{grid-template-columns:minmax(0,1fr);}
  .place-card:last-child{grid-column:auto;}
  .mission-facts{grid-template-columns:repeat(3,minmax(0,1fr));}
  .mission-facts>div{min-width:0;}
  .mission-facts span{font-size:clamp(5px,1.7vw,7px);}
}
@media(max-width:360px){
  .mobile-header{padding-inline:9px;}
  .mobile-header .side-logo{font-size:13px;}
  .mobile-header .side-logo>b{font-size:12px;}
  .mobile-header .install-mobile{margin-inline:5px;padding-inline:7px;font-size:7px;}
  .mobile-menu{width:32px;height:32px;}
  .hero-intro>a{gap:6px;font-size:8px;}
  .section-pad{padding-inline:16px!important;}
  .mission-facts>div{padding-inline:3px;}
  .mission-facts b{font-size:27px;}
}
@media(hover:none){
  .feature-card,.gallery-card,.team-card,.place-card{transform:none;}
  .feature-card:active,.gallery-card:active,.team-card:active,.place-card:active{transform:scale(.99);}
}
@media(max-width:760px){
  .feature-cards,.gallery-track,.team-cards,.places-grid{perspective:none;transform-style:flat;}
  .feature-card,.gallery-card,.team-card,.place-card{transform-style:flat;backface-visibility:visible;}
}
@media(prefers-reduced-motion:reduce){.feature-card,.gallery-card,.team-card,.place-card{transform:none!important;}}
