/* ==========================================================================
   Dianne Jorge Rey · Portafolio
   ========================================================================== */
:root {
  --bg: #0e0c0b;
  --bg-2: #141110;
  --surface: #1b1715;
  --surface-2: #231e1b;
  --ivory: #f4ede4;
  --cream: #efe7dc;
  --ink: #1a1512;
  --muted: #a69b90;
  --muted-dark: #6d6259;
  --gold: #c8a26b;
  --gold-2: #e3c79a;
  --gold-3: #8f6f43;
  --line: rgba(244, 237, 228, .12);
  --line-dark: rgba(26, 21, 18, .14);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --radius: 22px;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 13vw, 180px);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000; transform: translateY(-200%);
  background: var(--gold); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Tipografía base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { justify-content: center; }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: .98; letter-spacing: -.02em;
  margin-top: 22px;
}
.h2 em, .hero__title em, .contact__title em, .footer__brand em, .nav__name em {
  font-style: italic; font-weight: 300; color: var(--gold-2);
}
.section--light .h2 em { color: var(--gold-3); }
.lead { font-size: 1.18em; line-height: 1.6; }

.section-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 880px; }
.section-head__text { color: var(--muted); max-width: 440px; margin-top: 26px; }
.section-head--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.section-head--split .section-head__text { margin-top: 0; }

