/* ==========================================================================
   Portfolio — Pamela Gariglio · Senior Graphic Designer
   Estilos generales. Paleta y tipografías en :root.
   ========================================================================== */

/* ---------- Fuentes (alojadas en /fonts, licencia SIL OFL) ---------- */
@font-face {
  font-family: 'Anton';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/anton-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/anton-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables ---------- */
:root {
  --dark: #0c0c0c;
  --dark-2: #141414;
  --bone: #f2eee7;
  --light: #ebe6dd;
  --ink: #111111;
  --lime: #d4ff3a;
  --pink: #f3d6da;

  --f-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --f-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(18px, 3.4vw, 56px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);

  --bg: var(--dark);
  --fg: var(--bone);
  --accent: var(--lime);
  --line: rgba(128, 128, 128, .28);
  --line: color-mix(in srgb, currentColor 17%, transparent);
  --line-strong: color-mix(in srgb, currentColor 34%, transparent);
}
html[data-tone="light"] {
  --bg: var(--light);
  --fg: var(--ink);
  --accent: var(--ink);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease-soft), color .8s var(--ease-soft);
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--lime); color: var(--dark); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
html[data-tone="light"] :focus-visible { outline-color: var(--ink); }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html.js.is-loading { overflow: hidden; }
html.js.is-loading body { overflow: hidden; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.serif { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--lime); color: var(--dark); padding: 10px 16px; border-radius: 99px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }
.icon { width: 18px; height: 18px; flex: none; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.big-title .line, .ai__title .line, .contact__title .line { padding-top: .16em; margin-top: -.16em; }
.line > span { display: inline-block; }

/* Efecto "roll" en textos de links */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll__in { display: block; text-shadow: 0 1.3em currentColor; transition: transform .55s var(--ease-out); }
a:hover .roll__in, button:hover .roll__in { transform: translateY(-1.3em); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .4s, color .4s, border-color .4s, transform .6s var(--ease-out);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: currentColor; }
.btn--pill { height: 40px; padding: 0 16px 0 18px; font-size: 14px; background: var(--fg); color: var(--bg); }
[data-magnetic] { will-change: transform; }

/* ---------- Grano, progreso y cursor ---------- */
.grain {
  position: fixed; inset: -10%; width: 120%; height: 120%;
  z-index: 350; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.4s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 320; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

.cursor { display: none; }
html.fine .cursor { display: block; position: fixed; inset: 0; z-index: 500; pointer-events: none; }
html.fine.case-open .cursor, html.fine.menu-open .cursor { z-index: 500; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor.on .cursor__dot, .cursor.on .cursor__ring { opacity: 1; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, .9); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s, opacity .3s;
}
.cursor__label { font-size: 13px; font-weight: 600; color: var(--dark); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out); white-space: nowrap; letter-spacing: -.01em; }
.cursor.is-link .cursor__ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-view .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--lime); border-color: var(--lime); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot, .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
html.fine, html.fine a, html.fine button { cursor: none; }
html.fine input, html.fine textarea { cursor: auto; }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--dark); color: var(--bone);
  padding: 22px var(--pad) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.25s var(--ease-io) .2s;
}
html:not(.js) .loader, html.no-loader .loader { display: none; }
html.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader > * { transition: opacity .45s, transform .9s var(--ease-out); }
html.is-loaded .loader > * { opacity: 0; transform: translateY(-40px); }
.loader__row { display: flex; justify-content: space-between; align-items: flex-end; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.loader__serif { font-family: var(--f-serif); font-style: italic; font-size: 24px; text-transform: none; letter-spacing: 0; }
.loader__center { display: grid; justify-items: center; gap: 14px; text-align: center; }
.loader__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 8vw, 132px); line-height: .9; animation: loaderIn 1.2s var(--ease-out) both; }
.loader__role { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; opacity: .6; animation: loaderIn 1.2s var(--ease-out) .15s both; }
.loader__label { padding-bottom: 1.2em; opacity: .6; }
.loader__num { font-family: var(--f-display); font-size: clamp(92px, 17vw, 300px); line-height: .78; min-width: 2.2ch; text-align: right; }
.loader__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; }
.loader__bar span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
@keyframes loaderIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: var(--fg);
  transition: transform .7s var(--ease-out), color .8s var(--ease-soft);
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--bg) 58%, color-mix(in srgb, var(--bg) 0%, transparent));
  opacity: 0; transition: opacity .5s, background .8s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.header__brand { display: grid; line-height: 1.15; justify-self: start; }
