/* =========================================================================
   Esteban Bordon — Portafolio
   Tipografía: SF Compact Display (titulares), SF Pro Display (texto),
   SF Compact Rounded (etiquetas) y SF Mono / JetBrains Mono (timecodes).
   Las SF se usan si están instaladas en el equipo (Apple y tu PC).
   Si no, entran Inter Tight y JetBrains Mono, que viajan con el sitio.
   ========================================================================= */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* Marca (tomada de @esteban.edicion y de tu web actual) */
  --bg: #0b0a09;
  --bg2: #141210;
  --bg3: #1c1916;
  --ink: #f6f2ec;
  --ink2: #c9c1b6;
  --mute: #8e857b;
  --line: rgba(246, 242, 236, .12);
  --or: #ff6a00;
  --or2: #ff8a2a;
  --gold: #e8b04f;
  --or-glow: rgba(255, 106, 0, .45);

  /* "SF Compact" es la variable: incluye la variante Display por tamaño óptico */
  --f-display: "SF Compact Display", "SF Compact", "SF Pro Display", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "SF Pro Display", "SF Pro Text", "SF Compact Text", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-round: "SF Compact Rounded", "SF Compact", "SF Pro Rounded", "Inter Tight", system-ui, sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --g: clamp(16px, 4vw, 56px);
  --r-lg: 28px;
  --r-md: 18px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--or); color: #120700; }
:focus-visible { outline: 2px solid var(--or2); outline-offset: 3px; border-radius: 10px; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--or); color: #120700; padding: 10px 16px; border-radius: 999px; font-weight: 600;
  transition: top .3s var(--out);
}
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-round); font-weight: 500;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2);
}
.rec {
  width: 8px; height: 8px; border-radius: 50%; background: var(--or);
  box-shadow: 0 0 0 0 var(--or-glow);
  animation: rec 1.6s var(--out) infinite;
}
@keyframes rec {
  0% { box-shadow: 0 0 0 0 var(--or-glow); }
  70% { box-shadow: 0 0 0 10px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: .92;
  letter-spacing: -.035em;
  margin-top: 18px;
}
.section-lead { color: var(--ink2); max-width: 40ch; margin-top: 18px; }

/* ---------- Fondo ambiental (el vidrio necesita color detrás) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55; will-change: transform;
}
.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, var(--or) 0%, rgba(255, 106, 0, 0) 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 30vh; background: radial-gradient(circle, #b8460a 0%, rgba(184, 70, 10, 0) 65%); opacity: .4; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 36vmax; height: 36vmax; left: 30vw; bottom: -20vmax; background: radial-gradient(circle, var(--gold) 0%, rgba(232, 176, 79, 0) 65%); opacity: .22; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vw, 18vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-18vw, -10vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-20vw, -14vh, 0) scale(1.15); } }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06; mix-blend-mode: overlay;
}

/* =========================================================================
   LIQUID GLASS
   Material: desenfoque + saturación del fondo, borde especular que sigue
   al puntero, brillo interno y respuesta elástica al tocar.
   ========================================================================= */
.glass {
  --gx: 50%; --gy: 0%; --ga: 135deg;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)),
    rgba(28, 25, 22, .38);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 20px rgba(255, 255, 255, .04),
    0 12px 40px rgba(0, 0, 0, .35);
}
/* Borde especular */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(var(--ga),
    rgba(255, 255, 255, .55) 0%,
    rgba(255, 255, 255, .08) 32%,
    rgba(255, 255, 255, .02) 58%,
    rgba(255, 190, 130, .35) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Brillo que sigue al puntero */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(180px circle at var(--gx) var(--gy), rgba(255, 255, 255, .16), transparent 65%);
  opacity: 0; transition: opacity .4s var(--out);
}
.glass:hover::after, .glass.is-lit::after { opacity: 1; }
/* Refracción real (solo Chromium; el resto se queda con el desenfoque) */
.is-chromium .glass--refract {
  backdrop-filter: url(#lg-refract) blur(14px) saturate(185%);
}

/* ---------- Botones ---------- */
.btn {
  --gx: 50%; --gy: 0%;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-round); font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .5s var(--spring), box-shadow .4s var(--out), background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.95); transition-duration: .15s; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--xl { min-height: 68px; padding: 0 36px; font-size: clamp(17px, 1.6vw, 21px); }

