/* =========================================================================
   msantini.com — sistema visual
   Base oscura #020817 + un solo acento índigo. Display: Urbanist (geométrica,
   fina), cuerpo: Satoshi, etiquetas y cifras: Geist Mono.
   ========================================================================= */

:root {
  --bg: #020817;
  --bg-2: #050c1f;
  --bg-3: #0a1229;
  --surface: rgba(226, 232, 240, .035);
  --line: rgba(226, 232, 240, .09);
  --line-2: rgba(226, 232, 240, .18);
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #7c8aa5;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-3: #4f46e5;
  --accent-ink: #c7d2fe;
  --glow: rgba(99, 102, 241, .28);

  --f-display: 'Urbanist', 'Satoshi', system-ui, sans-serif;
  --f-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --nav-h: 84px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-io); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #1e293b var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--f-body); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: #4f46e5; color: #fff; border-radius: 8px; }
.skip:focus { top: 16px; }

/* --- Grano global: rompe el "degradé CSS plano" ------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .07;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Tipografía (Urbanist títulos · Satoshi cuerpo · Geist Mono etiquetas) ---------------------------------------------------------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; margin: 0; text-wrap: balance; }
.display strong, h2 strong, h1 strong { font-weight: 500; }
.display em, h2 em { font-style: normal; color: var(--accent-2); }
.h-xl { font-size: clamp(40px, 6.4vw, 104px); }
.h-lg { font-size: clamp(34px, 4.6vw, 72px); }
.h-md { font-size: clamp(26px, 2.8vw, 42px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.mono { font-family: var(--f-mono); }
p { margin: 0; text-wrap: pretty; }

.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > span { display: block; }

/* --- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 14vw, 200px) clamp(110px, 15vw, 220px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lead { justify-self: end; }

/* --- Botones ------------------------------------------------------------- */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--text); color: var(--bg); box-shadow: 0 18px 40px -18px rgba(99, 102, 241, .7); }
.btn--solid::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #4f46e5; transform: translateY(101%); transition: transform .3s var(--ease); }
.btn--solid:hover { color: #fff; }
.btn--solid:hover::before { transform: none; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-ink); }
.btn .arr { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

.link-u { position: relative; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .25s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }
.link-u .arr { width: 13px; height: 13px; color: var(--accent-2); transition: transform .2s var(--ease); }
.link-u:hover .arr { transform: translate(2px, -2px); }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =========================================================================
   NAVEGACIÓN
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 600; height: var(--nav-h);
  transition: transform .6s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(2, 8, 23, .62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--f-mono); letter-spacing: .2em; color: var(--text); }
.nav__logo .ms-mark { width: 30px; height: 30px; flex: none; color: var(--text); transition: transform .25s var(--ease); }
.nav__logo .ms-out { opacity: 0; }
@media (max-width: 520px) { .nav__logo span { display: none; } }
.nav__sep { width: 1px; height: 14px; background: var(--line-2); }
.nav__circle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font: 500 11px/1 var(--f-mono); letter-spacing: .08em;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.nav__circle:hover { border-color: var(--accent-2); background: rgba(99, 102, 241, .12); }
.nav__links { display: flex; gap: 34px; margin-inline: auto; }
.nav__links a { position: relative; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); transition: color .3s; padding-block: 8px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); transform: scale(.5); opacity: 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav__links a.is-active::after { transform: scale(1); opacity: 1; }
.nav__talk { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
.nav__talk.is-active { color: var(--accent-ink); }
@media (min-width: 1101px) { .nav .nav__burger, .nav__in > .nav__sep:last-of-type { display: none; } }
.nav__burger { width: 64px; height: 44px; display: grid; align-content: center; gap: 9px; justify-items: end; }
.nav__burger span { display: block; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.nav__burger span:nth-child(1) { width: 46px; transform: translateX(-12px); }
.nav__burger span:nth-child(2) { width: 46px; }
.nav__burger:hover span:nth-child(1) { transform: none; }
.nav__burger:hover span:nth-child(2) { transform: translateX(-12px); }
.nav.menu-open .nav__burger span:nth-child(1) { width: 32px; transform: translateY(5.25px) rotate(45deg); }
.nav.menu-open .nav__burger span:nth-child(2) { width: 32px; transform: translateY(-5.25px) rotate(-45deg); }

/* Menú a pantalla completa */
.menu { position: fixed; inset: 0; z-index: 590; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: var(--bg-2); clip-path: inset(0 0 100% 0); }
.menu__bg::after { content: ''; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; bottom: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .35), transparent); filter: blur(10px); }
.menu__in { position: relative; height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(32px, 6vh, 72px); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 22px; font: 300 clamp(40px, 7.4vw, 112px)/1.08 var(--f-display); letter-spacing: -.04em; transition: color .3s, transform .5s var(--ease); }
.menu__list a small { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--accent-2); }
.menu__list a:hover { color: var(--accent-ink); transform: translateX(14px); }
.menu__side { display: grid; gap: 28px; justify-items: start; padding-bottom: 14px; }
.menu__side .eyebrow { margin-bottom: 4px; }
.menu__side a { font-size: 18px; color: var(--text-2); }
.menu__side a:hover { color: var(--text); }

