/* ==========================================================================
   Portfolio — Bruno Soliz
   Oscuro + morado
   ========================================================================== */

:root {
  --bg: #07060b;
  --bg-2: #0d0b14;
  --surface: #14111f;
  --surface-2: #1b1729;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #efecf6;
  --muted: #9b94ad;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --magenta: #d946ef;
  --grad: linear-gradient(100deg, #a78bfa 0%, #8b5cf6 40%, #d946ef 100%);
  --glow: 0 0 80px rgba(139, 92, 246, .35);

  --f-display: "Syne", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.modal-open { overflow: hidden; }

::selection { background: var(--violet); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
em { font-style: italic; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 18px;
  transition: transform 1s var(--ease-in-out);
}
.loader__name {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 5vw, 56px); letter-spacing: -.02em; text-transform: uppercase;
}
.loader__count { font-size: 13px; letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; }
.loader__bar { width: min(260px, 60vw); height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.loader.is-done { transform: translateY(-100%); }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(196, 181, 253, .6); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease),
              background-color .35s var(--ease), border-color .35s var(--ease), opacity .3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--violet-2); }
.cursor__label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: scale(.6); transition: .3s var(--ease);
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(139, 92, 246, .12); border-color: var(--violet-2); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--violet); border-color: var(--violet); }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* --------------------------------------------------------------------------
   Grano
   -------------------------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, 2%); }
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .4s var(--ease), background-color .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(7, 6, 11, .6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.nav__logo span { color: var(--violet-2); margin-left: 4px; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav__links a:not(.nav__cta) { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--violet-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2);
  transition: background-color .3s, border-color .3s;
}
.nav__cta:hover { background: var(--violet); border-color: var(--violet); }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: .4s var(--ease); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 99px; font-size: 15px; font-weight: 500;
  transition: background-color .3s, border-color .3s, box-shadow .4s, color .3s;
  will-change: transform;
}
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .8); }
.btn--primary:hover { background: #7c4dff; box-shadow: 0 14px 60px -8px rgba(139, 92, 246, 1); }
.btn--ghost { border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--violet-2); background: rgba(139, 92, 246, .12); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn__icon { width: 30px; height: 30px; margin-left: -10px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.btn__icon svg { width: 14px; height: 14px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-in .line > span, .line.is-in > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .08s; }
.line:nth-child(3) > span { transition-delay: .16s; }

.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.1s var(--ease) .35s, opacity 1.1s var(--ease) .35s; }
.is-in .reveal-line > span { transform: none; opacity: 1; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--pad) 64px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.is-in .hero__video { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,11,.55) 0%, rgba(7,6,11,.15) 35%, rgba(7,6,11,.75) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,6,11,.7) 0%, transparent 60%);
}
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; left: -20vw; bottom: -35vw;
  background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 60%);
  filter: blur(40px); mix-blend-mode: screen; animation: float 12s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(12vw, -6vw) scale(1.15); } }

.hero__eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 28px; }
.hero__eyebrow > span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(7,6,11,.35); backdrop-filter: blur(10px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(46px, 9.4vw, 150px); line-height: .92; letter-spacing: -.045em;
}
.hero__title em { font-weight: 800; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero__sub { color: var(--muted); max-width: 420px; font-size: 16px; }
.hero__sub [data-bind="nombre"] { color: var(--text); font-weight: 500; }
.hero__actions > span { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll { position: absolute; right: var(--pad); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 70px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--violet-2); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -.02em; white-space: nowrap; }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .55); }
.marquee__star { color: var(--violet); font-size: .6em; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Showreel (crece con el scroll)
   -------------------------------------------------------------------------- */
.reel { position: relative; height: 220vh; }
.reel__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
/* El showreel es vertical (9:16): el marco crece y gira hasta quedar derecho */
.reel__frame {
  --p: 0;
  position: relative; z-index: 1; overflow: hidden;
  height: calc(56vh + 32vh * var(--p));
  aspect-ratio: 9 / 16;
  border-radius: calc(32px - 14px * var(--p));
  transform: rotate(calc(-6deg + 6deg * var(--p)));
  box-shadow: 0 30px 120px -20px rgba(139, 92, 246, .55), 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.reel__frame video { width: 100%; height: 100%; object-fit: cover; }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,6,11,.7), transparent 35%); }
