/* ─────────────────────────────────────────────────────────────
   LASSOLANA · solana.css
   Cal, picón, contraventana, arena y cielo. Tres mundos tendidos:
   papel, pantalla, espacio.
───────────────────────────────────────────────────────────── */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --cal:        #F5F2EC;
  --cal-2:      #ECE7DD;
  --paper:      #FBF9F4;
  --ink:        #161616;
  --ink-soft:   #6A665F;
  --hair:       rgba(22, 22, 22, 0.12);
  --picon:      #111111;
  --navy:       #0F2A46;
  --verde:      #17704A;
  --arena:      #D6BB8C;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sign:  'Ms Madi', cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cal);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; border-radius: 2px; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  --nav-c: #fff;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  color: var(--nav-c);
  transition: color .5s var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav[data-tone="light"] { text-shadow: 0 1px 12px rgba(20, 50, 90, 0.25); }
.nav[data-tone="dark"] { --nav-c: var(--ink); }
.nav::before {
  content: ''; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 242, 236, 0.92) 40%, rgba(245, 242, 236, 0));
  opacity: 0; transition: opacity .5s var(--ease);
}
.nav[data-tone="dark"]::before { opacity: 1; }
.nav__brand {
  display: block; height: 30px; width: calc(30px * 308 / 81);
  background-color: currentColor;   /* una tinta: toma el color de la barra (cal sobre oscuro, picón sobre claro) */
  -webkit-mask: url(../assets/logo/lassolana-horizontal.svg) no-repeat left center / contain; mask: url(../assets/logo/lassolana-horizontal.svg) no-repeat left center / contain;
  overflow: hidden; white-space: nowrap; text-indent: 110%; font-size: 0;
}
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: 0.82rem; letter-spacing: 0.02em; }
.nav__links a { position: relative; opacity: .82; transition: opacity .3s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__lang {
  font-size: 0.72rem; letter-spacing: 0.12em;
  padding: 6px 10px; border: 1px solid currentColor; border-radius: 99px;
  opacity: .8; transition: opacity .3s;
}
.nav__lang:hover { opacity: 1; }
.nav__burger { display: none; width: 28px; height: 28px; position: relative; }
.nav__burger span {
  position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__burger span:first-child { top: 10px; }
.nav__burger span:last-child  { top: 17px; }
.nav.is-open .nav__burger span:first-child { top: 13.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child  { top: 13.5px; transform: rotate(-45deg); }

/* ── PANTALLA DE CARGA ──────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--cal);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader--quick .loader__bar, .loader--quick .loader__pct { display: none; }   /* al volver: solo la marca, un instante */
.loader__in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__logo { display: block; width: min(34vw, 140px); height: auto; overflow: visible; }
/* la s se mece desde donde cuelga de la cuerda, a rachas, como la ropa tendida al viento */
.loader__logo .ls-s {
  transform-box: view-box; transform-origin: 45.3px 17.3px;
  animation: ls-wind 3.4s ease-in-out infinite;
}
@keyframes ls-wind {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(-9deg); }
  24%  { transform: rotate(-5deg); }
  36%  { transform: rotate(-13deg); }
  52%  { transform: rotate(2.5deg); }
  64%  { transform: rotate(-6deg); }
  78%  { transform: rotate(1deg); }
  88%  { transform: rotate(-2.5deg); }
  100% { transform: rotate(0deg); }
}
.loader__bar { position: relative; width: 160px; height: 1px; background: var(--hair); overflow: hidden; }
.loader__fill { position: absolute; inset: 0; background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.loader__pct { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* ── HERO · LA SOLANA ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #A9D0EC;
}
.hero__sky {
  position: absolute; inset: -10% 0 -14% 0;
  background: linear-gradient(180deg, #3F86C4 0%, #6FAAD9 42%, #A9D0EC 78%, #D3E8F3 100%);
}
.hero__sky::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 74, 128, 0.28) 0%, rgba(28, 74, 128, 0) 22%),
    radial-gradient(ellipse 60% 40% at 50% 54%, rgba(28, 74, 128, 0.22), rgba(28, 74, 128, 0) 70%),
    linear-gradient(0deg, rgba(28, 74, 128, 0.18) 0%, rgba(28, 74, 128, 0) 24%);
}
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* luz que se abre al bajar: suaviza el paso del cielo a la cal */
.hero__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(250,248,242,0.85) 70%, #F5F2EC 100%);
  opacity: 0;
}