/* Vidrio teñido de naranja (el equivalente a .tint(.orange)) */
.btn--accent {
  color: #1a0a00;
  background:
    radial-gradient(140px circle at var(--gx) var(--gy), rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(180deg, var(--or2), var(--or));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 6px rgba(120, 40, 0, .35),
    0 10px 30px -6px rgba(255, 106, 0, .55),
    0 0 0 1px rgba(255, 140, 60, .4);
}
.btn--accent:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(120, 40, 0, .35), 0 16px 44px -6px rgba(255, 106, 0, .75), 0 0 0 1px rgba(255, 160, 80, .55); }
.btn--glass { color: var(--ink); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 12px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px;
  width: min(940px, 100%);
  height: var(--nav-h);
  padding: 0 10px 0 22px;
  border-radius: 999px;
  transition: width .7s var(--out), height .5s var(--out), padding .5s var(--out);
}
.nav-wrap.is-scrolled .nav { width: min(760px, 100%); height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: 0 0 14px var(--or); }
.nav-links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; z-index: 1;
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-round); font-weight: 500; font-size: 14px; color: var(--ink2);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-indicator {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 0;
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: var(--g);
  padding: calc(var(--nav-h) + 60px) var(--g) 80px;
  max-width: 1440px; margin: 0 auto;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(50px, 6.8vw, 118px);
  line-height: .9;
  letter-spacing: -.045em;
  margin-top: 22px;
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }
.hero-title em, .contact-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--or) 10%, var(--or2) 45%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 26px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: 54px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--f-round); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.hero-stats dd { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1.1; }
.hero-stats dd.mono { font-family: var(--f-mono); font-weight: 600; font-size: 34px; letter-spacing: -.02em; }

.hero-stage { position: relative; height: min(78vh, 720px); perspective: 1400px; }
.phone {
  position: absolute; left: 50%; top: 50%;
  width: clamp(190px, 19vw, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #3a332c, #120f0d 40%, #2a241f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(0, 0, 0, .6);
  --px: 0px; --py: 0px; --iy: 0px;
  transform: var(--t) translate3d(var(--px), calc(var(--py) + var(--iy)), 0);
  will-change: transform;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #000; }
.phone--front { --t: translate(-50%, -50%); z-index: 3; }
.phone--back-l { --t: translate(-112%, -44%) rotate(-9deg) scale(.86); z-index: 1; filter: brightness(.7); }
.phone--back-r { --t: translate(12%, -56%) rotate(8deg) scale(.86); z-index: 2; filter: brightness(.75); }
.phone-chip {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink); white-space: nowrap;
}
.scroll-cue {
  position: absolute; left: var(--g); bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em;
}
.scroll-line { position: relative; width: 70px; height: 1px; background: var(--line); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--or); transform: translateX(-100%); animation: cue 2.2s var(--out) infinite; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(20, 18, 16, .5);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 72px); letter-spacing: -.03em; line-height: 1;
}
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(246, 242, 236, .5); }
.marquee-track i { font-style: normal; color: var(--or); font-size: .45em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Trabajos ---------- */
.works { position: relative; }
.works-pin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 32vw) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  height: 100vh;
  padding: calc(var(--nav-h) + 40px) 0 28px var(--g);
  overflow: hidden;
}
.works-head { align-self: center; padding-right: 28px; position: relative; z-index: 2; }
.works-head .section-title { font-size: clamp(40px, 4.4vw, 72px); }
.reel-viewport {
  align-self: center; min-width: 0; overflow: hidden;
  padding: 18px 0 18px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 24px), transparent);
}
.filters {
  position: relative;
  display: inline-flex; flex-wrap: nowrap; gap: 0;
  margin-top: 28px; padding: 5px; border-radius: 999px;
}
.filter {
  position: relative; z-index: 1;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-round); font-weight: 500; font-size: 14px; color: var(--ink2);
  transition: color .3s;
}
.filter.is-active { color: #1a0a00; }
.filter-indicator {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--or2), var(--or));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -4px rgba(255, 106, 0, .6);
  transition: transform .6s var(--spring), width .6s var(--spring);
}

.reel-track {
  display: flex; align-items: center; gap: 22px;
  padding-right: var(--g);
  will-change: transform;
}
.reel { flex: 0 0 auto; height: min(70vh, 660px); aspect-ratio: 9 / 16; transition: opacity .4s, transform .6s var(--out); }
.reel[hidden] { display: none; }
.reel-btn {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .8);
  transform: translateZ(0);
  transition: transform .6s var(--out), box-shadow .5s var(--out);
  text-align: left;
}
.reel-btn video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out), filter .6s; filter: saturate(.92); }
.reel-btn:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(255, 140, 60, .5), 0 40px 70px -24px rgba(255, 106, 0, .35); }
.reel-btn:hover video { transform: scale(1.04); filter: saturate(1.05); }
.reel-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, .7) 100%);
}
.reel-num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 13px; color: rgba(255, 255, 255, .85);
}
.reel-play {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  transition: transform .5s var(--spring);
}
.reel-play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 2px; }
.reel-btn:hover .reel-play { transform: scale(1.12); }
.reel-info {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: end;
  padding: 14px 16px; border-radius: 20px;
}
.reel-cat { grid-column: 1 / -1; font-family: var(--f-round); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--or2); }
.reel-title { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.12; letter-spacing: -.015em; }
.reel-dur { font-size: 13px; color: var(--ink2); }