.reel__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: clamp(16px, 2vw, 28px); font-family: var(--f-display); text-transform: uppercase; }
.reel__label span { font-size: clamp(22px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: .9; }
.reel__label strong { font-weight: 600; font-size: clamp(11px, 1vw, 14px); color: var(--violet-3); white-space: nowrap; }
.reel__bigword {
  --p: 0;
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad); pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(60px, 15vw, 260px); letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .35);
}
.reel__bigword span:first-child { transform: translateX(calc(30% - 30% * var(--p))); }
.reel__bigword span:last-child { transform: translateX(calc(-30% + 30% * var(--p))); }

/* --------------------------------------------------------------------------
   Encabezados de sección
   -------------------------------------------------------------------------- */
section { position: relative; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }
.section-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 7vw, 110px); line-height: .95; letter-spacing: -.045em; }
.section-title .count { font-size: .3em; vertical-align: top; color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Trabajos
   -------------------------------------------------------------------------- */
.work { padding: 140px var(--pad) 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted); transition: .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--violet-2); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter sup { font-size: 10px; margin-left: 4px; opacity: .6; }

.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.2vw, 32px); row-gap: clamp(36px, 5vw, 72px); }
.card { grid-column: span 6; cursor: pointer; }
.card--wide { grid-column: span 7; }
.card--narrow { grid-column: span 5; }
.card--narrow { margin-top: clamp(0px, 8vw, 120px); }
.card--full { grid-column: 1 / -1; }
.card--full .card__media { aspect-ratio: 21 / 9; }
.card.is-hiding { opacity: 0; transform: scale(.96); }

.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--surface);
  transform: translateZ(0);
}
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,6,11,.55), transparent 40%);
}
.card__veil { position: absolute; inset: 0; z-index: 1; background: var(--violet); mix-blend-mode: color; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.card:hover .card__veil { opacity: .18; }
.card__tag {
  position: absolute; z-index: 2; top: 18px; left: 18px;
  padding: 6px 12px; border-radius: 99px; font-size: 12px; letter-spacing: .04em;
  background: rgba(7,6,11,.55); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
}
.card__num { position: absolute; z-index: 2; bottom: 14px; right: 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }

.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; transition: color .3s; }
.card:hover .card__title { color: var(--violet-3); }
.card__meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.card__year { font-size: 14px; color: var(--muted); white-space: nowrap; }
.card__arrow { display: inline-block; transition: transform .4s var(--ease); }
.card:hover .card__arrow { transform: translate(4px, -4px) rotate(0deg); }

.card--half { grid-column: span 6; }
.card--offset { margin-top: clamp(0px, 8vw, 120px); }
.card--solo { cursor: pointer; }

/* --------------------------------------------------------------------------
   Abanico (videos verticales y fotos)
   -------------------------------------------------------------------------- */
.fan {
  --card-w: 200px; --ratio: 9 / 16; --top: 56px;
  --sx: 10px; --sr: .6deg; --sy: 0px; --nudge: 46px;
  position: relative; height: calc(var(--card-w) * 16 / 9 + var(--top) + 60px);
}
.fan.is-open { --sx: var(--spread); --sr: var(--rot); --sy: var(--drop); }
.fan--video { --card-w: clamp(150px, 14vw, 205px); }
.fan--big { --card-w: clamp(170px, 16.5vw, 250px); height: calc(var(--card-w) * 16 / 9 + var(--top) + 80px); }
.fan--photo { --card-w: clamp(150px, 15vw, 230px); --ratio: 1 / 1; --nudge: 60px; height: calc(var(--card-w) + var(--top) + 100px); }

