/* ==========================================================================
   Alekla 2027 — liquid glass
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 30px;
  --r-xl: 40px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header-h: 76px;
  --glass-blur: 22px;
  --on-prism: #0b0a12;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07060d;
  --bg-2: #100e1b;
  --fg: #f4f2fb;
  --fg-2: rgba(244, 242, 251, .7);
  --fg-3: rgba(244, 242, 251, .55);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --fill: rgba(255, 255, 255, .06);
  --fill-2: rgba(255, 255, 255, .1);

  --c1: #ff93c9;
  --c2: #b8a2ff;
  --c3: #74b8ff;
  --c4: #7ef3cf;

  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 55%, rgba(255, 255, 255, .045));
  --glass-edge: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 26%, rgba(255, 255, 255, .03) 52%, rgba(255, 255, 255, .26));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 80px -40px rgba(0, 0, 0, .85), 0 10px 30px -20px rgba(0, 0, 0, .6);
  --spec: rgba(255, 255, 255, .13);
  --spec-edge: rgba(255, 255, 255, .75);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f1f8;
  --bg-2: #e9e5f2;
  --fg: #100e1c;
  --fg-2: rgba(16, 14, 28, .7);
  --fg-3: rgba(16, 14, 28, .62);
  --line: rgba(16, 14, 28, .08);
  --line-2: rgba(16, 14, 28, .15);
  --fill: rgba(16, 14, 28, .04);
  --fill-2: rgba(16, 14, 28, .07);

  --c1: #f2559f;
  --c2: #8662ff;
  --c3: #2f8cff;
  --c4: #0fbf8f;

  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, .55));
  --glass-edge: linear-gradient(140deg, #fff, rgba(255, 255, 255, .55) 26%, rgba(255, 255, 255, .25) 52%, rgba(255, 255, 255, .95));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 70px -40px rgba(62, 40, 130, .35), 0 8px 24px -16px rgba(62, 40, 130, .25);
  --spec: rgba(255, 255, 255, .7);
  --spec-edge: #fff;
}

:root { --prism: linear-gradient(100deg, var(--c1), var(--c2) 48%, var(--c3)); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
  overflow-x: clip;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--c2); color: var(--on-prism); }

:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; border-radius: 999px;
  background: var(--fg); color: var(--bg); transform: translateY(-300%); opacity: 0; transition: transform .3s, opacity .3s;
}
.skip:focus { transform: none; opacity: 1; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow { color: var(--fg-3); margin: 0; }

:is(h1, h2, h3, .display) em,
.prism-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.prism-text,
.section-title em, .page-hero__title em, .contact__title em, .footer-cta__text em,
.lost__title em, .empty__title em {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  margin-right: -.04em;
}

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Fondo: aurora + grano ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); view-transition-name: bg; }
.bg__aurora { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.bg.is-gl .bg__aurora { opacity: 1; }
.bg.is-gl .bg__fallback { opacity: 0; }
.bg__fallback {
  position: absolute; inset: 0; transition: opacity 1.4s;
  background:
    radial-gradient(60vmax 45vmax at 18% 8%, color-mix(in oklab, var(--c1) 26%, transparent), transparent 70%),
    radial-gradient(55vmax 50vmax at 88% 30%, color-mix(in oklab, var(--c2) 30%, transparent), transparent 70%),
    radial-gradient(70vmax 50vmax at 40% 105%, color-mix(in oklab, var(--c3) 24%, transparent), transparent 70%);
}
[data-theme="light"] .bg__fallback { opacity: .8; }

.bg__grain {
  position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5;
  mix-blend-mode: overlay;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .bg__grain { animation: grain 1.2s steps(5) infinite; }
}
[data-theme="light"] .bg__grain { opacity: .35; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-3%, 2%, 0); }
  50% { transform: translate3d(2%, -3%, 0); }
  75% { transform: translate3d(-2%, -2%, 0); }
  100% { transform: translate3d(3%, 3%, 0); }
}

/* ---------- Cristal ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), var(--spec-edge), transparent 70%),
    var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -30%), var(--spec), transparent 42%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
[data-glow]:hover::after { opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  height: var(--h);
  padding: 0 1.45em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out), background-position .8s var(--ease-out), background-color .3s, color .3s;
}
.btn .i { width: 1.05em; height: 1.05em; transition: transform .5s var(--ease-out); }
.btn:hover .i { transform: translateX(2px) rotate(var(--ir, 0deg)); }
.btn--sm { --h: 40px; font-size: .86rem; padding: 0 1.1em; }
.btn--lg { --h: 62px; font-size: 1.02rem; padding: 0 1.8em; }

.btn--prism {
  color: var(--on-prism);
  background: linear-gradient(100deg, var(--c1), var(--c2) 35%, var(--c3) 65%, var(--c1));
  background-size: 220% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 40px -14px color-mix(in oklab, var(--c2) 80%, transparent);
}
.btn--prism:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 50px -12px color-mix(in oklab, var(--c1) 70%, transparent); }
.btn--prism::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease-out);
}
.btn--prism:hover::after { transform: translateX(120%); }

.btn--glass {
  color: var(--fg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 40px -24px rgba(0, 0, 0, .6);
}
.btn--glass:hover { background-color: var(--fill-2); }

.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--fill); }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn:hover { transform: translateY(-2px); }

.link-prism { display: inline-flex; align-items: center; gap: .3em; background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.link-prism .i { color: var(--c3); transition: transform .5s var(--ease-out); }
.link-prism:hover .i { transform: rotate(45deg); }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: .82rem; color: var(--fg-2); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}

.cat-tag {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  color: var(--fg);
  background: color-mix(in oklab, var(--c2) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c2) 38%, transparent);
  transition: background .3s;
}
.cat-tag:hover { background: color-mix(in oklab, var(--c2) 30%, transparent); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c4); flex: none; display: inline-block; }
.dot--live { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--c4) 70%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.badge { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; color: var(--fg-2); }
.badge strong { font-family: var(--font-sans); font-size: 1.4rem; letter-spacing: -.04em; color: var(--fg); font-weight: 500; text-transform: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 400; pointer-events: none; }
  html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
}
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--fg); transition: opacity .3s, width .3s, height .3s, margin .3s; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--fg) 35%, transparent);
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background-color .4s, border-color .4s, opacity .3s;
}
.cursor__label { font-size: .78rem; font-weight: 500; letter-spacing: -.01em; color: var(--on-prism); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .5s var(--ease-out); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: color-mix(in oklab, var(--fg) 8%, transparent); border-color: transparent; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--prism); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-text .cursor__dot { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 2px; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor.is-out .cursor__ring, .cursor.is-out .cursor__dot { opacity: 0; }

/* ---------- Loader ---------- */
.loader { display: none; }
html.is-intro .loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: #07060d; color: #f4f2fb;
  animation: loader-failsafe .01s 7s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