.reel--end { aspect-ratio: auto; width: min(40vw, 420px); display: flex; align-items: center; }
.reel-end { padding: 0 20px; }
.reel-end .mono { font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.reel-end-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 4.4vw, 64px); line-height: .95; letter-spacing: -.035em; margin-top: 14px; }

.works-timeline {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px;
  padding-right: var(--g); margin-top: 22px;
  font-size: 12px; color: var(--mute);
}
.tl-tc { color: var(--or2); min-width: 92px; }
.tl-bar { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--or), var(--gold)); transform-origin: left; transform: scaleX(0); }

/* ---------- Versiones ---------- */
.versions { padding: 140px var(--g) 120px; max-width: 1360px; margin: 0 auto; }
.versions-head { max-width: 760px; }
.versions-stage {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px);
  margin-top: 64px;
}
.v-phone { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--bg3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.v-phone[data-side="a"] { justify-self: end; }
.v-phone[data-side="b"] { justify-self: start; }
.v-phone video { width: 100%; height: 100%; object-fit: cover; }
.v-phone.is-audible { box-shadow: 0 0 0 2px var(--or), 0 40px 90px -30px rgba(255, 106, 0, .5); }
.v-phone figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 16px;
  font-family: var(--f-round); font-size: 14px; font-weight: 500;
}
.v-phone figcaption .mono { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--or); color: #1a0a00; font-weight: 700; }
.v-controls {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px; border-radius: 30px;
}
.v-btn {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(180deg, var(--or2), var(--or));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 30px -6px rgba(255, 106, 0, .6);
  transition: transform .5s var(--spring);
}
.v-btn:active { transform: scale(.92); }
.v-btn svg { width: 26px; height: 26px; fill: #1a0a00; }
.v-btn .i-pause, .v-controls.is-playing .v-btn .i-play { display: none; }
.v-controls.is-playing .v-btn .i-pause { display: block; }
.v-audio { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.v-audio button { position: relative; z-index: 1; padding: 8px 14px; border-radius: 12px; font-family: var(--f-round); font-size: 13px; font-weight: 500; color: var(--ink2); transition: color .3s; }
.v-audio button[aria-checked="true"] { color: var(--ink); }
.v-audio-indicator {
  position: absolute; z-index: 0; left: 4px; right: 4px; top: 4px; height: calc(50% - 5px);
  border-radius: 12px; background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .55s var(--spring);
}
.v-audio[data-on="b"] .v-audio-indicator { transform: translateY(calc(100% + 2px)); }
.v-tc { font-size: 12px; color: var(--ink2); }

/* ---------- Proceso ---------- */
.process-pin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  gap: 30px var(--g);
  min-height: 100vh;
  padding: calc(var(--nav-h) + 50px) var(--g) 60px;
  max-width: 1440px; margin: 0 auto;
}
.process-head { grid-column: 1 / -1; }
.process-steps { position: relative; align-self: center; min-height: 260px; }
.step { transition: opacity .5s var(--out), transform .6s var(--out); }
.step + .step { margin-top: 36px; }
.step-time { font-size: 13px; color: var(--or2); }
.step h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.03em; margin-top: 12px; }
.step p:last-child { color: var(--ink2); margin-top: 14px; max-width: 44ch; }

.js-pin .process-steps .step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); pointer-events: none; }
.js-pin .process-steps .step + .step { margin-top: 0; }
.js-pin .process-steps .step.is-active { opacity: 1; transform: none; pointer-events: auto; }