.fan__item {
  position: absolute; left: 50%; top: var(--top); width: var(--card-w); margin-left: calc(var(--card-w) / -2);
  z-index: var(--z); cursor: pointer; transform-origin: 50% 100%;
  transform:
    translateX(calc(var(--o) * var(--sx) + var(--push, 0px)))
    translateY(calc(var(--o2) * var(--sy) - var(--lift, 0px)))
    rotate(calc(var(--o) * var(--sr) * var(--straight, 1)))
    scale(var(--sc, 1));
  transition: transform 1.1s var(--ease) calc(var(--i) * 45ms);
}
.fan.is-settled .fan__item { transition: transform .55s var(--ease); }
.fan__item.is-hot { --lift: 38px; --straight: 0; --sc: 1.07; z-index: 40; }

.fan__card {
  position: relative; aspect-ratio: var(--ratio); border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2);
  transition: box-shadow .5s var(--ease);
}
.fan--photo .fan__card { border-radius: 10px; }
.fan__item.is-hot .fan__card { box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--violet-2), 0 0 60px rgba(139, 92, 246, .45); }
.fan__card img, .fan__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.fan__card video { opacity: 0; }
.fan__item.is-playing .fan__card video { opacity: 1; }
.fan__card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(7,6,11,.85), transparent 45%); }
.fan--photo .fan__card::after { background: linear-gradient(0deg, rgba(7,6,11,.25), transparent 40%); }
.fan__caption { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 2px; }
.fan__caption span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-3); }
.fan__caption strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.15; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   Inmobiliaria
   -------------------------------------------------------------------------- */
.inmo { position: relative; padding: 140px var(--pad) 120px; overflow-x: clip; }
.inmo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 80% 10%, rgba(139, 92, 246, .12), transparent 70%),
              radial-gradient(50% 30% at 10% 70%, rgba(217, 70, 239, .08), transparent 70%);
}
.inmo__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: 80px; }
.inmo__head .kicker { margin-bottom: 14px; }
.inmo__bajada { margin-top: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.inmo__texto { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; max-width: 520px; color: #d7d2e4; }
.inmo__row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 4vw, 70px); align-items: start; margin-bottom: 110px; }
.inmo__fotos { margin-bottom: 110px; }
.block-label { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.block-label::before { content: ""; width: 28px; height: 1px; background: var(--violet-2); }
.hint { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--violet-2); opacity: .75; }

/* Polaroids */
.bts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 40px); padding: 10px 0 20px; }
.polaroid {
  background: #f2eee6; padding: 10px 10px 42px; border-radius: 4px; cursor: pointer;
  transform: rotate(var(--r)); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.polaroid:hover { transform: rotate(0deg) translateY(-10px) scale(1.04); box-shadow: 0 36px 60px -18px rgba(0, 0, 0, .9), 0 0 50px rgba(139, 92, 246, .35); }
.bts.is-in .polaroid { animation: drop .9s var(--ease) both; }
.bts.is-in .polaroid:nth-child(2) { animation-delay: .1s; }
.bts.is-in .polaroid:nth-child(3) { animation-delay: .2s; }
.bts.is-in .polaroid:nth-child(4) { animation-delay: .3s; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -3)); } }

/* --------------------------------------------------------------------------
   Reels
   -------------------------------------------------------------------------- */