/* ---------- Botones ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--bg); }
.btn--primary::before { background: var(--ivory); }
.btn--ghost { border: 1px solid rgba(244, 237, 228, .28); color: var(--ivory); }
.btn--ghost::before { background: var(--ivory); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ivory); }
.section--light .btn--ghost { border-color: var(--line-dark); color: var(--ink); }
.section--light .btn--ghost::before { background: var(--ink); }
.section--light .btn--ghost:hover { color: var(--cream); }
.btn--sm { --h: 46px; padding: 0 22px; font-size: .74rem; }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244, 237, 228, .25); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.round-btn:active { transform: scale(.94); }

.close-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244, 237, 228, .08); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background .3s;
}
.close-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.close-btn:hover { transform: rotate(90deg); background: var(--ivory); color: var(--bg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(200, 162, 107, .45); color: var(--gold-2);
}

.link-arrow { display: inline-flex; gap: 8px; color: var(--gold-3); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 14px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-in-out), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.preloader__inner { display: grid; justify-items: center; gap: 20px; }
.preloader__mono { width: 110px; height: 110px; }
.preloader__mono circle {
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 352; stroke-dashoffset: 352;
  animation: draw 1.6s var(--ease) forwards;
}
.preloader__mono text { font-family: var(--serif); font-style: italic; font-size: 56px; fill: var(--gold-2); opacity: 0; animation: fade .9s .5s var(--ease) forwards; }
.preloader__name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: fade .9s .8s var(--ease) forwards; text-align: center; padding-inline: 20px; }
.preloader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: bar 1.8s var(--ease) forwards; }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html:not(.js) .preloader { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-2); }
  .cursor__ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(227, 199, 154, .55);
    display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
  }
  .cursor__label { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold-2); }
  .cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold-2); border-color: var(--gold-2); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
}

.scroll-progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 600;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.grain {
  position: fixed; inset: -50%; z-index: 500; pointer-events: none; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 400; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding-inline: var(--pad);
  transition: transform .6s var(--ease), background .5s, border-color .5s, height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { --nav-h: 70px; background: rgba(14, 12, 11, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav__mono {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-2);
  transition: transform .8s var(--ease);
}
.nav__brand:hover .nav__mono { transform: rotate(-360deg); }
.nav__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { position: relative; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 237, 228, .78); transition: color .3s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 390; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 20px) var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 48px) 42px); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 48px) 42px); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.15; display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__links a small { font-family: var(--sans); font-size: .7rem; color: var(--gold); letter-spacing: .1em; }
.menu__links a:hover { color: var(--gold-2); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .5s; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: .55s; }
.menu__foot { margin-top: 48px; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 110px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 78% 40%, rgba(200, 162, 107, .16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(180, 103, 63, .12), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__eyebrow { color: var(--gold-2); }
.hero__eyebrow::before { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200, 162, 107, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(200, 162, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 162, 107, 0); } }
.hero__title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.035em;
  font-size: clamp(3.6rem, min(10.5vw, 17vh), 10.5rem); line-height: .86; margin: 24px 0 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.hero__title .line:nth-child(2) { padding-left: clamp(30px, 8vw, 140px); }
.hero__title .line:nth-child(2) > * { transition-delay: .12s; }
body.is-loaded .hero__title .line > * { transform: none; }
.hero__lead { max-width: 520px; color: rgba(244, 237, 228, .74); font-size: 1.08em; }
.hero__lead strong { color: var(--ivory); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero__meta { display: flex; gap: clamp(20px, 4vw, 54px); margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 600px; }
.hero__meta li { display: grid; gap: 2px; }
.hero__meta strong { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; color: var(--gold-2); line-height: 1.1; white-space: nowrap; }
.hero__meta span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__copy > *:not(.hero__title) { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
body.is-loaded .hero__copy > * { opacity: 1; transform: none; }
body.is-loaded .hero__eyebrow { transition-delay: .1s; }
body.is-loaded .hero__lead { transition-delay: .45s; }
body.is-loaded .hero__actions { transition-delay: .6s; }
body.is-loaded .hero__meta { transition-delay: .75s; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); --mx: 0; --my: 0; }
.arch {
  position: relative; aspect-ratio: 9 / 14; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: var(--surface); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(200, 162, 107, .25);
  clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px);
  transition: clip-path 1.6s var(--ease-in-out) .2s;
}
body.is-loaded .arch { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
.arch::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(244, 237, 228, .35); border-radius: inherit; z-index: 2; pointer-events: none; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 12, 11, .65)); z-index: 1; }
.arch__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.arch__tag {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(14, 12, 11, .55); backdrop-filter: blur(10px); border: 1px solid var(--line);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
}
.arch__tag i { width: 7px; height: 7px; border-radius: 50%; background: #e2564a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.float {
  position: absolute; z-index: 4; border-radius: 16px; overflow: hidden; width: 32%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(244, 237, 228, .12);
  opacity: 0; transition: opacity 1.2s var(--ease) 1s;
}
body.is-loaded .float { opacity: 1; }
.float img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.float--1 { left: -26%; top: 14%; transform: translate(calc(var(--mx) * -18px), calc(var(--my) * -14px)) rotate(-6deg); }
.float--2 { right: -13%; top: 4%; width: 27%; transform: translate(calc(var(--mx) * 22px), calc(var(--my) * 18px)) rotate(5deg); }
.float--3 { right: -11%; bottom: 10%; width: 30%; transform: translate(calc(var(--mx) * 14px), calc(var(--my) * -20px)) rotate(-3deg); }
.badge { position: absolute; z-index: 5; left: -16%; bottom: -4%; width: 150px; height: 150px; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font-size: 15.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--ivory); font-family: var(--sans); font-weight: 600; }
.badge__star { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--bg); font-size: 1.4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ivory); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.8rem); white-space: nowrap; color: rgba(244, 237, 228, .88); }
.marquee b { color: var(--gold); font-weight: 400; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones claras ---------- */
.section--light { background: var(--cream); color: var(--ink); }
.section--light .eyebrow { color: var(--gold-3); }
.section--light .section-head__text { color: var(--muted-dark); }

/* ---------- Sobre mí ---------- */
.about { padding: var(--section) 0; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 130px); align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 3 / 4.2; box-shadow: 0 40px 90px -40px rgba(26, 21, 18, .55); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.12) translateY(var(--py, 0)); }
.about__frame::after { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(244, 237, 228, .45); pointer-events: none; }
.about__caption { display: flex; justify-content: space-between; margin-top: 18px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); }
.about__stamp {
  position: absolute; right: -28px; top: 12%; width: 116px; height: 116px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: grid; place-items: center; align-content: center; text-align: center;
  font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 20px 40px -10px rgba(26, 21, 18, .5);
}
.about__stamp em { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.about__text { display: grid; gap: 18px; margin-top: 34px; color: #3d332c; max-width: 620px; }
.about__text strong { color: var(--ink); }
.signature { font-family: var(--serif); font-style: italic; font-size: 3.4rem; color: var(--gold-3); margin-top: 18px; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line-dark); }
.stats li { display: grid; gap: 6px; align-content: start; }
.stats strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: var(--ink); }
.stats sup { font-size: .45em; color: var(--gold-3); margin-left: 2px; }
.stats li > span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); line-height: 1.4; }