html.is-intro #gt_float_wrapper { opacity: 0; pointer-events: none; }
#gt_float_wrapper { transition: opacity .6s; }
.loader__lens {
  position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: conic-gradient(from 90deg, #ff93c9, #b8a2ff, #74b8ff, #ff93c9);
  filter: blur(90px); opacity: .45;
  animation: spin 6s linear infinite;
}
.loader__name {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .22em;
  font-size: clamp(3rem, 11vw, 10rem); font-weight: 500; letter-spacing: -.055em; line-height: .9;
}
.loader__word { display: inline-block; overflow: clip; padding: .02em .06em .14em; }
.loader__word > * { display: inline-block; transform: translateY(115%); }
.loader__word em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: linear-gradient(100deg, #ff93c9, #b8a2ff 48%, #74b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.loader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; display: flex; justify-content: space-between; color: rgba(244, 242, 251, .55); }
.loader__count { font-size: .9rem; color: #f4f2fb; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); }
.loader__bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #ff93c9, #b8a2ff, #74b8ff); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  transition: transform .7s var(--ease-out);
  view-transition-name: header;
}
.site-header.is-hidden { transform: translateY(-150%); }
.site-header__bar {
  --glass-blur: 26px;
  pointer-events: auto;
  width: 100%; max-width: 1220px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 9px 0 12px;
  border-radius: 999px;
  transition: max-width .8s var(--ease-out);
}
.site-header.is-scrolled .site-header__bar { max-width: 1080px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.22rem; font-weight: 600; letter-spacing: -.045em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--c1), var(--c2), var(--c3), var(--c1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -6px 12px rgba(0, 0, 0, .15), 0 8px 24px -8px var(--c2);
  color: var(--on-prism);
  transition: transform .8s var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-20deg) scale(1.06); }
.brand__mark em { font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1; transform: translate(-1px, -2px); }

.nav { position: relative; }
.nav__list { position: relative; z-index: 1; display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__link { display: block; padding: 9px 15px; border-radius: 999px; font-size: .9rem; color: var(--fg-2); transition: color .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--fg); }
.nav__lens {
  position: absolute; top: 0; left: 0; height: 100%;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: 999px;
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .18);
  opacity: var(--o, 0);
  transition: transform .6s var(--ease-out), width .6s var(--ease-out), opacity .4s;
}

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle { position: relative; color: var(--fg-2); }
.theme-toggle:hover { color: var(--fg); background: var(--fill); }
.theme-toggle span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .7s var(--ease-spring), opacity .4s; }
[data-theme="dark"] .theme-toggle__moon, [data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.4); }

.menu-toggle { display: none; background: var(--fill); }
.menu-toggle__lines { position: relative; width: 18px; height: 10px; }
.menu-toggle__lines i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle__lines i:first-child { top: 0; }
.menu-toggle__lines i:last-child { top: 8.4px; }
html.menu-open .menu-toggle__lines i:first-child { top: 4.2px; transform: rotate(45deg); }
html.menu-open .menu-toggle__lines i:last-child { top: 4.2px; transform: rotate(-45deg); }

/* Menú móvil */
.menu { position: fixed; inset: 0; z-index: 55; visibility: hidden; pointer-events: none; transition: visibility 0s .9s; }
.menu.is-open { visibility: visible; pointer-events: auto; transition: none; }
.menu__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 50px) var(--gutter) 36px;
  background: color-mix(in oklab, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  clip-path: circle(0% at calc(100% - 50px) 46px);
  transition: clip-path .9s var(--ease-in-out);
  overflow-y: auto;
}
.menu.is-open .menu__panel { clip-path: circle(150% at calc(100% - 50px) 46px); }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu__link {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2.3rem, 10vw, 4.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.12;
  opacity: 0; transform: translateY(40px);
  transition: opacity .5s, transform .8s var(--ease-out);
}
.menu__link .mono { color: var(--fg-3); font-size: .7rem; transform: translateY(-1.2em); }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(.18s + var(--d, 0) * .05s); }
.menu__foot { display: grid; gap: 18px; color: var(--fg-2); opacity: 0; transition: opacity .6s .5s; }
.menu.is-open .menu__foot { opacity: 1; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Revelados ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; translate: 0 44px; filter: blur(10px); }
  html.js [data-reveal].is-in {
    opacity: 1; translate: 0 0; filter: blur(0);
    transition: opacity 1s var(--ease-out) var(--rd, 0s), translate 1.3s var(--ease-out) var(--rd, 0s), filter 1s var(--ease-out) var(--rd, 0s);
  }
  html.js [data-split] { opacity: 0; }
  html.js [data-split].is-split { opacity: 1; }
  html.js:not(.hero-done) [data-hero-in],
  html.js:not(.hero-done) [data-hero-chip],
  html.js:not(.hero-done) [data-hero-portrait] { opacity: 0; }
  html.js:not(.hero-done) [data-hero-word] { transform: translateY(118%); }

  /* Si el JS no llega, todo aparece igual. */
  html.js:not(.anim-ok) [data-reveal],
  html.js:not(.anim-ok) [data-split],
  html.js:not(.anim-ok) [data-hero-in],
  html.js:not(.anim-ok) [data-hero-chip],
  html.js:not(.anim-ok) [data-hero-portrait],
  html.js:not(.anim-ok) [data-hero-word] { animation: failsafe .8s 3s forwards; }
}
@keyframes failsafe { to { opacity: 1; translate: 0 0; filter: none; transform: none; } }

