/* assets/css/80-in-motion-desktop-cinema.css
   Pixkuy en movimiento — Desktop cinematic reveal.
   Alcance:
   - solo desktop
   - experiencia de vídeo con máscara tipográfica y capítulos de servicio
   - no modifica el scroll-cinema móvil
   - no modifica la galería existente
*/

.in-motion-desktop-cinema{
  display:none;
}

@media (min-width:721px){
  .in-motion-desktop-cinema{
    display:block;
    width:min(100vw - 32px, 1440px);
    margin:40px calc(50% - min(50vw - 16px, 720px)) 0;
  }

  .in-motion-desktop-cinema[hidden]{
    display:none !important;
  }

  body[data-in-motion-desktop-cinema-active="true"] .whatsapp-floating,
  body[data-in-motion-desktop-cinema-active="true"] .events-special-spotlight{
    display:none !important;
  }

  .in-motion-desktop-cinema__stage{
    position:relative;
    height:clamp(680px, calc(100svh - 24px), 900px);
    min-height:0;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    background:#0f1113;
  }

  .in-motion-desktop-cinema__mask{
    position:absolute;
    top:48px;
    right:clamp(24px, 4vw, 58px);
    bottom:64px;
    z-index:2;

    width:clamp(320px, 31vw, 460px);
    min-height:0;
    overflow:visible;

    background:transparent;
  }

  .in-motion-desktop-cinema__video{
    position:absolute;
    inset:0;
    z-index:2;

    width:100%;
    height:100%;

    display:block;
    object-fit:cover;
    object-position:center;

    border-radius:10px;
    background:#0f1113;
    transform:scale(1);
  }

  .in-motion-desktop-cinema__type{
    position:absolute;
    left:clamp(24px, 4vw, 58px);
    bottom:48px;
    z-index:1;

    width:min-content;
    max-width:calc(100% - clamp(430px, 42vw, 600px));

    color:rgba(244,242,238,.16);

    font-size:clamp(62px, 8.6vw, 126px);
    line-height:.84;
    font-weight:800;
    letter-spacing:-0.068em;
    text-align:left;
    text-transform:uppercase;
    white-space:normal;

    pointer-events:none;
    user-select:none;
  }

  .in-motion-desktop-cinema__overlay{
    position:absolute;
    inset:0;
    z-index:3;
    pointer-events:none;

    background:
      linear-gradient(90deg, rgba(15,17,19,.78) 0%, rgba(15,17,19,.30) 34%, rgba(15,17,19,.04) 62%, rgba(15,17,19,.16) 100%),
      linear-gradient(180deg, rgba(15,17,19,.04) 0%, rgba(15,17,19,0) 52%, rgba(15,17,19,.46) 100%);
  }

  .in-motion-desktop-cinema__content{
    position:absolute;
    left:clamp(24px, 4vw, 58px);
    top:48px;
    z-index:4;

    width:min(580px, 44vw);

    transform:none;

    display:grid;
    gap:22px;
  }

  .in-motion-desktop-cinema__chapter{
    display:grid;
    gap:14px;

    padding:18px 0 0;

    border-top:1px solid rgba(255,255,255,.24);
  }

  .in-motion-desktop-cinema__chapter-index{
    margin:0;

    color:rgba(244,242,238,.62);
    font-size:13px;
    line-height:1;
    font-weight:600;
  }

  .in-motion-desktop-cinema__chapter-title{
    margin:0;

    color:var(--fg);
    font-size:clamp(28px, 3vw, 48px);
    line-height:.98;
    letter-spacing:-0.045em;
    font-weight:760;
  }

  .in-motion-desktop-cinema__chapter-text{
    margin:0;

    color:rgba(244,242,238,.76);
    font-size:15px;
    line-height:1.55;
  }

  .in-motion-desktop-cinema__actions{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;

    margin-top:2px;
  }

  .in-motion-desktop-cinema__primary{
    margin-top:0;
    min-height:42px;
    padding:0 18px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border-radius:8px;

    font-size:14px;
    line-height:1;
    font-weight:700;
  }

  .in-motion-desktop-cinema__secondary{
    color:rgba(244,242,238,.82);
    text-decoration:none;
    font-size:14px;
    line-height:1.2;
    font-weight:600;
  }

  .in-motion-desktop-cinema__secondary::after{
    content:" →";
  }

  .in-motion-desktop-cinema__secondary:hover{
    color:var(--fg);
  }

  .in-motion-desktop-cinema__secondary:focus-visible{
    outline:2px solid rgba(31,122,109,.95);
    outline-offset:4px;
    border-radius:6px;
  }

  .in-motion-desktop-cinema__chapters{
    display:grid;
    gap:0;
  }

  .in-motion-desktop-cinema__chapter-button{
    width:100%;

    display:grid;
    grid-template-columns:34px minmax(0, 1fr) auto;
    align-items:center;
    gap:12px;

    padding:11px 0;

    border:0;
    border-top:1px solid rgba(255,255,255,.10);
    background:transparent;
    color:rgba(244,242,238,.58);

    font:inherit;
    text-align:left;
    cursor:pointer;
  }

  .in-motion-desktop-cinema__chapter-button:first-child{
    border-top:0;
  }

  .in-motion-desktop-cinema__chapter-button[aria-pressed="true"]{
    color:var(--fg);
  }

  .in-motion-desktop-cinema__chapter-button-index{
    font-size:12px;
    line-height:1;
    color:currentColor;
  }

  .in-motion-desktop-cinema__chapter-button-label{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:14px;
    line-height:1.2;
    font-weight:600;
  }

  .in-motion-desktop-cinema__chapter-button-time{
    font-size:12px;
    line-height:1;
    color:rgba(244,242,238,.46);
  }

  .in-motion-desktop-cinema__chapter-button:hover{
    color:rgba(244,242,238,.9);
  }

  .in-motion-desktop-cinema__chapter-button:focus-visible{
    outline:2px solid rgba(31,122,109,.95);
    outline-offset:3px;
  }

  .in-motion-desktop-cinema__controls{
    position:absolute;
    right:clamp(24px, 4vw, 58px);
    bottom:24px;
    z-index:5;

    width:clamp(320px, 31vw, 460px);

    display:grid;
    grid-template-columns:38px 38px minmax(0, 1fr);
    gap:10px;
    align-items:center;
  }

  .in-motion-desktop-cinema__control{
    width:38px;
    height:38px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.16);
    border-radius:8px;
    background:rgba(15,17,19,.72);
    color:var(--fg);

    cursor:pointer;
  }

  .in-motion-desktop-cinema__control:hover{
    background:rgba(255,255,255,.08);
  }

  .in-motion-desktop-cinema__control:focus-visible{
    outline:2px solid rgba(31,122,109,.95);
    outline-offset:3px;
  }

  .in-motion-desktop-cinema__progress{
    height:2px;
    background:rgba(255,255,255,.22);
    overflow:hidden;
  }

  .in-motion-desktop-cinema__progress span{
    display:block;
    width:0%;
    height:100%;
    background:rgba(244,242,238,.86);
  }

  .in-motion-desktop-cinema + .in-motion__gallery{
    margin-top:28px;
  }
}

@media (min-width:721px) and (max-width:1080px){
  .in-motion-desktop-cinema__content{
    left:28px;
    top:48px;
    width:420px;
  }

  .in-motion-desktop-cinema__type{
    font-size:clamp(56px, 7.8vw, 104px);
    max-width:calc(100% - 390px);
  }
}

@media (max-width:720px){
  .in-motion-desktop-cinema{
    display:none !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .in-motion-desktop-cinema__video{
    transform:none !important;
  }
}