.hero__title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center;
  padding: 0 var(--gutter);
}
/* el nombre del logo, en negativo (cal) sobre el cielo: sin sombras ni efectos, como pide el manual */
.hero__brand {
  --bw: min(80vw, 980px);
  width: var(--bw); height: calc(var(--bw) * 51.8 / 239.12);
  background-color: #F4F1EA;
  -webkit-mask: url(../assets/logo/lassolana-nombre.svg) no-repeat center / contain; mask: url(../assets/logo/lassolana-nombre.svg) no-repeat center / contain;
  overflow: hidden; white-space: nowrap; text-indent: 110%; font-size: 0;   /* el texto sigue ahí para buscadores y lectores */
}
.hero__by {
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(20, 60, 100, 0.45);
}

/* — definición: ancha y con contraste — */
.hero__def {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter);
  max-width: 1380px; margin: 0 auto;
  opacity: 0;
}
.def__head { font-family: var(--serif); display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.def__word {
  font-style: italic; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.9;
  color: #fff; text-shadow: 0 2px 30px rgba(20, 60, 110, 0.3);
}
.def__head em { font-size: 1.5rem; color: var(--navy); }
.def__text {
  font-family: var(--sans); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(1.45rem, 2.9vw, 2.9rem);
  line-height: 1.16;
  max-width: 44ch;
  color: var(--navy);
}
.def__src {
  margin-top: 28px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(15, 42, 70, 0.7);
}

/* palabras que se encienden con el scroll (--p de 0 a 1) */
.split { --p: 0; }
.split .w {
  opacity: clamp(0.16, calc((var(--p) * (var(--n) + 4)) - var(--i)), 1);
  transition: opacity .12s linear;
}

/* — pared encalada — */
.hero__wall {
  --fade: 0%;
  position: absolute; left: 0; right: 0; top: 100%; height: 100%; z-index: 4;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(214,205,190,0.22) 100%),
    url('../assets/shutterstock_2529920503.webp') center / cover,
    var(--cal);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 var(--fade));
          mask-image: linear-gradient(180deg, transparent 0%, #000 var(--fade));
}
.palm-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5;
  opacity: 0.17;
  pointer-events: none;
}