.line-mask { padding: 0 .1em .12em 0; margin: 0 -.1em -.12em 0; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(70px, 8vw, 130px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); }
.section-head__meta { display: flex; align-items: center; gap: 14px; color: var(--fg-3); }
.section-head__num { color: var(--fg); display: inline-flex; }
.section-head__num .i { width: 14px; height: 14px; color: var(--c2); }
.section-head__line { width: 54px; height: 1px; background: var(--line-2); }
.section-head__extra { justify-self: start; }
.section-title {
  margin: 0; max-width: 15ch;
  font-size: clamp(2.6rem, 7vw, 6.6rem); font-weight: 500; line-height: .96; letter-spacing: -.055em;
}
.section-title--sm { font-size: clamp(2.2rem, 5vw, 4.4rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 26px;
  overflow: clip;
}
.hero__top { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; margin: 0; padding: 0 16px 0 13px; border-radius: 999px; color: var(--fg-2); font-size: .68rem; }
.hero__clock { margin: 0; color: var(--fg-3); }

.hero__title {
  position: relative;
  margin: 0;
  display: grid;
  align-content: center;
  padding-inline: calc(var(--gutter) * .6);
  font-size: clamp(4.1rem, 15.4vw, 16rem);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
}
.hero__line { display: block; overflow: clip; padding: .16em .06em .12em; }
.hero__line--1 { justify-self: start; position: relative; z-index: 1; }
.hero__line--2 { justify-self: end; position: relative; z-index: 3; margin-top: -.3em; }
.hero__word { display: inline-block; will-change: transform; }
.hero__line--2 em {
  font-size: 1.12em; letter-spacing: -.035em;
  background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}

.hero__portrait {
  position: absolute; left: 50%; top: 51%; z-index: 2;
  width: clamp(190px, 22vw, 330px); aspect-ratio: 4 / 5;
  margin: 0;
  translate: -50% -50%;
  perspective: 1100px;
}
.hero__frame { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1s var(--ease-out); }
.hero__glass { --glass-blur: 14px; position: absolute; inset: 0; padding: 10px; border-radius: 34px; }
.hero__glass picture { width: 100%; height: 100%; }
.hero__glass img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 25px; }
.hero__glare {
  position: absolute; inset: 10px; z-index: 3; border-radius: 25px; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .32) 46%, transparent 60%);
  background-size: 260% 100%;
  background-position: var(--gx, 90%) 0;
  mix-blend-mode: overlay;
  transition: background-position 1s var(--ease-out);
}
.hero__chip {
  --glass-blur: 16px;
  position: absolute; z-index: 4;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 16px 13px;
  border-radius: 18px;
  white-space: nowrap;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 60px);
  transition: transform 1.1s var(--ease-out);
}
.hero__chip .mono { font-size: .6rem; color: var(--fg-3); }
.hero__chip strong { font-size: .94rem; font-weight: 500; letter-spacing: -.01em; }
.hero__chip--1 { right: 84%; top: 8%; }
.hero__chip--2 { left: 86%; top: 30%; }
.hero__chip--3 { right: 80%; bottom: 14%; }
.hero__chip--4 { left: 78%; bottom: -5%; flex-direction: row; align-items: center; gap: 10px; padding-right: 20px; }
.hero__chip-num { font-size: 2.2rem !important; line-height: 1; letter-spacing: -.05em !important; background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__chip--4 .mono { white-space: normal; width: 7ch; line-height: 1.3; }

.hero__bottom { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 22px 40px; }
.hero__intro { margin: 0; max-width: 40ch; color: var(--fg-2); font-size: 1.04rem; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__scroll { grid-column: 1 / -1; justify-self: center; display: grid; justify-items: center; gap: 10px; color: var(--fg-3); font-size: .62rem; }
.hero__scroll i { position: relative; width: 1px; height: 42px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--prism); animation: scrollcue 2.2s var(--ease-in-out) infinite; }
@keyframes scrollcue { from { transform: translateY(-110%); } to { transform: translateY(260%); } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(1.5rem, 3.2vw, 2.8rem); letter-spacing: -.035em; color: var(--fg-2); white-space: nowrap; }
.ticker__group span:nth-of-type(odd) { font-family: var(--font-serif); font-style: italic; letter-spacing: -.01em; color: var(--fg); }
.ticker__group .i { width: .5em; height: .5em; color: var(--c2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(110px, 13vw, 200px) clamp(60px, 7vw, 110px); display: grid; gap: 40px; }
.manifesto__text {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 5.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.05em;
  max-width: 21ch;
}
.manifesto__text .w { display: inline; opacity: var(--wo, 1); transition: opacity .25s linear; }
html.js .manifesto__text .w { --wo: .4; }
[data-theme="light"] .manifesto__text .w { --wo: .48; }
@media (prefers-contrast: more) { html.js .manifesto__text .w { --wo: 1; } }
.manifesto__text .w.is-lit { --wo: 1; }
.manifesto__text .w--em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .05em;
}
.manifesto__sign { display: flex; align-items: center; gap: 14px; }
.manifesto__avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--c2); flex: none; }
.manifesto__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.manifesto__sign strong { display: block; font-weight: 500; }
.manifesto__sign .mono { color: var(--fg-3); font-size: .62rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento__card { padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-lg); overflow: hidden; }
.bento__label { color: var(--fg-3); margin: 0 0 18px; }
.bento__bio { grid-column: span 7; grid-row: span 2; display: flex; flex-direction: column; }
.bento__lead { margin: 0; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.28; letter-spacing: -.03em; }
.bento__text { margin: 20px 0 0; color: var(--fg-2); max-width: 60ch; }
.bento__more { display: grid; grid-template-rows: 0fr; color: var(--fg-2); transition: grid-template-rows .8s var(--ease-out); }
.bento__more > * { min-height: 0; }
.bento__more p { margin: 18px 0 0; }
.bento__more.is-open { grid-template-rows: 1fr; }
.bento__more-inner { overflow: hidden; }
.bento__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
[data-more-toggle] .i { transition: transform .5s var(--ease-out); }
[data-more-toggle][aria-expanded="true"] .i { transform: rotate(45deg); }

.bento__stats { grid-column: span 5; display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(20px, 2.4vw, 30px); min-height: 150px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat__num { font-size: clamp(2.4rem, 4.2vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--fg-3); font-size: .64rem; }

.bento__langs { grid-column: span 5; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
.ring { position: relative; display: grid; justify-items: center; gap: 10px; --p: 0; transition: --p 1.8s var(--ease-out); }
.ring.is-in, .is-in .ring { --p: var(--v); }
.ring__arc {
  position: relative; width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--c1), var(--c2) calc(var(--p) * .5%), var(--c3) calc(var(--p) * 1%), var(--fill-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
}
.ring__lvl { position: absolute; top: 0; width: 100%; max-width: 92px; aspect-ratio: 1; display: grid; place-items: center; font-size: 1.15rem; font-weight: 500; letter-spacing: -.03em; }
.ring__name { color: var(--fg-3); font-size: .6rem; }

.bento__skills { grid-column: span 4; display: grid; gap: 22px; align-content: start; }
.bento__skills .bento__label { margin-bottom: 0; }
.skill__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.skill__row strong { font-weight: 500; font-size: 1.05rem; }
.skill__row .mono { color: var(--fg-2); }
.skill__bar { height: 6px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--prism); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .2s; }
.is-in .skill__bar i { transform: scaleX(1); }
.skill__detail { display: block; margin-top: 8px; color: var(--fg-3); font-size: .6rem; }

.bento__place { grid-column: span 3; }
.place { display: grid; gap: 18px; }
.place strong { display: block; font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.place .mono { display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: .62rem; margin-top: 4px; }
.place__time { color: var(--fg-2) !important; }
.place__globe {
  position: relative; width: 86px; height: 86px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--c3) 45%, transparent), transparent 62%), var(--fill);
  box-shadow: inset 0 0 0 1px var(--line-2), inset -10px -14px 26px rgba(0, 0, 0, .25);
}
.place__globe i { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--line-2); animation: globe 8s linear infinite; }
.place__globe i:nth-child(2) { animation-delay: -2.66s; }
.place__globe i:nth-child(3) { animation-delay: -5.33s; }
.place__globe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.place__globe b { position: absolute; left: 44%; top: 42%; width: 9px; height: 9px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c1) 30%, transparent), 0 0 18px var(--c1); }
@keyframes globe { from { transform: scaleX(1); } 50% { transform: scaleX(0); } to { transform: scaleX(-1); } }

