/* JOLAN V1.0.8.1 | ENCUADRE CINEMATOGRAFICO CORREGIDO
   Solo afecta la geometria del escenario y recupera transformaciones V1.0.7.
   Conserva logo, intro, historia, AURA aprobada y catalogo de cuatro proyectos.
   Ver QA_V1081.md antes de usar. No sustituye el motor de scroll. */
@media (min-width:900px){
  /* Evita el limite artificial 100svh - 182px impuesto en V1.0.8. */
  .cinema-sticky{
    min-height:0;
    height:calc(100svh - 77px);
    padding:8px clamp(10px,1.25vw,24px) 10px;
    gap:8px;
  }
  .cinema-stage{
    width:min(1450px,100%);
    max-height: min(780px,calc(100svh - 120px));
  }
  .cinema-control-strip{padding-block:2px;gap:8px 16px}
  /* Un area reservada bajo titulares e imagenes evita recortes a p=0 y p=1. */
  .cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid{
    grid-template-columns:46% 54%;
    padding:clamp(46px,6.5svh,70px) 4.2% clamp(32px,5svh,52px);
    min-height:0;
  }
  .cinema-product-copy,.cinema-hosp-copy,.cinema-portfolio-copy{min-width:0}
  .cinema-perfume-art{height:100%;min-height:0;overflow:visible}
  .cinema-product .aura-photo-rig{
    min-height:0;
    height:min(100%,440px);
    max-height:calc(100% - 42px);
    width:min(100%,400px);
    transform:translate3d(0,calc(8px - var(--scene-local,0)*24px),0)
      scale(calc(.95 + var(--scene-local,0)*.13));
  }
  .cinema-product .aura-photo-rig picture{height:100%;max-height:100%;aspect-ratio:392/594}
  .cinema-product .cinema-product-foot{
    bottom:-27px;right:0;left:auto;z-index:6;
    max-width:100%;text-align:right;white-space:normal;line-height:1.35;
  }
  /* Se recuperan amplitudes de V1.0.7 sin sacrificar area segura de fotografia. */
  .cinema-hosp-photo.cinema-hosp-editorial{
    width:min(97%,570px);max-width:570px;
    height:min(100%,490px);
    transform:translateY(calc((.5 - var(--scene-local,0))*30px))
      rotate(calc(-2deg + var(--scene-local,0)*4deg))
      scale(calc(.90 + var(--scene-local,0)*.14));
  }
  .cinema-building-art.cinema-forma-editorial{
    width:min(96%,570px);height:min(100%,500px);
    transform:perspective(800px)
      rotateY(calc(-8deg + var(--scene-local,0)*13deg))
      translateY(calc(var(--scene-local,0)*-20px))
      scale(calc(.93 + var(--scene-local,0)*.13));
  }
}
/* Alturas utiles reducidas, como Edge en pantalla 1366x768: ~636px de viewport web. */
@media (min-width:900px) and (max-height:720px){
  .cinema-scene-head{top:16px;left:clamp(22px,3vw,38px);right:clamp(22px,3vw,38px);font-size:9px}
  .cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid{
    padding-top:42px;padding-bottom:32px;
  }
  .cinema-kicker{font-size:10px;margin-bottom:10px}
  .cinema-product h3,.cinema-hospitality h3,.cinema-portfolio h3{
    font-size:clamp(40px,4.25vw,58px);line-height:1.06;margin-bottom:12px;
  }
  .cinema-product-copy p,.cinema-hosp-copy p,.cinema-portfolio-copy p{
    font-size:13px;line-height:1.54;max-width:360px;
  }
  .cinema-chip{margin-top:15px;padding:9px 11px;font-size:9px}
  .cinema-hosp-inline{margin-top:17px;padding-bottom:7px;font-size:9px;max-width:100%}
  .cinema-product .aura-photo-rig{max-height:calc(100% - 34px);width:min(100%,340px)}
  .cinema-product .cinema-product-foot{bottom:-23px;font-size:8px}
  .cinema-hosp-photo.cinema-hosp-editorial{
    height:min(100%,410px);width:min(94%,530px);
    transform:translateY(calc((.5 - var(--scene-local,0))*22px))
      rotate(calc(-2deg + var(--scene-local,0)*4deg))
      scale(calc(.88 + var(--scene-local,0)*.14));
  }
  .cinema-building-art.cinema-forma-editorial{
    height:min(100%,410px);width:min(94%,510px);
    transform:perspective(800px)
      rotateY(calc(-8deg + var(--scene-local,0)*13deg))
      translateY(calc(var(--scene-local,0)*-12px))
      scale(calc(.90 + var(--scene-local,0)*.13));
  }
}
/* Aun mas bajo: el texto debe poder leerse, no meterse detras del producto. */
@media (min-width:900px) and (max-height:590px){
  .cinema-stage{max-height:calc(100svh - 118px)}
  .cinema-product-grid,.cinema-hosp-content,.cinema-portfolio-grid{padding-top:35px;padding-bottom:25px}
  .cinema-product h3,.cinema-hospitality h3,.cinema-portfolio h3{font-size:clamp(33px,3.6vw,48px)}
  .cinema-product-copy p,.cinema-hosp-copy p,.cinema-portfolio-copy p{font-size:12px;line-height:1.42}
  .cinema-kicker{margin-bottom:7px}
  .cinema-chip{margin-top:10px;padding:7px 9px}
  .cinema-product .aura-photo-rig{max-height:calc(100% - 27px)}
  .cinema-product .cinema-product-foot{bottom:-18px;font-size:7px}
  .cinema-hosp-photo.cinema-hosp-editorial,.cinema-building-art.cinema-forma-editorial{height:min(100%,350px)}
}