/* — cuerda (compartida por la solana y el paseo de papel) — */
.rope {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 1;
}
.rope path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rope__shadow { stroke: rgba(60, 48, 36, 0.18); stroke-width: 3; transform: translate(8px, 18px); filter: blur(2.5px); }
.rope__line   { stroke: #3A332C; stroke-width: 2.2; }
.rope__twist  { stroke: rgba(255, 250, 240, 0.4); stroke-width: 1; stroke-dasharray: 1.5 3.5; }

/* — la lavadora: centrifuga y saca los tres mundos — */
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 15%;
  background: linear-gradient(180deg, #E4DED3 0%, #DAD3C6 100%);
  box-shadow: 0 -1px 0 rgba(120, 105, 85, 0.18);
}
.washer {
  --w: clamp(260px, 52vh, 540px);
  position: absolute; z-index: 2; left: 50%; bottom: 9%;
  width: var(--w); aspect-ratio: 0.86;
  transform: translateX(-50%);
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(160deg, #FDFCF9 0%, #F1EEE8 55%, #E4E0D8 100%);
  box-shadow:
    inset 0 1px 0 #fff, inset 0 -8px 0 rgba(0,0,0,0.04), inset -6px 0 12px rgba(0,0,0,0.04),
    24px 34px 50px -24px rgba(60, 50, 38, 0.45), 0 2px 4px rgba(60,50,38,0.12);
}
.washer::after {   /* sombra de contacto con el suelo */
  content: ''; position: absolute; left: 4%; right: -6%; bottom: -14px; height: 22px;
  background: radial-gradient(ellipse at center, rgba(70, 58, 42, 0.35), rgba(70, 58, 42, 0) 70%);
  filter: blur(4px); z-index: -1;
}
.washer__panel {
  position: absolute; left: 0; right: 0; top: 0; height: 17%;
  display: flex; align-items: center; justify-content: space-between; gap: 8%;
  padding: 0 8%;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.washer__dial {
  width: calc(var(--w) * 0.1); height: calc(var(--w) * 0.1); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #D5D2CB 70%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.7);
  position: relative;
}
.washer__dial::after { content: ''; position: absolute; left: 50%; top: 12%; width: 2px; height: 30%; background: #8A857C; transform: translateX(-50%); border-radius: 1px; }
.washer__display {
  padding: 3px 8px; border-radius: 4px; background: #1B2026;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: calc(var(--w) * 0.045); letter-spacing: 0.08em; color: #7CE0A3;
}
.washer__btns { display: flex; gap: 6px; }
.washer__btns i { width: calc(var(--w) * 0.035); height: calc(var(--w) * 0.035); border-radius: 50%; background: #DCD8D0; box-shadow: inset 0 1px 1px rgba(0,0,0,0.15); }
.washer__btns i:first-child { background: var(--verde); }
.washer__door {
  position: absolute; left: 50%; top: 58%;
  width: calc(var(--w) * 0.72); height: calc(var(--w) * 0.72);   /* medidas explícitas: Safari deformaba el círculo */
  transform: translate(-50%, -50%); border-radius: 50%;
  padding: 7%;
  background: conic-gradient(from 210deg, #F4F4F2, #B9B9B6, #ECECEA, #9E9E9B, #F4F4F2);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.washer__glass {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #3A4552 0%, #1A2028 70%, #10141A 100%);
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.6);
}
.washer__glass::after {   /* reflejo del cristal */
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0) 45%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.08) 100%);
}
.washer__drum {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 1.1px, transparent 1.7px) 0 0 / 11px 11px;
  will-change: transform;
}
.drum__word {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: calc(var(--w) * 0.075); line-height: 1;
  color: #F5F2EC; white-space: nowrap;
}
.drum__word:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg)   translateY(-92%); }
.drum__word:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg) translateY(-92%); }
.drum__word:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg) translateY(-92%); }
.washer__foot { position: absolute; bottom: -6px; width: 9%; height: 8px; background: #8B8780; border-radius: 0 0 3px 3px; }
.washer__foot--l { left: 10%; } .washer__foot--r { right: 10%; }

/* las palabras ya fuera, como enlaces */
.spun { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.spun__item {
  --x: 50%; --y: 50%;
  position: absolute; left: var(--x); top: var(--y);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -50%);
  pointer-events: auto; text-align: center; white-space: nowrap;
}
.spun__item--0 { --x: 21%; --y: 42%; }
.spun__item--1 { --x: 79%; --y: 34%; }
.spun__item--2 { --x: 77%; --y: 64%; }
.spun__word { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(2rem, 4.1vw, 3.8rem); line-height: 1; transition: color .4s var(--ease); }
.spun__desc { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.spun__item:hover .spun__word, .spun__item:focus-visible .spun__word { color: var(--verde); }

.hero__cue {
  position: fixed; z-index: 40;
  left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #fff;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(20, 60, 100, 0.45);
  pointer-events: none;
}
.hero__cue.is-dark { color: var(--ink); text-shadow: none; }
/* aparece y se va con suavidad (la opacidad del propio elemento es de la entrada inicial) */
.hero__cue > * { transition: opacity .5s var(--ease); }
.hero__cue.is-off > * { opacity: 0; transition-duration: .2s; }
/* línea vertical con un punto que cae: «sigue bajando» */
.hero__cue-line { position: relative; width: 1px; height: 38px; background: currentColor; opacity: 0.35; overflow: visible; }
.hero__cue-line::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: currentColor; opacity: 1;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(33px); opacity: 1; } 100% { transform: translateY(33px); opacity: 0; } }

/* ── II · SOBRE MÍ ──────────────────────────────────────────── */
.about {
  position: relative;
  padding: clamp(120px, 22vh, 220px) var(--gutter) clamp(90px, 16vh, 160px);
  max-width: 1320px; margin: 0 auto;
}
.about__text {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1.04; letter-spacing: -0.015em;
  max-width: 16em;
}

.about__facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px;
  margin-top: clamp(60px, 10vh, 110px);
}
.about__facts li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 0.95rem; }
.about__facts span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.about__facts strong { font-weight: 400; }
.degrees { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.degrees li { font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); padding: 0; border: 0; }