.header__name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.header__role { font-size: 12px; opacity: .6; }
.header__nav { display: flex; gap: clamp(16px, 2vw, 34px); }
.nav-link { display: inline-flex; align-items: flex-start; gap: 5px; font-size: 14px; font-weight: 500; }
.nav-link__idx { font-family: var(--f-serif); font-style: italic; font-size: 12px; opacity: .55; line-height: 1; padding-top: 1px; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.status__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(3); opacity: 0; } }
.header__menu { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 14px; font-size: 14px; font-weight: 500; }
.header__burger { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); transition: background-color .8s; }
.header__burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease-out), background-color .8s; }
.header__burger i:first-child { top: 14px; } .header__burger i:last-child { top: 20px; }
html.menu-open .header__burger i:first-child { transform: translateY(3px) rotate(45deg); }
html.menu-open .header__burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
html.menu-open .header { color: var(--bone); }
html.menu-open .header::before { opacity: 0; }
html.menu-open .header__burger { background: var(--bone); }
html.menu-open .header__burger i { background: var(--dark); }

/* Menú mobile */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(46px, 13vw, 96px); line-height: 1.02;
  transform: translateY(40px); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .6s;
}
.menu__link span { font-family: var(--f-serif); font-style: italic; font-size: 16px; line-height: 1; padding-top: .5em; opacity: .55; text-transform: none; }
html.menu-open .menu__link { transform: none; opacity: 1; transition-delay: calc(.25s + var(--i) * 60ms); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; font-weight: 500; }

/* ---------- Revelados (solo con JS) ---------- */
.js [data-reveal="fade"] { opacity: 0; transform: translate3d(0, 44px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="fade"].is-in { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0) * 1ms); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