.bento__stack { grid-column: span 5; padding-inline: 0; }
.bento__stack .bento__label { padding-inline: clamp(22px, 2.6vw, 36px); }
.marquee { display: grid; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 8px; width: max-content; animation: marquee 34s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 40s; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Servicios (cartas apiladas) ---------- */
.stack { display: grid; gap: 28px; padding-bottom: 6vh; }
.stack__card {
  --glass-blur: 30px;
  position: sticky;
  top: calc(var(--header-h) + 34px + var(--i) * 22px);
  min-height: min(66vh, 560px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(26px, 4vw, 60px);
  border-radius: var(--r-xl);
  transform-origin: 50% 0;
  overflow: hidden;
}
.stack__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklab, var(--c2) 22%, transparent), transparent 60%);
}
.stack__card:nth-child(2)::after { background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklab, var(--c3) 22%, transparent), transparent 60%); }
.stack__card:nth-child(3)::after { background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklab, var(--c1) 22%, transparent), transparent 60%); }
[data-theme="dark"] .stack__card { background: linear-gradient(155deg, rgba(30, 27, 48, .84), rgba(14, 12, 24, .78)); }
[data-theme="light"] .stack__card { background: linear-gradient(155deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62)); }
.stack__num { color: var(--fg-3); }
.stack__title { margin: 18px 0 18px; font-size: clamp(2.1rem, 4.4vw, 4rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.stack__info p { margin: 0 0 26px; color: var(--fg-2); max-width: 46ch; font-size: 1.04rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack__visual { position: relative; height: 100%; min-height: 300px; display: grid; place-items: center; }
.services__cta { margin-top: 48px; color: var(--fg-2); font-size: 1.1rem; }

/* Visual: dispositivos */
.vis-devices { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 3.2; }
.vis-devices > .glass { position: absolute; --glass-blur: 12px; }
.vis-devices__desk { left: 0; top: 4%; width: 78%; aspect-ratio: 16 / 10; border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: auto 1fr; gap: 8px; animation: float 7s var(--ease-in-out) infinite alternate; }
.vis-devices__desk i { height: 8px; border-radius: 4px; background: var(--fill-2); }
.vis-devices__desk i:nth-child(1) { grid-column: 1 / -1; width: 40%; }
.vis-devices__desk i:nth-child(2) { grid-row: 2; height: auto; }
.vis-devices__desk i:nth-child(3) { display: none; }
.vis-devices__desk span { grid-row: 2; border-radius: 10px; background: linear-gradient(135deg, color-mix(in oklab, var(--c2) 60%, transparent), color-mix(in oklab, var(--c3) 40%, transparent)); }
.vis-devices__tab { right: 4%; top: 30%; width: 38%; aspect-ratio: 3 / 4; border-radius: 16px; padding: 14px; display: grid; gap: 8px; align-content: end; animation: float 8s var(--ease-in-out) -2s infinite alternate; }
.vis-devices__tab span { height: 34%; border-radius: 8px; background: linear-gradient(135deg, color-mix(in oklab, var(--c1) 55%, transparent), color-mix(in oklab, var(--c2) 40%, transparent)); }
.vis-devices__tab span + span { height: 18px; background: var(--fill-2); }
.vis-devices__phone { left: 30%; bottom: 0; width: 24%; aspect-ratio: 9 / 19; border-radius: 20px; padding: 18px 9px 9px; display: grid; gap: 6px; align-content: start; animation: float 6s var(--ease-in-out) -4s infinite alternate; }
.vis-devices__phone b { position: absolute; top: 7px; left: 50%; width: 30%; height: 5px; border-radius: 4px; translate: -50% 0; background: var(--fill-2); }
.vis-devices__phone span { height: 26px; border-radius: 8px; background: var(--fill-2); }
.vis-devices__phone span:first-of-type { height: 54px; background: linear-gradient(135deg, color-mix(in oklab, var(--c3) 60%, transparent), color-mix(in oklab, var(--c1) 40%, transparent)); }
.vis-devices__code { position: absolute; right: 0; bottom: 6%; display: grid; gap: 2px; font-size: .56rem; text-transform: none; letter-spacing: 0; color: var(--fg-3); }
@keyframes float { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 8px, 0); } }

/* Visual: nodos */
.vis-nodes { width: min(440px, 100%); height: auto; overflow: visible; }
.vis-nodes__links { opacity: .35; }
.vis-nodes__flow path { stroke-dasharray: 10 300; stroke-dashoffset: 310; animation: flow 3.2s linear infinite; }
.vis-nodes__flow path:nth-child(2) { animation-delay: -.8s; }
.vis-nodes__flow path:nth-child(3) { animation-delay: -1.6s; }
.vis-nodes__flow path:nth-child(4) { animation-delay: -2.4s; }
.vis-nodes__dots circle { fill: var(--bg-2); stroke: var(--c2); stroke-width: 1.4; }
.vis-nodes__dots circle:first-child, .vis-nodes__dots circle:last-child { fill: color-mix(in oklab, var(--c2) 25%, var(--bg-2)); }
.vis-nodes__labels { fill: var(--fg-3); }
@keyframes flow { to { stroke-dashoffset: 0; } }

/* Visual: capas */
.vis-blueprint { position: relative; width: min(420px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.vis-blueprint__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.vis-blueprint__stack { position: relative; width: 58%; aspect-ratio: 1; transform: rotateX(58deg) rotateZ(-42deg); transform-style: preserve-3d; }
.vis-blueprint__stack span { --glass-blur: 8px; position: absolute; inset: 0; border-radius: 22px; transform: translateZ(calc(var(--n) * 34px)); animation: layer 5s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--n) * -.6s); }
.vis-blueprint__stack span:nth-child(1) { --n: 0; background: linear-gradient(135deg, color-mix(in oklab, var(--c3) 40%, transparent), transparent); }
.vis-blueprint__stack span:nth-child(2) { --n: 1; background: linear-gradient(135deg, color-mix(in oklab, var(--c2) 40%, transparent), transparent); }
.vis-blueprint__stack span:nth-child(3) { --n: 2; background: linear-gradient(135deg, color-mix(in oklab, var(--c1) 40%, transparent), transparent); }
.vis-blueprint__stack span:nth-child(4) { --n: 3; background: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent); }
.vis-blueprint__stack span::after { content: attr(data-l); position: absolute; left: 14px; bottom: 10px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
@keyframes layer { to { transform: translateZ(calc(var(--n) * 52px)); } }

/* ---------- Apps ---------- */
.apps__orbit {
  overflow: hidden; margin-bottom: clamp(40px, 5vw, 70px); padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.apps__orbit-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.apps__orbit img { width: clamp(64px, 7vw, 96px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.apps__orbit img:nth-child(odd) { transform: translateY(14px) rotate(-6deg); }
.apps__orbit img:nth-child(even) { transform: translateY(-6px) rotate(5deg); }

.filters {
  --glass-blur: 20px;
  position: relative;
  display: flex; gap: 2px;
  width: max-content; max-width: 100%;
  margin-bottom: 30px; padding: 6px;
  border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters__btn { position: relative; z-index: 3; height: 42px; padding: 0 18px; border-radius: 999px; font-size: .9rem; color: var(--fg-2); white-space: nowrap; transition: color .4s; }
.filters__btn:hover { color: var(--fg); }
.filters__btn.is-on { color: var(--on-prism); }
.filters__btn sup { font-family: var(--font-mono); font-size: .6rem; opacity: .85; margin-left: 2px; }
.filters__lens { position: absolute; z-index: 2; top: 6px; left: 0; height: 42px; width: var(--w, 0px); transform: translateX(var(--x, 0px)); border-radius: 999px; background: var(--prism); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .7s var(--ease-out), width .7s var(--ease-out); }

.apps__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }
.apps__hint { display: none; align-items: center; gap: 8px; margin-top: 4px; color: var(--fg-3); }
.apps__hint .i { animation: nudge 1.6s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.app { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 26px; transition: transform .7s var(--ease-out); }
.app:hover { transform: translateY(-6px); }
.app[hidden] { display: none; }
.apps__grid.is-vt .app { view-transition-name: var(--vtn); }
.app__head { display: flex; align-items: center; gap: 15px; }
.app__icon { position: relative; z-index: 2; width: 62px; height: 62px; flex: none; }
.app__icon::before { content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 30%; background: var(--glow, var(--c2)); filter: blur(18px); opacity: .55; transition: opacity .6s, transform .6s var(--ease-out); }
.app:hover .app__icon::before { opacity: 1; transform: scale(1.25); }
.app__icon img { width: 100%; height: 100%; border-radius: 24%; box-shadow: 0 0 0 1px var(--line-2); transition: transform .7s var(--ease-spring); }
.app:hover .app__icon img { transform: rotate(-6deg) scale(1.06); }
.app__name { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.app__cat { color: var(--fg-3); font-size: .6rem; }
.app__desc { position: relative; z-index: 2; flex: 1; margin: 0; color: var(--fg-2); font-size: .94rem; line-height: 1.5; }
.app__links { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.store .i { width: 14px; height: 14px; }
.store:hover { background: var(--fg); color: var(--bg); transform: translateY(-1px); }
.store--web { width: 36px; padding: 0; justify-content: center; margin-left: auto; }
.store--web:hover .i { transform: rotate(45deg); }
.store--web .i { transition: transform .5s var(--ease-out); }

/* ---------- Trayectoria ---------- */
.journey__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.journey__col { position: relative; padding-left: 34px; }
.journey__heading { margin: 0 0 24px; color: var(--fg-3); font-weight: 400; }
.journey__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.journey__item {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: box-shadow .5s;
}
.journey__item:hover { box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .12); }
.journey__period { color: var(--c2); font-size: .64rem; }
.journey__item h4 { margin: 10px 0 8px; font-size: 1.16rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.25; }
.journey__item p { margin: 0; color: var(--fg-2); font-size: .94rem; line-height: 1.55; }
.journey__node { position: absolute; left: -31px; top: 27px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: background .5s, box-shadow .5s; }
.journey__item.is-in .journey__node { background: var(--c2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c2) 22%, transparent), 0 0 18px var(--c2); }
.journey__rail { position: absolute; left: 5px; top: 62px; bottom: 28px; width: 1px; background: var(--line); overflow: hidden; }
.journey__rail i { display: block; width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--rp, 0)); background: linear-gradient(180deg, var(--c1), var(--c2), var(--c3)); }

/* ---------- Proyectos ---------- */
.works__list { display: grid; gap: clamp(64px, 9vw, 150px); }
.work { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 72px); align-items: center; }
.work:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.work:nth-child(even) .work__media { order: 2; }
.work__media { --glass-blur: 16px; padding: 10px; border-radius: var(--r-xl); }
.work__img { position: relative; aspect-ratio: 3 / 2; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; clip-path: inset(var(--clip, 0%) round calc(var(--r-xl) - 10px)); }
.work__img picture { position: absolute; inset: -9% 0; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0%), 0) scale(var(--ps, 1.02)); transition: scale 1.2s var(--ease-out); }
.work:hover .work__img img { scale: 1.05; }
.work__info { position: relative; display: grid; gap: 4px; align-content: center; }
.work__num { color: var(--fg-3); }
.work__title { margin: 8px 0 6px; font-size: clamp(2.3rem, 5.2vw, 4.8rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; transition: letter-spacing .8s var(--ease-out); }
.work:hover .work__title { letter-spacing: -.04em; }
.work__type { color: var(--c2); margin: 0 0 10px; font-size: .64rem; }
.work__text { margin: 0; color: var(--fg-2); max-width: 40ch; }
.work__go { margin-top: 28px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .5s, color .5s, transform .7s var(--ease-spring), box-shadow .5s; }
.work__go .i { width: 22px; height: 22px; }
.work:hover .work__go { background: var(--prism); color: var(--on-prism); box-shadow: none; transform: rotate(45deg); }

/* ---------- Publicaciones (portada) ---------- */
.pubs__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.pubs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub-row { position: relative; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease-out); }
.pub-row::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: 16px; background: linear-gradient(90deg, color-mix(in oklab, var(--c2) 16%, transparent), transparent 80%); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.pub-row:hover::before, .pub-row:focus-visible::before { transform: scaleX(1); }
.pub-row:hover { padding-left: 20px; }
.pub-row__num { color: var(--fg-3); align-self: start; padding-top: 3px; }
.pub-row__meta { display: block; color: var(--fg-3); font-size: .6rem; margin-bottom: 7px; }
.pub-row__title { display: block; font-size: clamp(1.08rem, 1.5vw, 1.32rem); font-weight: 500; line-height: 1.28; letter-spacing: -.02em; }
.pub-row__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s, color .4s, transform .6s var(--ease-spring); }
.pub-row:hover .pub-row__go { background: var(--fg); color: var(--bg); transform: rotate(45deg); }
.pubs__cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 70px); }
.pub-float { position: fixed; top: 0; left: 0; z-index: 45; width: 300px; aspect-ratio: 3 / 2; margin: -100px 0 0 -150px; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-500px, -500px, 0) scale(.7); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-2); transition: opacity .35s; }
.pub-float img { width: 100%; height: 100%; object-fit: cover; }
.pub-float.is-on { opacity: 1; }