.nle {
  --p: 0;
  position: relative; align-self: center;
  padding: 22px 22px 18px; border-radius: 24px;
  overflow: hidden;
}
.nle-ruler { position: relative; height: 26px; font-size: 11px; color: var(--mute); border-bottom: 1px solid var(--line); }
.nle-ruler span { position: absolute; top: 0; transform: translateX(-50%); }
.nle-ruler span:nth-child(1) { left: 0; transform: none; }
.nle-ruler span:nth-child(2) { left: 8.57%; }
.nle-ruler span:nth-child(3) { left: 28.57%; }
.nle-ruler span:nth-child(4) { left: 57.14%; }
.nle-ruler span:nth-child(5) { left: 80%; }
.nle-ruler span:nth-child(6) { right: 0; transform: none; }
.nle-track { display: flex; gap: 4px; height: 38px; margin-top: 10px; }
.c { display: block; height: 100%; border-radius: 7px; }
.c-txt { background: linear-gradient(180deg, #b07be0, #8a55c2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.c-vid { background: linear-gradient(180deg, #4d8de6, #2f63b6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.c-aud {
  flex: 1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 5px) center / 100% 46% no-repeat,
    linear-gradient(180deg, #3faf7a, #24814f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.w1 { flex: 0 0 9%; } .w2 { flex: 0 0 28%; margin-left: 4%; } .w3 { flex: 0 0 22%; } .w4 { flex: 1; margin-left: 8%; }
.w5 { flex: 0 0 9%; } .w6 { flex: 0 0 20%; } .w7 { flex: 0 0 26%; } .w8 { flex: 0 0 24%; } .w9 { flex: 1; }
.nle-segments { display: flex; margin-top: 16px; font-family: var(--f-round); font-size: 12px; font-weight: 500; }
.seg { padding: 8px 10px; border-radius: 10px; color: var(--mute); border: 1px solid var(--line); transition: color .3s, background-color .3s, border-color .3s; }
.s0 { flex: 0 0 9%; } .s1 { flex: 0 0 71%; margin: 0 4px; } .s2 { flex: 1; }
.seg.is-on { color: #1a0a00; background: var(--or); border-color: var(--or); }
.nle-head {
  position: absolute; top: 12px; bottom: 12px; left: calc(22px + (100% - 44px) * var(--p));
  width: 2px; background: var(--or);
  box-shadow: 0 0 12px var(--or);
}
.nle-head::before { content: ""; position: absolute; top: -2px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: var(--or); }
.nle-head-tc { position: absolute; top: -6px; left: 12px; padding: 2px 6px; border-radius: 6px; font-size: 11px; background: var(--or); color: #1a0a00; font-weight: 700; }

/* ---------- Sobre mí ---------- */
.about { padding: 80px var(--g); max-width: 1200px; margin: 0 auto; }
.about-card { border-radius: 36px; padding: clamp(28px, 5vw, 72px); }
.about-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 7vw, 110px); line-height: .9; letter-spacing: -.045em; margin-top: 18px; }
.about-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin-top: 26px; max-width: 26ch; }
.about-card > p:not(.eyebrow):not(.about-big) { color: var(--ink2); margin-top: 20px; max-width: 58ch; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.about-tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-family: var(--f-round); font-size: 14px; color: var(--ink2); }
.about-sub a { color: var(--or2); border-bottom: 1px solid rgba(255, 138, 42, .4); }
.about-sub a:hover { border-color: var(--or2); }

/* ---------- Contacto ---------- */
.contact { padding: 140px var(--g) 120px; max-width: 1440px; margin: 0 auto; text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 8vw, 132px); line-height: .9; letter-spacing: -.045em; margin-top: 22px; }
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 48px; }
.contact-note { margin-top: 26px; color: var(--mute); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--g) 36px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--mute);
}
.footer a:hover { color: var(--ink); }

/* ---------- Reproductor ---------- */
.player {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
}
.player::backdrop { background: rgba(8, 7, 6, .72); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
.player[open] { display: grid; place-items: center; }
.player-inner {
  position: relative;
  display: flex; align-items: center; gap: 40px;
  padding: 24px;
}
.player-media { position: relative; height: min(88dvh, 900px); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 120px -30px rgba(0, 0, 0, .9); }
.player-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-tap { position: absolute; inset: 0 0 80px 0; }
.player-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 999px;
}
.p-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; transition: background-color .3s, transform .4s var(--spring); }
.p-btn:hover { background: rgba(255, 255, 255, .12); }
.p-btn:active { transform: scale(.9); }
.p-btn svg { width: 20px; height: 20px; fill: var(--ink); }
.p-btn .i-vol, .p-btn .i-mute { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-btn .i-play, .player.is-playing .p-btn .i-pause { display: block; }
.p-btn .i-pause, .player.is-playing .p-btn .i-play { display: none; }
.p-btn .i-mute, .player.is-muted .p-btn .i-vol { display: none; }
.player.is-muted .p-btn .i-mute { display: block; }
.p-time { font-size: 12px; color: var(--ink2); min-width: 38px; text-align: right; }
.p-seek {
  --v: 0%;
  flex: 1; min-width: 0; height: 22px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.p-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--or) var(--v), rgba(255, 255, 255, .22) var(--v)); }
