/* ==========================================================
   RuGo Full Website v018 — 1366×768 third-pass correction

   Evidence-driven scope only:
   - NOSOTROS: protect the execution glossary from colliding with
     "Equipo + Ejecución" and keep META aligned with the final title datum.
   - PROYECTOS: replace abrupt swaps with a real image-to-image crossfade and
     extend the fade time 3× relative to the prior transition.
   - CONTACTO: keep the editorial datum fully below the headline, match datum
     width to the approved support block, and align the Turnstile row with the
     consent-checkbox datum.

   Geometry, assets, backend, privacy flow and staging linkage remain unchanged.
   ========================================================== */

@media (min-width:861px){
  /* ----------------------------------------------------------
     NOSOTROS — protect lower editorial/title separation.
     ---------------------------------------------------------- */
  .rugo-golden-core .golden-geometry--8 .golden-cell-key,
  .rugo-golden-core .golden-geometry--13 .golden-cell-key{
    bottom:4.6%!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(34px,min(3.2vw,5.8svh),56px)!important;
  }

  .rugo-golden-core .golden-team-zone--execution .golden-process-terms{
    margin-top:.48rem!important;
    max-width:30ch!important;
  }

  /* ----------------------------------------------------------
     PROYECTOS — real crossfade, no blank/glitch flash.
     ---------------------------------------------------------- */
  .projects-card__media-image{
    transition:opacity 720ms cubic-bezier(.22,.74,.18,1)!important;
  }

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

  .projects-card__media-image--incoming{
    z-index:2!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity 720ms cubic-bezier(.22,.74,.18,1)!important;
  }

  .projects-card__media-image--incoming.is-visible{
    opacity:1!important;
  }

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

  /* ----------------------------------------------------------
     CONTACTO — approved editorial datum and verification alignment.
     ---------------------------------------------------------- */
  body.spatial-contact-flow .contact-v086__editorial{
    grid-template-rows:auto auto minmax(clamp(42px,6.0vh,86px),1fr) auto!important;
    row-gap:clamp(8px,1.0vh,14px)!important;
  }

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

  body.spatial-contact-flow .contact-v086__editorial-datum{
    align-self:end!important;
    margin-bottom:clamp(8px,1.0vh,14px)!important;
    width:min(100%,440px)!important;
    height:clamp(32px,min(2.75vw,4.9svh),44px)!important;
  }

  body.spatial-contact-flow .contact-v086__editorial-datum::before{
    width:31%!important;
  }

  body.spatial-contact-flow .contact-v086__support{
    width:min(100%,440px)!important;
  }

  body.spatial-contact-flow .rugo-intake-security-row,
  body.spatial-contact-flow .contact-v086__sheet-section--consent .rugo-intake-security-row{
    grid-template-columns:minmax(145px,.27fr) minmax(0,.73fr)!important;
    min-height:clamp(58px,5.9vh,72px)!important;
    align-items:center!important;
  }

  body.spatial-contact-flow .rugo-intake-security-row .contact-v086__field{
    display:flex!important;
    align-items:center!important;
    padding-left:0!important;
  }

  body.spatial-contact-flow .rugo-intake-turnstile{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:min(100%,420px)!important;
    margin-left:-12px!important;
  }

  body.spatial-contact-flow .rugo-intake-turnstile iframe,
  body.spatial-contact-flow .rugo-intake-turnstile > div{
    max-width:100%!important;
  }
}