/* ---------- Encabezado de sección ---------- */
.section { position: relative; padding-block: clamp(100px, 12vw, 210px); }
.section-head {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  margin-bottom: clamp(44px, 7vw, 110px);
}
.section-head__idx { font-family: var(--f-serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 400; line-height: 1; }
.section-head__title { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.section-head__line { height: 1px; background: currentColor; opacity: .25; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .1s; }
.section-head.is-in .section-head__line, html:not(.js) .section-head__line { transform: none; }
.section-head__meta { opacity: .6; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 8px);
  overflow: hidden;
}
.hero__grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4vw; align-items: end; padding-bottom: clamp(18px, 3vh, 34px); }
.hero__intro { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); max-width: 600px; }
.hero__kicker { font-size: clamp(13px, 1.05vw, 16px); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; line-height: 1.4; }
.hero__desc { font-size: clamp(19px, 1.75vw, 28px); line-height: 1.22; letter-spacing: -.015em; max-width: 21em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__portrait {
  position: relative;
  height: clamp(240px, calc(100svh - var(--header-h) - var(--title-h, 22vw) - 110px), 660px);
  aspect-ratio: 4 / 5;
}
.hero__portrait-inner { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: #b9b2ac; }
.hero__portrait-move { position: absolute; inset: -6% 0; will-change: transform; }
.hero__portrait-move img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.badge {
  position: absolute; left: clamp(-70px, -4.6vw, -36px); bottom: 12%; z-index: 2;
  width: clamp(92px, 8.6vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--dark);
  display: grid; place-items: center;
  transition: transform .6s var(--ease-out);
}
.badge:hover { transform: scale(1.08); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-family: var(--f-sans); font-size: 13.2px; font-weight: 700; letter-spacing: .1em; fill: currentColor; }
.badge__arrow { width: 26%; height: 26%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title { position: relative; z-index: 1; padding-inline: var(--pad); font-weight: 400; will-change: transform; }
.hero__word {
  display: block; width: max-content;
  font-family: var(--f-display); font-size: var(--hero-fs, 19vw); line-height: .9;
  text-transform: uppercase; white-space: nowrap; letter-spacing: -.004em;
  overflow: hidden; padding-top: .045em; margin-bottom: -.03em;
}
.hero__word .ch { display: inline-block; }
.hero__hola {
  position: absolute; left: var(--hola-x, calc(var(--pad) + 2.2em)); top: -.42em; z-index: 2; translate: -50% 0;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.7vw, 46px); line-height: 1;
  padding: .12em .55em .18em; border: 1px solid currentColor; border-radius: 999px;
  background: var(--bg); transform: rotate(-7deg);
  transition: background-color .8s var(--ease-soft);
}
.hero__bottom {
  position: relative; z-index: 3; background: var(--bg); transition: background-color .8s var(--ease-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 14px 18px; margin-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.hero__bottom .serif { font-size: 20px; letter-spacing: 0; }
.hero__avail { display: inline-flex; align-items: center; gap: 8px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll-line { position: relative; width: 44px; height: 1px; background: var(--line-strong); overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; inset: 0; background: currentColor; animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Entrada del hero (después del preloader) */
.js .hero .ch { transform: translate3d(0, 106%, 0); }
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js .hero .hero__hola[data-hero] { transform: rotate(-7deg) scale(.4); }
.js .hero .line > [data-hero] { opacity: 1; transform: translate3d(0, 108%, 0); }
.js .hero__portrait-inner { clip-path: inset(100% 0 0 0); }
.js .hero__portrait-move img { transform: scale(1.35); }
.js .badge { transform: scale(0) rotate(-90deg); }
html.is-loaded .hero .ch { transform: none; transition: transform 1.35s var(--ease-out) calc(.28s + var(--i) * 45ms); }
html.is-loaded .hero [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
html.is-loaded .hero .hero__hola[data-hero] { transform: rotate(-7deg); }
html.is-loaded .hero .line > [data-hero] { transform: none; }
html.is-loaded .hero .hero__bottom[data-hero] { transition: opacity 1s var(--ease-out) 1.15s, transform 1.2s var(--ease-out) 1.15s, background-color .8s var(--ease-soft) 0s; }
html.is-loaded .hero .hero__hola[data-hero] { transition: opacity 1s var(--ease-out) .9s, transform 1.2s var(--ease-out) .9s, background-color .8s var(--ease-soft) 0s; }
html.is-loaded .hero__portrait-inner { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-io) .3s; }
html.is-loaded .hero__portrait-move img { transform: scale(1.06); transition: transform 2.2s var(--ease-out) .3s; }
html.is-loaded .badge { transform: none; transition: transform 1.2s var(--ease-out) 1.2s; }
html.is-loaded .badge:hover { transform: scale(1.08); transition-delay: 0s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 30px); user-select: none; }
.marquee__inner { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; gap: clamp(18px, 2.2vw, 42px); padding-right: clamp(18px, 2.2vw, 42px); font-size: clamp(42px, 7.2vw, 132px); line-height: 1.05; white-space: nowrap; }
.marquee span { font-family: var(--f-display); text-transform: uppercase; }
.marquee em { font-family: var(--f-serif); font-style: italic; letter-spacing: -.02em; }
.marquee i { font-style: normal; font-size: .42em; color: var(--accent); transition: color .8s; }

/* ---------- PERFIL ---------- */
.statement { font-size: clamp(30px, 4.3vw, 74px); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; max-width: 1500px; }
.statement .w { white-space: nowrap; }
.js .statement .w { opacity: .13; }
.pill {
  display: inline-block; position: relative; top: .05em;
  width: 1.9em; height: .8em; margin: 0 .03em;
  border-radius: 999px; overflow: hidden; vertical-align: baseline;
  transition: transform .9s var(--ease-out), opacity .5s;
}
.js .pill:not(.on) { transform: scale(.3); opacity: 0; }
.pill img { width: 100%; height: 100%; object-fit: cover; }

.profile__grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(32px, 6vw, 120px); margin-top: clamp(64px, 9vw, 150px); align-items: start; }
.profile__text { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 26em; color: color-mix(in srgb, currentColor 76%, transparent); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 26px; }
.stat__num { font-family: var(--f-display); font-size: clamp(66px, 8.4vw, 150px); line-height: .84; letter-spacing: -.01em; }
.stat__num sup { font-size: .42em; vertical-align: top; position: relative; top: .08em; }
.stat__label { font-size: 14px; max-width: 19em; color: color-mix(in srgb, currentColor 72%, transparent); }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); margin-top: clamp(80px, 10vw, 170px); }
.skills__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(46px, 5.6vw, 98px); line-height: .9; margin-bottom: 26px; }
.skills__title em { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: -.02em; margin-right: .03em; }
.skills__item { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.3vw, 20px); }
.skills__item::before { content: '/'; opacity: .45; }