/* ---------- Tarjeta de publicación ---------- */
.post-card { display: flex; flex-direction: column; padding: 9px; border-radius: 26px; transition: transform .7s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); }
.post-card__media { position: relative; display: block; overflow: hidden; border-radius: 19px; aspect-ratio: 16 / 10; background: var(--fill); }
.post-card__img { display: block; width: 100%; height: 100%; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 13px 13px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--fg-3); font-size: .6rem; }
.post-card__title { margin: 0; font-size: 1.24rem; font-weight: 550; line-height: 1.24; letter-spacing: -.025em; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.post-card__excerpt { margin: 0; color: var(--fg-2); font-size: .94rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; color: var(--fg-3); font-size: .62rem; transition: color .3s; }
.post-card__more .i { transition: transform .5s var(--ease-out); }
.post-card:hover .post-card__more { color: var(--fg); }
.post-card:hover .post-card__more .i { transform: rotate(45deg); }
.post-card--feature .post-card__title { font-size: clamp(1.6rem, 2.7vw, 2.5rem); letter-spacing: -.04em; line-height: 1.06; }
.post-card--feature .post-card__excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.post-card--feature .post-card__body { padding: 22px 16px 16px; gap: 16px; }
.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--c1) 40%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in oklab, var(--c3) 40%, transparent), transparent 60%), var(--fill); }
.thumb-fallback span { font-family: var(--font-serif); font-style: italic; font-size: 5rem; color: var(--fg-2); }