.reels { padding: 120px var(--pad) 120px; overflow-x: clip; }
.section-head--center { align-items: center; text-align: center; margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 var(--pad); }
.stat { padding: 44px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -.04em; }
.stat__value sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* --------------------------------------------------------------------------
   Sobre mí
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); padding: 160px var(--pad); align-items: center; }
.about__media { position: relative; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 70, 239, .5), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(139, 92, 246, .7), transparent 60%),
    var(--surface);
  display: grid; place-items: center; align-content: center; gap: 8px;
}
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__initials { font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 12vw, 180px); letter-spacing: -.06em; opacity: .9; }
.about__photo small { color: rgba(255,255,255,.6); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
.about__polaroid { position: absolute; z-index: 2; left: -12%; bottom: 12%; width: 40%; background: #f2eee6; padding: 8px 8px 30px; border-radius: 4px; transform: rotate(-8deg); box-shadow: 0 24px 40px -14px rgba(0,0,0,.85); transition: transform .6s var(--ease); }
.about__polaroid:hover { transform: rotate(-2deg) scale(1.05); }
.about__polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.about__badge { position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; display: grid; place-items: center; }
.about__badge-text { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.about__badge-text text { fill: var(--text); font-size: 14px; font-weight: 600; font-family: var(--f-body); }
.about__badge-star { width: 64px; height: 64px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; font-size: 26px; box-shadow: var(--glow); }
@keyframes spin { to { transform: rotate(360deg); } }

.about__text .kicker { margin-bottom: 26px; }
.about__bio { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.9vw, 44px); line-height: 1.2; letter-spacing: -.025em; }
.about__bio .w { opacity: .14; transition: opacity .3s linear; }
.about__bio .w.on { opacity: 1; }
.about__meta { margin-top: 34px; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.services { padding: 60px var(--pad) 160px; }
.services__list { list-style: none; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(217, 70, 239, .08));
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service__num { font-size: 14px; color: var(--violet-2); padding-left: 8px; font-variant-numeric: tabular-nums; }
.service__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 50px); letter-spacing: -.035em; line-height: 1.05; transition: transform .6s var(--ease); }
.service:hover .service__title { transform: translateX(14px); }
.service__text { color: var(--muted); font-size: 15px; max-width: 440px; }
.service__arrow { font-size: 22px; color: var(--violet-2); transform: rotate(-45deg); transition: transform .5s var(--ease); }
.service:hover .service__arrow { transform: rotate(0); }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { padding: 160px var(--pad) 120px; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__glow { position: absolute; left: 50%; top: 55%; width: 90vw; height: 60vw; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(139, 92, 246, .35), transparent 60%); filter: blur(60px); z-index: -1; }
.contact .kicker { margin-bottom: 28px; }
.contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 9vw, 150px); line-height: .92; letter-spacing: -.05em; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 56px; }
.contact__mail {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3vw, 40px); letter-spacing: -.02em;
  position: relative; padding-bottom: 6px;
}
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(.3); transition: transform .6s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
.contact__socials a { display: inline-block; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--muted); transition: .3s; }
.contact__socials a:hover { color: var(--text); border-color: var(--violet-2); background: rgba(139, 92, 246, .12); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__note { font-size: 12px; opacity: .7; }
.footer a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--pad); visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7, 6, 11, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel { position: relative; width: min(1200px, 100%, 70vh * 16 / 9);max-height: 100%; overflow: auto; opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 0; right: 0; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(7,6,11,.6); border: 1px solid var(--line-2); font-size: 16px; transition: .3s; margin: 12px; }
.modal__close:hover { background: var(--violet); border-color: var(--violet); transform: rotate(90deg); }
.modal__player { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--glow); }
.modal__player video, .modal__player iframe { width: 100%; height: 100%; border: 0; }
.modal__player { position: relative; }
.modal__mute { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 99px; font-size: 12px; background: rgba(7,6,11,.6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); pointer-events: none; }
/* Vídeo vertical en el modal */
.modal.is-vertical .modal__panel { width: min(100%, calc(84vh * 9 / 16)); }
.modal.is-vertical .modal__player { aspect-ratio: 9 / 16; }
.modal.is-vertical .modal__info { grid-template-columns: 1fr; padding-top: 18px; }
@media (min-width: 901px) {
  .modal.is-vertical .modal__panel { width: min(100%, calc(84vh * 9 / 16 + 400px)); display: grid; grid-template-columns: calc(84vh * 9 / 16) 1fr; gap: 40px; align-items: end; overflow: visible; }
  .modal.is-vertical .modal__player { height: 84vh; }
  .modal.is-vertical .modal__info { padding: 0 0 12px; align-content: end; }
  .modal.is-vertical .modal__facts { grid-template-columns: 1fr 1fr; }
  .modal.is-vertical .modal__close { position: fixed; top: 24px; right: 24px; }
}
.modal__panel { scrollbar-width: none; }
.modal__panel::-webkit-scrollbar { display: none; }
.modal.is-image .modal__panel { width: min(100%, 78vh); }
.modal.is-image .modal__player { aspect-ratio: auto; background: transparent; box-shadow: none; position: relative; overflow: visible; }
.modal.is-image .modal__player img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.modal.is-image .modal__info { grid-template-columns: 1fr; padding-top: 14px; }
.modal__caption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.modal__caption strong { color: var(--text); font-weight: 500; }
.modal__nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; background: rgba(7,6,11,.65); border: 1px solid var(--line-2); font-size: 18px; transition: .3s; }
.modal__nav:hover { background: var(--violet); border-color: var(--violet); }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__info { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 28px 4px 8px; }
.modal__info h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1.05; }
.modal__info p { color: var(--muted); margin-top: 10px; }
.modal__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; font-size: 14px; align-content: start; }
.modal__facts dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.modal__facts dd { margin-top: 2px; }
.modal__credits { grid-column: 1 / -1; font-size: 12px; color: var(--muted); opacity: .7; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) { .hero__scroll { display: none; } }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(7, 6, 11, .96); backdrop-filter: blur(20px);
    font-family: var(--f-display); font-size: 34px; font-weight: 700;
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-in-out);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav__links a:not(.nav__cta) { color: var(--text); }
  .nav__cta { font-size: 20px; padding: 14px 30px; }

  .hero__scroll { display: none; }
  .card, .card--wide, .card--narrow, .card--half { grid-column: 1 / -1; margin-top: 0; }
  .inmo__head, .inmo__row { grid-template-columns: 1fr; }
  .inmo__row, .inmo__fotos { margin-bottom: 64px; }
  .inmo__head { margin-bottom: 56px; }
  .hint { display: none; }
  .bts { grid-template-columns: repeat(2, 1fr); }
  .about__polaroid { left: auto; right: -6%; top: -6%; bottom: auto; width: 36%; transform: rotate(7deg); }
  /* abanico -> carrusel horizontal */
  .fan, .fan--big, .fan--photo {
    height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 24px var(--pad) 36px; scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan__item, .fan.is-settled .fan__item {
    position: relative; left: auto; top: auto; margin: 0; flex: 0 0 auto; scroll-snap-align: center;
    width: 58vw; max-width: 260px; transform: rotate(calc(var(--alt) * 1.2deg)); transition: transform .5s var(--ease);
  }
  .fan--photo .fan__item { width: 66vw; max-width: 300px; }
  .card--full .card__media { aspect-ratio: 16 / 10; }
  .reel { height: 170vh; }
  .reel__frame { height: calc(58vh + 20vh * var(--p)); max-width: 86vw; }
  .reel__bigword { flex-direction: column; justify-content: center; gap: 46vh; font-size: 22vw; }
  .reel__bigword span:first-child, .reel__bigword span:last-child { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(3):last-child { grid-column: 1 / -1; }
  .about { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 110px; }
  .about__media { max-width: 420px; }
  .about__badge { right: -16px; bottom: -30px; width: 120px; height: 120px; }
  .service { grid-template-columns: 44px 1fr 30px; }
  .service__text { grid-column: 2 / 3; }
  .modal__info { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 48px; }
  .stat { padding: 28px 12px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