/* ---------- TRABAJOS (reel) ---------- */
.works { position: relative; }
.works__pin { position: relative; }
.works__sticky { position: relative; }
.works__track { display: grid; gap: 64px; padding: clamp(100px, 12vw, 180px) var(--pad) 40px; }
.works__intro { display: flex; flex-direction: column; gap: 22px; }
.works__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(78px, 10.6vw, 204px); line-height: .84; }
.works__title sup { font-family: var(--f-serif); font-style: italic; text-transform: none; font-size: .2em; vertical-align: top; margin-left: .14em; letter-spacing: 0; }
.works__lead { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; max-width: 26em; color: color-mix(in srgb, currentColor 76%, transparent); }
.works__hint { display: none; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.works__hint .icon { animation: nudge 1.8s var(--ease-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.card { display: block; position: relative; }
.card__media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: var(--ar); width: 100%; }
.card__parallax { position: absolute; inset: 0; }
.card__parallax img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.4s var(--ease-out), opacity .8s; }
.card:hover .card__parallax img { transform: scale(1.09); }
.card__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 16px; padding-top: 16px; }
.card__idx { font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1; }
.card__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(26px, 2.5vw, 42px); line-height: .95; }
.card__cat { grid-column: 2; font-size: 14px; color: color-mix(in srgb, currentColor 70%, transparent); }
.card__ctx { grid-column: 3; grid-row: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, currentColor 62%, transparent); white-space: nowrap; }
.works__end, .works__progress { display: none; }

/* Reel horizontal en escritorio (activado por JS) */
html.reel-on .works__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
html.reel-on .works__track { display: flex; align-items: stretch; gap: clamp(28px, 3.2vw, 64px); width: max-content; padding: 0 var(--pad); will-change: transform; }
html.reel-on .works__intro { flex: none; width: clamp(400px, 42vw, 820px); justify-content: flex-end; padding-bottom: 86px; }
html.reel-on .works__title { font-size: clamp(64px, 9.4vw, 190px); }
html.reel-on .works__hint { display: inline-flex; }
html.reel-on .card { flex: none; }
html.reel-on .card__media { height: min(60vh, 640px); height: min(60svh, 640px); width: auto; }
html.reel-on .card__parallax { inset: 0 -5%; will-change: transform; }
html.reel-on .works__end { display: flex; flex: none; width: clamp(260px, 24vw, 420px); align-items: flex-end; padding-bottom: 86px; }
.works__end-text { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 4.4vw, 84px); line-height: .9; }
.works__end-text em { font-family: var(--f-serif); font-style: italic; text-transform: none; }
html.reel-on .works__progress {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  position: absolute; left: var(--pad); right: calc(var(--pad) + 74px); bottom: clamp(18px, 3.2vh, 34px);
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
}
.works__count { font-variant-numeric: tabular-nums; }
.works__bar { height: 1px; background: var(--line); overflow: hidden; }
.works__bar span { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }

/* ---------- MÁS PROYECTOS ---------- */
.more { padding-top: clamp(60px, 7vw, 120px); }
.more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3.4vw, 56px) clamp(16px, 2vw, 32px); }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.07); }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile__meta h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(24px, 2.1vw, 34px); line-height: 1; }
.tile__meta span { font-size: 13px; text-align: right; color: color-mix(in srgb, currentColor 66%, transparent); }
.tile--stat { background: var(--pink); color: var(--ink); border-radius: 6px; padding: clamp(20px, 2vw, 32px); justify-content: space-between; gap: 18px; }
.tile__stat-top { display: flex; justify-content: space-between; gap: 12px; }
.tile__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.tile__stat-mid { display: grid; }
.tile__big { font-family: var(--f-display); font-size: clamp(84px, 8.6vw, 160px); line-height: .82; }
.tile__biglabel { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.tile__stat-text { font-size: 14px; line-height: 1.45; max-width: 30em; }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tile__cta .icon { transition: transform .5s var(--ease-out); }
.tile--stat:hover .tile__cta .icon { transform: translateX(6px); }
.tile--stat { transition: background-color .4s; }
.tile--stat:hover { background: #efc9cf; }

/* ---------- IA ---------- */
.ai { overflow: hidden; }
.ai__dots { position: absolute; left: 0; top: 0; width: 100%; height: 110vh; pointer-events: none; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.ai .container { position: relative; z-index: 1; }
.ai__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(54px, 15.6vw, 300px); line-height: .86; }
.ai__title em { font-family: var(--f-serif); font-style: italic; color: var(--lime); text-transform: none; font-size: .9em; }
.ai__subtitle { font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 3.4vw, 58px); line-height: 1.05; margin-top: 18px; }
.ai__intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; margin-top: clamp(60px, 8vw, 130px); }
.ai__lead { font-size: clamp(22px, 2.3vw, 38px); line-height: 1.18; letter-spacing: -.025em; }
.ai__principle { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; border-left: 2px solid var(--lime); padding-left: 22px; }
.ai__principle span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--lime); margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(80px, 9vw, 150px); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.step:hover::before { transform: scaleX(1); }
.step__n { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1; color: var(--lime); }
.step__title { font-size: clamp(20px, 1.7vw, 27px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.step p { font-size: 15px; color: color-mix(in srgb, currentColor 72%, transparent); }
.step__tools { margin-top: auto; padding-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: color-mix(in srgb, currentColor 60%, transparent); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(60px, 7vw, 120px); }
.feature { display: flex; flex-direction: column; gap: 16px; min-height: clamp(280px, 24vw, 380px); padding: clamp(24px, 2.6vw, 42px); border: 1px solid var(--line); border-radius: 8px; }
.feature--lime { background: var(--lime); color: var(--dark); border-color: transparent; }
.feature__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.feature__title { margin-top: auto; font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(36px, 3.7vw, 66px); line-height: .92; }
.feature p { font-size: 16px; max-width: 36em; }
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px clamp(32px, 5vw, 96px); margin-top: clamp(80px, 9vw, 150px); }
.tools__group { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.tools__title { width: 100%; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: color-mix(in srgb, currentColor 62%, transparent); }
.tag { display: inline-flex; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; transition: background-color .35s, color .35s, border-color .35s; }
.tag:hover { background: var(--lime); border-color: var(--lime); color: var(--dark); }

/* ---------- Títulos grandes ---------- */
.big-title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(72px, 13.2vw, 252px); line-height: .86; margin-bottom: clamp(50px, 7vw, 120px); }
.big-title .line--serif { font-family: var(--f-serif); font-style: italic; text-transform: none; font-size: .3em; line-height: 1.12; letter-spacing: -.02em; margin-top: .25em; }

/* ---------- EXPERIENCIA ---------- */
.jobs { border-bottom: 1px solid var(--line); }
.job { position: relative; isolation: isolate; padding-block: clamp(24px, 2.6vw, 40px); border-top: 1px solid var(--line); transition: color .45s; }
.job::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out); }
html.fine .job:hover { color: var(--bone); }
html.fine .job:hover::before { transform: scaleY(1); transform-origin: top; }
.job__head { display: grid; grid-template-columns: minmax(110px, 1fr) 3.4fr 2fr 2.4fr; gap: 10px 24px; align-items: baseline; }
.job__years { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; font-variant-numeric: tabular-nums; }
.job__company { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(38px, 4.8vw, 86px); line-height: .9; }
.job__role { font-size: clamp(16px, 1.25vw, 19px); font-weight: 600; }
.job__place { font-size: 14px; color: color-mix(in srgb, currentColor 66%, transparent); }
.job__body { display: grid; grid-template-columns: minmax(110px, 1fr) 7.8fr; gap: 24px; margin-top: 18px; }
.job__body > * { grid-column: 2; max-width: 60em; }
.job__body p { font-size: 16px; line-height: 1.55; color: color-mix(in srgb, currentColor 80%, transparent); }
.job__brands { margin-top: 12px; font-size: 14px; }
.job__brands span { display: inline-block; margin-right: 12px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; vertical-align: 1px; }
.job__brands--hl { color: inherit !important; font-weight: 500; }
.job__brands--hl span { background: var(--lime); border-color: var(--lime); color: var(--dark); }