/* ---------- Especialidades ---------- */
.services { position: relative; padding: var(--section) 0; }
.svc { border-top: 1px solid var(--line); }
.svc__item {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1fr 60px; align-items: center; gap: 24px;
  padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.svc__item::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(200, 162, 107, .1), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
}
.svc__num { font-size: .78rem; color: var(--gold); letter-spacing: .14em; }
.svc__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.05; transition: transform .6s var(--ease), color .4s; }
.svc__desc { color: var(--muted); max-width: 420px; }
.svc__arrow { justify-self: end; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: transform .6s var(--ease), background .4s, color .4s; }
.svc__item:hover::before { opacity: 1; }
.svc__item:hover .svc__title { transform: translateX(18px); color: var(--gold-2); }
.svc__item:hover .svc__arrow { transform: rotate(45deg); background: var(--gold); color: var(--bg); border-color: var(--gold); }
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 240px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; scale: .8; translate: -50% -50%;
  transition: opacity .4s var(--ease), scale .5s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
.svc-preview.is-visible { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .svc-preview { display: none; } }

/* ---------- Antes / Después ---------- */
.ba { padding: var(--section) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.ba__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.compare {
  position: relative; aspect-ratio: 3 / 4; max-height: 82vh; width: 100%; margin-inline: auto; max-width: 620px;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); user-select: none; -webkit-user-select: none;
  touch-action: pan-y; cursor: ew-resize; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .5s var(--ease); }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare.is-swapping .compare__img { opacity: 0; }
.compare__label {
  position: absolute; top: 20px; z-index: 2; padding: 8px 14px; border-radius: 999px;
  background: rgba(14, 12, 11, .6); backdrop-filter: blur(8px); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.compare__label--before { left: 20px; }
.compare__label--after { right: 20px; background: rgba(200, 162, 107, .85); color: var(--bg); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ivory); z-index: 3; }
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--ivory); color: var(--bg); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .4s var(--ease);
}
.compare__knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .compare__knob, .compare__handle:focus-visible .compare__knob { transform: translate(-50%, -50%) scale(1.12); }
.compare__handle:focus-visible { outline: none; }
.compare__handle:focus-visible .compare__knob { box-shadow: 0 0 0 3px var(--gold), 0 10px 30px rgba(0, 0, 0, .45); }
.ba__count { font-size: .8rem; letter-spacing: .2em; color: var(--muted); }
.ba__count span:first-child { color: var(--gold-2); }
.ba__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; margin: 16px 0 18px; }
.ba__desc { color: var(--muted); max-width: 460px; margin-bottom: 22px; }
.ba__info .btn { margin-top: 30px; }
.ba__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.ba__thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; opacity: .5; transition: opacity .4s, transform .5s var(--ease); }
.ba__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ba__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; transition: border-color .4s; }
.ba__thumb:hover { opacity: .85; }
.ba__thumb:hover img { transform: scale(1.08); }
.ba__thumb.is-active { opacity: 1; }
.ba__thumb.is-active::after { border-color: var(--gold); }

