/* A shared content frame and a reserved field stage at every size. */
body.site-home-corrientes .corrientes { z-index:2; }
body.site-home-corrientes #field { z-index:1; }
body.site-home-corrientes .corrientes-scene { position:relative; }
/* The field paints its surfaces; content remains in the independent upper layer. */
body.site-home-corrientes #juntos { background:#f3f4ff; }
html[data-theme="dark"] body.site-home-corrientes #juntos { background:#141b2c; }
body.site-home-corrientes #edumaker { background:#142142; --ink:#f5f7ff; --muted:#cbd4e8; --brand-deep:#bac7ff; color:var(--ink); }
body.site-home-corrientes #edumaker .mark { background:none; color:#bac7ff; }
html body.site-home-corrientes.has-corrientes-surfaces :is(#juntos,#edumaker) { background:transparent; }
body.site-home-corrientes .hint { z-index:2; }
.corrientes-field-stage__fallback { z-index:2; }
body.site-home-corrientes .corrientes-scene { box-sizing:border-box; min-height:100svh; padding:clamp(108px,12vh,144px) max(clamp(20px,3vw,32px),calc((100% - 1296px)/2)) clamp(56px,8vh,96px); align-items:center; }
.corrientes-scene__inner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(36px,5vw,88px); width:100%; max-width:1296px; margin-inline:auto; }
body.site-home-corrientes .corrientes-scene__inner > .copy { width:100%; max-width:100%; margin:0; padding:0; text-align:left; }
body.site-home-corrientes .corrientes h1 { font-size:clamp(52px,6.4vw,92px); line-height:.98; }
body.site-home-corrientes .corrientes h2 { font-size:clamp(40px,4.3vw,64px); line-height:1.02; }
body.site-home-corrientes .corrientes-scene--juntos { text-align:left; }
body.site-home-corrientes .corrientes-scene--juntos .eyebrow { justify-content:flex-start; }
.corrientes-field-stage { position:relative; width:100%; height:clamp(320px,33vw,480px); min-width:0; color:#4e5fe8; }
.corrientes-field-stage__fallback { position:absolute; inset:0; display:grid; place-items:center; }
.corrientes-field-stage__fallback svg { display:block; width:100%; height:100%; max-width:100%; }
.corrientes-field-word { text-align:center; font:800 clamp(52px,6vw,90px)/1.1 var(--font); letter-spacing:-.025em; }
.corrientes-field-stage.is-field-ready .corrientes-field-stage__fallback { visibility:hidden; }
html[data-theme="dark"] .corrientes-field-stage { color:#a8b7ff; }
/* Logo fallback uses the same frame as the particle fit, so the swap does not jump. */
.corrientes-field-logo { display:block; width:calc(100% - 2 * min(24px, 5.5%)); height:auto; max-height:100%; }
.corrientes-field-logo--dark, html[data-theme="dark"] .corrientes-field-logo--light { display:none; }
html[data-theme="dark"] .corrientes-field-logo--dark { display:block; }
.home-tboard-sketch, .home-robot-arm, .home-printer-field, .home-logo-field, .home-compass-field, .home-map-field { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.home-tboard-sensor { position:absolute; right:0; bottom:-12px; width:clamp(150px,15vw,200px); margin:0; z-index:3; }
.home-tboard-sensor__object { position:relative; width:100%; aspect-ratio:1; }
.home-tboard-sensor .tboard-sensor__poster, .home-tboard-sensor .tboard-sensor__canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.home-tboard-sensor .tboard-sensor__canvas { opacity:0; touch-action:pan-y; }
.home-tboard-sensor.is-ready .tboard-sensor__poster { visibility:hidden; }
.home-tboard-sensor.is-ready .tboard-sensor__canvas { opacity:1; cursor:grab; }
.home-tboard-sensor.is-dragging .tboard-sensor__canvas { cursor:grabbing; }
.home-tboard-sensor figcaption { font-size:12px; line-height:1.4; text-align:center; color:var(--muted); }
/* Drag cue: brief, visible while the sensor sways; it steps back once the visitor has turned it. */
.home-tboard-sensor .tboard-sensor__canvas:focus-visible { outline:2px solid var(--brand); outline-offset:4px; border-radius:50%; }
.home-tboard-sensor__cue { display:flex; align-items:center; justify-content:center; gap:6px; margin:6px auto 0; padding:4px 10px 4px 8px; width:max-content; max-width:100%; border-radius:999px; background:color-mix(in srgb, var(--brand) 9%, transparent); color:var(--brand-deep, var(--brand)); font-size:12px; font-weight:600; line-height:1.3; pointer-events:none; transition:opacity .4s ease; }
.home-tboard-sensor__cue[hidden] { display:none; }
.home-tboard-sensor__cue-icon { flex:none; width:26px; height:16px; }
.home-tboard-sensor.is-auto .home-tboard-sensor__cue-dot { animation:sensor-cue-drag 2.4s ease-in-out infinite; }
.home-tboard-sensor.has-interacted .home-tboard-sensor__cue { opacity:0; }
.home-tboard-sensor.has-interacted:focus-within .home-tboard-sensor__cue { opacity:1; }
html[data-theme="dark"] .home-tboard-sensor__cue { background:rgba(168,183,255,.12); color:#c3cdff; }
@keyframes sensor-cue-drag { 0%,100% { transform:translateX(-5px); } 50% { transform:translateX(5px); } }
@media (prefers-reduced-motion:reduce) { .home-tboard-sensor__cue-dot { animation:none !important; } }
body.site-home-corrientes .hint { left:max(clamp(20px,3vw,32px),calc((100% - 1296px)/2)); bottom:20px; gap:10px; }
.corrientes-field-toggle { min-height:44px; padding:8px 4px; margin-left:10px; background:transparent; border:0; color:var(--muted); font:inherit; font-size:12px; text-transform:none; letter-spacing:0; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.corrientes-field-toggle[hidden] { display:none; }
.corrientes-field-toggle:focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
body.site-home-corrientes .progress { right:max(18px,calc((100vw - 1380px)/2)); }
@media(min-width:1800px) {
  body.site-home-corrientes .whatsapp-float { left:max(24px,calc((100vw - 1456px)/2)); right:auto; }
  body.site-home-corrientes .site-scroll-top { right:max(24px,calc((100vw - 1456px)/2)); }
}
@media(max-width:899px) {
  body.site-home-corrientes .corrientes-scene { min-height:100svh; padding:104px 24px 48px; }
  .corrientes-scene__inner { grid-template-columns:minmax(0,1fr); gap:24px; max-width:640px; }
  body.site-home-corrientes .corrientes-scene__inner > .copy { max-width:none; }
  body.site-home-corrientes .corrientes h1 { font-size:clamp(44px,12.4vw,60px); }
  body.site-home-corrientes .corrientes h2 { font-size:clamp(36px,10.6vw,46px); }
  body.site-home-corrientes .lead { font-size:17px; line-height:1.5; }
  .corrientes-field-stage { height:clamp(210px,60vw,320px); max-width:560px; margin-inline:auto; }
  .corrientes-field-stage[data-home-field="tboard"] { height:clamp(280px,78vw,360px); }
  .home-tboard-sensor { right:28px; width:clamp(120px,32vw,155px); bottom:0; }
  .corrientes-field-word { font-size:clamp(48px,12vw,78px); }
  body.site-home-corrientes .corrientes-scene--hero { padding-bottom:76px; }
  body.site-home-corrientes .hint { left:0; bottom:10px; flex-wrap:wrap; justify-content:center; width:100%; }
  body.site-home-corrientes .corrientes-scene--final { padding-bottom:88px; }
  .corrientes-field-toggle { margin-left:4px; }
}
/* Rhythm: scenes take the height of their content plus a bounded margin, instead of a full
   viewport each (on tall screens that left ~800px of empty field between scenes). The hero keeps
   the full first screen; figures grow with the viewport so large monitors stay composed. */
body.site-home-corrientes .corrientes-scene:not(.corrientes-scene--hero) { min-height:0; padding-top:clamp(64px,7vh,112px); padding-bottom:clamp(64px,7vh,112px); scroll-margin-top:64px; }
.corrientes-field-stage { height:clamp(320px,min(34vw,52vh),600px); }
@media(max-width:899px) {
  body.site-home-corrientes .corrientes-scene:not(.corrientes-scene--hero) { min-height:0; padding:64px 24px 56px; }
  .corrientes-field-stage { height:clamp(210px,60vw,320px); }
}
/* The hero fills the first screen on laptops, but not a 1300px-tall monitor with ~500px of content. */
@media(min-width:900px) { body.site-home-corrientes .corrientes-scene--hero { min-height:min(100svh,880px); } }
