/* RC01-COR01: responsive cinematic layout, no replacement of approved assets. */
#cinema-track.cinema-ready:not(.cinema-flow) .cinema-sticky{top:var(--jolan-header-height,77px);height:calc(100svh - var(--jolan-header-height,77px));min-height:0}
/* Tall phones: the same three-scene scroll engine, vertical composition. */
@media(max-width:760px){
 #cinema-track.cinema-mobile-motion{height:380svh!important}
 #cinema-track.cinema-mobile-motion .cinema-sticky{position:sticky;display:flex;flex-direction:column;padding:8px 12px 10px;gap:8px;justify-content:center}
 #cinema-track.cinema-mobile-motion .cinema-stage{display:block;position:relative;flex:1;height:auto;min-height:0;max-height:none;overflow:hidden;border:1px solid #ffffff25;border-radius:15px;background:#15202a;box-shadow:0 18px 45px #0005}
 #cinema-track.cinema-mobile-motion .cinema-scene{position:absolute;inset:0;height:auto;border:0;box-shadow:none;}
 /* Original compact rules used !important; expose inline scroll styles instead via CSS variables. */
 #cinema-track.cinema-mobile-motion .cinema-scene{opacity:var(--rc-scene-opacity,0)!important;transform:var(--rc-scene-transform,none)!important;pointer-events:var(--rc-scene-pointer,none)!important}
 #cinema-track.cinema-mobile-motion :is(.cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid){display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:8px;padding:42px 18px 18px;height:100%;min-height:0}
 #cinema-track.cinema-mobile-motion .cinema-scene-head{top:13px;left:18px;right:18px;font-size:7px;letter-spacing:.09em}
 #cinema-track.cinema-mobile-motion :is(.cinema-product h3,.cinema-hospitality h3,.cinema-portfolio h3){font-size:clamp(30px,8.2vw,42px);line-height:1.04;margin-bottom:9px}
 #cinema-track.cinema-mobile-motion :is(.cinema-product-copy,.cinema-hosp-copy,.cinema-portfolio-copy){flex:0 0 auto;max-width:100%}
 #cinema-track.cinema-mobile-motion .cinema-kicker{font-size:8px;margin-bottom:6px}
 #cinema-track.cinema-mobile-motion .cinema-chip{margin-top:8px;padding:5px 8px}
 #cinema-track.cinema-mobile-motion .cinema-hosp-inline{margin-top:9px}
 #cinema-track.cinema-mobile-motion :is(.cinema-perfume-art,.cinema-hosp-photo.cinema-hosp-editorial,.cinema-building-art.cinema-forma-editorial){flex:1 1 0;min-height:0;height:auto;width:100%;max-width:100%;align-self:center;max-height:300px}
 #cinema-track.cinema-mobile-motion .aura-photo-rig{height:100%;min-height:0;width:min(70vw,280px)}
 #cinema-track.cinema-mobile-motion .cinema-control-strip{padding:0;gap:6px;display:flex;flex-direction:column;align-items:stretch;flex:0 0 auto}
 #cinema-track.cinema-mobile-motion .cinema-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #cinema-track.cinema-mobile-motion .cinema-step{min-height:44px;font-size:9px;padding:4px 2px}
 #cinema-track.cinema-mobile-motion .cinema-play{grid-column:1/-1;min-height:44px;font-size:11px}
}
/* Short viewports (including landscape): natural vertical scrolling, no clipping or trapped content. */
#cinema-track.cinema-flow{height:auto!important}
#cinema-track.cinema-flow .cinema-sticky{position:relative;top:auto;height:auto;min-height:0;display:flex;flex-direction:column;padding:8px 12px;gap:12px}
#cinema-track.cinema-flow .cinema-stage{height:auto;max-height:none;overflow:visible;display:grid;gap:18px;border:0;background:transparent;box-shadow:none;flex:none}
#cinema-track.cinema-flow .cinema-scene{position:relative;inset:auto;height:auto;min-height:0;opacity:1!important;transform:none!important;pointer-events:auto!important;border-radius:14px;border:1px solid #ffffff22;overflow:hidden}
#cinema-track.cinema-flow :is(.cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid){height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:55px 20px 25px}
#cinema-track.cinema-flow .cinema-scene-head{top:16px;left:20px;right:20px;font-size:8px}
#cinema-track.cinema-flow :is(.cinema-perfume-art,.cinema-hosp-photo.cinema-hosp-editorial,.cinema-building-art.cinema-forma-editorial){height:clamp(210px,55vw,360px);min-height:0;max-width:460px;width:100%;align-self:center;flex:none}
#cinema-track.cinema-flow .aura-photo-rig{min-height:0;height:100%;max-height:100%;width:min(75vw,340px)}
#cinema-track.cinema-flow .cinema-product-foot{display:none}
#cinema-track.cinema-flow .cinema-control-strip{order:-1;flex:none;background:#101a25;padding:8px;gap:7px;border-radius:9px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}
#cinema-track.cinema-flow:not(.cinema-static) .cinema-control-strip{position:sticky;top:var(--jolan-header-height,77px);z-index:9}
#cinema-track.cinema-flow .cinema-actions{flex-wrap:wrap;gap:4px}
#cinema-track.cinema-flow .cinema-step,#cinema-track.cinema-flow .cinema-play{min-height:44px;font-size:10px}
#cinema-track.cinema-flow .cinema-stage-gradient{display:none}
/* Two columns fit landscape width but not the original fixed-height sticky frame. */
@media(min-width:761px){
 #cinema-track.cinema-flow :is(.cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:16px;padding:48px 25px 24px}
 #cinema-track.cinema-flow :is(.cinema-product h3,.cinema-hospitality h3,.cinema-portfolio h3){font-size:clamp(30px,4.2vw,50px)}
}
@media(min-width:761px) and (max-width:899px){
 #cinema-track:not(.cinema-flow) .cinema-product .aura-photo-rig{min-height:0;height:min(100%,440px)}
 #cinema-track:not(.cinema-flow) :is(.cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid){padding:60px 4% 38px;grid-template-columns:48% 52%;min-height:0}
}

/* Tablet tall: fit the contact landing at the end of the document, without an extra spacer. */
@media (max-width:1100px) and (min-height:1000px){
 #contacto.section-pad{padding-top:48px;min-height:calc(100svh - var(--jolan-header-height,84px) + 48px - var(--jolan-footer-height,130px) - 12px)}
}
@media(max-width:800px){.site-header .nav-links{max-height:calc(100dvh - var(--jolan-header-height,72px));overflow-y:auto;overscroll-behavior:contain;top:100%}}

/* JOLAN M01-FIX01: Instagram iOS only */
#cinema-track.cinema-instagram-ios.cinema-flow .cinema-control-strip {
    position: relative;
    top: auto;
    z-index: auto;
}