/* ---------- Testimonios ---------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.quote { margin: 0; padding: clamp(24px, 3vw, 38px); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 26px; min-height: 340px; }
.quote:nth-child(2) { margin-top: 56px; }
.quote:nth-child(3) { margin-top: 112px; }
.quote__mark .i { width: 34px; height: 34px; color: var(--c2); }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { margin: 0; font-family: var(--font-serif); font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.22; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; font-weight: 550; font-size: .96rem; }
.quote figcaption .mono { color: var(--fg-3); font-size: .58rem; display: block; margin-top: 3px; line-height: 1.4; }
.quote__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--prism); color: var(--on-prism); font-size: .82rem; font-weight: 600; }

/* ---------- Precios ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); }
.plan__name { margin: 0; color: var(--fg-2); }
.plan__price { margin: 6px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan__price strong { font-size: clamp(2.8rem, 4.8vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.plan__price span { color: var(--fg-3); }
.plan__text { margin: 0; color: var(--fg-2); }
.plan__list { list-style: none; margin: 0 0 12px; padding: 0; }
.plan__list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.plan__list .i { color: var(--c4); width: 18px; height: 18px; }
.plan .btn { margin-top: auto; justify-content: space-between; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan--featured::before { padding: 1.5px; background: conic-gradient(from var(--a), var(--c1), var(--c2), var(--c3), var(--c1)); animation: border-spin 5s linear infinite; }
.plan--featured { box-shadow: var(--glass-shadow), 0 40px 120px -50px var(--c2); }
@keyframes border-spin { to { --a: 360deg; } }
.plan__badge { position: absolute; top: 22px; right: 22px; z-index: 3; padding: 6px 11px; border-radius: 999px; background: var(--prism); color: var(--on-prism); font-size: .58rem; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__title { margin: 24px 0 22px; font-size: clamp(2.8rem, 6.2vw, 6rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.contact__lead { margin: 0; max-width: 40ch; color: var(--fg-2); font-size: 1.08rem; }
.contact__links { display: grid; gap: 10px; margin-top: 34px; max-width: 470px; }
.contact-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; border-radius: 22px; text-align: left; transition: transform .6s var(--ease-out); }
.contact-link:hover { transform: translateY(-3px); }
.contact-link__icon { position: relative; z-index: 3; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line-2); }
.contact-link__icon .i { width: 20px; height: 20px; }
.contact-link .mono { display: block; color: var(--fg-3); font-size: .58rem; }
.contact-link strong { display: block; font-weight: 500; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
.contact-link__act { position: relative; z-index: 3; padding: 0 6px; color: var(--fg-2); font-size: .62rem; }
.contact-link__act .i { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.contact-link:hover .contact-link__act .i { transform: rotate(45deg); }

.form { --glass-blur: 28px; display: grid; gap: 16px; padding: clamp(22px, 3.4vw, 44px); border-radius: var(--r-xl); }
.form > * { position: relative; z-index: 3; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.form__chips legend { width: 100%; margin-bottom: 12px; padding: 0; color: var(--fg-3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: .88rem; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .35s, color .35s, box-shadow .35s; }
.choice span:hover { color: var(--fg); background: var(--fill); }
.choice input:checked + span { background: var(--fg); color: var(--bg); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--c2); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; height: 62px;
  padding: 26px 18px 8px;
  border: 0; border-radius: 18px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg); font: inherit; font-size: 1rem;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: box-shadow .35s, background-color .35s;
}
.field textarea { height: auto; min-height: 150px; padding-top: 32px; resize: vertical; line-height: 1.5; }
.field label { position: absolute; left: 19px; top: 21px; color: var(--fg-3); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-11px) scale(.72); color: var(--fg-2); }
.field input:focus, .field textarea:focus, .field select:focus { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--c2), 0 0 0 4px color-mix(in oklab, var(--c2) 18%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1px #ff7a8a, 0 0 0 4px rgba(255, 122, 138, .15); }
.field--select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--fg-2); border-bottom: 1.6px solid var(--fg-2); transform: rotate(45deg); pointer-events: none; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--fg); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__status { margin: 0; flex: 1; min-width: 200px; font-size: .92rem; color: var(--fg-2); }
.form__status.is-ok { color: var(--c4); }
.form__status.is-error { color: #ff8a9a; }
.form.is-busy button[type="submit"] { opacity: .7; pointer-events: none; }
.form.is-sent { animation: sent 1.2s var(--ease-out); }
@keyframes sent { 30% { box-shadow: var(--glass-shadow), 0 0 0 6px color-mix(in oklab, var(--c4) 30%, transparent); } }

/* ---------- Pie ---------- */
.site-footer { position: relative; padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { display: grid; gap: 18px; margin-bottom: clamp(70px, 9vw, 120px); }
.footer-cta__text { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 .22em; font-size: clamp(3rem, 10vw, 9.4rem); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.footer-cta__text .i { width: .55em; height: .55em; stroke-width: 1.2; color: var(--c2); transition: transform .8s var(--ease-spring); }
.footer-cta:hover .footer-cta__text .i { transform: rotate(45deg); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-col h2 { margin: 0 0 18px; color: var(--fg-3); font-weight: 400; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--fg-2); transition: color .3s; }
.footer-col a:hover { color: var(--fg); }
.footer-col--about p { margin: 20px 0 0; max-width: 36ch; color: var(--fg-2); }
.footer-time { display: flex; align-items: center; gap: 10px; color: var(--fg-3) !important; }
.footer-mark {
  position: relative;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(9rem, 34vw, 34rem); line-height: .74; letter-spacing: -.045em;
  text-align: center; white-space: nowrap; user-select: none;
  margin-bottom: -.06em;
}
.footer-mark span {
  display: inline-block;
  padding-right: .06em;
  background: linear-gradient(180deg, color-mix(in oklab, var(--fg) 20%, transparent) 10%, transparent 82%), var(--prism);
  background-size: 100% 100%, var(--fm, 0%) 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px 30px; color: var(--fg-3); border-top: 1px solid var(--line); }
.footer-top { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.footer-top .i { transition: transform .5s var(--ease-out); }
.footer-top:hover .i { transform: translateY(-3px); }

/* ---------- Encabezados de página / listados ---------- */
.page-hero { display: grid; gap: 22px; padding-top: calc(var(--header-h) + clamp(70px, 10vw, 150px)); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero__title { margin: 0; font-size: clamp(3.4rem, 12.5vw, 12rem); font-weight: 500; line-height: .86; letter-spacing: -.065em; }
.page-hero__title--page { font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.05em; max-width: 18ch; }
.page-hero__lead { margin: 0; max-width: 58ch; color: var(--fg-2); font-size: 1.1rem; }
.listing__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.listing__tools > * { min-width: 0; max-width: 100%; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats__item { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-size: .88rem; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s; }
.cats__item:hover { color: var(--fg); background: var(--fill); }
.cats__item.is-on { background: var(--fg); color: var(--bg); box-shadow: none; }
.cats__item sup { font-family: var(--font-mono); font-size: .58rem; opacity: .85; margin-left: 4px; }
.searchbox { --glass-blur: 18px; display: flex; align-items: center; gap: 10px; height: 48px; min-width: min(330px, 100%); padding: 0 18px; border-radius: 999px; }
.searchbox > * { position: relative; z-index: 3; }
.searchbox .i { color: var(--fg-3); width: 18px; height: 18px; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg); font: inherit; outline: none; }
.searchbox input::placeholder { color: var(--fg-3); }
.searchbox:focus-within { box-shadow: var(--glass-shadow), 0 0 0 4px color-mix(in oklab, var(--c2) 22%, transparent); }

.listing__feature { margin-bottom: 16px; }
.listing__feature .post-card--feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.listing__feature .post-card__media { aspect-ratio: auto; min-height: 420px; }
.listing__feature .post-card__body { justify-content: center; padding: clamp(18px, 3vw, 44px); }
.listing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pager { --glass-blur: 18px; display: flex; width: max-content; max-width: 100%; margin: 60px auto 0; padding: 6px; border-radius: 999px; overflow-x: auto; }
.pager ul { position: relative; z-index: 3; display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-family: var(--font-mono); font-size: .8rem; color: var(--fg-2); transition: background .3s, color .3s; }
.pager a:hover { background: var(--fill-2); color: var(--fg); }
.pager .current { background: var(--prism); color: var(--on-prism); }
.pager .i { width: 18px; height: 18px; }
.empty { display: grid; justify-items: start; gap: 16px; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-xl); }
.empty > * { position: relative; z-index: 3; margin: 0; }
.empty__title { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; line-height: 1; }
.empty__title em { font-family: var(--font-serif); font-style: italic; }

/* ---------- Artículo ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--prism); box-shadow: 0 0 18px var(--c2); }
.article__head { display: grid; gap: 26px; max-width: calc(1120px + var(--gutter) * 2); padding-top: calc(var(--header-h) + clamp(60px, 8vw, 120px)); }
.article__back { display: inline-flex; align-items: center; gap: 8px; width: max-content; color: var(--fg-3); transition: color .3s; }
.article__back:hover { color: var(--fg); }
.article__back .i { transition: transform .5s var(--ease-out); }
.article__back:hover .i { transform: translateX(-4px); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--fg-3); }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__title { margin: 0; font-size: clamp(2.3rem, 5.6vw, 5.2rem); font-weight: 550; line-height: 1.02; letter-spacing: -.05em; }
.article__author { display: flex; align-items: center; gap: 14px; }
.article__avatar, .author-card__avatar { flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--c2); }
.article__avatar { width: 46px; height: 46px; }
.article__avatar img, .author-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.article__author strong { display: block; font-weight: 550; }
.article__author .mono { display: block; color: var(--fg-3); font-size: .58rem; }
.article__cover { margin: clamp(40px, 5vw, 70px) auto 0; max-width: calc(1280px + var(--gutter) * 2); }
.article__cover-frame { --glass-blur: 14px; padding: 10px; border-radius: var(--r-xl); }
.article__cover-img { view-transition-name: post-cover; display: block; position: relative; aspect-ratio: 16 / 8.6; overflow: hidden; border-radius: calc(var(--r-xl) - 10px); }
.article__cover-img img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0%), 0); }
.article__layout { display: grid; grid-template-columns: 270px minmax(0, 720px); justify-content: center; gap: clamp(32px, 6vw, 100px); padding-top: clamp(50px, 6vw, 90px); }
.article__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; gap: 24px; }
.toc { --glass-blur: 20px; padding: 20px; border-radius: 22px; max-height: calc(100vh - 260px); overflow: auto; scrollbar-width: thin; }
.toc > * { position: relative; z-index: 3; }
.toc__title { margin: 0; color: var(--fg-3); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 8px 10px; border-radius: 12px; font-size: .85rem; line-height: 1.35; color: var(--fg-3); counter-increment: toc; transition: background .3s, color .3s; }
.toc a::before { content: counter(toc, decimal-leading-zero); padding-top: 2px; font-family: var(--font-mono); font-size: .62rem; }
.toc a:hover { color: var(--fg); background: var(--fill); }
.toc a.is-active { color: var(--fg); background: var(--fill-2); }
.toc a.is-active::before { color: var(--c2); }
.share p { margin: 0 0 12px; color: var(--fg-3); }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btns .icon-btn { --glass-blur: 14px; }
.share__btns .icon-btn > * { position: relative; z-index: 3; }
.share__btns .icon-btn:hover { color: var(--c2); }

.prose { font-size: clamp(1.06rem, 1.15vw, 1.15rem); line-height: 1.78; color: color-mix(in oklab, var(--fg) 86%, transparent); overflow-wrap: break-word; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2.3em; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 550; line-height: 1.14; letter-spacing: -.035em; color: var(--fg); scroll-margin-top: 120px; }
.prose h3 { margin-top: 1.9em; font-size: 1.32rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--fg); }
.prose h4 { margin-top: 1.6em; font-size: 1.1rem; color: var(--fg); }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--c2) 70%, transparent); transition: text-decoration-color .3s, color .3s; }
.prose a:hover { color: var(--c1); text-decoration-color: var(--c1); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .55em; }
.prose li::marker { color: var(--c2); }
.prose ol li::marker { font-family: var(--font-mono); font-size: .85em; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--c2); font-family: var(--font-serif); font-size: 1.5em; line-height: 1.32; color: var(--fg); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: 18px; height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: .85rem; color: var(--fg-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; color: var(--fg-3); }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--fill-2); }
.prose pre { padding: 20px; border-radius: 16px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose hr { height: 1px; border: 0; background: var(--line-2); margin-block: 3em; }
.article .prose > p:first-child::first-letter {
  float: left; margin: .08em .12em 0 0; padding-right: .04em;
  font-family: var(--font-serif); font-style: italic; font-size: 4.4em; line-height: .78;
  background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3em !important; }
.article__tags .chip:hover { color: var(--fg); background: var(--fill-2); }
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-top: 3.5em !important; padding: 26px; border-radius: var(--r-lg); font-size: .98rem; }
.author-card > * { position: relative; z-index: 3; }
.author-card__avatar { width: 72px; height: 72px; }
.author-card p { margin: 0 0 12px; color: var(--fg-2); line-height: 1.55; }
.author-card .mono { margin: 0 0 4px; color: var(--fg-3); }
.author-card__name { margin: 0 0 6px !important; font-size: 1.35rem; font-weight: 550; letter-spacing: -.03em; color: var(--fg) !important; }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(70px, 9vw, 120px); }
.adjacent__link { display: grid; gap: 12px; padding: 26px; border-radius: var(--r-lg); transition: transform .6s var(--ease-out); }
.adjacent__link > * { position: relative; z-index: 3; }
.adjacent__link:hover { transform: translateY(-4px); }
.adjacent__link .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); }
.adjacent__link strong { font-size: 1.2rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.3; }
.adjacent__link--next { text-align: right; justify-items: end; }
.adjacent__link:only-child.adjacent__link--next { grid-column: 2; }
.related { padding-block: clamp(90px, 11vw, 160px) 0; display: grid; gap: 22px; }
.related .listing__grid { margin-top: 22px; }

/* ---------- Página ---------- */
.page .page-hero { max-width: calc(940px + var(--gutter) * 2); }
.page__body { max-width: 940px; margin-inline: auto; padding: clamp(24px, 5vw, 64px); border-radius: var(--r-xl); }
.page__body > * { position: relative; z-index: 3; }
.page__elementor { position: relative; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; justify-items: center; align-content: center; gap: 26px; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; text-align: center; }
.lost__lens { display: grid; place-items: center; width: min(360px, 70vw); aspect-ratio: 1; border-radius: 50%; }
.lost__lens span { position: relative; z-index: 3; font-size: clamp(5rem, 14vw, 9rem); font-weight: 500; letter-spacing: -.07em; background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost__title { margin: 0; font-size: clamp(2.4rem, 5.6vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; max-width: 16ch; }
.lost__lead { margin: 0; color: var(--fg-2); max-width: 46ch; }
.lost__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- GTranslate (selector flotante) ---------- */
.gt_float_switcher {
  font-family: var(--font-sans) !important;
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-radius: 20px !important;
  box-shadow: var(--glass-shadow), inset 0 0 0 1px var(--line-2) !important;
  color: var(--fg) !important;
  overflow: hidden;
}
.gt_float_switcher .gt-selected { background: transparent !important; }
.gt_float_switcher .gt-selected .gt-current-lang { color: var(--fg) !important; padding: 9px 14px !important; font-size: 13px !important; font-weight: 500 !important; }
.gt_float_switcher .gt_options a { color: var(--fg-2) !important; font-size: 13px !important; }
.gt_float_switcher .gt_options a:hover { background: var(--fill-2) !important; color: var(--fg) !important; }
.gt_float_switcher img { width: 22px !important; height: 22px !important; border-radius: 50%; object-fit: cover; }
.gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow { filter: invert(var(--inv, 1)); opacity: .6; }
[data-theme="light"] .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow { --inv: 0; }

#gt_float_wrapper.is-docked { position: static !important; z-index: auto !important; }
#gt_float_wrapper.is-docked .gt_float_switcher { display: inline-block; }
.menu__lang:empty { display: none; }

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .75s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; filter: blur(10px); transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(10px); transform: translateY(18px); } }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-group(*) { animation: none; }
html.theme-vt .site-header, html.theme-vt .bg, html.theme-vt .article__cover-img, html.theme-vt .post-card__img { view-transition-name: none !important; }
::view-transition-group(post-cover) { animation-duration: .9s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
::view-transition-old(post-cover), ::view-transition-new(post-cover) { animation: none; mix-blend-mode: normal; height: 100%; object-fit: cover; overflow: clip; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .bento__bio { grid-column: span 12; grid-row: auto; }
  .bento__stats { grid-column: span 7; }
  .bento__langs { grid-column: span 5; }
  .bento__skills { grid-column: span 6; }
  .bento__place { grid-column: span 6; }
  .bento__stack { grid-column: span 12; }
  .listing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__layout { grid-template-columns: minmax(0, 740px); }
  .article__aside { position: static; order: 2; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__chip--1, .hero__chip--3 { display: none; }
  .bento__stats, .bento__langs { grid-column: span 12; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; position: relative; top: auto; }
  .stack__visual { min-height: 220px; order: -1; }
  .vis-devices, .vis-nodes, .vis-blueprint { width: min(320px, 100%); }
  .journey__grid { grid-template-columns: 1fr; }
  .work, .work:nth-child(even) { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__media { order: 0; }
  .pubs__grid { grid-template-columns: 1fr; }
  .quotes__grid { grid-template-columns: 1fr; }
  .quote:nth-child(n) { margin-top: 0; min-height: 0; }
  .pricing__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .listing__feature .post-card--feature { grid-template-columns: 1fr; }
  .listing__feature .post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .adjacent { grid-template-columns: 1fr; }
  .adjacent__link--next { text-align: left; justify-items: start; }
  .adjacent__link:only-child.adjacent__link--next { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .glass, .btn--glass { --glass-blur: 14px; }
  body { font-size: 16px; }
  .site-header { top: 10px; }
  .site-header__bar { height: 56px; padding-left: 10px; }
  .site-header__cta { display: none; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__top { flex-wrap: wrap; }
  .hero__clock { display: none; }
  .hero__title { align-content: space-between; padding-block: 18px; min-height: 60svh; font-size: clamp(3.6rem, 19.5vw, 7rem); }
  .hero__portrait { width: clamp(170px, 50vw, 240px); top: 50%; }
  .hero__chip--2 { left: 62%; top: 4%; }
  .hero__chip--4 { left: auto; right: 64%; top: 30%; bottom: auto; }
  .hero__chip strong { font-size: .8rem; }
  .hero__chip-num { font-size: 1.7rem !important; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1; }
  .rings { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .apps__grid {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter);
  }
  .apps__grid::-webkit-scrollbar { display: none; }
  .app { flex: 0 0 84%; scroll-snap-align: start; }
  .app:hover { transform: none; }
  .apps__hint { display: flex; }
  .bento__skills, .bento__place { grid-column: span 12; }
  .stat { min-height: 120px; }
  .form__row { grid-template-columns: 1fr; }
  .listing__grid { grid-template-columns: 1fr; }
  .listing__tools { flex-direction: column; align-items: stretch; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .cats::-webkit-scrollbar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .pub-row { grid-template-columns: auto 1fr; }
  .pub-row__go { display: none; }
  .author-card { grid-template-columns: 1fr; }
  .work__go { width: 52px; height: 52px; margin-top: 16px; }
  .prose { font-size: 1.04rem; }
  .article__cover-img { aspect-ratio: 4 / 3; }
}

@media (hover: none) {
  .pub-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bg__grain { animation: none; }
  @view-transition { navigation: none; }
}
