/* ==========================================================
   RuGo Full Website v019 — 1366×768 fourth-pass correction

   Approved scope only:
   - HOME boot: remove PROYECTOS hero dependency from initial readiness.
   - NOSOTROS: keep process terms on one line and align Equipo + Ejecución / Meta
     to one shared lower datum.
   - PROYECTOS: true rear-image reveal transition with longer dwell time.
   - CONTACTO: replace the single shared editorial spacer with two independent rules
     in the approved editorial flow.

   Intake/backend/privacy/verification logic remain unchanged.
   ========================================================== */

@media (min-width:861px){
  /* ----------------------------------------------------------
     HOME — desktop hero stays ready without waiting on PROYECTOS.
     ---------------------------------------------------------- */
  .home-v089__image[data-home-hero-cell="05"]{
    content-visibility:auto;
  }

  /* ----------------------------------------------------------
     NOSOTROS — unified lower title datum and protected process terms.
     ---------------------------------------------------------- */
  .rugo-golden-core{
    --golden-lower-title-bottom:clamp(18px,2.8vh,26px);
  }

  .rugo-golden-core .golden-geometry--8 .golden-cell-key,
  .rugo-golden-core .golden-geometry--13 .golden-cell-key{
    bottom:var(--golden-lower-title-bottom)!important;
  }

  .rugo-golden-core .golden-team-zone--execution{
    height:23.5%!important;
  }

  .rugo-golden-core .golden-team-zone--execution .golden-team-detail{
    padding-bottom:clamp(58px,min(5.1vw,8.3svh),82px)!important;
  }

  .rugo-golden-core .golden-team-zone--execution .golden-process-terms{
    margin-top:.48rem!important;
    max-width:none!important;
    white-space:nowrap!important;
    overflow:visible!important;
    font-size:clamp(6.4px,.48vw,8.1px)!important;
    letter-spacing:.08em!important;
  }

  /* ----------------------------------------------------------
     PROYECTOS — incoming image lives behind current image; only
     the outgoing image fades, so no beige flash can appear.
     ---------------------------------------------------------- */
  .projects-card__media-image{
    z-index:2!important;
    transition:opacity 960ms cubic-bezier(.22,.74,.18,1)!important;
  }

  .projects-card__media-image.is-switching{
    opacity:0!important;
  }

  .projects-card__media-image--incoming{
    z-index:1!important;
    opacity:1!important;
    pointer-events:none!important;
    transition:none!important;
  }

  .projects-card__media-video{
    z-index:3!important;
  }

  /* ----------------------------------------------------------
     CONTACTO — two independent rules in editorial flow.
     ---------------------------------------------------------- */
  body.spatial-contact-flow .contact-v086__editorial{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
  }

  body.spatial-contact-flow .contact-v086__headline{
    max-width:min(100%,450px)!important;
    margin-bottom:0!important;
  }

  body.spatial-contact-flow .contact-v086__editorial-rules{
    display:flex!important;
    flex-direction:column!important;
    gap:clamp(18px,2.5vh,26px)!important;
    width:min(100%,440px)!important;
    margin-top:clamp(18px,2.3vh,26px)!important;
    margin-bottom:clamp(16px,2.1vh,24px)!important;
  }

  body.spatial-contact-flow .contact-v086__editorial-rule{
    position:relative!important;
    width:100%!important;
    height:1px!important;
    background:rgba(17,17,15,.10)!important;
  }

  body.spatial-contact-flow .contact-v086__editorial-rule--upper::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:31%!important;
    border-top:2px solid var(--contact-red)!important;
    transform:translateY(-1px);
  }

  body.spatial-contact-flow .contact-v086__support{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:min(100%,440px)!important;
    margin:0!important;
  }
}