.preview { position: fixed; top: 0; left: 0; z-index: 95; width: clamp(200px, 17vw, 300px); pointer-events: none; }
.preview__inner { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #222; transform: translate(-50%, -50%) scale(0) rotate(-8deg); transition: transform .6s var(--ease-out); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.preview.on .preview__inner { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FORMACIÓN ---------- */
.degrees { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; }
.degree { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: clamp(340px, 30vw, 470px); padding: clamp(22px, 2.3vw, 34px); border: 1px solid var(--line-strong); border-radius: 8px; }
.degree--main { background: var(--ink); color: var(--bone); border-color: transparent; }
.degree__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.degree .degree__big { font-family: var(--f-display); font-size: clamp(92px, 10.4vw, 196px); line-height: .9; color: var(--lime); }
.degree .degree__num { font-family: var(--f-display); font-size: clamp(76px, 7.4vw, 140px); line-height: .82; }
.degree__title { font-size: clamp(22px, 2vw, 31px); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 10px; }
.degree p { font-size: 15px; line-height: 1.5; }
.courses { margin-top: clamp(70px, 8vw, 130px); }
.courses__title { font-size: clamp(22px, 2vw, 32px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 26px; }
.courses__title span { font-family: var(--f-serif); font-style: italic; font-weight: 400; opacity: .6; }
.courses__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); }
.course { display: grid; grid-template-columns: 62px 1fr; grid-template-areas: "y n" "y w"; gap: 3px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.course__year { grid-area: y; font-family: var(--f-serif); font-style: italic; font-size: 21px; line-height: 1.1; }
.course__name { grid-area: n; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.course__where { grid-area: w; font-size: 14px; color: color-mix(in srgb, currentColor 66%, transparent); }

/* ---------- CONTACTO ---------- */
.contact { position: relative; padding-block: clamp(120px, 15vw, 250px) clamp(60px, 7vw, 110px); }
.contact__quote { font-size: clamp(26px, 3.4vw, 56px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; max-width: 21em; }
.contact__quote em { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; }
.contact__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(50px, 15.8vw, 330px); line-height: .86; margin-top: clamp(60px, 8vw, 130px); }
.contact__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(32px, 4.4vw, 90px); align-items: center; margin-top: clamp(50px, 6vw, 100px); }
.contact__text { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 24em; color: color-mix(in srgb, currentColor 80%, transparent); }
.wa-big {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: clamp(176px, 15.5vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); color: var(--dark); text-align: center;
  font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; line-height: 1.12; letter-spacing: -.01em;
}
.wa-big__fill { position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--bone); transform: scale(0); transition: transform .7s var(--ease-out); }
.wa-big:hover .wa-big__fill { transform: scale(1); }
.wa-big__icon { width: 34%; height: auto; transition: transform .7s var(--ease-out); }
.wa-big:hover .wa-big__icon { transform: rotate(-12deg) scale(1.06); }
.contact__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list li > span:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .6; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.contact__list a:hover { background-size: 100% 1px; }