/* ── VENTANA DE ENTRADA (una por mundo) ─────────────────────── */
.enter {
  position: relative; z-index: 3;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.enter__window {
  position: relative;
  height: min(78svh, 118vw);
  aspect-ratio: 370 / 559;
  will-change: transform;
  backface-visibility: hidden;
}
/* sombra como capa propia (se funde por opacidad; un filtro sobre algo que crece se recalcularía en cada fotograma) */
.enter__shadow {
  position: absolute; inset: 2% 3%; z-index: -1; pointer-events: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.26);
}
.enter--dark .enter__shadow { box-shadow: 0 18px 44px rgba(0,0,0,0.65); }
/* velo con el color de la habitación: al entrar, se funde por opacidad */
.enter__room { position: absolute; inset: -6px; opacity: 0; pointer-events: none; z-index: 0; }
.enter__inside > :not(.enter__room) { position: relative; z-index: 1; }
.enter__frame { position: absolute; inset: 0; }
.enter__inside {
  position: absolute; inset: 3% 4%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 0 10%;
  text-align: center;
  background: #0D1511;
  color: var(--cal);
  box-shadow: 0 0 0 6px #13603B;
}
.enter__word { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(2.2rem, 4.1vw, 3.8rem); line-height: 1; }
.enter__kicker { font-size: clamp(0.8rem, 1vw, 0.95rem); line-height: 1.5; opacity: .7; max-width: 26ch; }
.enter__shutter {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  will-change: transform, opacity; backface-visibility: hidden;
  background-image: url('../assets/windows_transp.webp');
  background-size: 200% 100%; background-repeat: no-repeat;
}
.enter__shutter--l { left: 0;  background-position: left top;  transform-origin: left center; }
.enter__shutter--r { right: 0; background-position: right top; transform-origin: right center; }
.enter--dark .enter__inside { background: #050505; }

/* ── III · PAPEL (paseo horizontal) ─────────────────────────── */
.walk { position: relative; overflow: hidden; }
.walk__track {
  position: relative;
  display: flex; align-items: flex-start; gap: clamp(36px, 5vw, 90px);
  width: max-content;
  height: 100vh; height: 100svh;
  padding: 16vh 6vw 0;
  will-change: transform;
}
.hang, .lean { position: relative; flex-shrink: 0; }
.hang__body { position: relative; }
.hang .poster { overflow: hidden; height: calc(56vh * 0.86); }
.hang .poster img { height: 56vh; width: auto; max-width: none; margin-top: calc(56vh * -0.14); filter: drop-shadow(0 12px 18px rgba(0,0,0,0.12)); }
.hang--shirt img { height: 48vh; width: auto; max-width: none; }
.hang--shirt { transform-origin: 50% 0; }
.lean { margin-top: 14vh; }
.lean__stack { position: relative; height: 66vh; aspect-ratio: 8 / 9; }
.lean__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hang figcaption, .lean figcaption, .process__item figcaption {
  display: flex; gap: 8px; align-items: baseline; justify-content: center;
  margin-top: 14px;
  font-size: 0.78rem; color: var(--ink-soft);
}
.hang figcaption strong, .lean figcaption strong, .process__item figcaption strong { font-weight: 500; color: var(--ink); }
.walk__end { width: 4vw; flex-shrink: 0; }

/* ── IV · PANTALLA ──────────────────────────────────────────── */
.world--pantalla { background: var(--cal-2); }
.pantalla__body { padding: 0 var(--gutter) clamp(110px, 18vh, 200px); }
.pantalla__body > .work:first-child { margin-top: clamp(8px, 2vh, 24px); }
.work {
  max-width: 1320px; margin: clamp(60px, 10vh, 140px) auto 0;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.work--rev { grid-template-columns: 7fr 5fr; }
.work--rev .work__text { order: 2; }
.work__link { display: inline-block; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid var(--hair); font-size: 0.95rem; transition: border-color .3s, color .3s; }
.work__link:hover { color: var(--verde); border-color: var(--verde); }

/* web en un navegador que se recorre sola + versión móvil */
.site { position: relative; display: block; padding: 0 8% 9% 0; }
.site__browser {
  display: block; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 70px -36px rgba(40, 32, 20, 0.5), 0 0 0 1px rgba(0,0,0,0.06);
}
.site__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1EEE8; border-bottom: 1px solid rgba(0,0,0,0.06); }
.site__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D8D3CA; }
.site__url { margin: 0 auto; padding: 3px 14px; border-radius: 99px; background: #fff; font-size: 0.68rem; color: var(--ink-soft); }
.site__view {
  display: block; aspect-ratio: 16 / 10;
  background-size: 100% auto; background-repeat: no-repeat; background-position: 50% 0%;
  animation: browse 46s ease-in-out infinite alternate;
}
.site:hover .site__view { animation-play-state: paused; }
@keyframes browse { 0%, 6% { background-position: 50% 0%; } 94%, 100% { background-position: 50% 100%; } }
.site__phone {
  position: absolute; right: 0; bottom: 0; width: 24%;
  border-radius: 20px; overflow: hidden; border: 5px solid #16171A; background: #16171A;
  box-shadow: 0 30px 50px -20px rgba(30, 24, 16, 0.55);
}
.site__phone img { width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; }
.work__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.work__meta span + span::before { content: '·'; margin-right: 14px; opacity: .6; }
.work__meta .pill::before { display: none; }
.pill { padding: 4px 10px; border: 1px solid var(--verde); color: var(--verde); border-radius: 99px; letter-spacing: 0.1em; }
.work__title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(2.2rem, 3.9vw, 3.7rem);
  line-height: 1; letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.work__lede { font-size: 1.04rem; line-height: 1.65; color: #3E3B36; max-width: 44ch; }
.work__specs { margin-top: 32px; display: grid; }
.work__specs div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--hair); font-size: 0.92rem;
}
.work__specs div:last-child { border-bottom: 1px solid var(--hair); }
.work__specs dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.work__media img { width: 100%; }