/* ---------- Trabajos ---------- */
.works { padding: var(--section) 0 calc(var(--section) + 40px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(244, 237, 228, .75); transition: background .35s, color .35s, border-color .35s;
}
.filter sup { font-size: .62rem; color: var(--gold); margin-left: 2px; }
.filter:hover { border-color: rgba(244, 237, 228, .4); color: var(--ivory); }
.filter.is-active { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.filter.is-active sup { color: var(--gold-3); }
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.work {
  position: relative; display: block; text-align: left; width: 100%;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.work.is-out { opacity: 0; transform: scale(.94); pointer-events: none; }
.work.is-gone { display: none; }
.work__open { position: absolute; inset: 0; z-index: 3; width: 100%; border-radius: var(--radius); cursor: pointer; }
.work__open:focus-visible { outline-offset: 3px; }
.work__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.work__media > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 11, .1) 40%, rgba(14, 12, 11, .8)); }
.work__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.work__alt img { width: 100%; height: 100%; object-fit: cover; }
.work__alt span { position: absolute; left: 18px; top: 56px; z-index: 2; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(14, 12, 11, .6); }
.work:hover .work__media > img { transform: scale(1.08); }
.work:hover .work__alt { opacity: 1; }
.work__top { position: absolute; z-index: 2; inset: 18px 18px auto 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.work__code { font-size: .7rem; letter-spacing: .2em; font-weight: 600; color: var(--gold-2); }
.work__badges { display: flex; gap: 6px; }
.work__badges span { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(14, 12, 11, .55); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.work__info { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }
.work__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.08; }
.work__meta { margin-top: 10px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 237, 228, .7); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.work__meta span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
@media (min-width: 1025px) {
  .works__grid.is-staggered .work:nth-child(3n+2) { margin-top: 80px; margin-bottom: -80px; }
}

/* ---------- Vídeos ---------- */
.reels { padding: var(--section) 0; background: #0a0908; border-top: 1px solid var(--line); overflow: hidden; }
.reels__nav { display: flex; gap: 12px; }
.reels__track {
  --edge: max(var(--pad), calc((100vw - 1380px) / 2 + var(--pad)));
  display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px var(--edge) 20px; scroll-padding-inline: var(--edge);
}
.reels__track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .reels__track { cursor: grab; } }
.reels__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reels__track.is-dragging .reel { pointer-events: none; }
.reel {
  position: relative; flex: 0 0 clamp(210px, 21vw, 290px); aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start; background: var(--surface); text-align: left;
  transition: transform .7s var(--ease);
}
.reel:hover { transform: translateY(-8px); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .5s; }
.reel.is-playing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 8, .85)); pointer-events: none; }
.reel__play {
  position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(244, 237, 228, .16); backdrop-filter: blur(8px); border: 1px solid rgba(244, 237, 228, .25);
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.reel__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.reel:hover .reel__play { background: var(--gold); color: var(--bg); transform: scale(1.1); }
.reel__info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; }
.reel__label { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.reel__meta { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 237, 228, .65); margin-top: 6px; }
.reels__hint { margin-top: 18px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

/* ---------- Proceso ---------- */
.process { padding: var(--section) 0; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 30px); }
.pcard { display: grid; gap: 18px; align-content: start; }
.pcard:nth-child(even) { margin-top: 64px; }
.pcard__media { position: relative; aspect-ratio: 9 / 16; border-radius: 999px 999px 18px 18px; overflow: hidden; background: #d9cfc2; box-shadow: 0 30px 70px -35px rgba(26, 21, 18, .7); }
.pcard__media video, .pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__media video { opacity: 0; transition: opacity .8s; }
.pcard__media.is-playing video { opacity: 1; }
.pcard__num { font-size: .72rem; letter-spacing: .2em; color: var(--gold-3); font-weight: 600; }
.pcard__title { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; margin-top: 4px; }
.pcard__text { color: var(--muted-dark); font-size: .94rem; margin-top: 6px; }
.pcard__full { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--gold-3); padding-bottom: 3px; }
.pcard__note { margin-top: 10px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- Trayectoria ---------- */
.cv { padding: var(--section) 0; }
.cv__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.cv__aside { position: sticky; top: calc(var(--nav-h) + 30px); }
.cv__aside .h2 { font-size: clamp(3rem, 5.4vw, 5.6rem); hyphens: manual; }
.cv__intro { color: var(--muted); margin-top: 28px; max-width: 420px; }
.cv__downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cv__label { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 26px; }
.cv__main > .cv__label:not(:first-child) { margin-top: 70px; }
.timeline { border-left: 1px solid var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 0 0 46px 34px; }
.timeline__item::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--bg); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__date { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-2); line-height: 1.3; }
.timeline__item h4, .edu h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.timeline__place { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 16px; }
.timeline__item ul { display: grid; gap: 8px; color: rgba(244, 237, 228, .78); }
.timeline__item li { position: relative; padding-left: 22px; }
.timeline__item li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--gold); }
.edu { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 34px; border-radius: var(--radius); background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.edu p { color: rgba(244, 237, 228, .78); }
.edu a:not(.link-arrow) { color: var(--gold-2); border-bottom: 1px solid currentColor; }
.edu .link-arrow { color: var(--gold-2); }
.edu__badge { width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-content: center; text-align: center; background: radial-gradient(circle, rgba(200, 162, 107, .18), transparent 70%); }
.edu__badge span { font-size: .7rem; letter-spacing: .3em; color: var(--muted); }
.edu__badge strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold-2); line-height: 1; }
.cv__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; transition: border-color .3s, background .3s; }
.chips li:hover { border-color: var(--gold); background: rgba(200, 162, 107, .08); }
.lang { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lang strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.lang span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Contacto ---------- */
.contact { position: relative; padding: var(--section) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(200, 162, 107, .18), transparent 62%); pointer-events: none; }
.contact .container { position: relative; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(4.4rem, 15vw, 13rem); line-height: .9; letter-spacing: -.04em; margin-top: 26px; }
.contact__text { color: var(--muted); max-width: 520px; margin: 26px auto 0; }
.contact__mail {
  display: inline-block; margin-top: 46px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  color: var(--gold-2); background: linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 0 1px no-repeat; padding-bottom: 4px;
  transition: background-size .8s var(--ease); word-break: break-word;
}
.contact__mail:hover { background-size: 100% 1px; }
.contact__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70px; text-align: left; }
.contact__cards a, .contact__cards div {
  display: grid; gap: 6px; padding: 24px 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(244, 237, 228, .02);
  transition: border-color .4s, background .4s, transform .6s var(--ease); height: 100%;
}
.contact__cards a:hover { border-color: var(--gold); background: rgba(200, 162, 107, .07); transform: translateY(-4px); }
.contact__cards span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact__cards strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; background: #0a0908; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand { font-family: var(--serif); font-size: 1.6rem; }
.footer__copy { font-size: .78rem; color: var(--muted); }
.footer__top { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Ventana de trabajo ---------- */
.project { position: fixed; inset: 0; z-index: 700; }
.project__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 4, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s var(--ease); }
.project__panel {
  position: absolute; inset: 0 0 0 auto; width: min(1180px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .9s var(--ease-in-out); display: flex; flex-direction: column;
}
.project.is-open .project__backdrop { opacity: 1; }
.project.is-open .project__panel { transform: none; }
.project__close { position: absolute; top: 22px; right: 22px; z-index: 5; }
.project__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 5vw, 70px); flex: 1; }
.project__head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-right: 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.project__code { font-size: .74rem; letter-spacing: .24em; color: var(--gold); font-weight: 600; }
.project__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; margin: 14px 0 18px; }
.project__desc { color: var(--muted); max-width: 600px; margin-bottom: 20px; }
.project__stats { display: grid; gap: 6px; text-align: right; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project__stats strong { font-family: var(--serif); font-size: 2rem; color: var(--ivory); font-weight: 500; letter-spacing: 0; margin-right: 6px; }
.project__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.project__section-label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 600; }
.project__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); gap: 16px; margin-bottom: 40px; }
.project__video { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; background: #000; }
.project__video video { width: 100%; height: 100%; object-fit: cover; }
.project__grid { columns: 3 220px; column-gap: 16px; }
.shot { position: relative; display: block; width: 100%; margin-bottom: 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--surface); }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot__phase { position: absolute; left: 12px; top: 12px; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(14, 12, 11, .6); backdrop-filter: blur(8px); }
.shot__phase[data-phase="after"] { background: rgba(200, 162, 107, .9); color: var(--bg); }
.shot__phase[data-phase="process"] { background: rgba(244, 237, 228, .85); color: var(--bg); }
.shot.is-hidden { display: none; }
.project__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.project__nav button { text-align: left; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.project__nav button:last-child { text-align: right; }
.project__nav button:hover { border-color: var(--gold); background: rgba(200, 162, 107, .06); }
.project__nav small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.project__nav span { font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Visor de fotos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 800; background: rgba(8, 7, 6, .96); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px; opacity: 0; transition: opacity .4s var(--ease); touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox__close { position: absolute; top: 20px; right: 20px; z-index: 2; }
.lightbox__figure { display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox__img { max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); max-width: 100%; width: auto; border-radius: 14px; object-fit: contain; transition: opacity .3s, transform .5s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-loading { opacity: 0; transform: scale(.98); }
.lightbox__caption { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lightbox__caption b { color: var(--gold-2); font-weight: 600; }

/* ---------- Visor de vídeo ---------- */
.vmodal { position: fixed; inset: 0; z-index: 820; display: grid; place-items: center; opacity: 0; transition: opacity .4s var(--ease); }
.vmodal.is-open { opacity: 1; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 4, .94); }
.vmodal__close { position: absolute; top: 20px; right: 20px; z-index: 3; }
.vmodal__stage { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; padding: 20px; }
.vmodal__stage video, .vmodal__stage iframe { height: min(80vh, 900px); height: min(80svh, 900px); aspect-ratio: 9 / 16; max-width: calc(100vw - 40px); border: 0; border-radius: 18px; background: #000; object-fit: contain; }
.vmodal__stage iframe.is-wide { aspect-ratio: 16 / 9; height: auto; width: min(1100px, calc(100vw - 40px)); }
.vmodal__meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vmodal__meta strong { font-family: var(--serif); font-size: 1.4rem; text-transform: none; letter-spacing: 0; color: var(--ivory); font-weight: 500; }
.vmodal__meta button { color: var(--gold-2); border-bottom: 1px solid currentColor; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; font-weight: 600; }

/* ---------- Animaciones de aparición ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .about__media[data-reveal] { transform: translateY(70px) scale(.96); }
.js .about__media[data-reveal].is-in { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__links a { font-size: .72rem; }
  .svc__item { grid-template-columns: 70px 1fr 1fr 52px; }
}
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(66vw, 400px); margin-top: 40px; }
  .hero { padding-bottom: 130px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .ba__layout { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .pcard:nth-child(even) { margin-top: 0; }
  .cv__grid { grid-template-columns: 1fr; }
  .cv__aside { position: static; }
  .contact__cards { grid-template-columns: repeat(2, 1fr); }
  .project__panel { width: 100%; }
}
@media (max-width: 760px) {
  :root { --nav-h: 70px; }
  .nav { gap: 16px; }
  .nav__name { font-size: 1.15rem; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__meta { gap: 14px; justify-content: space-between; margin-top: 44px; }
  .hero__meta span { font-size: .58rem; letter-spacing: .06em; }
  .hero__visual { width: min(62vw, 340px); }
  .float--1 { left: -24%; }
  .float--2 { right: -20%; }
  .float--3 { right: -18%; }
  .badge { width: 104px; height: 104px; left: -22%; bottom: -6%; }
  .badge__star { width: 44px; height: 44px; font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .about__stamp { right: 8px; width: 92px; height: 92px; }
  .about__stamp em { font-size: 1.6rem; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .svc__item { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .svc__desc { grid-column: 2; }
  .svc__arrow { display: none; }
  .ba__thumbs { gap: 8px; }
  .compare { max-height: 72vh; }
  .work__info { left: 16px; right: 16px; bottom: 16px; }
  .work__top { inset: 14px 14px auto 14px; }
  .work__badges span:nth-child(n+2) { display: none; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; }
  .edu { grid-template-columns: 1fr; padding: 26px; }
  .edu__badge { width: 86px; height: 86px; }
  .edu__badge strong { font-size: 2rem; }
  .cv__cols { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .project__head { grid-template-columns: 1fr; padding-right: 50px; }
  .project__stats { text-align: left; grid-auto-flow: column; justify-content: start; gap: 24px; }
  .project__grid { columns: 2 140px; column-gap: 10px; }
  .project__videos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 10px; }
  .project__close { top: 14px; right: 14px; }
  .project__nav span { font-size: 1.05rem; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 10px 90px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 22px; }
  .lightbox__prev { left: calc(50% - 68px); }
  .lightbox__next { right: calc(50% - 68px); }
  .lightbox__img { max-height: calc(100svh - 200px); }
}
@media (max-width: 520px) {
  .badge { display: none; }
  .arch__tag { font-size: .56rem; letter-spacing: .14em; padding: 7px 12px; bottom: 18px; }
  .works__grid { gap: 12px; }
  .work__media { border-radius: 14px; }
  .work__title { font-size: 1.12rem; }
  .work__meta { font-size: .56rem; letter-spacing: .1em; gap: 2px 8px; }
  .work__meta span + span::before { margin-right: 8px; }
  .work__code { font-size: .6rem; }
  .work__badges span { font-size: .5rem; padding: 4px 7px; }
  .work__info { left: 12px; right: 12px; bottom: 12px; }
  .work__top { inset: 10px 10px auto 10px; }
  .process__grid { gap: 14px; }
  .pcard__title { font-size: 1.3rem; }
  .pcard__text { font-size: .84rem; }
  .filter { padding: 9px 14px; font-size: .68rem; }
  .reel { flex-basis: 64vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