/* =========================================================================
   LOADER
   ========================================================================= */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; background: var(--bg); }
.loader__center { display: grid; justify-items: center; gap: clamp(26px, 4vh, 40px); }
.loader__logo { width: clamp(110px, 14vw, 170px); overflow: visible; }
.loader__logo .p { transform-box: fill-box; }
.ld-guides line { stroke: rgba(129, 140, 248, .35); stroke-width: .4; stroke-dasharray: 2 2; }
.ld-anchors circle { fill: #a5b4fc; }
.ld-sel rect { fill: none; stroke: #818cf8; stroke-width: .6; }
.ld-sel .h { fill: var(--bg); stroke: #a5b4fc; }
.loader__mark { font: 500 clamp(12px, 1vw, 14px)/1 var(--f-mono); letter-spacing: .32em; text-transform: uppercase; overflow: hidden; }
.loader__mark span { display: inline-block; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--line); }
.loader__bar i { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); }
.loader__num { position: absolute; right: var(--gutter); bottom: 64px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--text-2); }
.loader.is-done { pointer-events: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 60% at 80% 45%, rgba(99, 102, 241, .12), transparent 70%); }
.heroA { display: grid; }
.hero__in { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 72px)); }
.hero__claim { font: 400 clamp(44px, 6vw, 100px)/.98 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.hero__claim .mask > span { will-change: transform; }
.hero__sub { margin-top: clamp(22px, 3vh, 32px); max-width: 46ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(26px, 4vh, 40px); }
/* firma: el nombre fijo y el rol que se escribe y se borra */
.hero__sign { margin-top: clamp(22px, 3.4vh, 34px); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); min-height: 1.4em; }
.hero__sign b { font-weight: 500; color: var(--text); }
.tw { color: var(--accent-ink); }
.tw__caret { font-style: normal; font-weight: 500; color: var(--accent-2); margin-left: 1px; }
.tw__caret.is-blink { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* indicador de scroll, centrado abajo */
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: clamp(18px, 3vh, 32px); translate: -50% 0; display: grid; justify-items: center; gap: 12px; padding: 6px 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); transition: color .2s; }
.hero__scroll:hover { color: var(--text); }
.hero__scroll i { position: relative; display: block; width: 1px; height: 52px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--accent-ink)); animation: drip 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }

/* A · muro: tus tiendas subiendo en columnas a distinta velocidad */
.heroA { min-height: 100svh; grid-template-columns: minmax(0, 1.12fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(40px, 8vh, 80px); }
.heroA__copy { position: relative; z-index: 2; }
.wall { position: relative; align-self: stretch; margin: calc(-1 * (var(--nav-h) + 72px)) calc(-1 * var(--gutter)) calc(-1 * clamp(40px, 8vh, 80px)) 0;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 14%);
  -webkit-mask-composite: source-in; mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent) intersect, linear-gradient(90deg, transparent, #000 14%); }
.wall__tilt { position: absolute; inset: -14% -8% -14% 4%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; transform: rotate(-7deg); }
.wall__col { overflow: hidden; }
.wall__track { display: grid; gap: 18px; animation: wallUp var(--dur) linear infinite; }
.wall__track.is-down { animation-name: wallDown; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wallDown { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.wall__card { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-3); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); }
.wall__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wall__card span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 11px; border-radius: 9px; background: rgba(2, 8, 23, .82); font: 500 13px/1 var(--f-display); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.wall__card span i { font-style: normal; font-size: 12px; color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .wall__col:hover .wall__track { animation-play-state: paused; }
  .wall__card:hover span { opacity: 1; transform: none; }
}

@keyframes drip { to { top: 100%; } }


/* =========================================================================
   INTRO / SOBRE MÍ
   ========================================================================= */
.intro { text-align: center; z-index: 2; }
.intro__glow { position: absolute; left: 50%; top: 0; width: min(90vw, 1100px); aspect-ratio: 2/1; translate: -50% -20%; pointer-events: none; background: radial-gradient(closest-side, rgba(99, 102, 241, .22), transparent 70%); filter: blur(20px); }
.intro__title { margin: 22px auto 0; max-width: 22ch; }
.intro__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 9vw, 130px); text-align: left; }
/* retrato: la foto real de fondo y la silueta recortada encima, alineadas al principio;
   con el scroll el fondo se oscurece y se desenfoca y la silueta crece hasta salir del marco */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.portrait__frame { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); }