.p-seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.p-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--or); }
.p-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 0, .35); }
.p-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 0, .35); }
.player-side { width: 300px; }
.player-meta { font-size: 13px; color: var(--or2); text-transform: uppercase; letter-spacing: .06em; }
.player-title { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: .98; letter-spacing: -.03em; margin-top: 12px; }
.player-nav { display: flex; gap: 8px; margin-top: 28px; }
.player-cta { margin-top: 12px; }
.player-close { position: fixed; top: 18px; right: 18px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; transition: transform .5s var(--spring); }
.player-close:hover { transform: rotate(90deg); }
.player-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .25s var(--out); }
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference;
  transition: width .45s var(--spring), height .45s var(--spring), margin .45s var(--spring), background-color .3s;
}
.cursor-label { font-size: 12px; font-weight: 700; color: #1a0a00; opacity: 0; transition: opacity .2s; }
.cursor.is-play .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--or); mix-blend-mode: normal; }
.cursor.is-play .cursor-label { opacity: 1; }
.cursor.is-link .cursor-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--out), transform 1.1s var(--out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================================
   Tablet y celular
   ========================================================================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { gap: 10px; padding-left: 18px; }
  .nav > .btn { margin-left: auto; }

  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 48px); text-align: left; }
  .hero-stage { height: 520px; order: 2; }
  .phone { width: 210px; }
  .scroll-cue { display: none; }

  .works-pin { display: block; height: auto; padding: 100px 0 40px; overflow: visible; }
  .works-head { padding: 0 var(--g); }
  .reel-viewport { overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .reel-track {
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--g);
    padding: 34px var(--g) 18px; gap: 14px;
    scrollbar-width: none;
  }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel { height: auto; width: min(72vw, 330px); scroll-snap-align: start; }
  .reel--end { width: 62vw; }
  .works-timeline { padding: 0 var(--g); margin-top: 6px; }

  .versions { padding-top: 100px; }
  .versions-stage { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
  .v-phone, .v-phone[data-side="a"], .v-phone[data-side="b"] { justify-self: stretch; width: 100%; border-radius: 20px; }
  .v-phone figcaption { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 12px; border-radius: 12px; }
  .v-controls { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; border-radius: 999px; padding: 10px 18px 10px 10px; justify-self: center; }
  .v-btn { width: 56px; height: 56px; }
  .v-audio { flex-direction: row; }
  .v-audio-indicator { top: 4px; bottom: 4px; left: 4px; right: auto; width: calc(50% - 5px); height: auto; }
  .v-audio[data-on="b"] .v-audio-indicator { transform: translateX(calc(100% + 2px)); }

  .process-pin { grid-template-columns: 1fr; min-height: 0; padding-top: 100px; }
  .process-steps { min-height: 0; }

  .player-inner { flex-direction: column; gap: 16px; padding: 12px; }
  .player-media { height: min(74dvh, 760px); }
  .player-side { width: min(100%, 420px); text-align: center; }
  .player-title { font-size: 26px; margin-top: 6px; }
  .player-nav { justify-content: center; margin-top: 14px; }
  .player-cta { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name { font-size: 15px; }
  .hero-stage { height: 440px; }
  .phone { width: 172px; border-radius: 28px; padding: 5px; }
  .phone video { border-radius: 23px; }
  .phone--back-l { --t: translate(-100%, -44%) rotate(-9deg) scale(.84); }
  .phone--back-r { --t: translate(0%, -56%) rotate(8deg) scale(.84); }
  .hero-stats { gap: 14px 26px; }
  .hero-stats dd { font-size: 32px; }
  .hero-stats dd.mono { font-size: 26px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn--xl { width: 100%; }
  .filters { display: flex; }
  .filter { padding: 8px 11px; font-size: 13px; }
  .reel-title { font-size: 17px; }
  .v-tc { display: none; }
  .nle { padding: 16px 14px 14px; }
  .nle-segments { font-size: 11px; }
  .nle-ruler span:nth-child(2) { display: none; }
  .seg { padding: 8px 6px; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .nle-head { left: calc(14px + (100% - 28px) * var(--p)); }
}

/* Solo se apagan los efectos intrusivos (video automático y loops de fondo). */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* Página 404 */
.page-404 { min-height: 100svh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(60% 50% at 30% 20%, rgba(255, 106, 0, .16), transparent 70%), var(--bg); }
.nf { max-width: 620px; display: grid; gap: 18px; justify-items: start; }
.nf-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.nf-text { color: var(--ink2); margin: 0 0 8px; }