/* — reencuadre 16:9 → 9:16 — */
.reframe__screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #0E1A26;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45);
}
.reframe__scene { position: absolute; inset: 0; background: linear-gradient(180deg, #E9A86A 0%, #D77B5B 46%, #6A3E4F 100%); }
.reframe__sun { position: absolute; left: 62%; top: 22%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: #FCE3B0; filter: blur(1px); }
.reframe__hill { position: absolute; border-radius: 50% 50% 0 0; }
.reframe__hill--1 { bottom: -40%; height: 80%; background: #3C2430; left: -30%; right: 30%; }
.reframe__hill--2 { bottom: -46%; height: 76%; background: #1D1419; left: 20%; right: -40%; }
.reframe__subject {
  position: absolute; bottom: 18%; left: 25%;
  width: 3.2%; aspect-ratio: 1 / 2.6; border-radius: 40% 40% 10% 10%;
  background: #120C0F; transform: translateX(-50%);
  animation: track 7s ease-in-out infinite alternate;
}
.reframe__crop {
  position: absolute; top: 0; bottom: 0; left: 25%; aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,0.95); border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(8, 10, 14, 0.58);
  animation: track 7s ease-in-out infinite alternate; animation-delay: .35s;
}
@keyframes track { from { left: 24%; } to { left: 76%; } }
.reframe figcaption {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  margin-top: 16px; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink-soft);
}
.reframe__arrow { color: var(--verde); }

/* ── V · ESPACIO ────────────────────────────────────────────── */
.world--espacio {
  position: relative;
  background: var(--picon); color: var(--cal);
  padding-bottom: clamp(100px, 16vh, 180px);
}
.sand-canvas {
  position: sticky; top: 0; display: block; touch-action: pan-y;
  width: 100%; height: 100vh; height: 100svh;
  margin-bottom: -100vh; margin-bottom: -100svh;
}
.world--espacio > *:not(.sand-canvas) { position: relative; z-index: 1; }

.jable { max-width: 1320px; margin: clamp(60px, 12vh, 140px) auto 0; padding: 0 var(--gutter); }
.jable .work__meta { color: rgba(245, 242, 236, 0.6); }
.jable__title {
  font-family: 'Poppins', var(--sans); font-weight: 600; font-style: normal;
  font-size: clamp(4.4rem, 15vw, 13.5rem);
  line-height: 0.95; letter-spacing: -0.05em;
  color: #F4EFE6;
  margin: 14px 0 30px;
}
.jable__title span { color: #D9A47E; }
.jable__lede { max-width: 46ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.65; color: rgba(245, 242, 236, 0.84); }
.jable__live { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }
.wind {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px;
  font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--cal);
  background: rgba(245, 242, 236, 0.08);
  border: 1px solid rgba(245, 242, 236, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 99px;
}
.wind__dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #7CE0A3; animation: pulse 2.2s infinite;
}
.wind__dot.is-offline { background: #E7C27C; animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 224, 163, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(124, 224, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 224, 163, 0); }
}
.jable__hint { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: rgba(245, 242, 236, 0.58); }
.jable__src { font-size: 0.72rem; color: rgba(245, 242, 236, 0.42); }
.jable__src a { color: rgba(245, 242, 236, 0.7); text-decoration: none; border-bottom: 1px solid rgba(245, 242, 236, 0.25); }
.jable__src a:hover { color: var(--arena); border-color: var(--arena); }

.process {
  max-width: 1320px; margin: clamp(90px, 16vh, 180px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 3vw, 44px);
  align-items: start;
}
.process__item:nth-child(2) { margin-top: 12vh; }
.process__item img { width: 100%; border-radius: 3px; }
.process__item figcaption { justify-content: flex-start; color: rgba(245, 242, 236, 0.55); }
.process__item figcaption strong { color: var(--cal); }
.espacio__links {
  max-width: 1320px; margin: clamp(60px, 10vh, 110px) auto 0;
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 18px 48px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(245, 242, 236, 0.3);
  font-size: 1rem;
  transition: border-color .4s, gap .4s var(--ease);
}
.link-arrow i { font-style: normal; color: var(--arena); }
.link-arrow:hover { border-color: var(--arena); gap: 18px; }

.jable__tagline {
  font-family: 'Poppins', var(--sans); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.12;
  color: var(--cal); margin: 0 0 26px;
}
.jable__tagline em { font-style: normal; color: #D9A47E; }
.jable__video {
  position: relative; margin-top: clamp(40px, 7vh, 72px);
  border-radius: 6px; overflow: hidden; background: #000;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.jable__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,10,20,0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.sound.is-on .sound__bars i { animation: eq 0.9s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: #fff; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(20, 22, 50, 0) 40%, rgba(20, 22, 50, 0.55) 100%);
  transition: opacity .5s var(--ease);
}
.play__icon {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.08);
  transition: transform .5s var(--ease), background .5s;
}
.play__icon::after {
  content: ''; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.play:hover .play__icon { transform: scale(1.08); background: rgba(255,255,255,0.18); }
.play.is-hidden { opacity: 0; pointer-events: none; }
.jable .espacio__links { padding: 0; margin-top: 36px; }

/* — otras piezas — */
.others { max-width: 1320px; margin: clamp(110px, 18vh, 200px) auto 0; padding: 0 var(--gutter); }
.others__head { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,236,0.55); margin-bottom: 28px; }
.others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
/* tres piezas en fila: la tipografía de las miniaturas un poco más pequeña para que respire */
@media (min-width: 821px) { .others .art__type { font-size: clamp(1.3rem, 2.2vw, 2.2rem); } .other__title { font-size: clamp(1.6rem, 2.2vw, 2.2rem); } }
.other { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--cal); }
.other__media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #050505;
  border: 1px solid rgba(245,242,236,0.08); margin-bottom: 10px;
}
.other__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.other:hover .other__media img { transform: scale(1.04); }
.other__media--art { position: relative; background: #050507; }
.card-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art__type { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 8% 8%; pointer-events: none; }
.art--syntax .art__type {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: clamp(1.6rem, 3.2vw, 2.9rem); line-height: 1.05;
  letter-spacing: 0.04em; color: #EEF0FF; text-shadow: 0 0 26px rgba(111,139,255,0.6);
}
.art--more { background: #0A0A0B; }
.art--more .art__type { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1; color: #F2F2F2; }
.art--tren { background: #0C0B0A; }
.art--tren .art__type { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1; color: #F4F1EA; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.art--tren .art__type i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.art__fade { opacity: 0.55; transition: opacity 1.2s var(--ease); }
.other:hover .art__fade { opacity: 0.35; }
.other .work__meta { color: rgba(245,242,236,0.55); }
.other__title { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; }
.other__lede { font-size: 0.98rem; line-height: 1.55; color: rgba(245,242,236,0.72); max-width: 42ch; }
.other__go { position: absolute; right: 0; bottom: 4px; color: var(--arena); transition: transform .4s var(--ease); }
.other:hover .other__go { transform: translateX(6px); }
.others__notes { margin-top: clamp(50px, 8vh, 90px); }

/* ── VI · CONTACTO ──────────────────────────────────────────── */
.contact {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  /* el atardecer sube como una lámina sobre el final de papel */
  background: linear-gradient(180deg, #24335E 0%, #5C4C7A 38%, #C27C86 72%, #F1B37E 100%);
  z-index: 2;
  border-radius: 36px 36px 0 0;   /* sin solaparse con papel: las esquinas dejan ver la cal */
  box-shadow: 0 -30px 70px -30px rgba(24, 28, 60, 0.45);
}
.contact__inner { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 1320px; width: 100%; margin: 0 auto; }
.contact__kicker { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: .78; }
.contact__title {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(3.4rem, 10vw, 9.5rem);
  line-height: 0.92; letter-spacing: -0.03em;
  margin: 20px 0 46px;
}
.contact__mail {
  display: inline-block;
  font-size: clamp(1.15rem, 2.3vw, 1.8rem);
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.contact__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.footer {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  font-size: 0.74rem; opacity: .8;
}

/* ── REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* contacto: la segunda línea llega desde la derecha mientras se forma el título (sobrevive al cambio de idioma) */
.contact__title em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; display: inline-block; transform: translateX(calc((1 - var(--c, 1)) * 14vw)); opacity: calc(0.15 + var(--c, 1) * 0.85); }

/* ── MODO ESTÁTICO (sin animaciones o reduced-motion) ───────── */
.static .hero { height: auto; }
.static .hero__sky { position: relative; inset: auto; height: 100svh; }
.static .hero__title { height: 100svh; inset: 0 0 auto 0; }
.static .hero__def { position: relative; opacity: 1; max-width: none; padding: 14vh var(--gutter); background: #A9D0EC; }
.static .hero__wall { position: relative; top: 0; height: 100svh; -webkit-mask-image: none; mask-image: none; }
.static .hero__cue { display: none; }
.static .split .w { opacity: 1; }
.static .walk { overflow-x: auto; }
.static .walk__track { height: auto; padding-bottom: 8vh; }
.static .reveal { opacity: 1; transform: none; }
.static .enter__shutter--l { transform: perspective(900px) rotateY(-80deg); }
.static .enter__shutter--r { transform: perspective(900px) rotateY(80deg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    padding: 0 var(--gutter);
    background: var(--cal); color: var(--ink);
    font-family: var(--sans); font-weight: 500; font-size: 2.4rem; letter-spacing: -0.03em;
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links a { opacity: 1; }
  .nav.is-open { --nav-c: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }

  .washer { --w: min(64vw, 38vh); bottom: 8%; }
  .spun__desc { font-size: 0.5rem; letter-spacing: 0.1em; }
  .spun__word { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
  .spun__item--0 { --x: 50%; --y: 16%; }
  .spun__item--1 { --x: 31%; --y: 27%; }
  .spun__item--2 { --x: 69%; --y: 38%; }

  .about__facts { grid-template-columns: 1fr; gap: 18px; }

  .work, .work--rev { grid-template-columns: 1fr; }
  .work--rev .work__text { order: 0; }

  .others__grid { grid-template-columns: 1fr; }
  .play__icon { width: 60px; height: 60px; }

  .hang .poster { height: calc(46vh * 0.86); }
  .hang .poster img { height: 46vh; margin-top: calc(46vh * -0.14); }
  .hang--shirt img { height: 38vh; }
  .lean__stack { height: 54vh; }
}
@media (max-width: 520px) {
  .nav__brand { height: 26px; width: calc(26px * 308 / 81); }
  .work__specs div { grid-template-columns: 1fr; gap: 4px; }
}

/* lo que sigue a cada ventana sube por detrás y aparece al desvanecerse la ventana,
   sin una pantalla vacía en medio (solo con las escenas animadas) */
html:not(.static) .after-enter { margin-top: calc(-100vh + 12vh); margin-top: calc(-100svh + 12svh); }
/* la ventana (y su contenedor al fijarse) queda por encima del contenido que sube detrás */
.world > .enter, .world--espacio > .pin-spacer { z-index: 3; }
/* …pero sin tapar los clics: la ventana no tiene nada que pulsar, y lo de detrás (enlaces) sí */
.enter, .pin-spacer:has(> .enter) { pointer-events: none; }
/* ir directo a una sección: un fundido corto del color de la sección tapa el salto (también la barra de arriba) */
.jump-veil { position: fixed; inset: 0; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.jump-veil.is-on { opacity: 1; }

/* al volver desde un proyecto, que la sección no quede bajo el menú */
#jable, #otras-piezas { scroll-margin-top: 90px; }

/* volver de un proyecto: invisible solo hasta quedar colocada en su sitio */
html.is-returning body { opacity: 0; }
html body { transition: opacity .25s ease; }
