/* Portfolio de Luciano Hiebra · gris claro, negro y azul eléctrico · Objective */

@font-face { font-family: "Objective"; src: url("../fonts/objective-thin.woff") format("woff"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Objective"; src: url("../fonts/objective-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Objective"; src: url("../fonts/objective-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Objective"; src: url("../fonts/objective-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Objective"; src: url("../fonts/objective-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Objective"; src: url("../fonts/objective-super.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --fondo: #E8E8E6;
  --papel: #F2F2F0;
  --tinta: #0C0C0D;
  --oscuro: #0C0C0D;
  --gris: #57575C;          /* texto secundario sobre claro: 6:1 */
  --gris-claro: #A9A9AF;    /* texto secundario sobre oscuro: 7,9:1 */
  --linea: #CFCFCC;
  --linea-oscura: #2A2A2E;
  --azul: #2B4DFF;
  --azul-claro: #8A9CFF;    /* texto azul sobre oscuro: 7:1 */

  --f: "Objective", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --ui: cubic-bezier(.23, 1, .32, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #9a9aa0 var(--fondo); scrollbar-width: thin; }
.envoltura { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.saltar { position: fixed; left: 16px; top: -64px; z-index: 300; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; transition: top .2s var(--ui); }
.saltar:focus-visible { top: 16px; }

/* ---------- Intro ---------- */
.intro { display: none; }
.con-intro { overflow: hidden; }
.con-intro .intro {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; overflow: hidden;
  background: #070709; color: #fff;
  --x: -20%; --xv: -20vw; --r: 15vw; --rl: 15vw; --salida: 0;
  clip-path: inset(0 0 calc(var(--salida) * 100%) 0);
}
.intro-luz {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(calc(var(--rl) * 1.3) calc(var(--rl) * 1.6) at var(--xv) 50%, rgba(214, 222, 255, .2), rgba(43, 77, 255, .14) 42%, rgba(43, 77, 255, 0) 72%);
}
.intro-palabra {
  position: relative; display: grid; white-space: nowrap; text-transform: uppercase;
  font: 900 min(14.5vw, 17rem)/.86 var(--f); letter-spacing: -.045em;
  transform: translateY(calc(var(--salida) * -18vh));
}
.intro-palabra span { grid-area: 1 / 1; text-align: center; padding: .2em .1em; margin: -.2em -.1em; }
.intro-base { color: #18181d; }
.intro.encendida .intro-base { visibility: hidden; }
.intro-lit {
  color: #fff;
  -webkit-mask-image: radial-gradient(var(--r) calc(var(--r) * 2) at var(--x) 50%, #000 30%, transparent 70%);
  mask-image: radial-gradient(var(--r) calc(var(--r) * 2) at var(--x) 50%, #000 30%, transparent 70%);
}
.intro-saltar {
  position: absolute; right: var(--gutter); bottom: 24px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--gris-claro); border: 1px solid #2a2a30; font: 500 .8125rem/1 var(--f);
  transition: color .2s, border-color .2s;
}
.intro-saltar:hover { color: #fff; border-color: #fff; }

/* ---------- Píldoras y botones ---------- */
.pildora {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .9375rem/1 var(--f); text-decoration: none; cursor: pointer;
  transition: translate .35s var(--out), transform .16s var(--ui), background-color .2s, color .2s, box-shadow .3s var(--out);
}
.pildora:active { transform: scale(.96); }
.pildora svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--out); }
@media (hover: hover) and (pointer: fine) { .pildora:hover svg { transform: translateX(3px); } }
.pildora-negra { background: var(--tinta); color: #fff; }
.pildora-negra:hover { background: #26262a; }
.pildora-azul { background: var(--azul); color: #fff; box-shadow: 0 8px 22px -12px rgba(12, 12, 13, .6); }
.pildora-azul:hover { background: #1f3be0; }
.pildora-borde { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.pildora-borde:hover { background: rgba(255, 255, 255, .08); }
.pildora-ancha { width: 100%; min-height: 52px; }

/* ---------- Barra superior ---------- */
.barra {
  position: fixed; inset: 16px var(--gutter) auto; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; pointer-events: none;
}
.barra > * { pointer-events: auto; }
.marca, .estado {
  background: rgba(232, 232, 230, .55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(12, 12, 13, .08); border-radius: 999px; min-height: 44px; padding: 0 18px;
}
.marca {
  justify-self: start; display: inline-flex; align-items: center;
  font: 900 1.25rem/1 var(--f); letter-spacing: -.04em; text-decoration: none; color: var(--tinta);
}
.marca span, .gigante span, .contacto-titulo .punto-azul { color: var(--azul); }
.pildoras {
  display: flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(232, 232, 230, .55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(12, 12, 13, .08); box-shadow: 0 10px 30px -18px rgba(12, 12, 13, .5);
}
.estado {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  font: 500 .8125rem/1 var(--f); color: var(--tinta);
}
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: #1FA45C; }
.mov .punto-vivo { animation: latido 2.4s var(--io) infinite; }
@keyframes latido { 50% { opacity: .35; } }

/* ---------- Menú a pantalla completa ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--oscuro); color: #fff;
  display: grid; place-items: center; padding: 96px var(--gutter) 48px;
}
.menu[hidden] { display: none; }
.menu ol { display: grid; gap: 4px; text-align: center; }
.menu a {
  display: inline-block; overflow: hidden; text-decoration: none;
  font: 300 clamp(2.75rem, 8vw, 6.5rem)/1.04 var(--f); letter-spacing: -.035em;
  transition: color .25s;
}
.menu a:hover { color: var(--azul-claro); }
.menu a span { display: inline-block; }
.mov .menu.abre { animation: menu-entra .5s var(--out); }
.mov .menu.abre a span { animation: sube .7s var(--out) both; }
.mov .menu.abre li:nth-child(2) a span { animation-delay: .05s; }
.mov .menu.abre li:nth-child(3) a span { animation-delay: .1s; }
.mov .menu.abre li:nth-child(4) a span { animation-delay: .15s; }
.mov .menu.abre li:nth-child(5) a span { animation-delay: .2s; }
@keyframes menu-entra { from { clip-path: circle(0 at 50% 0); } to { clip-path: circle(150% at 50% 0); } }
@keyframes sube { from { transform: translateY(105%); } }
.menu-abierto .pildoras { background: rgba(40, 40, 44, .6); border-color: rgba(255, 255, 255, .1); }

/* ---------- Escenas: secciones altas con un escenario fijo; --p va de 0 a 1 ---------- */
.escena { position: relative; height: calc(var(--alto, 200) * 1svh); --p: 0; }
.escenario { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* ---------- 1 · Portada ---------- */
.portada, .portada .escenario { background: var(--fondo); }
.portada .escenario { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding: 0 var(--gutter); }
.portada-texto { position: relative; z-index: 3; padding-bottom: 6svh; transform: translateY(calc(var(--p) * -14svh)); opacity: calc(1 - var(--p) * 3.4); }
.nombre { font: 700 clamp(3rem, 6.4vw, 7rem)/.9 var(--f); letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 26px; }
.nombre .linea { display: block; padding-bottom: .06em; clip-path: inset(-.4em -100vw 0 -100vw); }
.nombre .linea > span { display: block; }
.rol { font: 500 .875rem/1.3 var(--f); letter-spacing: .02em; margin-bottom: 10px; }
.bajada { color: var(--gris); max-width: 30ch; font-size: 1.0625rem; }
/* El retrato va a sangre: su fondo blanco se multiplica con el gris y no deja bordes */
.retrato {
  position: absolute; inset: 0; z-index: 1; margin: 0; mix-blend-mode: multiply;
  transform: scale(calc(1 + var(--p) * .08)); transform-origin: 72% 45%;
}
.retrato picture {
  position: absolute; top: 0; bottom: 0; left: 14%; right: -2%; display: block; will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.brillo {
  position: absolute; inset: auto -10% -22% -10%; height: 70%; z-index: 2; pointer-events: none;
  background: radial-gradient(50% 58% at var(--mx, 62%) 100%, rgba(43, 77, 255, .95) 0%, rgba(43, 77, 255, .55) 36%, rgba(43, 77, 255, 0) 74%);
  opacity: calc(.8 + var(--p) * .2);
  transform: scale(calc(1 + var(--p) * .6)); transform-origin: 50% 100%;
}
.bajar {
  position: absolute; left: 50%; bottom: 22px; z-index: 5; translate: -50% 0;
  font: 500 .75rem/1 var(--f); letter-spacing: .18em; text-transform: uppercase; color: #fff;
  padding: 8px 14px; border-radius: 999px; background: rgba(12, 12, 13, .72);
  opacity: calc(1 - var(--p) * 6);
}
/* Lo oscuro: la mancha tapa, aparece LUCIANO gigante sobre el fondo animado y las fichas */
.cubre {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #050509; color: #fff;
  --c: clamp(0, (var(--p) - .1) / .32, 1);
  -webkit-mask: url("../img/tinta.svg") no-repeat;
  mask: url("../img/tinta.svg") no-repeat;
  -webkit-mask-size: calc(var(--c) * 270vmax); mask-size: calc(var(--c) * 270vmax);
  -webkit-mask-position: 50% calc(108svh - var(--c) * 135vmax); mask-position: 50% calc(108svh - var(--c) * 135vmax);
}
.fondo-oscuro { position: absolute; inset: 0; width: 100%; height: 100%; }
.grande {
  position: absolute; left: 0; right: 0; top: 52%; display: flex; justify-content: center;
  font: 900 clamp(4rem, 17.5vw, 22rem)/.84 var(--f); letter-spacing: -.055em; text-transform: uppercase;
  clip-path: inset(-.5em -10vw 0 -10vw);
  --z: clamp(0, (var(--p) - .72) / .28, 1);
  transform: translateY(-50%) scale(calc(1 + var(--z) * .06));
  text-shadow: 0 0 60px rgba(43, 77, 255, .55);
}
.grande span { display: inline-block; --l: clamp(0, (var(--p) - .32 - var(--i) * .03) / .16, 1); transform: translateY(calc((1 - var(--l)) * 105%)); }
.fichas {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px;
}
.fichas div { --s: clamp(0, (var(--p) - .52 - var(--i) * .03) / .14, 1); opacity: var(--s); transform: translateY(calc((1 - var(--s)) * 14px)); }
.fichas dt { font: 500 .6875rem/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--gris-claro); }
.fichas dd { margin: 7px 0 0; font: 700 .9375rem/1.3 var(--f); letter-spacing: .02em; text-transform: uppercase; }

/* Entrada de la portada */
.js .nombre .linea > span { transform: translateY(105%); }
.js .aparece { opacity: 0; transform: translateY(14px); }
.js .retrato img { opacity: 0; transform: scale(1.06); }
.js .brillo { scale: 1 0; transform-origin: 50% 100%; }
.listo .nombre .linea > span { transform: none; transition: transform 1.1s var(--out); }
.listo .nombre .linea:nth-child(2) > span { transition-delay: .08s; }
.listo .aparece { opacity: 1; transform: none; transition: opacity .7s var(--out) .4s, transform .9s var(--out) .4s; }
.listo .bajada { transition-delay: .5s; }
.listo .retrato img { opacity: 1; transform: none; transition: opacity 1.2s var(--out) .05s, transform 1.8s var(--out) .05s; }
.listo .brillo { scale: 1 1; transition: scale 1.5s var(--out) .45s; }

/* ---------- 2 · Manifiesto ---------- */
.manifiesto { background: var(--oscuro); color: #fff; }
.manifiesto .escenario { display: grid; place-items: center; padding: 0 var(--gutter); }
.frase {
  max-width: 20ch; text-align: center; text-transform: uppercase;
  font: 700 clamp(2rem, 5.4vw, 5.2rem)/1.08 var(--f); letter-spacing: -.035em;
}
.frase .palabra { opacity: calc(.14 + var(--luz, 0) * .86); transition: opacity .15s linear; }
.frase em { font-style: normal; color: #5B78FF; }
.frase img {
  display: inline-block; vertical-align: middle; width: 1.25em; height: .9em; object-fit: cover; border-radius: .14em; margin: 0 .08em;
  transform: scale(calc(.6 + var(--luz, 0) * .4)) rotate(calc((1 - var(--luz, 0)) * -8deg)); opacity: calc(.2 + var(--luz, 0) * .8);
}

/* Palabras de títulos que suben (Motion) */
.m { display: inline-block; overflow: clip; vertical-align: top; padding: .18em 0 .1em; margin: -.18em 0 -.1em; }
.m > span { display: inline-block; will-change: transform; }

/* ---------- 3 · Showreel ---------- */
.showreel { background: var(--oscuro); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.cabeza h2, .oficio h2 { font: 700 clamp(2.25rem, 5.2vw, 4.75rem)/1 var(--f); letter-spacing: -.03em; text-transform: uppercase; }
.cabeza p { max-width: 34ch; color: var(--gris-claro); }
.pantalla {
  position: relative; aspect-ratio: 1920 / 804; background: #000; cursor: pointer;
  --abre: 1; clip-path: inset(0 calc(var(--abre) * 9vw) round calc(var(--abre) * 22px));
}
.pantalla video { width: 100%; height: 100%; object-fit: cover; }
.pausa {
  position: absolute; right: var(--gutter); bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(12, 12, 13, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .22); font-size: .8125rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pausa svg { width: 14px; height: 14px; fill: currentColor; }
.pausa .i-play, .pausa[aria-pressed="true"] .i-pausa { display: none; }
.pausa[aria-pressed="true"] .i-play { display: block; }

/* ---------- 4 · Trabajo: anillo que gira solo ---------- */
.trabajo { background: var(--fondo); padding: clamp(96px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); overflow: hidden; }
.trabajo-marco { display: grid; justify-items: stretch; }
.trabajo .cabeza p { color: var(--gris); }
.rueda {
  position: relative; perspective: 1600px; perspective-origin: 50% 40%; display: grid; place-items: center;
  height: clamp(420px, 60svh, 640px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.rueda.arrastra { cursor: grabbing; }
.anillo {
  --carta: min(24vw, 320px, 40svh);
  --radio: calc(var(--carta) * 1.55);
  position: relative; width: var(--carta); aspect-ratio: 4 / 5; transform-style: preserve-3d;
  transform: translateZ(calc(var(--radio) * -1)) rotateX(-6deg) rotateY(var(--giro, 0deg));
}
.anillo > li {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--radio));
}
.carta {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; border-radius: 14px; overflow: hidden;
  background: #cfcfcc; position: relative; backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(12, 12, 13, .55);
  filter: brightness(calc(.55 + var(--frente, 0) * .45)) saturate(calc(.4 + var(--frente, 0) * .6));
  transition: transform .25s var(--out);
}
.carta img { -webkit-user-drag: none; }
.carta img, .carta video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carta video { opacity: 0; transition: opacity .4s var(--out); }
.carta.viva video { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .carta:hover { transform: translateZ(24px); } }
.carta-etiqueta {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; background: rgba(12, 12, 13, .6); color: #fff; font: 500 .75rem/1 var(--f);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pie-rueda { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 var(--gutter); }
.actual { min-width: min(60vw, 420px); text-align: center; display: grid; gap: 4px; }
.actual-titulo { font: 700 clamp(1.25rem, 2vw, 1.75rem)/1.15 var(--f); letter-spacing: -.02em; }
.actual-tipo { color: var(--gris); font-size: .9375rem; }
.giro {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea); background: transparent;
  font: 500 .8125rem/1 var(--f); color: var(--gris); cursor: pointer; transition: border-color .2s, color .2s, transform .16s var(--ui);
}
.giro:hover { border-color: var(--tinta); color: var(--tinta); }
.giro:active { transform: scale(.96); }
.giro-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.mov .giro[aria-pressed="false"] .giro-punto { animation: latido 1.6s var(--io) infinite; }
.giro[aria-pressed="true"] .giro-punto { background: var(--gris-claro); }
.redondo {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid currentColor; opacity: .85;
  transition: background-color .2s, color .2s, transform .16s var(--ui), opacity .2s;
}
.redondo:hover { background: var(--tinta); color: #fff; opacity: 1; }
.redondo:active { transform: scale(.94); }
.redondo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 5 · Sobre mí ---------- */
.sobre, .sobre .escenario { background: var(--fondo); }
.sobre .escenario { --a: clamp(0, var(--p) / .4, 1); --b: clamp(0, (var(--p) - .48) / .34, 1); }
/* Foto y panel viven en un marco centrado: en pantallas anchas no se alejan */
.sobre-marco { position: relative; height: 100%; width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
/* Foto de frente: fondo blanco multiplicado y costados que se desvanecen, sin cortes */
.sobre-foto {
  position: absolute; left: clamp(-60px, -3vw, 0px); bottom: 0; height: min(96svh, 1000px); aspect-ratio: 3 / 4; margin: 0; mix-blend-mode: multiply;
  transform: translateY(calc((1 - var(--a)) * 12svh)) scale(calc(1.08 - var(--a) * .08)); transform-origin: 50% 100%;
}
.sobre-foto picture { display: block; width: 100%; height: 100%; }
.sobre-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.sobre-panel {
  position: absolute; z-index: 3; top: 50%; right: 0; width: min(520px, 44%); color: #fff;
  padding: clamp(28px, 3vw, 44px); border-radius: 18px;
  background: var(--oscuro); box-shadow: 0 40px 80px -40px rgba(12, 12, 13, .7);
  transform: translate(calc((1 - var(--a)) * 120%), -50%);
}
.sobre-panel h2 { font: 700 clamp(2rem, 3.8vw, 3.5rem)/1 var(--f); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 22px; }
.sobre-panel p { color: #D6D6DA; }
.sobre-panel p + p { margin-top: .9em; }

/* ---------- 6 · Servicios ---------- */
.servicios { background: var(--fondo); }
.servicios .escenario { --e: clamp(0, var(--p) / .5, 1); --vf: clamp(0, (var(--p) - .56) / .26, 1); display: grid; place-items: center; }
.partida {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: calc(26vw + var(--e) * 50vw);
  font: 700 clamp(2.75rem, 9vw, 9rem)/1 var(--f); text-transform: uppercase; letter-spacing: -.03em; pointer-events: none;
  opacity: calc(1 - var(--e) * 1.1);
}
.ventana {
  position: relative; z-index: 2; overflow: hidden; background: #000;
  width: calc(22vw + var(--e) * 78vw); height: calc(30svh + var(--e) * 70svh);
  border-radius: calc((1 - var(--e)) * 16px);
  transform: rotate(calc((1 - var(--e)) * -4deg));
}
.ventana video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.35 - var(--e) * .35)); }
.ventana::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,13,.15), rgba(12,12,13,.55)); opacity: var(--vf); }
.vidrio {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; width: min(560px, 46vw); color: #fff;
  padding: clamp(24px, 3vw, 36px); border-radius: 18px;
  background: rgba(14, 14, 16, .7); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  opacity: var(--vf); transform: translateY(calc(-50% + (1 - var(--vf)) * 60px));
  pointer-events: none;
}
.servicios.lista .vidrio { pointer-events: auto; }
.vidrio-titulo { font: 700 clamp(1.75rem, 3vw, 2.75rem)/1 var(--f); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 18px; }
.lista-servicios li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lista-servicios h3 { font: 700 1.125rem/1.3 var(--f); letter-spacing: -.01em; }
.lista-servicios p { color: #E2E2E6; font-size: .9375rem; }
.vidrio-nota { margin: 16px 0; color: #E2E2E6; font-size: .875rem; }

/* ---------- 7 · Herramientas: dos cintas tipográficas ---------- */
.oficio { background: var(--fondo); padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); overflow: hidden; }
.oficio .cabeza p { color: var(--gris); }
.cinta { overflow: hidden; border-top: 1px solid var(--linea); padding: clamp(10px, 1.4vw, 18px) 0; }
.cinta:last-of-type { border-bottom: 1px solid var(--linea); }
.cinta-pista { display: flex; align-items: center; width: max-content; will-change: transform; }
.cinta-item {
  font: 100 clamp(3rem, 8.4vw, 8.5rem)/1 var(--f); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap;
  padding: 0 .28em; color: var(--tinta); transition: color .25s;
}
.cinta-item.hueco { font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--tinta); transition: color .25s, -webkit-text-stroke-color .25s; }
.cinta-item:hover { color: var(--azul); }
.cinta-item.hueco:hover { color: var(--azul); -webkit-text-stroke-color: var(--azul); }
.cinta-punto { flex: none; width: clamp(14px, 1.6vw, 24px); aspect-ratio: 1; border-radius: 50%; background: var(--azul); }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 8 · Contacto ---------- */
.contacto { background: var(--oscuro); color: #fff; padding: clamp(96px, 13vw, 170px) 0 0; overflow: hidden; }
.contacto-titulo { font: 700 clamp(3rem, 10vw, 9.5rem)/.92 var(--f); letter-spacing: -.035em; text-transform: uppercase; }
.contacto-bajada { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 clamp(32px, 5vw, 52px); color: var(--gris-claro); font-size: 1.125rem; }
.contacto-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.mail {
  font: 700 clamp(1.5rem, 3.4vw, 2.75rem)/1.2 var(--f); letter-spacing: -.03em; text-decoration: none;
  background: linear-gradient(var(--azul-claro), var(--azul-claro)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--out), translate .35s var(--out);
}
.mail:hover { background-size: 100% 2px; }
.aviso { font: 500 .875rem/1 var(--f); color: var(--azul-claro); }
.redes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 5vw, 64px); }
.redes a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linea-oscura); text-decoration: none; transition: border-color .2s, background-color .2s; }
.redes a:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }
.gigante {
  margin-top: clamp(48px, 8vw, 100px); text-align: center; line-height: .8;
  font: 900 clamp(3.5rem, 17.4vw, 21rem)/.8 var(--f); letter-spacing: -.05em; text-transform: uppercase; color: #19191c; white-space: nowrap;
  transform: translateY(calc((1 - var(--g, 1)) * 40%));
}
.gigante span { color: var(--azul); }
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; font-size: .8125rem; color: var(--gris-claro); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; background: var(--azul); color: #fff; font: 700 .8125rem/1 var(--f);
  transform: translate3d(-200px, -200px, 0) scale(0); box-shadow: 0 14px 30px -14px rgba(12, 12, 13, .6);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Visor ---------- */
.visor { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--oscuro); color: #fff; overscroll-behavior: contain; }
.visor::backdrop { background: rgba(0, 0, 0, .6); }
.visor[open] { animation: visor-entra .34s var(--out); }
.visor.sale { animation: visor-sale .2s var(--ui) forwards; }
@keyframes visor-entra { from { opacity: 0; transform: translateY(16px); } }
@keyframes visor-sale { to { opacity: 0; transform: translateY(8px); } }
.visor-barra { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); background: rgba(12, 12, 13, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linea-oscura); }
.visor-meta { font: 500 .8125rem/1.3 var(--f); color: var(--gris-claro); }
.visor-titulo { font: 700 clamp(1.125rem, 2vw, 1.5rem)/1.2 var(--f); letter-spacing: -.02em; margin-top: 2px; }
.visor-controles { display: flex; gap: 8px; }
.visor .redondo { border-color: var(--linea-oscura); }
.visor .redondo:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.visor-cuerpo { width: min(100% - 2 * var(--gutter), 1200px); margin: 0 auto; padding: clamp(24px, 4vw, 48px) 0 96px; }
.visor-texto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; padding: 32px 0 40px; border-bottom: 1px solid var(--linea-oscura); margin-bottom: 40px; }
.visor-texto .rol-v { font: 500 .9375rem/1.5 var(--f); color: var(--azul-claro); }
.visor-texto p { color: #DCDCE0; max-width: 60ch; }
.visor-video { width: 100%; background: #000; border-radius: 12px; }
.visor-video.vertical { width: auto; max-height: 82svh; margin-inline: auto; aspect-ratio: 9 / 16; }
.visor-modulos { border-radius: 12px; overflow: hidden; }
.visor-modulos img { width: 100%; height: auto; }
.visor-modulos + .visor-video { margin-top: 32px; }
::view-transition-group(pieza) { animation-duration: .6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(pieza), ::view-transition-new(pieza) { animation-duration: .6s; height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.vt .visor[open], .vt .visor.sale { animation: none; }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .estado { display: none; }
  .pildoras .pildora { padding: 0 14px; }
  .pildoras .pildora svg { display: none; }
  #abrir-menu { min-width: 74px; }
  .marca { padding: 0 14px; }
  .barra { grid-template-columns: auto 1fr; }
  .pildoras { justify-self: end; }
  .portada .escenario { grid-template-columns: 1fr; align-content: start; padding-top: 96px; }
  .portada-texto { padding-bottom: 0; }
  .nombre { font-size: clamp(3rem, 15.5vw, 5.5rem); margin-bottom: 18px; }
  .retrato picture { top: 36svh; left: 0; right: 0; -webkit-mask-image: none; mask-image: none; }
  .retrato img { object-position: 72% 0; }
  .grande { font-size: 19vw; top: 48%; }
  .fichas { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; bottom: 22px; }
  .rueda { height: min(62svh, 520px); }
  .anillo { --carta: min(62vw, 300px, 46svh); --radio: calc(var(--carta) * 1.4); }
  .sobre-panel { top: auto; bottom: 4svh; right: var(--gutter); left: var(--gutter); width: auto; transform: translateY(calc((1 - var(--a)) * 120%)); padding: 24px; }
  .sobre-panel p { font-size: .9375rem; }
  .sobre-panel h2 { margin-bottom: 14px; }
  .sobre-marco { width: 100%; }
  .sobre-foto { left: 0; right: 0; top: 7svh; bottom: auto; height: 62svh; margin-inline: auto; }
  .sobre-foto img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .vidrio { left: var(--gutter); right: var(--gutter); width: auto; padding: 22px; }
  .lista-servicios li { padding: 10px 0; }
  .lista-servicios p { font-size: .875rem; }
  .ventana { width: calc(44vw + var(--e) * 56vw); height: calc(26svh + var(--e) * 74svh); }
  .partida { gap: calc(46vw + var(--e) * 40vw); font-size: 12vw; }
  .visor-texto { grid-template-columns: 1fr; }
}

/* ---------- Sin movimiento: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pildora, .redondo, .carta, .giro, .mail { transition-property: color, background-color, border-color, opacity, background-size !important; }
  .escena { height: auto; --p: 1 !important; }
  .escenario { position: relative; height: auto; min-height: 100svh; }
  .portada { --p: 0 !important; }
  .cubre, .bajar { display: none; }
  .js .nombre .linea > span, .js .aparece { transform: none; opacity: 1; }
  .js .retrato img { opacity: 1; transform: none; }
  .js .brillo { scale: 1 1; }
  .frase .palabra { opacity: 1; }
  .frase img { transform: none; opacity: 1; }
  .cinta-pista { transform: none !important; }
  .cinta { overflow-x: auto; }
  .pantalla { clip-path: none; }
  .vidrio { pointer-events: auto; }
}
