/* ==========================================================
   RuGo Full Website v017 — 1366×768 second-pass correction

   Evidence-driven scope only:
   - NOSOTROS META subtitle/description type families use identical scale rules.
   - NOSOTROS Equipo + Ejecución small editorial type receives a readable
     proportional floor; no blur/filter effect is applied.
   - PROYECTOS multi-image slideshow changes use a deliberate full fade state.
   - CONTACT editorial datum participates in layout between headline/support
     instead of remaining at a fixed absolute bottom offset.

   Geometry, content, backend, intake persistence and media assets remain
   unchanged.
   ========================================================== */

@media(min-width:861px){
  /* ----------------------------------------------------------
     NOSOTROS — META hierarchy consistency.
     Every first-level statement inside VISIÓN / MISIÓN / APORTE uses one
     shared proportional size. Every description / closing paragraph uses one
     shared proportional size.
     ---------------------------------------------------------- */
  .rugo-golden-core{
    --golden-meta-subtitle-size:clamp(9px,min(.9375vw,1.6667svh),18px);
    --golden-meta-description-size:clamp(8px,min(.703125vw,1.25svh),13.5px);
  }

  .rugo-golden-core .golden-vision-headline>p,
  .rugo-golden-core .golden-meta-statement{
    font-size:var(--golden-meta-subtitle-size)!important;
    line-height:1.20!important;
  }

  .rugo-golden-core .golden-meta-detail p,
  .rugo-golden-core .golden-meta-closing-primary,
  .rugo-golden-core .golden-meta-closing-secondary{
    font-size:var(--golden-meta-description-size)!important;
    line-height:1.38!important;
  }

  /* Preserve subtitle ownership after the general paragraph rule above. */
  .rugo-golden-core .golden-meta-detail .golden-meta-statement,
  .rugo-golden-core .golden-vision-headline>p{
    font-size:var(--golden-meta-subtitle-size)!important;
    line-height:1.20!important;
  }

  /* Equipo + Ejecución: v016 exposed very small rasterized type at short
     laptop heights. There is no CSS blur/filter in this region; keep the
     proportional rule but prevent the smallest editorial layers from dropping
     below a readable desktop floor. */
  .rugo-golden-core .golden-team-detail,
  .rugo-golden-core .golden-team-zone--execution .golden-team-detail{
    font-size:clamp(8px,min(.703125vw,1.25svh),13.5px)!important;
    line-height:1.30!important;
  }
  .rugo-golden-core .golden-process-terms,
  .rugo-golden-core .golden-team-zone--execution .golden-process-terms{
    font-size:clamp(8px,min(.52083vw,.9259svh),10px)!important;
    line-height:1.28!important;
  }

  /* ----------------------------------------------------------
     PROYECTOS — intentional slideshow fade state.
     JS keeps the old frame until the fade is engaged, clears stale srcset
     metadata before the logical source swap, and reveals only after the new
     image has loaded/decoded.
     ---------------------------------------------------------- */
  .projects-card__media-image{
    transition:opacity 240ms cubic-bezier(.22,.74,.18,1)!important;
  }
  .projects-card__media-image.is-switching{
    opacity:0!important;
  }

  /* ----------------------------------------------------------
     CONTACT — headline / architectural datum / support are one layout stack.
     The datum no longer uses a fixed bottom offset that can intersect the
     headline at short desktop heights.
     ---------------------------------------------------------- */
  body.spatial-contact-flow .contact-v086__editorial{
    display:grid!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
    align-content:stretch!important;
  }

  body.spatial-contact-flow .contact-v086__kicker{
    grid-row:1;
  }

  body.spatial-contact-flow .contact-v086__headline{
    grid-row:2;
  }

  body.spatial-contact-flow .contact-v086__editorial-datum{
    position:relative!important;
    grid-row:3;
    align-self:center;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%;
    height:clamp(24px,min(2.1875vw,3.8889svh),42px)!important;
  }

  body.spatial-contact-flow .contact-v086__support{
    position:static!important;
    grid-row:4;
    align-self:end;
    width:min(100%,470px);
  }
}