.portrait__bg, .portrait__cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; max-width: none; }
.portrait__bg { transform-origin: 50% 40%; will-change: transform, filter; }
.portrait__cutwrap { position: absolute; inset: 0; pointer-events: none; clip-path: inset(-40% 0 0 0 round 0 0 var(--r-lg) var(--r-lg)); }
.portrait__cut { transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 24px 40px rgba(2, 8, 23, .55)); }
.intro__body .lead { color: var(--text); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.stat { padding: 22px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 300 clamp(28px, 2.6vw, 42px)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 10px; }
.stat span { font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }

/* =========================================================================
   PROYECTOS
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.filter { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); transition: color .3s, border-color .3s, background-color .3s; }
.filter:hover { color: var(--text); border-color: var(--text-2); }
.filter[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.filter sup { margin-left: 6px; font-size: 10px; color: inherit; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(18px, 2vw, 32px); }
.card { position: relative; display: block; }
.card.is-hidden { display: none; }
/* paginación del portfolio */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(44px, 5vw, 72px); }
.pager[hidden] { display: none; }
.pager__btn { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 12px/1 var(--f-mono); letter-spacing: .1em; transition: color .2s, border-color .2s, background-color .2s; }
.pager__btn:hover:not(:disabled) { color: var(--text); border-color: var(--accent-2); }
.pager__btn[aria-current="page"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.pager__btn:disabled { opacity: .35; cursor: default; }
.pager__arrow { font-size: 15px; }
.card__media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-3); }
.card__media > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 8, 23, .55)); opacity: .7; transition: opacity .25s var(--ease); }
.card:hover .card__media::after { opacity: 0; }
/* preview: barra de carga y después la página completa recorrida de arriba a abajo */
.card__preview { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; background: #fff; }
.card__preview img { display: block; width: 100%; height: auto; will-change: transform; }
.card__preview video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #000; }
/* proyectos presentados en móvil: el recorrido pasa dentro del teléfono central de la portada */
.card--m .card__preview { inset: 7% auto auto 50%; width: 24.82%; height: 86%; translate: -50% 0; border-radius: 11.6% / 5.35%; }
.card__load { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 56px 18px 18px; background: linear-gradient(180deg, transparent, rgba(2, 8, 23, .82)); opacity: 0; pointer-events: none; }
.card__load span { font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(2, 8, 23, .9); }
.card__load b { font-weight: 500; color: var(--accent-ink); }
.card__load i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__load i::after { content: ''; display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); box-shadow: 0 0 12px var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.card__meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; }
.card__tags { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.card h3 { font-size: clamp(21px, 1.7vw, 27px); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 12px; }
.card h3 .arr { width: 16px; height: 16px; color: var(--accent-2); transition: transform .2s var(--ease); }
.card:hover h3 .arr { transform: translate(3px, -3px); }
.card__desc { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 700; pointer-events: none; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: rgba(79, 70, 229, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff;
  font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: 0;
  box-shadow: 0 20px 50px -10px rgba(99, 102, 241, .8);
}

/* =========================================================================
   SERVICIOS — esfera esmerilada con los servicios alrededor (como arkkhe.com)
   ========================================================================= */
.svcx { overflow: hidden; }
.svcx__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; position: relative; z-index: 3; }
.svcx__sub { justify-self: end; max-width: 34ch; font: 400 clamp(18px, 1.5vw, 23px)/1.55 var(--f-display); color: var(--text-3); padding-top: 34px; }
.svcx__sub strong { color: var(--text); font-weight: 600; }
.svcx__stage { position: relative; height: clamp(560px, 78vh, 820px); max-width: 1180px; margin: clamp(-60px, -4vw, -20px) auto 0; }
.svcx__orb { position: absolute; inset: -6% -12%; z-index: 0; pointer-events: none; }
.svcx__orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; left: 50%; top: 50%; width: min(50vh, 460px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e0e7ff 0%, #a5b4fc 14%, #6366f1 42%, #312e81 72%, transparent 73%);
  box-shadow: 0 0 120px 30px rgba(99, 102, 241, .35);
}
.has-webgl .hero__fallback { display: none; }
.svcx__pills { z-index: 2; }
.svcx__pills { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.svcx__pills li { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 22px; border-radius: 999px; white-space: nowrap;
  font: 500 17px/1 var(--f-display); color: var(--text);
  background: linear-gradient(180deg, rgba(30, 41, 79, .62), rgba(15, 23, 51, .5));
  border: 1px solid rgba(129, 140, 248, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px -12px rgba(2, 8, 23, .9), 0 0 0 1px rgba(2, 8, 23, .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .25s, background-color .2s;
}
.pill svg { width: 19px; height: 19px; color: var(--accent-ink); flex: none; }
.pill:hover, .pill:focus-visible, .pill.is-on { border-color: var(--accent-2); transform: scale(1.06); background: linear-gradient(180deg, rgba(67, 56, 202, .55), rgba(30, 27, 75, .55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 30px -4px rgba(99, 102, 241, .65); }
/* la lista agrupada: se lee sin hover; las píldoras la iluminan */
.svcx__groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 36px); margin-top: clamp(40px, 5vw, 72px); }
.svcx__group h3 { font: 500 clamp(20px, 1.6vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.svcx__group ul { list-style: none; margin: 0; padding: 0; }
.svcx__group li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.svcx__group li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); }
.svcx__group b { display: block; font: 500 17px/1.3 var(--f-body); color: var(--text); transition: color .2s; }
.svcx__group p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.svcx__group li.is-on b { color: var(--accent-ink); }

.card__badge { position: absolute; z-index: 2; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(2, 8, 23, .72); border: 1px solid rgba(129, 140, 248, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.card__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.card__badge.is-live { border-color: rgba(134, 239, 172, .45); color: #bbf7d0; }
.card__badge.is-live::before { background: #4ade80; }
@keyframes pulse { 50% { opacity: .3; } }

/* =========================================================================
   DESARROLLO CON IA — laptop: los logos se dibujan y después se arma un CRM que se navega
   ========================================================================= */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai__copy .lead { margin-top: clamp(22px, 2.6vw, 32px); }
.ai__points { list-style: none; margin: clamp(26px, 3vw, 36px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.ai__points li { position: relative; padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; line-height: 1.5; }
.ai__points li::before { content: ''; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2); }
.ai__tools { margin: 24px 0 22px; color: var(--text); font-size: 15px; }
.ai__tools span { color: var(--text-3); }
.laptop { position: relative; width: 100%; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 16px 16px 6px 6px; border: 11px solid #151a35; border-bottom-width: 16px; background: #080c20; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.laptop__base { height: 16px; margin: 0 -7%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #2a3058, #12162e); }
.laptop__base::before { content: ''; display: block; width: 16%; height: 6px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #0b0f24; }
.ai__logos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 8% 4%; padding: 6% 9%; }
.ai__logo { display: grid; justify-items: center; gap: 10px; color: #e0e7ff; }
.ai__logo svg { width: clamp(30px, 4.4vw, 58px); height: auto; aspect-ratio: 1; overflow: visible; }
.ai__logo path { fill: currentColor; stroke: currentColor; stroke-width: var(--sw, .35); }
.ai__logo span { font: 500 clamp(10px, .9vw, 12px)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.crm { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; font-size: clamp(8px, .78vw, 11px); color: #c7d2fe; opacity: 0; }
.crm__side { display: grid; align-content: start; gap: 4px; padding: 10% 8%; background: #0d1230; border-right: 1px solid rgba(165, 180, 252, .12); }
.crm__brand { font-style: normal; font: 600 1.3em/1 var(--f-display); color: #fff; margin-bottom: 18%; }
.crm__nav { padding: 7% 9%; border-radius: 6px; color: #8b93c7; }
.crm__nav.is-on { background: rgba(99, 102, 241, .22); color: #fff; }
.crm__main { position: relative; padding: 4.5% 5%; }
.crm__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5%; }
.crm__search { width: 46%; padding: 1.4% 3%; border-radius: 6px; background: #121838; color: #9aa3d6; }
.crm__avatar { width: 7%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #4338ca); }
.crm__view { position: absolute; left: 5%; right: 5%; top: 22%; bottom: 6%; }
.crm__view--list { display: grid; align-content: start; gap: 6px; opacity: 0; }
.crm__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.crm__kpi { padding: 7% 8%; border-radius: 8px; background: #111735; border: 1px solid rgba(165, 180, 252, .1); }
.crm__kpi small { display: block; color: #8b93c7; margin-bottom: 8%; }
.crm__kpi b { font: 500 1.9em/1 var(--f-display); color: #fff; }
.crm__chart { margin-top: 5%; height: 52%; padding: 4% 4% 3%; border-radius: 8px; background: #111735; border: 1px solid rgba(165, 180, 252, .1); display: grid; grid-template-rows: auto 1fr; }
.crm__chart small { color: #8b93c7; }
.crm__bars { display: flex; align-items: flex-end; gap: 5%; padding-top: 4%; }
.crm__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #818cf8, #4338ca); transform-origin: bottom; }
.crm__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 3.2% 4%; border-radius: 8px; background: #111735; border: 1px solid rgba(165, 180, 252, .1); transition: background-color .2s, border-color .2s; }
.crm__row.is-on { background: rgba(99, 102, 241, .2); border-color: rgba(129, 140, 248, .5); }
.crm__row b { font-weight: 500; color: #fff; }
.crm__dot { width: 1.6em; aspect-ratio: 1; border-radius: 50%; background: #2a3168; }
.crm__tag { padding: .35em .8em; border-radius: 999px; background: #1e254d; color: #a5b4fc; }
.crm__tag--1 { background: rgba(34, 197, 94, .16); color: #86efac; }
.ai__cursor { position: absolute; left: 0; top: 0; width: 16px; height: 16px; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1l11 6.5-5 1.2-2.3 4.8z' fill='%23fff' stroke='%23080c20' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain; }
/* sin movimiento: el CRM terminado */
.reduced .ai__logos { display: none; }
.reduced .crm { opacity: 1; }

/* =========================================================================
   PREGUNTAS FRECUENTES — respuestas cortas y factuales (también las leen los asistentes de IA)
   ========================================================================= */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid > h2 { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font: 400 clamp(19px, 1.6vw, 24px)/1.3 var(--f-display); letter-spacing: -.02em; }
.faq__item summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq__item summary i::before, .faq__item summary i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: var(--accent-ink); transition: transform .2s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item summary:hover h3 { color: var(--accent-ink); }
.faq__item p { padding: 0 0 26px; max-width: 62ch; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }

/* =========================================================================
   TESTIMONIOS
   ========================================================================= */
.quotes { position: relative; overflow: hidden; }
.quotes__panel { position: relative; border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px); padding: clamp(32px, 6vw, 88px); background: radial-gradient(80% 120% at 100% 0%, rgba(99, 102, 241, .14), transparent 60%), var(--surface); }
.quotes__mark { position: absolute; right: clamp(24px, 5vw, 72px); top: clamp(10px, 3vw, 30px); font: 200 clamp(120px, 16vw, 260px)/1 var(--f-display); color: rgba(129, 140, 248, .12); pointer-events: none; }
.quotes__stage { display: grid; min-height: 12em; }
.quote { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.quote.is-active { visibility: visible; }
.quote blockquote { margin: 0; font: 300 clamp(20px, 2.15vw, 34px)/1.42 var(--f-display); letter-spacing: -.025em; max-width: 46ch; text-wrap: pretty; }
.quotes__people { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px; margin-top: clamp(36px, 5vw, 64px); padding: 28px 0 14px; border-top: 1px solid var(--line);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.quotes__people .person { scroll-snap-align: start; min-width: 0; }
.person { display: flex; align-items: center; gap: 14px; text-align: left; opacity: .45; transition: opacity .4s; }
.person:hover, .person[aria-selected="true"] { opacity: 1; }
.person img, .person__init { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .4s; flex: none; }
.person__init { display: grid; place-items: center; font: 500 16px/1 var(--f-display); font-style: normal; color: var(--accent-ink); background: #1e1b4b; }
.person[aria-selected="true"] .person__init { filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.person[aria-selected="true"] img { filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.person b { display: block; font: 500 15px/1.2 var(--f-body); }
.person span { font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.person__bar { display: block; height: 1px; margin-top: 8px; background: var(--line-2); overflow: hidden; }
.person__bar i { display: block; height: 100%; background: var(--accent-2); transform-origin: left; transform: scaleX(0); }

/* =========================================================================
   CONTACTO + FOOTER
   ========================================================================= */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__panel { position: relative; overflow: hidden; border-radius: calc(var(--r-lg) + 8px); padding: clamp(36px, 7vw, 110px) clamp(24px, 6vw, 96px); background: linear-gradient(160deg, #0d1534 0%, #070e26 60%); border: 1px solid var(--line); isolation: isolate; }
.contact__panel::before { content: ''; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; right: -30%; top: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .45), transparent); filter: blur(30px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(36px, 6vw, 100px); align-items: end; }
.contact h2 { margin: 22px 0 26px; }
.contact__links { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.contact__links a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); transition: transform .25s var(--ease), color .2s; }
.contact__links a:hover { transform: translateX(10px); color: var(--accent-ink); }
.contact__links small { grid-column: 1; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.contact__links span { grid-column: 1; font: 300 clamp(15px, 1.3vw, 21px)/1.25 var(--f-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.contact__links .arr { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--accent-2); transition: transform .2s var(--ease); }
.contact__links a:hover .arr { transform: translate(3px, -3px); }

.footer { border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 26px 30px; }
.footer__mail { display: inline-flex; align-items: center; gap: 10px; font: 400 17px/1.2 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.footer__mail .arr { width: 14px; height: 14px; color: var(--accent-2); flex: none; transition: transform .35s var(--ease); }
.footer__mail:hover .arr { transform: translate(2px, -2px); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.to-top { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.to-top i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s, transform .2s var(--ease); }
.to-top:hover { color: var(--text); }
.to-top:hover i { border-color: var(--accent-2); transform: translateY(-3px); }
.to-top svg { width: 12px; height: 12px; }

/* =========================================================================
   DETALLE DE PROYECTO (estructura de arkkhe.com/tower-garage-doors)
   ========================================================================= */
.page-top { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }
.back { display: flex; width: fit-content; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: clamp(28px, 4vw, 48px); transition: color .3s; }
.back:hover { color: var(--text); }
.back svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.back:hover svg { transform: translateX(-4px); }

.dp-hero { text-align: center; }
.dp-hero .back { margin-inline: auto; }
.dp-title { font: 500 clamp(52px, 9.6vw, 176px)/.92 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; }
.dp-chips { justify-content: center; margin-top: clamp(24px, 3vw, 36px); }

.dp-cover-wrap { margin-top: clamp(40px, 5vw, 64px); }
.dp-cover { margin: 0; border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden; aspect-ratio: 16/9; background: var(--bg-3); }
.dp-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.dp-overview { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.dp-overview h2 { font: 500 clamp(18px, 1.5vw, 22px)/1.2 var(--f-display); letter-spacing: .01em; margin-bottom: 18px; }
.dp-overview__text { font: 300 clamp(20px, 1.9vw, 28px)/1.45 var(--f-display); letter-spacing: -.01em; color: var(--text-2); max-width: 64ch; }
.dp-meta { display: flex; flex-wrap: wrap; gap: 12px 56px; margin: 30px 0 0; }
.dp-meta > div { display: flex; align-items: center; gap: 8px; }
.dp-meta dt { font: 500 17px/1 var(--f-display); color: var(--text); }
.dp-meta dd { margin: 0; color: var(--text-2); font-size: 17px; }
.dp-meta .link-u { color: var(--accent-ink); }

.dp-process { position: relative; padding-top: clamp(40px, 6vw, 80px); text-align: center; }
.dp-line { display: block; width: 1px; height: clamp(90px, 14vw, 200px); margin: 0 auto clamp(24px, 4vw, 56px); background: linear-gradient(var(--line-2), var(--accent-2)); transform-origin: top; }
.dp-giant { font: 500 clamp(64px, 12.6vw, 220px)/.95 var(--f-display); letter-spacing: -.04em; color: var(--text); padding-bottom: .06em; }
.dp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(24px, 3vw, 48px); text-align: left; }
.dp-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 24px 24px 30px; min-height: 280px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(226, 232, 240, .05), rgba(226, 232, 240, .015)); border: 1px solid var(--line); }
.dp-card::before { content: ''; position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; left: 10%; top: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, .32), transparent); filter: blur(18px); transition: transform .9s var(--ease), opacity .6s; opacity: .8; }
.dp-card:hover::before { transform: translate(-8%, -10%) scale(1.15); opacity: 1; }
.dp-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.dp-card__ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent-ink); }
.dp-card__ico svg { width: 17px; height: 17px; }
.dp-card__n { font: 500 12px/1 var(--f-mono); color: var(--text-2); letter-spacing: .08em; }
.dp-card__v { display: block; font: 300 clamp(40px, 3.8vw, 64px)/1 var(--f-display); letter-spacing: -.04em; margin: 40px 0 14px; }
.dp-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.45; }

.dp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px clamp(36px, 6vw, 100px); align-items: start; }
.dp-split--head { align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.dp-split--head p { justify-self: end; }
.dp-concepts { padding-top: clamp(110px, 14vw, 200px); overflow: hidden; }
.dp-text { padding-block: clamp(90px, 11vw, 160px); }
.dp-text p { font: 300 clamp(19px, 1.7vw, 25px)/1.5 var(--f-display); color: var(--text-2); max-width: 46ch; }

.marquee { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.marquee__row { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; }
.shot { margin: 0; flex: none; width: clamp(240px, 30vw, 520px); aspect-ratio: 16/9.6; border-radius: clamp(10px, 1vw, 16px); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dp-mosaic { overflow: hidden; padding-block: clamp(30px, 5vw, 70px); }
.dp-mosaic__in { display: grid; gap: clamp(12px, 1.4vw, 20px); transform: rotate(-7deg) scale(1.12); }
.dp-mosaic .shot { width: clamp(200px, 22vw, 380px); }

.dp-feat { padding-bottom: clamp(90px, 11vw, 160px); }
.dp-feat__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.dp-feat__list li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.dp-feat__list i { font: 500 11px/1.9 var(--f-mono); font-style: normal; color: var(--accent-2); }

.dp-tech { padding-bottom: clamp(60px, 8vw, 120px); }
.dp-tech__list { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dp-tech__list li { min-height: 84px; padding: 0 26px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(226, 232, 240, .06), rgba(226, 232, 240, .02)); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); font: 500 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); transition: transform .2s var(--ease), border-color .2s; }
.dp-tech__list li:hover { transform: translateY(-4px); border-color: var(--accent-2); }

.dp-next { position: relative; display: grid; place-items: center; min-height: 80vh; text-align: center; overflow: hidden; isolation: isolate; }
.dp-next__glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(70vmin, 760px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 62%, rgba(99, 102, 241, .45) 78%, transparent 100%), radial-gradient(closest-side, rgba(99, 102, 241, .14), transparent);
  filter: blur(26px); }
.dp-next__link { display: grid; gap: 12px; justify-items: center; }
.dp-next__title { font: 500 clamp(52px, 8vw, 140px)/1 var(--f-display); letter-spacing: -.04em; }
.dp-next__name { display: inline-flex; align-items: center; gap: 10px; font: 400 clamp(18px, 1.6vw, 24px)/1 var(--f-display); color: var(--accent-ink); }
.dp-next__name .arr { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.dp-next__link:hover .dp-next__name .arr { transform: translate(3px, -3px); }

/* =========================================================================
   CV
   ========================================================================= */
.cv-glow { position: absolute; inset: 0 0 auto; height: 90vh; pointer-events: none; background: radial-gradient(60% 70% at 85% 0%, rgba(99, 102, 241, .22), transparent 70%); }
.cv-head h1 { font-size: clamp(44px, 8vw, 140px); letter-spacing: -.055em; margin: 22px 0 18px; text-transform: uppercase; font-weight: 200; }
.cv-head h1 strong { font-weight: 400; }
.cv-head__role { font: 300 clamp(20px, 2vw, 30px)/1.3 var(--f-display); letter-spacing: -.025em; color: var(--accent-ink); }
.cv-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--line); }
.cv-contacts { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 16px; color: var(--text-2); }
.cv-contacts a:hover { color: var(--text); }
.cv-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); padding-block: clamp(80px, 10vw, 150px); }
.cv-index { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cv-index a { display: flex; gap: 14px; padding: 10px 0; color: var(--text-3); font-size: 15px; transition: color .3s; }
.cv-index a i { font: 500 11px/1.9 var(--f-mono); font-style: normal; }
.cv-index a:hover, .cv-index a.is-active { color: var(--text); }
.cv-index a.is-active i { color: var(--accent-2); }
.cv-sec + .cv-sec { margin-top: clamp(80px, 10vw, 150px); }
.cv-sec > h2 { font-size: clamp(30px, 3.4vw, 52px); margin-bottom: clamp(32px, 4vw, 52px); }
.cv-about p { color: var(--text-2); font-size: 17.5px; line-height: 1.75; max-width: 70ch; }
.cv-about p + p { margin-top: 20px; }
.cv-about p:first-child { color: var(--text); font: 300 clamp(20px, 1.8vw, 27px)/1.5 var(--f-display); letter-spacing: -.02em; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; }
.job__co { color: var(--accent-ink); font-size: 17px; }
.job__period { grid-column: 2; grid-row: 1; font: 500 12px/2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-align: right; }
.job ul { grid-column: 1 / -1; margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--text-2); }
.job li { position: relative; padding-left: 24px; }
.job li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--accent-2); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); }
.skills h3 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.edu { list-style: none; margin: 0; padding: 0; }
.edu li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.edu li:last-child { border-bottom: 1px solid var(--line); }
.edu b { font: 400 clamp(18px, 1.6vw, 22px)/1.3 var(--f-display); letter-spacing: -.02em; }
.edu span { color: var(--text-2); }
.edu time { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--text-2); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcx__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__talk { margin-left: auto; }
}
@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  body { font-size: 16px; }
  .nav__in { gap: 14px; }
  .nav .nav__talk, .nav__sep:last-of-type { display: none; }
  .nav__circle { margin-left: auto; }
  .nav__burger { width: 48px; }
  .nav__burger span:nth-child(1), .nav__burger span:nth-child(2) { width: 34px; }
  .menu__in { grid-template-columns: 1fr; align-content: end; }
  .ai__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__grid > h2 { position: static; }
  .quotes__people { grid-auto-columns: 82%; }
  .section-head, .intro__grid, .contact__grid, .svcx__head { grid-template-columns: minmax(0, 1fr); }
  .heroA { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wall { height: 78vw; max-height: 460px; margin: 8px calc(-1 * var(--gutter)) 0; }
  .wall__tilt { inset: -10% -6%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall__col:nth-child(3) { display: none; }
  .section-head .lead { justify-self: start; }
  .hero__scroll { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .dp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-card { min-height: 220px; }
  .dp-split { grid-template-columns: minmax(0, 1fr); }
  .dp-split--head p { justify-self: start; }
  .dp-feat__list { grid-template-columns: minmax(0, 1fr); }
  .cv-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-index { display: none; }
  .edu li { grid-template-columns: minmax(0, 1fr) auto; }
  .edu span { grid-column: 1; }
  .edu time { grid-column: 2; grid-row: 1; }
  .cursor { display: none; }
  .svcx__sub { justify-self: start; padding-top: 0; }
  .svcx__stage { height: auto; margin-top: 40px; padding: min(86vw, 420px) var(--gutter) 0; }
  .svcx__orb { inset: 0 -16px auto; height: min(86vw, 420px); }
  .svcx__pills { display: none; }
  .svcx__stage { padding: min(86vw, 420px) 0 0; }
  .svcx__groups { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
}
@media (max-width: 520px) {
  .btn { --h: 50px; padding: 0 20px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__period { grid-column: 1; grid-row: auto; text-align: left; }
  .quotes__panel { padding: 28px 22px; }
}

/* Pausar animaciones (WCAG 2.2.2): el muro, las píldoras, el indicador de scroll y la laptop se detienen */
.motion-toggle { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(18px, 3vh, 32px); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(2, 8, 23, .6); color: var(--text-2); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.motion-toggle:hover { color: var(--text); border-color: var(--accent-2); }
.motion-toggle i { display: inline-flex; gap: 3px; }
.motion-toggle i::before, .motion-toggle i::after { content: ''; width: 3px; height: 10px; background: currentColor; border-radius: 1px; }
.motion-toggle[aria-pressed="true"] i { gap: 0; }
.motion-toggle[aria-pressed="true"] i::before { width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-radius: 0; }
.motion-toggle[aria-pressed="true"] i::after { display: none; }
.footer .motion-toggle { position: static; }
.reduced .motion-toggle { display: none; }
@media (max-width: 900px) { .hero .motion-toggle { position: relative; left: auto; bottom: auto; margin: 18px var(--gutter) 0; } }
html.is-paused .wall__track, html.is-paused .svcx__pills li, html.is-paused .hero__scroll i::after { animation-play-state: paused !important; }

/* Sin JS: todo visible y estático */
html:not(.js) [data-reveal], html:not(.js) .mask > span { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  /* sin movimiento, pero con los fundidos que comunican cambios de estado */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-property: opacity, color, background-color, border-color !important; }
  .wall__track { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js .loader { display: none; }
}

/* =========================================================================
   IMPRESIÓN (Descargar PDF del CV)
   ========================================================================= */
@media print {
  @page { margin: 16mm 14mm; }
  :root { --text: #0b1020; --text-2: #3c4559; --text-3: #5b6478; --line: #d9dde6; --line-2: #c7ccd8; --accent-2: #3730a3; --accent-ink: #3730a3; }
  body { background: #fff; color: var(--text); font-size: 11pt; }
  .nav, .menu, .grain, .loader, .footer, .contact, .cv-glow, .cv-index, .cv-print, .skip, .cursor { display: none !important; }
  .page-top { padding-top: 0; }
  .cv-grid { display: block; padding: 24px 0 0; }
  .cv-sec + .cv-sec { margin-top: 26px; }
  .cv-head h1 { font-size: 34pt; }
  .job, .edu li { break-inside: avoid; padding: 14px 0; }
  .chip { border-color: #c7ccd8; color: #3c4559; height: auto; padding: 4px 9px; }
  .mask > span, [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}

/* Áreas de toque ≥ 44px sin cambiar el aspecto */
.nav__logo, .nav__links a, .link-u, .footer__nav a, .footer__mail, .to-top, .cv-contacts a, .menu__side a { min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a { padding-block: 0; }
.link-u::after { bottom: 8px; }
.link-u { padding-bottom: 0; }
.nav__links a::after { bottom: 4px; }

/* Servicios fijados (desktop): todo entra en una pantalla mientras dura el pin */
@media (min-width: 901px) {
  .svcx { padding-top: 0; }
  .svcx__pin { padding-top: calc(var(--nav-h) + 16px); min-height: 100svh; }
  .svcx__stage { height: calc(100svh - var(--nav-h) - 250px); min-height: 460px; margin-top: 0; }
  .svcx__sub { padding-top: 26px; }
}

/* Touch: los hovers no se disparan con el tap (criterio de Emil Kowalski) */
@media (hover: none) {
  .pill:hover, .dp-tech__list li:hover, .contact__links a:hover, .next:hover .next__name, .svc li:hover h3 { transform: none; }
  .btn--solid:hover::before { transform: translateY(101%); }
  .btn--solid:hover { color: var(--bg); }
}

/* Accesibilidad: sin scroll horizontal por la silueta escalada ni la base de la laptop (reflow 320 px),
   áreas de toque de al menos 24 px de ancho (WCAG 2.5.8) y foco nunca tapado por la nav fija (2.4.11) */
.intro, .ai { overflow-x: clip; }
.nav__links a, .footer__nav a { min-width: 24px; justify-content: center; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