/* ---------- FOOTER ---------- */
.footer { overflow: hidden; padding-top: clamp(20px, 3vw, 50px); }
.footer__name { padding-inline: var(--pad); font-family: var(--f-display); text-transform: uppercase; white-space: nowrap; line-height: .84; }
.footer__name span { display: inline-block; font-size: 13.8vw; }
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; padding-block: 18px 26px; border-top: 1px solid var(--line); font-size: 13px; }
.to-top { display: inline-flex; gap: 6px; font-weight: 600; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 85;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transform: scale(0); transition: transform .6s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float.on { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%); padding: 7px 12px; border-radius: 99px; background: var(--dark); color: var(--bone); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); }
.wa-float:hover .wa-float__tip { opacity: 1; transform: translate(0, -50%); }

/* Sello "Powered by Netlify" (plan gratis): se libera la esquina inferior derecha */
html.has-badge .wa-float { bottom: 82px; }
html.has-badge .footer__row { padding-bottom: 78px; }
html.has-badge .hero__bottom { padding-right: calc(var(--pad) + 190px); }
html.has-badge.reel-on .works__progress { right: calc(var(--pad) + 200px); }

/* ---------- VISTA DE PROYECTO ---------- */
.case {
  position: fixed; inset: 0; z-index: 200;
  background: #0e0e0e; color: var(--bone);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 100%, 0); visibility: hidden;
  transition: transform 1s var(--ease-io), visibility 0s 1s;
}
.case.is-open { transform: none; visibility: visible; transition: transform 1s var(--ease-io), visibility 0s; }
.case__bar {
  position: sticky; top: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 72px; padding: 0 var(--pad);
  background: linear-gradient(#0e0e0e 35%, rgba(14, 14, 14, 0));
  font-size: 14px; font-weight: 500;
}
.case__close { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 18px 0 6px; border: 1px solid rgba(242, 238, 231, .22); border-radius: 99px; }
.case__x { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bone); }
.case__x::before, .case__x::after { content: ''; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; background: var(--dark); transition: transform .5s var(--ease-out); }
.case__x::before { transform: rotate(45deg); } .case__x::after { transform: rotate(-45deg); }
.case__close:hover .case__x::before { transform: rotate(135deg); } .case__close:hover .case__x::after { transform: rotate(45deg); }
.case__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; }
.case__nextbtn { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.case__inner { transition: opacity .45s, transform .6s var(--ease-out); }
.case__inner.is-swapping { opacity: 0; transform: translate3d(0, 30px, 0); }
.case__head { padding: clamp(36px, 6vw, 100px) var(--pad) clamp(28px, 3vw, 48px); max-width: 1920px; margin: 0 auto; }
.case__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.case__idx { font-family: var(--f-serif); font-style: italic; font-size: 20px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--case-accent, var(--lime)); }
.case__title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(64px, 11.5vw, 220px); line-height: .86; margin-top: 18px; }
.case__title .case__subtitle { display: block; font-family: var(--f-serif); font-style: italic; text-transform: none; font-size: .3em; line-height: 1.1; margin-top: .2em; letter-spacing: -.02em; }
.case__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 100px); margin-top: clamp(36px, 5vw, 80px); align-items: start; }
.case__desc { font-size: clamp(20px, 1.9vw, 31px); line-height: 1.25; letter-spacing: -.02em; }
.case__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.case__meta > div { padding: 14px 0; border-top: 1px solid rgba(242, 238, 231, .16); }
.case__meta .case__wide { grid-column: 1 / -1; }
.case__meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .55; margin-bottom: 4px; }
.case__meta dd { font-size: 15px; line-height: 1.45; }
.case__meta a { text-decoration: underline; text-underline-offset: 3px; }
.case__palette { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(32px, 4vw, 60px); }
.case__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .55; margin-right: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.swatch i { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.case__process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(36px, 4vw, 64px); }
.case__process li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 8px; background: rgba(242, 238, 231, .06); }
.case__process li:nth-child(3) { background: var(--case-accent, var(--lime)); color: var(--case-accent-ink, #0c0c0c); }
.case__process span { font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1; }
.case__process h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.case__process p { font-size: 14px; line-height: 1.45; opacity: .8; }
.case__gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.3vw, 22px); padding: 0 var(--pad); max-width: 1760px; margin: 0 auto; }
.g { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: var(--ar); }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.g img.contain { object-fit: contain; padding: 6%; }
.g img.loaded { opacity: 1; }
.g--full { grid-column: span 12; }
.g--medium { grid-column: 3 / span 8; }
.g--half { grid-column: span 6; }
.g--third { grid-column: span 4; }
.g--quarter { grid-column: span 3; }
.js .case .g { opacity: 0; transform: translate3d(0, 50px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .case .g.is-in { opacity: 1; transform: none; }
.case__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin: clamp(60px, 7vw, 110px) auto 0; padding: 0 var(--pad); max-width: 1760px; }
.case__cta p { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.1; }
.case__cta .btn { background: var(--lime); color: var(--dark); }
.case__next {
  display: block; margin-top: clamp(60px, 7vw, 110px);
  padding: clamp(40px, 5vw, 80px) var(--pad) clamp(50px, 6vw, 100px);
  border-top: 1px solid rgba(242, 238, 231, .16);
}
.case__next-label { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; opacity: .6; }
.case__next-title { display: block; margin-top: 14px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(56px, 10vw, 190px); line-height: .86; transition: transform .8s var(--ease-out), color .4s; }
.case__next:hover .case__next-title { transform: translateX(1.5vw); color: var(--case-accent, var(--lime)); }
.case__next-cat { display: block; margin-top: 12px; font-size: 14px; opacity: .65; }
html.case-open .header, html.case-open .wa-float { pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .header__menu { display: inline-flex; }
  .header__right .btn--pill { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .job__head { grid-template-columns: minmax(100px, 1fr) 3fr 2.4fr; }
  .job__place { grid-column: 2 / -1; }
  .contact__grid { grid-template-columns: 1fr auto; }
  .contact__list { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero { height: auto; min-height: 100svh; padding-top: calc(var(--header-h) + 18px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; align-content: end; gap: 18px; padding-bottom: 30px; }
  .hero__intro { display: contents; }
  .hero__kicker { grid-column: 1; grid-row: 1; align-self: start; font-size: 12px; }
  .hero__portrait { grid-column: 2; grid-row: 1; height: auto; width: 44vw; max-width: 340px; }
  .hero__desc { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: 8px; }
  .hero__ctas { grid-column: 1 / -1; grid-row: 3; }
  .badge { left: auto; right: -10px; bottom: -22px; width: 84px; }
  .badge__ring text { font-size: 14px; }
  .hero__hola { top: -.85em; }
  .hero__bottom .hero__loc, .hero__bottom .hero__scroll { display: none; }
  .profile__grid, .skills, .ai__intro, .features, .tools, .case__intro { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .more__grid { grid-template-columns: 1fr 1fr; }
  .degrees { grid-template-columns: 1fr; }
  .degree { min-height: 0; }
  .courses__list { grid-template-columns: 1fr; }
  .job__head { grid-template-columns: 1fr; gap: 6px; }
  .job__place { grid-column: auto; }
  .job__body { grid-template-columns: 1fr; }
  .job__body > * { grid-column: 1; }
  .case__process { grid-template-columns: 1fr 1fr; }
  .g--medium { grid-column: span 12; }
  .g--half { grid-column: span 12; }
  .g--third, .g--quarter { grid-column: span 6; }
  .case__brand { display: none; }
  .case__bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .status { display: none; }
  .header__role { display: none; }
  .steps { grid-template-columns: 1fr; }
  .more__grid { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { padding-right: 14px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat__label { font-size: 13px; }
  .contact__grid { grid-template-columns: 1fr; justify-items: start; }
  .card__meta { grid-template-columns: auto 1fr; }
  .card__ctx { grid-column: 2; grid-row: auto; }
  .case__process { grid-template-columns: 1fr; }
  .case__meta { grid-template-columns: 1fr; }
  .tile__meta { flex-direction: column; gap: 4px; }
  .tile__meta span { text-align: left; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .hero__bottom .serif { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .loader { display: none; }
  .grain { animation: none; }
}
