:root {
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: #151518;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f5;
  --muted: #8e8e95;
  --red: #e8452c;
  --orange: #f08a2a;
  --teal: #1fc3b0;
  --white: #ffffff;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); margin-bottom: 20px; }
[data-todo] { outline: 1px dashed rgba(240, 138, 42, .55); outline-offset: 4px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(36px, 5.4vw, 80px); }
h3, .h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }

/* Ritmo vertical único para todas las secciones (referencia: los espacios más cortos). */
:root { --section-space: clamp(72px, 8vw, 112px); }
.section { padding: var(--section-space) var(--gutter); position: relative; }
.section__head { max-width: 1100px; margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--center { text-align: center; margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--white); color: #000; font-weight: 500; font-size: 15px;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--white); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }

/* Intro: animación del logo al cargar la página */
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity .55s var(--ease); }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__video { width: 60%; height: 60%; object-fit: contain; } /* 40% más chico; ver SIZE en main.js */
.intro__skip { position: absolute; right: var(--gutter); bottom: 28px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #8e8e95; font-size: 11px; }
html.intro-lock, html.intro-lock body { overflow: hidden; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-items: center;
}
.loader__rings { width: min(42vw, 260px); overflow: visible; }
.ring { fill: none; stroke: var(--white); stroke-width: 4.2; }
.loader__count { position: absolute; bottom: 32px; right: var(--gutter); color: var(--muted); }

/* Progress stripe (4 colores de marca) */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  display: flex; transform-origin: left; transform: scaleX(0);
}
.progress span { flex: 1; }
.progress span:nth-child(1) { background: var(--red); }
.progress span:nth-child(2) { background: var(--orange); }
.progress span:nth-child(3) { background: var(--teal); }
.progress span:nth-child(4) { background: var(--white); }

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 34px; height: 22px; margin: -11px 0 0 -17px;
  border: 1.5px solid var(--white); border-radius: 50%;
  mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
}
.cursor.is-hover { width: 70px; height: 44px; margin: -22px 0 0 -35px; }
@media (hover: none) { .cursor { display: none; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(14px); padding-block: 14px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__lang, .menu__lang { color: var(--muted); font-size: 11px; }
.nav__lang a:hover, .menu__lang a:hover, [aria-current="page"] { color: var(--text); }
.menu__lang { font-size: 14px; margin-top: 24px; }
.nav__burger { display: none; width: 32px; height: 32px; position: relative; }
.nav__burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--white); transition: transform .3s; }
.nav__burger span:first-child { top: 12px; }
.nav__burger span:last-child { top: 19px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: #000;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 0 var(--gutter); font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.03em;
}
.menu[hidden] { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--gutter) 32px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.7) 0%, rgba(5,5,5,.2) 55%, rgba(5,5,5,0) 100%), linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,0) 25%, rgba(5,5,5,0) 55%, var(--bg) 100%); }
.hero__meta { position: absolute; top: 96px; left: var(--gutter); display: flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__meta i { width: 48px; height: 1px; background: var(--muted); }
.hero__content { position: relative; max-width: 980px; }
.hero__title { font-size: clamp(64px, 13vw, 200px); font-weight: 500; letter-spacing: -0.06em; line-height: .9; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }

/* Glitch tipográfico: la "a" de Play se vuelve "e" (Pley) por un instante */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-char); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.glitch.is-glitching { animation: glitch-jitter .32s steps(2) both; }
.glitch.is-glitching::before { opacity: .9; color: var(--teal); animation: glitch-slice-a .32s steps(3) both; }
.glitch.is-glitching::after { opacity: .9; color: var(--red); animation: glitch-slice-b .32s steps(3) both; }
@keyframes glitch-jitter {
  0% { transform: translate(0); } 25% { transform: translate(-.02em, .01em) skewX(-6deg); }
  50% { transform: translate(.025em, -.01em); } 75% { transform: translate(-.01em, 0) skewX(4deg); } 100% { transform: none; }
}
@keyframes glitch-slice-a {
  0% { clip-path: inset(0 0 62% 0); transform: translate(-.05em, 0); }
  50% { clip-path: inset(48% 0 18% 0); transform: translate(.04em, 0); }
  100% { clip-path: inset(80% 0 0 0); transform: translate(-.02em, 0); }
}
@keyframes glitch-slice-b {
  0% { clip-path: inset(70% 0 4% 0); transform: translate(.05em, 0); }
  50% { clip-path: inset(10% 0 66% 0); transform: translate(-.045em, 0); }
  100% { clip-path: inset(36% 0 40% 0); transform: translate(.03em, 0); }
}
.hero__lead { max-width: 520px; color: #c9c9ce; font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { position: relative; margin-top: 64px; display: flex; justify-content: flex-end; color: var(--muted); font-size: 11px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 28px; background: var(--muted); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.ticker__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -0.02em; }
.ticker__track b { color: var(--muted); font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto__text { font-size: clamp(28px, 3.8vw, 58px); line-height: 1.12; letter-spacing: -0.03em; max-width: 1200px; }
.manifesto__text .w { opacity: .16; transition: opacity .2s; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 5vw, 72px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: 32px 28px 40px; }
.pillar span { color: var(--muted); }
.pillar h3 { font-size: 20px; margin: 48px 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Services */
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services__list { list-style: none; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  padding: 22px 0; text-align: left; color: var(--muted); transition: color .3s, padding .4s var(--ease);
}
.svc button:hover, .svc.is-active button { color: var(--text); }
.svc.is-active button { padding-left: 12px; }
.svc__num { font-family: var(--mono); font-size: 12px; }
.svc__name { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.svc__desc { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.svc__mobile { display: none; }
.services__panel { position: sticky; top: 110px; }
.services__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #24242a 0%, var(--surface) 55%);
  border: 1px solid var(--line);
}
.services__media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.services__media img.is-on { opacity: 1; transform: none; }
.services__detail { padding: 28px 4px 0; min-height: 220px; }
.services__detail h3 { margin-bottom: 12px; }
.services__detail p { color: #c4c4ca; max-width: 560px; }
.services__detail ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip, .services__detail li { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: #d6d6db; }

/* Servicios fijados (desktop): el panel derecho siempre cabe entero en pantalla */
@media (min-width: 1081px) {
  .services__panel { position: static; }
  .services__media { max-height: calc(100svh - 96px - 32px - 300px); min-height: 240px; }
  .services__detail { min-height: 0; padding-top: 22px; }
}

/* Tech */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 4vw, 64px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, var(--surface-2), var(--bg) 70%);
  margin-bottom: 28px;
}
.product__tag { color: var(--teal); margin-bottom: 18px; }
.product h3 { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; }
.product__copy > p { color: #c4c4ca; margin-bottom: 24px; }
.product__note { color: var(--muted); margin-bottom: 24px; }
.ticks { list-style: none; margin-bottom: 28px; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #c4c4ca; font-size: 15px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.ticks b { color: var(--text); font-weight: 500; }
.product--nativo .product__visual img { width: 100%; max-width: 560px; margin-inline: auto; }

.product__logo { height: 36px; width: auto; margin-bottom: 22px; }
.product__logo--pylot { filter: brightness(0) invert(1); }
.product__wordmark { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 22px; display: inline-block; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.mode { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; }
.mode p { color: var(--muted); font-size: 10px; }
.mode b { font-weight: 500; font-size: 17px; }
.mode span { color: #b9b9bf; font-size: 14px; line-height: 1.45; }
.mode--featured { border-color: var(--teal); background: rgba(31, 195, 176, .06); }

.cashier {
  max-width: 420px; margin-inline: auto; display: grid; gap: 14px; padding: 24px;
  border: 1px solid var(--line-strong); border-radius: 24px; background: #0a0a0c;
}
.cashier__head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.cashier__head .mono { color: var(--teal); }
.cashier__amount, .cashier__addr { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface-2); position: relative; }
.cashier__amount .mono, .cashier__addr .mono { color: var(--muted); font-size: 10px; }
.cashier__amount b { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.cashier__amount .muted { font-size: 14px; }
.cashier__addr code { font-family: var(--mono); font-size: 15px; }
.cashier__qr {
  position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 6px;
  background: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 0 0 / 12px 12px; opacity: .85;
}
.cashier__status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d6d6db; }
.cashier__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); flex: none; }
.cashier__coins { display: flex; gap: 8px; }

.chat { display: grid; gap: 14px; }
.chat__channels { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__window { border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: #0a0a0c; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.chat__lead { margin-left: auto; color: var(--orange); }
.chat__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.msg--in { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--out { background: var(--white); color: #0a0a0c; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Asesoría: software y pagos */
.advisory__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.adv {
  padding: clamp(28px, 3.4vw, 52px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(160deg, var(--surface-2), var(--bg) 70%);
  display: flex; flex-direction: column;
}
.adv h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px; }
.adv > p:not(.product__tag) { color: #c4c4ca; margin-bottom: 28px; }
.adv .ticks { margin-bottom: 0; }
.adv .ticks li { grid-template-columns: 130px 1fr; }
.advisory__cta { margin-top: 32px; }

/* Work (scroll horizontal fijado) */
.work { position: relative; }
.work__pin { display: flex; align-items: center; gap: clamp(32px, 4vw, 64px); min-height: 100vh; padding: 96px 0 var(--section-space) var(--gutter); overflow: hidden; }
.work__intro { flex: 0 0 min(420px, 34vw); }
.work__intro h2 { font-size: clamp(56px, 7vw, 110px); margin-bottom: 14px; }
.work__meta { color: var(--teal); margin-bottom: 20px; }
.work__intro > p:not(.mono) { color: #c4c4ca; margin-bottom: 28px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.kpi span { font-size: 12px; color: var(--muted); }
.work__hint { color: var(--muted); }
.work__track { display: flex; gap: 20px; padding-right: var(--gutter); will-change: transform; }
.shot {
  flex: 0 0 auto; width: min(36vw, 460px); height: min(70vh, 620px);
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: radial-gradient(120% 90% at 60% 0%, #1d2a22 0%, var(--surface) 60%); border: 1px solid var(--line);
}
.shot--wide { width: min(62vw, 820px); }
.shot img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.shot figcaption { position: absolute; left: 18px; bottom: 16px; color: #d6d6db; font-size: 10px; }

/* Social: muro de reels en 3D */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reels { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); touch-action: pan-y; }
.reels__stage { position: absolute; inset: 0; cursor: grab; z-index: 1; }
.reels.is-dragging .reels__stage { cursor: grabbing; }
.reels__ring {
  position: absolute; left: 50%; top: 54%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: perspective(var(--persp, 1000px)) rotateZ(var(--roll, -20deg)) rotateX(var(--tilt, -22deg));
}
.reel {
  position: absolute; left: 0; top: 0; width: 300px; height: 400px; margin: -200px 0 0 -150px;
  transform-style: preserve-3d; opacity: 0; will-change: transform, opacity;
}
.reel__face, .reel__back { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.reel__face { background: var(--surface-2); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.reel__face img, .reel__face video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.reel__back { transform: rotateY(180deg); background: linear-gradient(160deg, #1b1b1f, #0b0b0c); border: 1px solid var(--line); }
.reel__tag {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; font-size: 10px;
  background: rgba(5,5,5,.75); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.reel.is-hover .reel__face { outline: 2px solid var(--white); outline-offset: -2px; }
.reel.is-hover .reel__tag, .reel:focus-visible .reel__tag { opacity: 1; transform: none; }
.reel:focus-visible .reel__face { outline: 2px solid var(--teal); outline-offset: -2px; }

.reels__loader { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #121214; }
.reels__loader::before { content: ""; position: absolute; inset: 0; background: #f2f2ef; z-index: -1; transition: opacity 1.4s var(--ease); }
.reels:not(.is-entering):not(.is-done) .reels__loader::before { opacity: 1; }
.reels.is-revealing .reels__loader::before, .reels.is-done .reels__loader::before { opacity: 0; }
.reels__loader { z-index: 0; }
.reels__brand { position: absolute; left: var(--gutter); top: 100px; height: 52px; width: auto; transform-origin: left top; z-index: 3; }
.reels__counter {
  position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: baseline;
  font-size: clamp(72px, 11vw, 168px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-transform: none;
  transition: opacity .6s;
}
.digit { display: inline-block; height: 1em; overflow: hidden; }
.digit__strip { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.5,0,.15,1); }
.digit__strip span { height: 1em; }
.reels__pct { font-size: .3em; margin-left: .15em; }
.reels__loading { position: absolute; right: var(--gutter); bottom: calc(28px + clamp(72px, 11vw, 168px) + 8px); transition: opacity .6s; }
.reels.is-revealing .reels__counter, .reels.is-revealing .reels__loading, .reels.is-done .reels__counter, .reels.is-done .reels__loading { opacity: 0; }

.reels__ui {
  position: absolute; left: var(--gutter); top: 110px; z-index: 3; max-width: 560px; pointer-events: none;
}
.reels__ui > * { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reels__ui > .reels__eyebrow { opacity: 0; transform: none; transition: none; color: var(--muted); margin-bottom: 18px; }
.reels.is-ready .reels__ui > *:not(.reels__eyebrow) { opacity: 1; transform: none; }
.reels.is-ready .reels__ui > :nth-child(3) { transition-delay: .12s; }
.reels__ui h2 { font-size: clamp(40px, 5vw, 76px); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.reels__sub { color: #d0d0d5; margin-top: 18px; text-shadow: 0 1px 16px rgba(0,0,0,.8); }
.reels::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: linear-gradient(90deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,0) 45%), linear-gradient(180deg, rgba(5,5,5,0) 70%, rgba(5,5,5,.8) 100%);
}
.reels.is-ready::after { opacity: 1; }
.reels__hover { position: absolute; right: var(--gutter); bottom: 32px; z-index: 3; color: var(--text); min-height: 16px; text-align: right; }
.reels__skip {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 4; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(18,18,20,.35); color: #121214; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.reels.is-entering .reels__skip { opacity: 1; pointer-events: auto; }
.reels.is-revealing .reels__skip { border-color: var(--line-strong); color: var(--text); }

/* El muro de reels como hero: titular arriba, descripción y botones abajo, centrados */
.reels--hero .reels__ring { top: 52%; }
.reels--hero .reels__ui { left: var(--gutter); right: var(--gutter); max-width: none; text-align: center; }
.reels--hero .reels__ui--top { top: clamp(130px, 19.5vh, 205px); bottom: auto; }
.reels--hero .reels__ui--bottom { top: auto; bottom: clamp(24px, 5vh, 56px); display: grid; justify-items: center; }
.reels--hero .hero__title { font-size: clamp(40px, 5.94vw, 101px); line-height: 1; margin: 0; }
/* Sin recorte: el interletrado negativo y el overflow cortaban el brazo y la cola de la "y". */
.reels--hero .hero__title .line { display: inline-block; vertical-align: top; overflow: visible; padding-bottom: .1em; }
.reels--hero .hero__title .line + .line { margin-left: 0; }
.reels--hero .hero__lead { max-width: 560px; margin: 0 auto 22px; font-size: clamp(15px, 1.15vw, 18px); }
.reels--hero .hero__ctas { justify-content: center; pointer-events: auto; }
.reels--hero .reels__hover { top: clamp(92px, 13vh, 132px); bottom: auto; }
.reels--hero::after { background: linear-gradient(180deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0) 66%, rgba(5,5,5,.92) 100%); }
.reels__hint { color: var(--muted); margin-top: 18px; }
.nav { transition: background .4s, backdrop-filter .4s, padding .4s, opacity .8s var(--ease); }
body.intro-playing .nav { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .reels--hero .hero__title .line { display: block; }
  .reels--hero .hero__title .line + .line { margin-left: 0; }
  .reels--hero .hero__lead { font-size: 14px; }
  .reels--hero .reels__hover { display: none; }
}

/* Cierre: video de fondo con el footer integrado */
.closing { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(110px, 16vh, 180px) var(--gutter) 0; }
.contact__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 60%, rgba(5,5,5,0) 0%, rgba(5,5,5,.55) 60%),
    linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,.15) 25%, rgba(5,5,5,.2) 70%, rgba(5,5,5,.92) 100%);
}
.closing__inner { position: relative; }
.closing__title { font-size: clamp(56px, 10vw, 168px); line-height: .92; letter-spacing: -0.055em; margin-bottom: clamp(36px, 6vh, 72px); }
.closing__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.closing__copy p { color: #d4d4d9; max-width: 460px; margin-bottom: 22px; }
.closing__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; color: var(--text); font-size: 11px; }
.closing__facts li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Botón glass sobre el video */
.glass-cta {
  position: relative; display: inline-flex; align-items: center; gap: 22px;
  padding: 14px 14px 14px 36px; border-radius: 999px; color: var(--white);
  font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.glass-cta__arrow {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--white); color: #0a0a0c; font-size: 24px; transition: transform .5s var(--ease);
}
.glass-cta:hover { transform: translateY(-3px); background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.1)); border-color: rgba(255,255,255,.65); }
.glass-cta:hover .glass-cta__arrow { transform: translateX(4px) rotate(-45deg); }

.closing__bar {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  margin-top: clamp(48px, 9vh, 110px); padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.18); color: #b4b4ba;
}
.closing__bar p { font-size: 10px; }
.closing__logo { height: 18px; width: auto; }
.closing__rg { display: inline-flex; align-items: center; }
@media (max-width: 1080px) {
  .closing__row { grid-template-columns: 1fr; }
  .glass-cta { justify-self: start; }
}
@media (max-width: 640px) {
  .glass-cta { gap: 14px; padding-left: 24px; font-size: 17px; }
  .glass-cta__arrow { width: 48px; height: 48px; }
  .closing__bar { justify-content: flex-start; }
}

/* Studio */
.studio__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto auto; gap: 16px; }
.studio__grid figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.studio__grid figure img { width: 100%; height: 100%; object-fit: cover; }
.studio__big { grid-row: span 2; }
.studio__grid figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 10px; background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 999px; }
.studio__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 24px; }
.studio__facts div { padding: 28px 0; }
.studio__facts b { display: block; font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; }
.studio__facts span { color: var(--muted); font-size: 15px; }

/* Rent */
.rent__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.rent__copy p { color: #c4c4ca; margin: 28px 0 18px; max-width: 520px; }
.rent__sub { color: var(--teal) !important; }
.config { border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 3vw, 40px); background: var(--surface); }
.config__title { color: var(--muted); margin-bottom: 20px; }
.config fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.config legend { color: var(--muted); font-size: 10px; margin-bottom: 10px; width: 100%; }
.config label { position: relative; cursor: pointer; }
.config input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.config label { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .25s; user-select: none; }
.config label:has(input:checked) { background: var(--white); color: #000; border-color: var(--white); }
.config label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.config__result { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 24px; }
.config__compare { display: grid; gap: 18px; }
.config__compare span { color: var(--muted); font-size: 10px; }
.config__compare b { display: block; font-weight: 500; font-size: 20px; margin: 4px 0 10px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--red), var(--orange)); border-radius: 99px; transition: width .6s var(--ease); }
.bar--pley i { width: 12%; background: var(--teal); }

/* Clients orbit */
.orbit { position: relative; width: min(100%, 1000px); aspect-ratio: 1000 / 620; margin: 0 auto; }
.orbit__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__rings ellipse { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 14%; opacity: .9; }
.orbit__logo {
  position: absolute; left: 0; top: 0; width: 128px; height: 52px; margin: -26px 0 0 -64px;
  display: grid; place-items: center; padding: 10px 16px; border-radius: 999px;
  background: rgba(5,5,5,.85); border: 1px solid var(--line); backdrop-filter: blur(6px);
  transition: border-color .3s, transform .3s var(--ease);
}
.orbit__logo img { max-height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .75; transition: filter .3s, opacity .3s; }
.orbit__logo:hover { border-color: var(--white); transform: scale(1.08); z-index: 3; }
.orbit__logo:hover img { filter: none; opacity: 1; }
.orbit__label { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; color: var(--text); white-space: nowrap; min-height: 18px; transition: opacity .3s; }

.logo-marquee { display: none; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.logo-marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 22s linear infinite; }
.logo-marquee__track img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* Trust */
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.trust h2 { margin-bottom: 32px; max-width: 520px; }
.partners { list-style: none; border-top: 1px solid var(--line); }
.partners li { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.partners b { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.partners span { color: var(--muted); font-size: 14px; text-align: right; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cert { position: relative; aspect-ratio: 3 / 4; perspective: 900px; text-align: left; }
.cert__face, .cert__back {
  position: absolute; inset: 0; border-radius: 18px; border: 1px solid var(--line-strong); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; backface-visibility: hidden;
  transition: transform .7s var(--ease);
}
.cert__face { background: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.cert__face .mono { color: var(--muted); font-size: 10px; }
.cert__face b { font-size: 18px; font-weight: 500; line-height: 1.15; }
.cert__back { transform: rotateY(180deg); background: var(--white); color: #0a0a0c; font-size: 14px; justify-content: flex-end; }
.cert:hover .cert__face, .cert:focus-visible .cert__face { transform: rotateY(-180deg); }
.cert:hover .cert__back, .cert:focus-visible .cert__back { transform: rotateY(0); }

/* Contact */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; transform: scaleY(-1); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.contact__title { font-size: clamp(48px, 7vw, 112px); margin-bottom: 28px; }
.contact__grid > div > p { color: #c4c4ca; max-width: 480px; margin-bottom: 28px; }
.contact__info { list-style: none; color: var(--muted); display: grid; gap: 8px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius) + 8px); background: rgba(13,13,15,.85); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.form__full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--white); }
.form__status { color: var(--teal); min-height: 16px; }

/* Footer */
.footer { padding: 48px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); }
.footer__logo { height: 18px; width: auto; }
.footer p { font-size: 10px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--muted); border-radius: 50%; margin-right: 10px; color: var(--text); }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__lang { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .services__grid, .product, .rent__grid, .trust__grid, .contact__grid, .advisory__grid { grid-template-columns: 1fr; }
  .product--nativo .product__visual { order: 2; }
  .services__panel { display: none; }
  .svc__desc { display: none; }
  .svc.is-active .svc__mobile { display: block; padding: 0 0 24px 56px; color: #c4c4ca; font-size: 15px; }
  .svc__mobile img { margin-top: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-height: 280px; width: 100%; object-fit: contain; }
  .work__pin { flex-direction: column; align-items: stretch; padding: var(--section-space) var(--gutter); min-height: 0; }
  .work__intro { flex: none; }
  .work__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(var(--gutter) * -1); }
  .shot, .shot--wide { width: 78vw; height: 62vh; scroll-snap-align: start; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__big { grid-row: auto; }
  .studio__facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .btn--small { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .ticks li { grid-template-columns: 1fr; gap: 2px; }
  .modes { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .kpi b { font-size: 18px; }
  .orbit { display: none; }
  .logo-marquee { display: block; }
  .certs { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__foot span:first-child { max-width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .manifesto__text .w { opacity: 1; }
}
