/* Lo que lleva el atributo hidden no se ve nunca (aunque su clase le dé display) */
[hidden] { display: none !important; }

/* Tipografías servidas desde nuestro dominio (rápidas, sin terceros y compatibles con la CSP) */
@font-face { font-family: 'Geist Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.4841e590e2a9.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.a147f99cd533.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.79936b18df9f.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.b1c8a895f5fd.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ═══ Cuban Software Developers · NEON ═══════════════════════════════════════
   Oscuro casi negro + azul neón eléctrico. Titulares en Bricolage Grotesque
   (estrecha, peso alto), texto en IBM Plex Sans y datos en IBM Plex Mono.
   El neón es luz y borde (resplandores), nunca texto con degradado ni cristal.
   De borde a borde, esquinas rectas. Mobile-first: 640 / 1024 / 1440 px. */

:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --panel: #111114;
  --panel-2: #1a1a1f;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --muted: #86868b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --neon: #2997ff;
  --neon-2: #64d2ff;
  --neon-soft: #6cb4ff;
  --glow: 0 0 0 1px rgba(41, 151, 255, .9), 0 0 24px rgba(41, 151, 255, .5), 0 0 64px rgba(41, 151, 255, .22);
  --glow-soft: 0 0 0 1px rgba(41, 151, 255, .45), 0 0 34px rgba(41, 151, 255, .16);
  --ok: #30d158;
  --error: #ff453a;
  --r: 22px;
  --r-sm: 14px;
  --g: clamp(16px, 4vw, 72px);
  --gap: clamp(16px, 2vw, 28px);
  --display: 'Geist Variable', 'Geist', -apple-system, 'SF Pro Display', system-ui, sans-serif;
  --sans: 'Geist Variable', 'Geist', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --header-h: 64px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
  background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; text-rendering: optimizeLegibility;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(47, 123, 255, .18), transparent 60%),
              radial-gradient(700px 500px at -10% 40%, rgba(0, 209, 255, .08), transparent 60%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--neon-2); outline-offset: 3px; }
::selection { background: var(--neon); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2848; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -100px; z-index: 100; background: var(--neon); color: #fff; padding: 10px 14px; }
.skip:focus { top: 10px; }
.muted { color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
main, .footer, .lang-banner { position: relative; z-index: 1; }
main { display: block; min-height: 60vh; }
main:focus { outline: none; }

.ssr { padding: 24px var(--g); max-width: 900px; font-size: 16px; color: var(--text-2); }
.ssr h1 { font: 800 40px/1.05 var(--display); margin: 24px 0 12px; color: var(--text); }
.ssr h2 { font: 700 26px/1.2 var(--display); margin: 24px 0 8px; color: var(--text); }
.ssr a { color: var(--neon-soft); }
.ssr nav a, .ssr li { margin-right: 12px; }
.boot { min-height: 100vh; }
.boot--error { display: grid; place-items: center; padding: var(--g); }

/* Fondo 3D (lienzo propio, detrás de todo) y foco que sigue al ratón */
.bg3d { position: fixed !important; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(47, 123, 255, .13), transparent 62%); }

/* ── Tipografía ────────────────────────────────────────────────────────── */
.kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--neon-soft); }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--neon); box-shadow: 0 0 8px var(--neon); flex: none; }
.kicker__n { color: var(--neon-2); }
.kicker__n::after { content: ' /'; color: var(--muted); }
.kicker--light { color: var(--neon-soft); }
.ai-tag { display: inline-block; margin-left: 8px; padding: 3px 6px; font: 600 10px/1 var(--mono); letter-spacing: .08em;
  color: #fff; background: var(--neon); box-shadow: 0 0 14px rgba(47, 123, 255, .7); vertical-align: middle; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--neon-soft);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s, text-shadow .2s; }
.link:hover { color: #fff; text-shadow: 0 0 12px rgba(47, 123, 255, .9); }
.link .arrow { transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }
.link--light { color: var(--text); }
.arrow { flex: none; }
.arrow--down { transform: rotate(90deg); }
.arrow--up-right { transform: rotate(-45deg); }
/* Firma: la última palabra de los grandes titulares se enciende en neón */
.hl, .hero__title .words__w:last-of-type > span, .phead__title .words__w:last-of-type > span,
.cta__title .words__w:last-of-type > span {
  color: var(--neon-soft); text-shadow: 0 0 18px rgba(47, 123, 255, .85), 0 0 50px rgba(47, 123, 255, .45);
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 24px; font: 600 15px/1 var(--sans); letter-spacing: .01em; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .3s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--accent, .btn--solid { background: var(--neon); color: #fff; box-shadow: 0 0 0 1px var(--neon), 0 10px 34px -8px rgba(47, 123, 255, .85); }
.btn--accent:hover, .btn--solid:hover { background: #4a8dff; box-shadow: var(--glow); }
.btn--line, .btn--light { border-color: var(--line-strong); color: var(--text); background: rgba(8, 13, 26, .6); }
.btn--line:hover, .btn--light:hover { border-color: var(--neon); box-shadow: var(--glow-soft); color: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--accent::after, .btn--solid::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.motion .btn--accent:hover::after, .motion .btn--solid:hover::after { animation: sheen .9s var(--ease); }
@keyframes sheen { to { transform: translateX(120%); } }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--g); background: rgba(5, 7, 13, .8); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.header--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.header--scrolled { background: rgba(5, 7, 13, .9); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 13px/1.05 var(--sans); letter-spacing: -.01em; flex: none; }
.logo img { height: 36px; width: auto; }
.logo__mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 38px; height: 38px;
  border: 1px solid var(--neon); color: var(--text); font: 600 15px/1 var(--mono); box-shadow: inset 0 0 14px rgba(47, 123, 255, .35), 0 0 16px rgba(47, 123, 255, .35); }
.logo__mark b { display: inline-block; width: 7px; height: 7px; background: var(--neon-2); box-shadow: 0 0 10px var(--neon-2); }
.nav { display: none; gap: 26px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--neon);
  box-shadow: 0 0 8px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text-2); transition: color .2s; }
.icon-btn:hover { color: #fff; }
.lang { display: inline-flex; font: 500 12px/1 var(--mono); border: 1px solid var(--line-strong); }
.lang span { padding: 7px 7px; color: var(--muted); }
.lang span.is-on { background: var(--neon); color: #fff; box-shadow: 0 0 12px rgba(47, 123, 255, .6); }
.header__cta { display: none; }
.header--open { background: var(--bg) !important; border-color: var(--line) !important; backdrop-filter: none !important; }
.mmenu { position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 39;
  background: var(--bg); padding: calc(var(--header-h) + 16px) var(--g) 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; overscroll-behavior: contain;
  background-image: radial-gradient(600px 400px at 100% 0, rgba(41, 151, 255, .2), transparent 60%); animation: mmenu-in .35s var(--ease) both; }
@keyframes mmenu-in { from { opacity: 0; transform: translateY(12px); } }
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font: 800 clamp(32px, 9vw, 52px)/1.02 var(--display);
  letter-spacing: -.03em; border-bottom: 1px solid var(--line); animation: rv-up .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.mmenu nav a:hover { color: var(--neon-soft); text-shadow: 0 0 20px rgba(47, 123, 255, .8); }
.mmenu__n { font: 500 12px/1 var(--mono); color: var(--neon-2); }
.mmenu__foot { display: grid; gap: 18px; }
.mmenu__foot .btn { justify-content: center; }
.mmenu__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; font-size: 14px; color: var(--text-2); }
body.menu-open { overflow: hidden; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__tools { margin-left: 18px; }
  .header__cta { display: inline-flex; }
  .mmenu, .tabbar { display: none !important; }
}
@media (max-width: 420px) { .logo__name { display: none; } }
.lang-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px var(--g); background: var(--panel);
  border-bottom: 1px solid var(--line); font-size: 14px; z-index: 45; }
.lang-banner a { display: inline-flex; align-items: center; gap: 6px; color: var(--neon-soft); text-decoration: underline; }
.lang-banner button { margin-left: auto; font-size: 22px; line-height: 1; padding: 0 6px; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.block { padding: clamp(72px, 10vw, 150px) var(--g); position: relative; }
.block + .block { padding-top: 0; }
.band { padding: clamp(72px, 10vw, 150px) var(--g); position: relative; }
.band--ink { background: linear-gradient(180deg, rgba(11, 18, 36, .9), rgba(5, 7, 13, .9)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--ink::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent); box-shadow: 0 0 18px var(--neon); }
.band--accent { background: var(--neon); color: #fff; }
.shead { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 80px); }
.shead__title { font: 800 clamp(38px, 6vw, 92px)/.95 var(--display); letter-spacing: -.035em; max-width: 16ch; }
.shead__lead { max-width: 56ch; color: var(--text-2); font-size: 18px; }
.shead__action { margin-top: 8px; }
@media (min-width: 1024px) {
  .shead { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--gap); }
  .shead .kicker, .shead__title, .shead__lead { grid-column: 1; }
  .shead__action { grid-column: 2; grid-row: 2; margin: 0 0 14px; }
}
.phead { padding: clamp(48px, 6vw, 96px) var(--g) clamp(40px, 5vw, 72px); display: grid; gap: 22px; border-bottom: 1px solid var(--line); position: relative; }
.phead__copy { display: grid; gap: 22px; min-width: 0; }
.phead__title { font: 800 clamp(46px, 8.2vw, 136px)/.9 var(--display); letter-spacing: -.045em; max-width: 13ch; }
.phead__lead { max-width: 58ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); }
.phead--compact { padding-top: clamp(32px, 3vw, 52px); padding-bottom: clamp(26px, 3vw, 44px); }
.phead--compact .phead__title { font-size: clamp(40px, 5.6vw, 88px); max-width: none; }
@media (min-width: 1024px) {
  .phead--compact { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); align-items: end; }
  .phead--compact .phead__copy > .tabs { justify-self: start; }
}
.phead--art { grid-template-columns: 1fr; align-items: center; }
.phead__art { position: relative; height: 280px; margin: 0 calc(var(--g) * -1); }
.phead__piece { position: absolute !important; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .phead--art { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--gap); }
  .phead--art .phead__title { max-width: 12ch; }
  .phead__art { height: clamp(340px, 36vw, 520px); margin: 0 calc(var(--g) * -1) 0 0; }
}
.crumbs { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.crumbs a:hover { color: var(--neon-soft); }

/* ── Portada ──────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + 36px) var(--g) 0; overflow: hidden; }
.hero__copy { display: grid; gap: 26px; position: relative; z-index: 3; align-content: start; }
.hero__title { font: 800 clamp(52px, 8.4vw, 150px)/.86 var(--display); letter-spacing: -.05em; max-width: 12ch; }
.hero__text { max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__art { position: relative; min-height: 50vh; margin: 8px calc(var(--g) * -1) 0; z-index: 2; transform: translateY(var(--par, 0px)); }
.hero__city, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); position: relative; z-index: 3;
  margin: 0 calc(var(--g) * -1); background: rgba(5, 7, 13, .72); }
.hero__facts li { display: grid; gap: 6px; padding: 20px var(--g); border-bottom: 1px solid var(--line); }
.hero__facts strong { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--mono); color: #fff; text-shadow: 0 0 18px rgba(47, 123, 255, .9); }
.hero__facts span { font-size: 14px; color: var(--text-2); }
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts li { border-bottom: 0; border-right: 1px solid var(--line); }
  .hero__facts li:last-child { border-right: 0; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr auto; padding-top: calc(var(--header-h) + 52px); }
  .hero__copy { align-content: center; padding-bottom: 56px; }
  .hero__art { grid-column: 2; grid-row: 1; margin: 0 calc(var(--g) * -1) 0 -6vw; min-height: 0; }
  .hero__facts { grid-column: 1 / -1; }
}
.stack-line { display: grid; gap: 14px; padding: 26px var(--g); border-bottom: 1px solid var(--line); }
.stack-line__list { display: flex; flex-wrap: wrap; gap: 6px 0; font: 500 clamp(15px, 1.3vw, 18px)/1.5 var(--mono); color: var(--text-2); }
.stack-line__list span:not(:last-child)::after { content: '//'; margin: 0 14px; color: var(--neon); text-shadow: 0 0 8px var(--neon); }
@media (min-width: 1024px) { .stack-line { grid-template-columns: 200px 1fr; align-items: center; } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); min-width: 0; }
.marquee__track { display: flex; width: max-content; }
.marquee .stack-line__list { flex-wrap: nowrap; white-space: nowrap; padding-right: 14px; }
.marquee .stack-line__list span:last-child::after { content: '//'; margin: 0 14px; color: var(--neon); }
@keyframes marquee { to { transform: translateX(-50%); } }
.motion .marquee__track { animation: marquee 44s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
html:not(.motion) .marquee__track > p:nth-child(2) { display: none; }
html:not(.motion) .marquee .stack-line__list { flex-wrap: wrap; white-space: normal; }

/* Índice de servicios */
.index { border-top: 1px solid var(--line-strong); }
.index__row a { position: relative; display: grid; grid-template-columns: 40px 1fr 24px; gap: 6px 16px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line-strong); overflow: hidden; transition: background .3s; }
.index__row a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--neon);
  box-shadow: 0 0 16px var(--neon), 0 0 40px var(--neon); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.index__row a:hover { background: linear-gradient(90deg, rgba(47, 123, 255, .12), transparent 70%); }
.index__n { font: 500 13px/1 var(--mono); color: var(--neon-soft); }
.index__name { font: 800 clamp(26px, 3.6vw, 52px)/1.02 var(--display); letter-spacing: -.03em; transition: transform .35s var(--ease), text-shadow .3s; }
.index__summary, .index__price { grid-column: 2; color: var(--text-2); font-size: 15px; }
.index__price b { font-weight: 600; color: #fff; }
.index__row .arrow { grid-column: 3; grid-row: 1; align-self: center; color: var(--neon-soft); transition: transform .3s var(--ease); }
.index__row a:hover::before { transform: scaleY(1); }
.index__row a:hover .index__name { transform: translateX(14px); text-shadow: 0 0 22px rgba(47, 123, 255, .7); }
.index__row a:hover .arrow { transform: translateX(6px); }
@media (min-width: 1024px) {
  .index__row a { grid-template-columns: 60px minmax(0, 1.2fr) minmax(0, 1fr) 210px 24px; padding: 32px 0; }
  .index__summary { grid-column: 3; }
  .index__price { grid-column: 4; text-align: right; }
  .index__row .arrow { grid-column: 5; }
}

/* Casos */
.work { display: grid; gap: var(--gap); }
.work__lead, .work__item, .mini-work__item { display: grid; gap: 10px; align-content: start; }
.work__meta { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--neon-soft); margin-top: 8px; }
.work__title { font: 800 clamp(28px, 3.2vw, 46px)/1.02 var(--display); letter-spacing: -.03em; }
.work__title--sm { font-size: clamp(22px, 2vw, 30px); }
.work__summary { color: var(--text-2); max-width: 60ch; }
.work__metrics { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 8px; }
.work__metrics span { display: grid; font-size: 13px; color: var(--muted); }
.work__metrics b { font: 600 24px/1.2 var(--mono); color: #fff; text-shadow: 0 0 14px rgba(47, 123, 255, .8); }
.work__side { display: grid; gap: var(--gap); }
.pvisual { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pc, var(--panel)); border: 1px solid var(--line-strong); }
.pvisual > svg { width: 100%; height: 100%; transition: transform .7s var(--ease); }
.pvisual--img { width: 100%; object-fit: cover; }
a:hover .pvisual { border-color: var(--neon); box-shadow: var(--glow); }
a:hover .pvisual > svg, a:hover .mk__stage { transform: scale(1.035); }
@media (min-width: 1024px) {
  .work { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .work__lead .pvisual { aspect-ratio: 4 / 3; }
}

/* Proceso */
.process__head { display: grid; gap: 8px; }
.process__art { position: relative; height: 260px; }
@media (min-width: 1024px) {
  .process__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .process__head .shead { margin-bottom: 0; }
  .process__art { height: 360px; }
}
.process__head + .steps { margin-top: clamp(40px, 5vw, 72px); }
.steps { display: grid; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps__n { font: 600 13px/1.6 var(--mono); color: var(--neon-2); grid-row: span 2; text-shadow: 0 0 10px var(--neon-2); }
.steps__title { font: 800 clamp(24px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -.02em; }
.steps__text { color: var(--text-2); max-width: 52ch; font-size: 16px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; }
  .steps li { grid-template-columns: 1fr; padding: 30px 24px 30px 0; border-bottom: 0; border-top: 1px solid var(--line-strong); transition: border-color .3s, box-shadow .3s; }
  .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps li:hover { border-top-color: var(--neon); box-shadow: 0 -1px 18px -6px var(--neon); }
  .steps__n { grid-row: auto; }
}
.models { display: grid; gap: 1px; margin-top: clamp(40px, 6vw, 80px); background: var(--line); border: 1px solid var(--line); }
.model { background: var(--panel); padding: clamp(26px, 3vw, 46px); display: grid; gap: 12px; align-content: start; transition: background .3s, box-shadow .3s; }
.model:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--neon), inset 0 0 40px rgba(47, 123, 255, .15); }
.model__label { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--neon-2); }
.model__title { font: 800 clamp(30px, 3.2vw, 46px)/1 var(--display); letter-spacing: -.03em; }
.model p:not([class]) { color: var(--text-2); max-width: 48ch; }
.model .link { justify-self: start; margin-top: 8px; }
@media (min-width: 768px) { .models { grid-template-columns: 1fr 1fr; } }

/* Presupuesto rápido */
.quick__body { display: grid; gap: var(--gap); }
.quick__types { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.quick__types button { padding: 13px 16px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--text-2); background: rgba(8, 13, 26, .6); transition: all .2s; text-align: left; }
.quick__types button:hover { border-color: var(--neon); color: #fff; }
.quick__types button.is-on { background: var(--neon); color: #fff; border-color: var(--neon); box-shadow: 0 0 22px rgba(47, 123, 255, .6); }
.quick__result { display: grid; gap: 8px; align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--panel);
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(127, 184, 255, .2), 0 30px 80px -30px rgba(47, 123, 255, .5); }
.quick__piece { height: 190px; margin: -10px -10px 0; }
.quick__label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--neon-soft); }
.quick__price { font: 800 clamp(34px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.03em; color: #fff; text-shadow: 0 0 24px rgba(47, 123, 255, .7); font-variant-numeric: tabular-nums; }
.quick__meta { color: var(--text-2); margin-bottom: 12px; }
.quick__result .btn { justify-self: start; }
@media (min-width: 1024px) { .quick__body { grid-template-columns: 1.2fr 1fr; } }

/* Personas */
.people { display: grid; border-top: 1px solid var(--line-strong); margin: 0 var(--g) clamp(64px, 9vw, 140px); }
.people--strip { margin: 0; grid-template-columns: repeat(2, 1fr); border-top: 0; gap: var(--gap) 16px; }
.person { display: grid; gap: 4px; align-content: start; }
.person__mono { display: grid; place-items: center; aspect-ratio: 1; font: 800 clamp(34px, 4vw, 60px)/1 var(--display); letter-spacing: -.04em;
  background: radial-gradient(circle at 50% 120%, rgba(47, 123, 255, .45), transparent 65%), var(--panel);
  border: 1px solid var(--line-strong); color: #fff; text-shadow: 0 0 20px rgba(47, 123, 255, .9); margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
.person:hover .person__mono { border-color: var(--neon); box-shadow: var(--glow-soft); }
.person__photo { aspect-ratio: 1; width: 100%; object-fit: cover; margin-bottom: 10px; filter: grayscale(.2) contrast(1.05); border: 1px solid var(--line-strong); }
.person__name { font: 600 18px/1.25 var(--sans); }
.person__role { color: var(--text-2); font-size: 15px; }
.person__meta { font: 400 12px/1.5 var(--mono); color: var(--muted); }
@media (min-width: 768px) { .people--strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .people--strip { grid-template-columns: repeat(6, 1fr); } }
.person--row { grid-template-columns: 88px 1fr; gap: 16px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.person--row .person__mono, .person--row .person__photo { margin: 0; font-size: 30px; }
.person__body { display: grid; gap: 6px; }
.person--row .person__name { font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
.person__bio { color: var(--text-2); max-width: 60ch; font-size: 16px; }
.person__facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.person__facts dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.person__facts dd.is-free { color: var(--ok); font-weight: 600; text-shadow: 0 0 10px rgba(62, 224, 161, .6); }
@media (min-width: 1024px) {
  .person--row { grid-template-columns: 140px minmax(0, 1fr) 320px; align-items: start; }
  .person--row .person__mono { font-size: 46px; }
  .person__facts { grid-column: 3; display: grid; grid-template-columns: repeat(3, 1fr); }
}
.wide-photo { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: saturate(.85) contrast(1.05); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 400 12px/1 var(--mono); padding: 7px 9px; border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(8, 13, 26, .5); }

/* Filas genéricas */
.rows { border-top: 1px solid var(--line-strong); }
.rows__item { display: grid; grid-template-columns: 1fr 24px; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.rows__item:hover { background: linear-gradient(90deg, rgba(47, 123, 255, .1), transparent 70%); }
.rows__meta { font: 500 12px/1.4 var(--mono); color: var(--neon-soft); text-transform: uppercase; letter-spacing: .06em; }
.rows__title { font: 800 clamp(22px, 2.6vw, 34px)/1.08 var(--display); letter-spacing: -.02em; grid-column: 1; transition: text-shadow .3s; }
.rows__text { color: var(--text-2); grid-column: 1; max-width: 70ch; font-size: 16px; }
.rows__item .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--neon-soft); transition: transform .3s var(--ease); }
.rows__item:hover .arrow { transform: translateX(6px); }
.rows__item:hover .rows__title { text-shadow: 0 0 18px rgba(47, 123, 255, .8); }
@media (min-width: 1024px) {
  .rows__item { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) 24px; align-items: baseline; padding: 30px 0; }
  .rows__meta { grid-column: 1; }
  .rows__title { grid-column: 2; }
  .rows__text { grid-column: 3; grid-row: 1; }
  .rows__item .arrow { grid-column: 4; grid-row: 1; }
}
.quote blockquote { display: grid; gap: 20px; max-width: 32ch; }
.quote p { font: 700 clamp(28px, 4vw, 56px)/1.08 var(--display); letter-spacing: -.02em; }
.quote footer { font: 500 13px/1.4 var(--mono); color: var(--neon-soft); }

/* FAQ */
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0;
  font: 700 clamp(19px, 2vw, 25px)/1.25 var(--display); letter-spacing: -.01em; transition: color .2s; }
.faq__item summary:hover { color: var(--neon-soft); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 18px; height: 18px; position: relative; margin-top: 6px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--neon);
  box-shadow: 0 0 8px var(--neon); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { padding: 0 0 26px; max-width: 70ch; color: var(--text-2); }
@media (min-width: 1024px) { .faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gap); } .faq .shead { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); } }

/* Cierre con globo */
.cta { display: grid; gap: 24px; }
.cta--globe { gap: 8px; overflow: hidden; }
.cta__copy { display: grid; gap: 26px; align-content: center; position: relative; z-index: 3; }
.cta__title { font: 800 clamp(42px, 7.4vw, 124px)/.88 var(--display); letter-spacing: -.045em; max-width: 12ch; }
.cta__text { max-width: 56ch; color: var(--text-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__globe { position: relative !important; height: 340px; margin: 0 calc(var(--g) * -1); }
@media (min-width: 1024px) {
  .cta--globe { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .cta__globe { height: clamp(400px, 40vw, 600px); margin: -40px calc(var(--g) * -1) -40px 0; }
}
.team-cta { display: grid; gap: 22px; border-top: 1px solid var(--line); }
.team-cta__title { font: 800 clamp(32px, 4.6vw, 70px)/.95 var(--display); letter-spacing: -.035em; max-width: 18ch; }

/* ── Pie ──────────────────────────────────────────────────────────────── */
.footer { padding: clamp(56px, 7vw, 96px) var(--g) 28px; background: var(--bg); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding-bottom: clamp(40px, 5vw, 72px); font-size: 15px; }
.footer__h { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--neon-2); margin-bottom: 14px; }
.footer__grid li { padding: 4px 0; color: var(--text-2); overflow-wrap: anywhere; }
.footer__grid a:hover { color: #fff; text-shadow: 0 0 10px rgba(47, 123, 255, .8); }
.footer__word { font: 800 clamp(58px, 14.5vw, 250px)/.82 var(--display); letter-spacing: -.055em; margin: 0 0 24px;
  white-space: nowrap; overflow: hidden; color: transparent; -webkit-text-stroke: 1px rgba(127, 184, 255, .35); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: #fff; }
.footer__legal .lang { margin-left: auto; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.clock { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); }
.clock__dot { width: 7px; height: 7px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 10px var(--ok); }

/* ── Servicios ────────────────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--line-strong); margin: 0 var(--g) clamp(64px, 9vw, 140px); }
.svc { position: relative; display: grid; grid-template-columns: 36px 1fr 24px; gap: 12px 16px; padding: 32px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.svc:hover { background: linear-gradient(90deg, rgba(47, 123, 255, .08), transparent 70%); }
.svc::before { content: ''; position: absolute; left: -16px; top: 32px; width: 3px; height: 44px; background: var(--c, var(--neon)); box-shadow: 0 0 14px var(--c, var(--neon)); }
.svc__n { font: 500 13px/2.2 var(--mono); color: var(--neon-soft); }
.svc__main { display: grid; gap: 10px; }
.svc__name { font: 800 clamp(30px, 4vw, 60px)/.98 var(--display); letter-spacing: -.035em; }
.svc__name a:hover { text-shadow: 0 0 22px rgba(47, 123, 255, .8); }
.svc__summary { color: var(--text-2); max-width: 58ch; }
.svc__facts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.svc__facts dt, .facts-row dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.svc__facts dd { font: 600 18px/1.3 var(--sans); color: #fff; }
.svc__facts small, .facts-row small { font-weight: 400; color: var(--muted); font-size: .8em; }
.svc__go { grid-column: 3; grid-row: 1; align-self: start; padding-top: 12px; color: var(--neon-soft); }
@media (min-width: 640px) { .svc::before { left: calc(var(--g) * -1); } }
@media (min-width: 1024px) {
  .svc { grid-template-columns: 60px minmax(0, 1.6fr) minmax(0, .8fr) 24px; align-items: start; padding: 42px 0; }
  .svc__facts { grid-column: 3; display: grid; gap: 16px; }
  .svc__go { grid-column: 4; }
}
.detail-hero { display: grid; gap: var(--gap); padding: clamp(36px, 4vw, 64px) var(--g) clamp(44px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.detail-hero__copy { display: grid; gap: 20px; align-content: center; }
.detail-hero__title { font: 800 clamp(44px, 7.4vw, 120px)/.88 var(--display); letter-spacing: -.045em; }
.detail-hero__lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-2); max-width: 46ch; }
.detail-hero__art { position: relative; min-height: 320px; background: radial-gradient(circle at 50% 80%, rgba(47, 123, 255, .25), transparent 60%), var(--panel);
  border: 1px solid var(--line-strong); box-shadow: inset 0 2px 0 var(--c, var(--neon)); }
.detail-hero__piece, .detail-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-hero__img { object-fit: cover; }
@media (min-width: 1024px) { .detail-hero { grid-template-columns: 1.1fr 1fr; } .detail-hero__art { min-height: 540px; } }
.facts-row { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-row dd { font: 600 18px/1.35 var(--sans); color: #fff; }
.facts-row dd a { color: var(--neon-soft); text-decoration: underline; }
.split { display: grid; gap: var(--gap); }
.split__side { display: grid; gap: 14px; align-content: start; }
.split__side .kicker:not(:first-child) { margin-top: 18px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); }
  #candidatura, #aplicar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
}
.prose { display: grid; gap: 18px; max-width: 68ch; font-size: 18px; color: var(--text-2); }
.prose h2 { font: 800 clamp(26px, 2.8vw, 38px)/1.08 var(--display); letter-spacing: -.02em; color: #fff; margin-top: 18px; }
.prose h3 { font: 600 20px/1.3 var(--sans); color: #fff; margin-top: 8px; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 32px; position: relative; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; font: 500 13px/1.9 var(--mono); color: var(--neon-2); }
.prose a { color: var(--neon-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #fff; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.prose th { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--neon-2); }
.prose td:first-child { color: #fff; width: 48%; }
.prose strong { color: #fff; font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--neon); padding-left: 18px; color: var(--text); }
.prose code { font: 400 .88em var(--mono); background: var(--panel); padding: 2px 6px; border: 1px solid var(--line); }
.prose pre { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.prose pre code { background: none; padding: 0; border: 0; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 7px; border-left: 2px solid var(--neon-2);
  border-bottom: 2px solid var(--neon-2); transform: rotate(-45deg); filter: drop-shadow(0 0 4px var(--neon-2)); }
.ticks--big li { font: 700 clamp(20px, 2vw, 27px)/1.25 var(--display); padding-left: 34px; color: var(--text); }
.dash li { position: relative; padding-left: 18px; color: var(--text-2); }
.dash li::before { content: '—'; position: absolute; left: 0; color: var(--neon-soft); }
.mini-work { display: grid; gap: var(--gap); margin-top: 24px; }
@media (min-width: 768px) { .mini-work { grid-template-columns: repeat(3, 1fr); } }

/* ── Casos (páginas) ──────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.filters button { padding: 9px 14px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); background: rgba(8, 13, 26, .5); transition: all .2s; }
.filters button:hover { border-color: var(--neon); color: #fff; }
.filters button.is-on { background: var(--neon); color: #fff; border-color: var(--neon); box-shadow: 0 0 16px rgba(47, 123, 255, .55); }
.cases { display: grid; gap: clamp(64px, 9vw, 130px); padding: clamp(48px, 7vw, 110px) var(--g); }
.case { display: grid; gap: 22px; }
.case__body { display: grid; gap: 12px; align-content: center; }
.case__title { font: 800 clamp(32px, 4.6vw, 72px)/.94 var(--display); letter-spacing: -.04em; transition: text-shadow .3s; }
.case:hover .case__title { text-shadow: 0 0 26px rgba(47, 123, 255, .7); }
.case__summary { color: var(--text-2); max-width: 52ch; font-size: 18px; }
.case .link { justify-self: start; margin-top: 8px; }
@media (min-width: 1024px) {
  .case { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); }
  .case--right .case__visual { order: 2; }
}
.case-hero { display: grid; gap: 18px; padding: clamp(36px, 4vw, 64px) var(--g) clamp(32px, 4vw, 56px); border-top: 2px solid var(--c, var(--neon)); box-shadow: inset 0 18px 40px -34px var(--c, var(--neon)); }
.case-hero__title { font: 800 clamp(44px, 7.6vw, 128px)/.88 var(--display); letter-spacing: -.045em; max-width: 15ch; }
.case-hero__lead { font-size: clamp(18px, 1.7vw, 23px); max-width: 52ch; color: var(--text-2); }
.case-hero__visual { aspect-ratio: 21 / 9; width: 100%; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--line); }
.metrics li { display: grid; gap: 6px; padding: 30px var(--g); border-right: 1px solid var(--line); }
.metrics strong { font: 800 clamp(44px, 5.4vw, 80px)/.95 var(--display); letter-spacing: -.03em; color: #fff; text-shadow: 0 0 26px rgba(47, 123, 255, .8); }
.metrics span { color: var(--text-2); font-size: 15px; }
.story { display: grid; gap: clamp(36px, 5vw, 64px); }
.story__col { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .story { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 120px); } .story__col--wide { grid-column: 1 / -1; } }
.next-case { display: grid; gap: 12px; padding: clamp(56px, 7vw, 110px) var(--g); border-top: 1px solid var(--line);
  background: radial-gradient(800px 300px at 20% 100%, rgba(47, 123, 255, .25), transparent 60%); }
.next-case__title { display: flex; align-items: center; gap: 18px; font: 800 clamp(36px, 6vw, 100px)/.92 var(--display); letter-spacing: -.045em; }
.next-case:hover .next-case__title { text-shadow: 0 0 30px rgba(47, 123, 255, .8); }

/* ── Presupuestador ───────────────────────────────────────────────────── */
.tabs { display: inline-flex; border: 1px solid var(--line-strong); margin-top: 10px; justify-self: start; max-width: 100%; background: rgba(8, 13, 26, .6); }
.tabs button { padding: 13px 18px; font-weight: 600; font-size: 15px; color: var(--text-2); transition: all .2s; }
.tabs button.is-on { background: var(--neon); color: #fff; box-shadow: 0 0 22px rgba(47, 123, 255, .6); }
.est { display: grid; gap: var(--gap); padding: clamp(32px, 4vw, 64px) var(--g) clamp(64px, 9vw, 140px); }
.est__controls { display: grid; gap: clamp(32px, 4vw, 52px); min-width: 0; }
.est__group { border: 0; display: grid; gap: 16px; min-width: 0; }
.est__group legend { display: flex; align-items: center; gap: 12px; font: 800 clamp(24px, 2.8vw, 38px)/1.05 var(--display); letter-spacing: -.02em; margin-bottom: 16px; }
.est__step { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--neon); color: #fff; font: 600 14px/1 var(--mono);
  box-shadow: 0 0 14px rgba(47, 123, 255, .5), inset 0 0 10px rgba(47, 123, 255, .4); }
.opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .opts { grid-template-columns: repeat(2, 1fr); } }
.opt { position: relative; display: grid; gap: 4px; padding: 15px 16px; border: 1px solid var(--line-strong); background: rgba(8, 13, 26, .55); cursor: pointer; transition: all .2s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--neon); }
.opt:has(input:focus-visible) { outline: 2px solid var(--neon-2); outline-offset: 2px; }
.opt.is-on { border-color: var(--neon); background: rgba(47, 123, 255, .16); box-shadow: inset 0 0 0 1px var(--neon), 0 0 22px rgba(47, 123, 255, .35); }
.opt__name { font-weight: 600; font-size: 15px; }
.opt__desc { font-size: 13px; color: var(--muted); }
.opt.is-on .opt__desc { color: var(--text-2); }
.opt--check { grid-template-columns: 18px 1fr; align-items: center; gap: 12px; }
.opt--check::before { content: ''; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); transition: all .2s; }
.opt--check.is-on::before { background: var(--neon-2); border-color: var(--neon-2); box-shadow: 0 0 10px var(--neon-2), inset 0 0 0 3px var(--bg); }
.feat-group { display: grid; gap: 10px; }
.feat-group__label { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.swatch { width: 10px; height: 10px; display: inline-block; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); justify-self: start; background: rgba(8, 13, 26, .55); }
.seg button { padding: 11px 18px; font-size: 15px; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.is-on { background: var(--neon); color: #fff; box-shadow: 0 0 18px rgba(47, 123, 255, .55); }
.seg--sm button { padding: 6px 10px; font: 500 12px/1 var(--mono); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--neon); flex: none; }
.check a { color: var(--neon-soft); text-decoration: underline; }
.check--error { color: var(--error); }
.est__summary { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 36px); background: var(--panel); min-width: 0;
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(127, 184, 255, .25), 0 40px 100px -40px rgba(47, 123, 255, .6); }
.est__piece { height: 270px; margin: -8px -8px 4px; }
.est__price { font: 800 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.03em; color: #fff; text-shadow: 0 0 24px rgba(47, 123, 255, .75); font-variant-numeric: tabular-nums; }
.est__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.est__facts dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.est__facts dd { font-weight: 600; color: #fff; }
.est__lines summary { cursor: pointer; font-size: 14px; color: var(--neon-soft); text-decoration: underline; }
.est__lines ul { display: grid; gap: 6px; margin: 10px 0; font-size: 14px; color: var(--text-2); }
.est__lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line-strong); padding-bottom: 4px; }
.est__note { font-size: 13px; }
.est__summary > .btn { width: 100%; }
@media (min-width: 1024px) {
  .est { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); align-items: start; }
  .est__summary { position: sticky; top: calc(var(--header-h) + 20px); }
}
.idea { display: grid; gap: 12px; padding: clamp(20px, 2.4vw, 32px); background: radial-gradient(600px 240px at 100% 0, rgba(47, 123, 255, .28), transparent 60%), var(--panel);
  border: 1px solid var(--neon); box-shadow: 0 0 34px rgba(47, 123, 255, .25); }
.idea__label { display: grid; gap: 10px; }
.idea__title { font: 800 clamp(22px, 2.4vw, 32px)/1.08 var(--display); letter-spacing: -.02em; }
.idea textarea { width: 100%; padding: 14px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); resize: vertical; min-height: 96px; }
.idea textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(47, 123, 255, .25); }
.idea textarea::placeholder { color: var(--muted); }
.idea__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brief { display: grid; gap: 12px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line-strong); background: rgba(8, 13, 26, .6); }
.brief__title { font: 800 26px/1.1 var(--display); }
.brief__cols { display: grid; gap: 20px; margin-top: 6px; font-size: 15px; }
.brief__h { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--neon-soft); margin-bottom: 10px; }
@media (min-width: 768px) { .brief__cols { grid-template-columns: repeat(3, 1fr); } }
.roles { display: grid; border-top: 1px solid var(--line-strong); }
.role { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.role.is-on { background: linear-gradient(90deg, rgba(47, 123, 255, .16), transparent 70%); }
.role__info { display: grid; gap: 2px; }
.role__name { font-weight: 600; font-size: 17px; }
.role__desc { color: var(--text-2); font-size: 14px; }
.role__rate { font: 400 13px/1.5 var(--mono); color: var(--neon-soft); }
.role__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 640px) { .role { grid-template-columns: 1fr auto; align-items: center; padding: 18px 12px; } }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.stepper button { width: 42px; height: 42px; font-size: 20px; color: var(--neon-soft); transition: background .2s; }
.stepper button:hover:not(:disabled) { background: rgba(47, 123, 255, .2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 36px; text-align: center; font: 600 16px/1 var(--mono); }
.range { display: flex; align-items: center; gap: 18px; }
.range input { flex: 1; accent-color: var(--neon); height: 30px; }
.range output { font: 600 18px/1 var(--mono); min-width: 90px; color: #fff; }

/* ── Formularios ──────────────────────────────────────────────────────── */
.lead-form { display: grid; gap: 18px; }
.lead-form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .lead-form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.lead-form--compact .lead-form__grid { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field__label { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--neon-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: rgba(5, 7, 13, .7);
  border: 1px solid var(--line-strong); border-radius: 0; transition: border-color .2s, box-shadow .2s; font-size: 16px; color: var(--text); }
.field select option { background: var(--panel); }
.field input[type=file] { padding: 12px 10px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(47, 123, 255, .25), 0 0 20px rgba(47, 123, 255, .25); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--error); }
.field__error, .form-error { color: var(--error); font-size: 14px; }
.field__hint { color: var(--muted); font-size: 13px; }
.lead-form .btn { justify-self: start; }
.lead-form--compact .btn { width: 100%; }
.sent { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--ok); box-shadow: 0 0 24px rgba(62, 224, 161, .25); background: rgba(62, 224, 161, .06); }
.sent__title { font: 800 24px/1.15 var(--display); color: #fff; }
.contact { display: grid; gap: var(--gap); padding: clamp(40px, 5vw, 80px) var(--g) clamp(64px, 9vw, 140px); }
.contact__info { display: grid; gap: 26px; align-content: start; }
.contact__info > div { display: grid; gap: 8px; }
.contact__big { font: 800 clamp(22px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; color: #fff; text-shadow: 0 0 18px rgba(47, 123, 255, .7); }
.contact__steps ol { display: grid; gap: 10px; counter-reset: s; }
.contact__steps li { counter-increment: s; position: relative; padding-left: 32px; color: var(--text-2); font-size: 15px; }
.contact__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; font: 500 13px/1.6 var(--mono); color: var(--neon-2); }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); } }
.pledges { display: grid; border-top: 1px solid var(--line-strong); }
.pledges li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pledges__n { font: 600 13px/1.8 var(--mono); color: var(--neon-2); grid-row: span 2; }
.pledges strong { font: 800 clamp(22px, 2.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; }
.pledges span:last-child { color: var(--text-2); }
@media (min-width: 1024px) { .pledges li { grid-template-columns: 60px 1fr 1fr; align-items: baseline; } .pledges__n { grid-row: auto; } }

/* ── Empleo y blog ────────────────────────────────────────────────────── */
.jobs { border-top: 1px solid var(--line-strong); }
.job-row { display: grid; grid-template-columns: 1fr 24px; gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.job-row:hover { background: linear-gradient(90deg, rgba(47, 123, 255, .1), transparent 70%); }
.job-row__title { font: 800 clamp(24px, 3vw, 42px)/1.02 var(--display); letter-spacing: -.03em; }
.job-row__meta { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--neon-soft); }
.job-row__summary { color: var(--text-2); max-width: 66ch; }
.job-row > *:not(.arrow) { grid-column: 1; }
.job-row .arrow { grid-column: 2; grid-row: 1; align-self: center; color: var(--neon-soft); transition: transform .3s; }
.job-row:hover .arrow { transform: translateX(6px); }
.job-row:hover .job-row__title { text-shadow: 0 0 22px rgba(47, 123, 255, .8); }
.post-lead { display: grid; gap: 12px; padding-bottom: clamp(40px, 5vw, 72px); margin-bottom: clamp(24px, 3vw, 40px); }
.post-lead img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.post-lead__title { font: 800 clamp(36px, 5.4vw, 86px)/.94 var(--display); letter-spacing: -.04em; max-width: 20ch; transition: text-shadow .3s; }
.post-lead:hover .post-lead__title { text-shadow: 0 0 26px rgba(47, 123, 255, .7); }
.post-lead__text { color: var(--text-2); max-width: 60ch; font-size: 19px; }
.post-lead .link { justify-self: start; }
.article__head { display: grid; gap: 18px; padding: clamp(36px, 4vw, 64px) var(--g) clamp(32px, 4vw, 56px); }
.article__title { font: 800 clamp(40px, 6.6vw, 104px)/.92 var(--display); letter-spacing: -.04em; max-width: 20ch; }
.article__lead { font-size: clamp(19px, 1.8vw, 24px); color: var(--text-2); max-width: 54ch; }
.article__cover { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article__body { padding: clamp(32px, 4vw, 64px) var(--g); }
.article__foot { display: grid; gap: 18px; padding: 0 var(--g) clamp(64px, 8vw, 120px); justify-items: start; }
@media (min-width: 1024px) { .article__body, .article__foot { margin-left: calc(100% / 4); } }
.legal { display: grid; gap: 28px; }

/* ── Búsqueda ─────────────────────────────────────────────────────────── */
.search { margin: 8vh auto auto; width: min(760px, calc(100% - 32px)); max-height: 80vh; border: 1px solid var(--neon); padding: 0;
  background: var(--panel); color: var(--text); box-shadow: 0 0 60px rgba(47, 123, 255, .35), 0 40px 100px rgba(0, 0, 0, .6); }
.search::backdrop { background: rgba(2, 4, 10, .78); }
.search__form { display: flex; gap: 8px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.search__form input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 17px; color: var(--text); }
.search__form input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(47, 123, 255, .25); }
.search__close { font-size: 26px; padding: 0 8px; color: var(--text-2); }
.search__body { padding: 18px; display: grid; gap: 14px; overflow-y: auto; max-height: calc(80vh - 80px); }
.search__hint, .search__loading { color: var(--muted); font-size: 15px; }
.search__examples { display: flex; flex-wrap: wrap; gap: 8px; }
.search__examples button { padding: 8px 12px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); }
.search__examples button:hover { border-color: var(--neon); color: #fff; }
.search__summary { font-size: 15px; color: var(--text-2); }
.search__summary .ai-tag { margin: 0 8px 0 0; }
.search__list { display: grid; border-top: 1px solid var(--line); }
.search__list a { display: grid; grid-template-columns: 1fr 20px; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search__list a:hover .search__title { color: var(--neon-soft); text-shadow: 0 0 14px rgba(47, 123, 255, .7); }
.search__kind { font: 500 11px/1.4 var(--mono); text-transform: uppercase; color: var(--neon-2); letter-spacing: .08em; }
.search__title { font: 800 22px/1.15 var(--display); grid-column: 1; }
.search__text { color: var(--text-2); font-size: 14px; grid-column: 1; }
.search__list .arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--neon-soft); }
.search__more { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--neon-soft); text-decoration: underline; justify-self: start; }
.search__empty { color: var(--text-2); }
.search--page { position: static; margin: 0; width: auto; max-height: none; box-shadow: none; display: grid; gap: 14px; border: 0; background: transparent; }
.search__form--page { padding: 0; border: 0; max-width: 760px; min-width: 0; }
.search__form--page input { width: 100%; }

/* ── Asistente ────────────────────────────────────────────────────────── */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 18px; background: var(--neon); color: #fff; font: 600 15px/1 var(--sans);
  box-shadow: 0 0 0 1px var(--neon), 0 12px 40px rgba(47, 123, 255, .6); transition: transform .25s var(--ease), opacity .25s, box-shadow .3s; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.chat-fab__dot { width: 8px; height: 8px; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.chat { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--panel);
  transform: translateY(16px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.chat[hidden] { display: none; }
.chat.is-open { transform: none; opacity: 1; }
@media (min-width: 640px) {
  .chat { inset: auto 16px 16px auto; width: 420px; height: min(680px, calc(100svh - 32px)); border: 1px solid var(--neon);
    box-shadow: 0 0 60px rgba(47, 123, 255, .35), 0 40px 100px rgba(0, 0, 0, .6); }
}
@media (max-width: 639px) { body.chat-open { overflow: hidden; } }
.chat__head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line);
  background: radial-gradient(400px 160px at 100% 0, rgba(47, 123, 255, .3), transparent 60%); }
.chat__head > div { flex: 1; }
.chat__title { font: 800 22px/1.05 var(--display); }
.chat__sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chat__reset { font: 500 12px/1 var(--mono); border: 1px solid var(--line-strong); padding: 7px 8px; color: var(--text-2); }
.chat__close { font-size: 26px; line-height: 1; padding: 0 4px; color: var(--text-2); }
.chat__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; display: grid; gap: 8px; }
.msg p { padding: 11px 13px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--assistant { align-self: flex-start; }
.msg--assistant p { background: var(--panel-2); border: 1px solid var(--line); }
.msg--assistant a { color: var(--neon-soft); text-decoration: underline; }
.msg--user { align-self: flex-end; }
.msg--user p { background: var(--neon); color: #fff; box-shadow: 0 0 18px rgba(47, 123, 255, .4); }
.msg--typing { flex-direction: row; display: flex; gap: 5px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.msg--typing span { width: 6px; height: 6px; background: var(--neon-2); box-shadow: 0 0 6px var(--neon-2); animation: blink 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .2s; } .msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--neon); font-size: 14px; background: rgba(47, 123, 255, .08); box-shadow: 0 0 18px rgba(47, 123, 255, .2); }
.chat-card__label { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--neon-soft); }
.chat-card__value { font: 800 24px/1.1 var(--display); color: #fff; }
.chat-card .link { justify-self: start; margin-top: 6px; font-size: 14px; }
.chat-card--ok { border-color: var(--ok); color: var(--ok); font-weight: 600; background: rgba(62, 224, 161, .06); box-shadow: none; }
.chat-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 9px 12px; border: 1px solid var(--line-strong); font-size: 14px; }
.chat-link:hover { border-color: var(--neon); }
.chat__suggest { display: grid; gap: 6px; margin-top: 4px; }
.chat__suggest button { text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); }
.chat__suggest button:hover { border-color: var(--neon); color: #fff; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat__form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--line-strong); background: var(--bg); resize: none; font-size: 16px; color: var(--text); }
.chat__form textarea:focus { outline: none; border-color: var(--neon); }

/* ── 3D ───────────────────────────────────────────────────────────────── */
.stage3d { position: fixed !important; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }
.piece { position: relative; z-index: 2; }
.hero__art .piece { position: absolute; }
.piece--css { background: radial-gradient(circle at 50% 60%, rgba(47, 123, 255, .35), transparent 60%); }
.piece--css.piece--stack { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; padding: 24px; gap: 5px; }
.piece--stack span { width: 55%; height: 18px; display: block; }
/* Ciudad ligera en SVG (components/Skyline.tsx): sin 3D, con conexión lenta o mientras carga */
.piece--css.piece--city { background: none; opacity: 1; overflow: hidden; }
.piece--city .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.hero__bg .piece--city .skyline { height: 62%; }
@media (max-width: 639px) { .hero__bg .piece--city .skyline { height: 46%; } }
.skyline__edge { stroke: #2997ff; stroke-opacity: .55; stroke-width: 1.2; fill: none; }
.skyline__far .skyline__edge { stroke-opacity: .25; }
.skyline__grid { stroke: #2997ff; stroke-opacity: .22; stroke-width: 1; fill: none; }
.skyline__malecon { stroke: #64d2ff; stroke-width: 2; filter: drop-shadow(0 0 6px #64d2ff); }
.motion:not(.calm) .skyline__blink { animation: sk-blink 6s ease-in-out infinite; }
@keyframes sk-blink { 0%, 100% { opacity: .85; } 45% { opacity: .1; } 55% { opacity: .1; } }

/* ═══ Animaciones ══════════════════════════════════════════════════════════ */
@keyframes rv-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.motion [data-reveal].is-in { animation: rv-up .8s var(--ease) both; animation-delay: var(--rd, 0ms); }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: var(--neon); box-shadow: 0 0 12px var(--neon), 0 0 24px var(--neon);
  transform-origin: left; z-index: 70; pointer-events: none; }
.words { display: inline; }
.words__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.words__w > span { display: inline-block; }
@keyframes word-up { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
.motion .words__w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--wi) * 60ms + 60ms); }
.motion [data-reveal]:not(.is-in) .words__w > span { animation: none; transform: translateY(110%); }
.motion [data-reveal].is-in .words__w > span { animation: word-up .9s var(--ease) both; animation-delay: calc(var(--wi) * 60ms + 120ms); }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), box-shadow .4s, border-color .4s; will-change: transform; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ═══ Capa Apple (oscuro): titulares precisos, centrado, bento, redondeos, píldoras ═══ */
.hero__title, .phead__title, .shead__title, .cta__title, .detail-hero__title, .case-hero__title, .article__title,
.index__name, .svc__name, .case__title, .work__title, .model__title, .steps__title, .quick__price, .est__price,
.metrics strong, .rows__title, .job-row__title, .post-lead__title, .next-case__title, .team-cta__title, .mmenu nav a,
.footer__word, .person--row .person__name, .pledges strong, .faq__item summary, .contact__big, .est__group legend, .idea__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.045em;
}
.shead__title, .steps__title, .model__title, .rows__title, .job-row__title, .faq__item summary, .pledges strong { letter-spacing: -.03em; }
body { font-family: var(--sans); letter-spacing: -.01em; }
.kicker::before { display: none; }
.kicker { color: var(--neon); letter-spacing: .14em; }

/* Portada centrada, como una página de producto */
.hero { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr auto !important; justify-items: center; text-align: center;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)) !important; }
.hero__copy { justify-items: center; padding-bottom: 0 !important; }
.hero__copy .kicker { justify-content: center; }
.hero__title { font-size: clamp(48px, 9vw, 152px); line-height: .92; max-width: 14ch; }
.hero__text { margin-inline: auto; color: var(--text-2); font-size: clamp(18px, 1.7vw, 23px); }
.hero__actions { justify-content: center; }
.hero__art { grid-column: 1 !important; grid-row: auto !important; width: calc(100% + var(--g) * 2); min-height: clamp(380px, 62vh, 760px) !important;
  margin: clamp(-40px, -3vw, -10px) calc(var(--g) * -1) 0 !important; }
.hero__facts { width: calc(100% + var(--g) * 2); text-align: left; background: transparent; border-top: 1px solid var(--line); }
.hero__facts strong { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }

/* Píldoras y redondeos */
.btn, .chat-fab, .lang, .tabs, .seg, .filters button, .quick__types button, .chips li, .search__examples button,
.chat__suggest button, .chat-link, .ai-tag, .stepper, .chat__reset { border-radius: 980px; }
.lang span:first-child, .tabs button:first-child, .seg button:first-child { border-radius: 980px 0 0 980px; }
.lang span:last-child, .tabs button:last-child, .seg button:last-child { border-radius: 0 980px 980px 0; }
.tabs, .seg, .lang, .stepper { overflow: hidden; }
.btn { min-height: 48px; padding: 0 26px; font-weight: 500; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.logo__mark { border-radius: 11px; }
.pvisual, .quick__result, .est__summary, .idea, .brief, .detail-hero__art, .person__mono, .person__photo, .search, .sent,
.wide-photo, .post-lead img, .article__cover, .case-hero__visual, .opt, .model, .chat-card, .msg p, .role { border-radius: var(--r); }
.models { border-radius: var(--r); overflow: hidden; background: transparent; border: 0; gap: var(--gap); }
.model { border: 1px solid var(--line); }
.opt { border-radius: var(--r-sm); }
.field input, .field select, .field textarea, .idea textarea, .search__form input, .chat__form textarea { border-radius: 12px; }
@media (min-width: 640px) { .chat { border-radius: 24px; overflow: hidden; } }
.wide-photo { width: calc(100% - var(--g) * 2); margin: 0 var(--g); border: 1px solid var(--line); }
.msg--user p { border-radius: 18px 18px 4px 18px; }
.msg--assistant p { border-radius: 18px 18px 18px 4px; }

/* Servicios en rejilla «bento» con brillo que sigue al ratón */
.index { display: grid; gap: var(--gap); border: 0; }
.index__row a { display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 250px; padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; isolation: isolate; }
.index__row a::before { width: auto; inset: 0; left: 0; transform: none; opacity: 0; box-shadow: none; z-index: -1; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(41, 151, 255, .22), transparent 60%); }
.index__row a:hover { background: var(--panel); border-color: rgba(41, 151, 255, .5); box-shadow: 0 30px 80px -40px rgba(41, 151, 255, .6); }
.index__row a:hover::before { opacity: 1; }
.index__row a:hover .index__name { transform: none; }
.index__name { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; }
.index__summary { color: var(--text-2); font-size: 16px; flex: 1; }
.index__price { text-align: left !important; color: var(--muted); }
.index__row .arrow { position: absolute; right: 26px; top: 28px; width: 22px; height: 22px; }
@media (min-width: 768px) { .index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .index { grid-template-columns: repeat(6, 1fr); }
  .index__row { grid-column: span 2; }
  .index__row:nth-child(1), .index__row:nth-child(2) { grid-column: span 3; }
  .index__row:nth-child(1) a, .index__row:nth-child(2) a { min-height: 320px; }
  .index__row:nth-child(1) .index__name, .index__row:nth-child(2) .index__name { font-size: clamp(34px, 3.4vw, 54px); }
  .index__row a { display: flex; }
}

/* Tarjetas con brillo (data-glow) */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(41, 151, 255, .16), transparent 60%); }
[data-glow]:hover::after { opacity: 1; }
[data-glow] > * { position: relative; z-index: 1; }

/* Secciones más limpias */
.band--ink { background: linear-gradient(180deg, #050506, #000); }
.band--ink::before { background: linear-gradient(90deg, transparent, rgba(41, 151, 255, .9), transparent); }
.steps li + li { border-left-color: var(--line); }
.people--strip .person__mono { border-radius: var(--r); }
.svc::before { border-radius: 3px; }
.stack-line { border-top: 1px solid var(--line); }
.footer__word { -webkit-text-stroke: 1px rgba(255, 255, 255, .14); }
.ssr { color: var(--text-2); }

/* Brillo de la palabra encendida sin recorte (la animación recorta cada palabra) */
.words__w { padding: .1em .32em .22em; margin: -.1em -.32em -.22em; }
.hero__title .words__w:last-of-type > span, .phead__title .words__w:last-of-type > span, .cta__title .words__w:last-of-type > span {
  text-shadow: 0 0 .14em rgba(41, 151, 255, .95), 0 0 .3em rgba(41, 151, 255, .45); }
.hero__title { font-size: clamp(46px, 8vw, 132px); }
.hero { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px)) !important; }
/* Aviso de idioma: notificación flotante (no tapa la cabecera) */
.lang-banner { position: fixed !important; left: 16px; bottom: 16px; z-index: 55 !important; max-width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(17, 17, 20, .92); backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); padding: 12px 14px; }
@media (max-width: 639px) { .lang-banner { bottom: 84px; } }

/* ═══ Proceso fijado al scroll (como una página de producto) ═══════════════ */
.pin { display: grid; gap: 0; position: relative; }
.pin__stage { position: sticky; top: var(--header-h); z-index: 2; height: 38vh; min-height: 240px; background: linear-gradient(180deg, #050506 70%, transparent);
  margin: 0 calc(var(--g) * -1); }
.pin__art { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.pin__counter { position: absolute; left: var(--g); bottom: 14px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.pin__counter b { color: #fff; font-weight: 600; text-shadow: 0 0 12px rgba(41, 151, 255, .9); }
.pin__steps { display: grid; }
.pin__steps > li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 0;
  border-bottom: 1px solid var(--line); opacity: .28; transform: scale(.98); transform-origin: left center; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pin__steps > li.is-active { opacity: 1; transform: none; }
.pin__n { font: 600 14px/1 var(--mono); color: var(--neon-2); letter-spacing: .12em; }
.pin__steps > li.is-active .pin__n { text-shadow: 0 0 12px var(--neon-2); }
.pin__title { font: 700 clamp(34px, 5vw, 76px)/1 var(--display); letter-spacing: -.045em; }
.pin__steps > li.is-active .pin__title { text-shadow: 0 0 28px rgba(41, 151, 255, .45); }
.pin__text { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-2); max-width: 46ch; }
@media (min-width: 1024px) {
  .pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
  .pin__stage { grid-column: 1; grid-row: 1; height: calc(100vh - var(--header-h)); margin: 0 0 0 calc(var(--g) * -1); background: none; }
  .pin__steps { grid-column: 2; grid-row: 1; }
  .pin__steps > li { min-height: 70vh; border-bottom: 0; }
  .pin__counter { left: var(--g); bottom: 40px; font-size: 15px; }
}
html.calm .pin__steps > li, html:not(.motion) .pin__steps > li { opacity: 1; transform: none; }

/* ═══ Logo original de la marca ═══════════════════════════════════════════ */
.logo { gap: 12px; }
.logo__img { height: 44px; width: auto; filter: drop-shadow(0 0 6px rgba(41, 151, 255, .55)); transition: filter .3s; }
.logo:hover .logo__img { filter: drop-shadow(0 0 10px rgba(41, 151, 255, .9)); }
.logo__name { font-weight: 600; font-size: 13px; line-height: 1.1; }
@media (max-width: 639px) { .logo__name { display: none; } .logo__img { height: 40px; } }
/* Pie: el logo grande y luminoso en lugar del nombre en contorno */
.footer__word { display: none; }
.footer__brand { display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 64px); text-align: center;
  border-top: 1px solid var(--line); position: relative; }
.footer__brand::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(560px, 80vw); height: 260px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41, 151, 255, .22), transparent); pointer-events: none; }
.footer__logo { position: relative; width: clamp(180px, 22vw, 300px); height: auto; filter: drop-shadow(0 0 14px rgba(41, 151, 255, .7)) drop-shadow(0 0 40px rgba(41, 151, 255, .35)); }
.footer__name { font: 700 clamp(32px, 5vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.footer__tagline { position: relative; color: var(--text-2); font-size: 15px; }

/* Transición entre páginas: fundido con desenfoque suave */
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }

/* ═══ Correcciones de la revisión ══════════════════════════════════════════ */
.hero__art { transform: none !important; }
@media (min-width: 1024px) {
  .rows__item--plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 24px; }
  .rows__item--plain .rows__title { grid-column: 1; }
  .rows__item--plain .rows__text { grid-column: 2; }
  .rows__item--plain .arrow { grid-column: 3; }
  .pin__steps > li { min-height: 48vh; }
}
/* Botón del asistente compacto en móvil (solo icono): no tapa contenido */
@media (max-width: 639px) {
  .chat-fab { width: 54px; height: 54px; padding: 0; justify-content: center; font-size: 0; gap: 0; right: 14px; bottom: 14px; }
  .chat-fab__dot { display: none; }
  .chat-fab::before { content: ''; width: 24px; height: 24px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H9l-5 4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H9l-5 4z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  body.has-est-bar .chat-fab { bottom: 86px; }
}
/* Contraste del texto secundario */
:root { --text-2: #bdbdc4; --muted: #8e8e95; }
.index__summary, .svc__summary, .work__summary, .case__summary, .rows__text, .steps__text, .pin__text, .person__bio { color: var(--text-2); }
.index__summary, .rows__text { font-size: 16px; }
/* Barra de precio fija (móvil y tablet) */
.est-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 48; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border: 1px solid rgba(41, 151, 255, .55); border-radius: 18px; background: rgba(17, 17, 20, .94); backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(41, 151, 255, .3), 0 20px 50px rgba(0, 0, 0, .6); transform: translateY(140%); transition: transform .4s var(--ease); }
.est-bar.is-on { transform: none; }
.est-bar__label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--neon-soft); }
.est-bar__value { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .est-bar { display: none; } }

/* ═══ Portada a pantalla completa: la ciudad detrás del titular ═══════════ */
.hero--full { min-height: 100svh; grid-template-rows: 1fr auto !important; align-content: stretch; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg .hero__city, .hero__bg canvas, .hero__bg .hero__img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.hero__bg::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 18%, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .45) 45%, transparent 70%),
              linear-gradient(180deg, transparent 70%, #000 100%); }
.hero--full .hero__copy { position: relative; z-index: 2; align-self: start; padding-top: clamp(8px, 3vh, 40px); }
.hero--full .hero__facts { position: relative; z-index: 2; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 639px) { .hero__bg::after { background: radial-gradient(140% 70% at 50% 25%, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35) 60%, transparent 80%), linear-gradient(180deg, transparent 75%, #000); } }
/* Legibilidad del titular sobre la ciudad */
.hero__bg::after { background:
  radial-gradient(90% 62% at 50% 34%, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .78) 42%, rgba(0, 0, 0, .2) 72%, transparent 85%),
  linear-gradient(180deg, transparent 72%, #000 100%) !important; }
.hero--full .hero__text { text-shadow: 0 2px 18px #000, 0 0 2px #000; }
/* Las cifras animadas heredan el estilo de su cifra (no el de la etiqueta) */
.hero__facts strong span, .work__metrics b span, .metrics strong span { display: inline; font: inherit; color: inherit; letter-spacing: inherit; }

/* Iconos de servicio */
.sicon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--neon-soft);
  background: radial-gradient(circle at 50% 120%, rgba(41, 151, 255, .35), transparent 70%), #16161b; border: 1px solid rgba(41, 151, 255, .35);
  box-shadow: inset 0 0 14px rgba(41, 151, 255, .2); filter: drop-shadow(0 0 8px rgba(41, 151, 255, .35)); transition: box-shadow .3s, color .3s, transform .3s var(--ease); }
.index__row a:hover .sicon { color: #fff; box-shadow: inset 0 0 18px rgba(41, 151, 255, .45), 0 0 22px rgba(41, 151, 255, .55); transform: translateY(-2px); }
.index__icon { margin-bottom: 4px; }
.index__row a { gap: 12px; }
.svc__n { display: grid; gap: 12px; align-content: start; }
.svc__icon { width: 44px; height: 44px; border-radius: 12px; }
@media (min-width: 1024px) { .svc { grid-template-columns: 76px minmax(0, 1.6fr) minmax(0, .8fr) 24px; } }

/* Frase protagonista (se enciende con el scroll) */
.statement { position: relative; height: 210vh; }
.statement__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 var(--g); }
.statement__text { max-width: 22ch; font: 700 clamp(36px, 6.4vw, 104px)/1.02 var(--display); letter-spacing: -.045em; text-align: center; }
.statement__text span { color: #2a2a30; transition: color .35s, text-shadow .35s; }
.statement__text span.is-lit { color: #f5f5f7; }
.statement__text span.is-lit:last-of-type { color: var(--neon-soft); text-shadow: 0 0 .14em rgba(41, 151, 255, .9), 0 0 .3em rgba(41, 151, 255, .4); }
html:not(.motion) .statement, html.calm .statement { height: auto; }
html:not(.motion) .statement__sticky, html.calm .statement__sticky { position: static; height: auto; padding-block: 120px; }
/* Logo: en móvil solo el «</>» (el texto en arco no se lee a ese tamaño) */
.logo__img--mark { display: none; }
@media (max-width: 639px) {
  .logo__img--full { display: none; }
  .logo__img--mark { display: block; height: 34px; width: 34px; }
}

/* ═══ Barra inferior tipo app (móvil y tablet) ═══════════════════════════ */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 57; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 max(6px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-right));
  background: rgba(8, 8, 10, .88); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line); }
.tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
  color: var(--muted); font: 500 10.5px/1 var(--sans); letter-spacing: 0; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.tabbar__icon { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: background .25s, box-shadow .25s; }
.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar__item.is-active { color: #fff; }
.tabbar__item.is-active .tabbar__icon { background: rgba(41, 151, 255, .16); color: var(--neon-2); }
.tabbar__item.is-active .tabbar__icon svg { filter: drop-shadow(0 0 6px rgba(41, 151, 255, .9)); }
.tabbar__item::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--neon);
  box-shadow: 0 0 10px var(--neon); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabbar__item.is-active::before { transform: scaleX(1); }
.tabbar__item--cta .tabbar__icon { background: var(--neon); color: #fff; box-shadow: 0 0 18px rgba(41, 151, 255, .55); }
.tabbar__item--cta.is-active .tabbar__icon { background: var(--neon); color: #fff; }
.tabbar__item--cta { color: var(--text); }
.tabbar__item:active .tabbar__icon { transform: scale(.92); }
@media (max-width: 1099px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .chat-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); }
  body.has-est-bar .chat-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 86px); }
  .est-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); }
  .lang-banner { top: calc(var(--header-h) + 10px); bottom: auto !important; left: 12px; right: 12px; max-width: none; }
  body.menu-open .chat-fab, body.menu-open .est-bar, body.menu-open .lang-banner { display: none; }
}
@media (max-width: 639px) {
  .chat-fab { right: 14px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
}

/* ═══ Maquetas de producto de los casos (components/Mockup.tsx) ═══════════ */
div.pvisual { position: relative; container-type: size; }
.mk { position: absolute; inset: 0; overflow: hidden; font: 400 min(1.5625cqw, 2.5cqh)/1.2 var(--sans); letter-spacing: 0; color: #e8eefc;
  --mk-line: #1d2840; --mk-soft: #111a2c; --mk-dim: #8fa0bf; --mk-glow: color-mix(in srgb, var(--pc) 45%, transparent);
  background: radial-gradient(110% 80% at 50% 118%, color-mix(in srgb, var(--pc) 65%, transparent), transparent 62%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 5.6em 100%, #04060c; }
.mk em, .mk i { font-style: normal; }
.mk p { margin: 0; }
.mk svg { display: block; }
.mk__stage { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .7s var(--ease); }
.mk-win { position: relative; border-radius: 1.4em; background: #0b1120; border: .1em solid color-mix(in srgb, var(--pc) 55%, #2a3550);
  box-shadow: 0 0 4em var(--mk-glow), 0 2em 5em rgba(0, 0, 0, .6); }
.mk-bar { height: 3em; display: flex; align-items: center; gap: .6em; padding: 0 1.2em; border-bottom: .1em solid var(--mk-line); }
.mk-bar > i { width: .8em; height: .8em; border-radius: 50%; background: #2a354d; }
.mk-bar > i:first-child { background: var(--pc); box-shadow: 0 0 .8em var(--pc); }
.mk-bar > span { margin-left: 1em; padding: .35em 1.2em; border-radius: 1em; background: #131b2d; color: var(--mk-dim); }
.mk-card { position: absolute; background: rgba(13, 20, 36, .95); border: .1em solid #24324f; border-radius: 1.2em; box-shadow: 0 1.5em 3em rgba(0, 0, 0, .55), 0 0 2em var(--mk-glow); }
.mk-toast { position: absolute; right: 3em; bottom: -1.8em; z-index: 3; display: flex; gap: .8em; align-items: center; padding: .9em 1.3em .9em .9em;
  border-radius: 1em; background: rgba(15, 22, 38, .96); border: .1em solid color-mix(in srgb, var(--pc) 60%, transparent);
  box-shadow: 0 0 2em var(--mk-glow), 0 1em 3em #000; font-size: 1.1em; }
.mk-toast svg { width: 1.9em; height: 1.9em; padding: .35em; border-radius: 50%; background: #30d158; color: #04120a; flex: none; }
.mk-toast span { display: grid; gap: .15em; color: var(--mk-dim); }
.mk-toast b { color: #fff; }
.mk-btn { display: block; text-align: center; padding: .6em 1em; border-radius: 2em; background: #fff; color: #0a2a5c; font-weight: 700; }

/* Panel web */
.mk-dash { width: 56em; height: 33em; }
.mk-dash__body { display: grid; grid-template-columns: 12.5em minmax(0, 1fr); height: calc(100% - 3em); }
.mk-side { padding: 1.4em .9em; border-right: .1em solid var(--mk-line); display: flex; flex-direction: column; gap: .35em; color: var(--mk-dim); font-size: 1.05em; }
.mk-side span { display: flex; align-items: center; gap: .7em; padding: .55em .7em; border-radius: .6em; }
.mk-side svg { width: 1.3em; height: 1.3em; flex: none; }
.mk-side .is-on { background: color-mix(in srgb, var(--pc) 24%, transparent); color: #fff; }
.mk-logo { width: 2.2em; height: 2.2em; border-radius: .6em; background: linear-gradient(135deg, var(--pc), #64d2ff); margin: 0 0 .9em .6em; box-shadow: 0 0 1.4em var(--pc); }
.mk-dash__main { padding: 1.3em 1.5em; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1em; min-width: 0; }
.mk-head { display: flex; justify-content: space-between; align-items: center; }
.mk-head strong { font-size: 1.7em; font-weight: 700; letter-spacing: -.02em; }
.mk-head em { padding: .35em .9em; border-radius: 1em; border: .1em solid var(--mk-line); color: var(--mk-dim); }
.mk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9em; }
.mk-kpis div { padding: .85em 1em; border-radius: .9em; background: var(--mk-soft); border: .1em solid var(--mk-line); display: grid; gap: .25em; }
.mk-kpis div:first-child { border-color: color-mix(in srgb, var(--pc) 80%, transparent); box-shadow: inset 0 0 1.6em var(--mk-glow); }
.mk-kpis small { color: var(--mk-dim); font-size: 1em; }
.mk-kpis b { font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; }
.mk-kpis i { font-size: .95em; color: var(--mk-dim); }
.mk-kpis i.up { color: #30d158; }
.mk-chart { position: relative; border-radius: .9em; background: #0d1525; border: .1em solid var(--mk-line); overflow: hidden; }
.mk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-bars { position: absolute; left: 1em; right: 1em; bottom: 0; height: 60%; display: flex; align-items: flex-end; gap: .8em; opacity: .22; }
.mk-bars span { flex: 1; background: #2997ff; border-radius: .3em .3em 0 0; transform-origin: bottom; }
.mk-draw { stroke-dasharray: 420; filter: drop-shadow(0 0 3px #2997ff); }
.mk-rows { display: grid; gap: .4em; }
.mk-rows div { display: grid; grid-template-columns: 4.8em minmax(0, 1fr) auto 6.2em; gap: 1em; align-items: center; padding: .5em .8em; border-radius: .6em; background: #0d1525; }
.mk-rows span:first-child { color: var(--mk-dim); font-family: var(--mono); font-size: .9em; }
.mk-rows em { justify-self: end; padding: .2em .7em; border-radius: 1em; font-size: .9em; }
.mk-rows em.ok { background: rgba(48, 209, 88, .15); color: #30d158; }
.mk-rows em.wait { background: rgba(255, 214, 10, .14); color: #ffd60a; }

/* App móvil */
.mk-mobile { position: relative; width: 60em; height: 37em; display: flex; align-items: center; justify-content: center; }
.mk-phone { position: relative; z-index: 2; width: 18.5em; height: 37em; border-radius: 2.8em; padding: .7em; background: #05070d;
  border: .12em solid color-mix(in srgb, var(--pc) 70%, #2a3550); box-shadow: 0 0 4em var(--mk-glow), inset 0 0 0 .1em var(--mk-line); }
.mk-phone__screen { position: relative; height: 100%; border-radius: 2.2em; background: #0b1120; padding: 1.2em; display: flex; flex-direction: column; gap: .7em; overflow: hidden; }
.mk-status { display: flex; justify-content: space-between; align-items: center; font-size: .95em; color: #cfd8ea; font-weight: 600; }
.mk-status i { width: 1.8em; height: .8em; border-radius: .3em; border: .1em solid #cfd8ea; }
.mk-muted { color: var(--mk-dim); font-size: 1em; }
.mk-h { font-size: 1.6em; font-weight: 700; letter-spacing: -.02em; margin-top: -.35em; }
.mk-appt { padding: 1em; border-radius: 1.2em; background: linear-gradient(140deg, var(--pc), #0a3d8f); display: grid; gap: .3em; box-shadow: 0 0 2em var(--mk-glow); }
.mk-appt small { color: rgba(255, 255, 255, .78); }
.mk-appt b { font-size: 1.45em; }
.mk-appt .mk-btn { margin-top: .4em; font-size: .95em; }
.mk-slots { display: flex; gap: .4em; }
.mk-slots span { flex: 1; text-align: center; padding: .45em 0; border-radius: .6em; background: #131b2d; font-size: .9em; color: #cfd8ea; }
.mk-slots .is-on { background: transparent; box-shadow: inset 0 0 0 .12em var(--pc), 0 0 1em var(--mk-glow); color: #fff; }
.mk-list { display: grid; gap: .4em; }
.mk-list span { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .7em; background: var(--mk-soft); }
.mk-list svg { width: 1.2em; height: 1.2em; color: #64d2ff; }
.mk-list i { margin-left: auto; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; background: var(--pc); font-size: .85em; }
.mk-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: .7em; border-top: .1em solid var(--mk-line); }
.mk-tabs i { width: 1.4em; height: 1.4em; border-radius: .4em; background: #2a354d; }
.mk-tabs .is-on { background: var(--pc); box-shadow: 0 0 1em var(--pc); }
.mk-call { left: 3em; top: 5.5em; width: 17em; padding: .7em; z-index: 1; transform: rotate(-4deg); }
.mk-call__video { position: relative; height: 12em; border-radius: .8em; background: radial-gradient(circle at 50% 40%, #1d3b6e, #0a1222 70%); display: grid; place-items: center; overflow: hidden; }
.mk-avatar { width: 6em; height: 6em; background: radial-gradient(circle at 50% 32%, #8fb8ff 0 22%, transparent 23%), radial-gradient(ellipse at 50% 105%, #8fb8ff 0 45%, transparent 46%); opacity: .75; }
.mk-call__video em { position: absolute; left: .7em; bottom: .6em; font-size: .9em; padding: .25em .7em; border-radius: 1em; background: rgba(0, 0, 0, .55); }
.mk-call__btns { display: flex; justify-content: center; gap: .7em; padding-top: .7em; }
.mk-call__btns b { width: 2.4em; height: 2.4em; border-radius: 50%; background: #1b2436; display: grid; place-items: center; }
.mk-call__btns svg { width: 1.2em; height: 1.2em; }
.mk-call__btns b.end { background: #ff453a; }
.mk-notif { right: 2.5em; bottom: 7em; z-index: 3; width: 17.5em; display: flex; gap: .8em; align-items: center; padding: .9em 1.1em; }
.mk-notif svg { width: 2.3em; height: 2.3em; padding: .45em; border-radius: .6em; background: var(--pc); flex: none; }
.mk-notif span { display: grid; gap: .2em; color: var(--mk-dim); }
.mk-notif b { color: #fff; }

/* Asistente con IA */
.mk-chat { width: 44em; height: 34em; display: flex; flex-direction: column; transform: translateX(-6em); }
.mk-chat__head { display: flex; gap: .8em; align-items: center; padding: 1em 1.3em; border-bottom: .1em solid var(--mk-line); }
.mk-bot { width: 2.6em; height: 2.6em; border-radius: 50%; background: linear-gradient(135deg, var(--pc), #64d2ff); display: grid; place-items: center; box-shadow: 0 0 1.4em var(--pc); }
.mk-bot svg { width: 1.4em; height: 1.4em; color: #fff; }
.mk-chat__head span { display: grid; gap: .15em; }
.mk-chat__head strong { font-size: 1.2em; }
.mk-chat__head em { color: #30d158; font-size: .9em; }
.mk-chat__log { flex: 1; min-height: 0; padding: 1.2em 1.3em; display: flex; flex-direction: column; gap: .8em; overflow: hidden; font-size: 1.1em; }
.mk-msg { max-width: 80%; padding: .75em 1em; border-radius: 1.1em; line-height: 1.35; }
.mk-msg--user { align-self: flex-end; background: var(--pc); color: #fff; border-bottom-right-radius: .3em; box-shadow: 0 0 1.4em var(--mk-glow); }
.mk-msg--bot { align-self: flex-start; background: #131b2d; border: .1em solid var(--mk-line); border-bottom-left-radius: .3em; }
.mk-typing { display: none; }
.mk-order { margin-top: .7em; padding: .7em .8em; border-radius: .8em; background: #0b1120; border: .1em solid var(--mk-line); }
.mk-order small { color: var(--mk-dim); font-size: .85em; }
.mk-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35em; margin-top: .5em; font-size: .8em; color: var(--mk-dim); }
.mk-track span { display: grid; gap: .35em; }
.mk-track i { height: .3em; border-radius: .2em; background: #2a354d; }
.mk-track .done { color: #cfd8ea; }
.mk-track .done i { background: var(--pc); box-shadow: 0 0 .5em var(--pc); }
.mk-track .now { color: #64d2ff; }
.mk-track .now i { background: linear-gradient(90deg, #64d2ff, #2a354d); }
.mk-chips { display: flex; gap: .5em; flex-wrap: wrap; }
.mk-chips span { padding: .45em .9em; border-radius: 2em; border: .1em solid color-mix(in srgb, var(--pc) 70%, transparent); color: #cfe4ff; font-size: .9em; }
.mk-chat__input { margin: 0 1.3em 1.2em; display: flex; align-items: center; justify-content: space-between; padding: .6em .6em .6em 1.1em; border-radius: 2em; background: var(--mk-soft); border: .1em solid var(--mk-line); color: #5d6b86; }
.mk-chat__input b { width: 2em; height: 2em; border-radius: 50%; background: var(--pc); }
.mk-sources { right: -13em; bottom: 5.5em; width: 17em; padding: 1em; display: grid; gap: .55em; }
.mk-sources small { color: var(--mk-dim); font: 500 .8em/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.mk-sources span { display: flex; gap: .6em; align-items: center; padding: .55em .6em; border-radius: .6em; background: var(--mk-soft); }
.mk-sources svg { width: 1.2em; height: 1.2em; color: #64d2ff; flex: none; }

/* Mapa en tiempo real */
.mk-map { width: 58em; height: 34em; display: grid; grid-template-columns: minmax(0, 1fr) 18em; }
.mk-map__canvas { position: relative; background: #060b16; border-radius: 1.4em 0 0 1.4em; overflow: hidden; }
.mk-map__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-route { stroke-dasharray: 560; filter: drop-shadow(0 0 4px #2997ff); }
.mk-ping { transform-box: fill-box; transform-origin: center; }
.mk-map__chips { position: absolute; left: 1.2em; top: 1.2em; display: flex; gap: .5em; }
.mk-map__chips span { display: flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 2em; background: rgba(11, 17, 32, .9); border: .1em solid #24324f; font-size: .95em; }
.mk-map__chips i { width: .6em; height: .6em; border-radius: 50%; background: #2997ff; box-shadow: 0 0 .6em #2997ff; }
.mk-map__chips i.ok { background: #30d158; box-shadow: 0 0 .6em #30d158; }
.mk-fleet { padding: 1.3em 1em; display: flex; flex-direction: column; gap: .55em; border-left: .1em solid var(--mk-line); min-width: 0; }
.mk-fleet strong { font-size: 1.3em; margin-bottom: .3em; }
.mk-fleet > span { display: flex; gap: .7em; align-items: center; padding: .6em; border-radius: .8em; background: #0d1525; }
.mk-fleet > span > b { width: 2.3em; height: 2.3em; border-radius: .6em; display: grid; place-items: center; background: #16213a; flex: none; }
.mk-fleet svg { width: 1.3em; height: 1.3em; }
.mk-fleet > span > span { display: grid; gap: .15em; color: var(--mk-dim); font-size: .9em; min-width: 0; }
.mk-fleet em { color: #fff; font-size: 1.1em; }
.mk-fleet .go b { color: #2997ff; }
.mk-fleet .now { box-shadow: inset 0 0 0 .1em var(--pc), 0 0 1.2em var(--mk-glow); }
.mk-fleet .now b { color: #64d2ff; }
.mk-fleet .off b { color: #ffd60a; }
.mk-fleet .ok b { color: #30d158; }
.mk-pod { left: 1.2em; bottom: 1.2em; display: flex; gap: .8em; align-items: center; padding: .6em 1em .6em .6em; }
.mk-pod__photo { width: 3.4em; height: 3.4em; border-radius: .6em; background: linear-gradient(160deg, #50607e 0 40%, #2a3550 40% 100%); }
.mk-pod > span:last-child { display: grid; gap: .2em; color: var(--mk-dim); }
.mk-pod b { display: flex; align-items: center; gap: .4em; color: #30d158; }
.mk-pod svg { width: 1.1em; height: 1.1em; }

/* Web / tienda */
.mk-store { width: 56em; height: 34em; display: flex; flex-direction: column; }
.mk-cart { margin-left: auto; position: relative; color: #cfd8ea; }
.mk-cart svg { width: 1.6em; height: 1.6em; }
.mk-cart em { position: absolute; right: -.6em; top: -.5em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--pc); display: grid; place-items: center; font-size: .75em; color: #fff; }
.mk-store__hero { position: relative; margin: 1.2em 1.4em 0; height: 12em; border-radius: 1em; overflow: hidden; padding: 0 2.2em;
  display: flex; align-items: center; justify-content: space-between; background: linear-gradient(120deg, #0e1a33, color-mix(in srgb, var(--pc) 45%, #0b1120)); }
.mk-store__hero > span { display: grid; gap: .5em; }
.mk-store__hero small { color: #64d2ff; font: 500 .8em/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.mk-store__hero strong { font-size: 2em; letter-spacing: -.02em; line-height: 1.05; max-width: 11em; }
.mk-store__hero .mk-btn { justify-self: start; padding: .5em 1.4em; }
.mk-orb { width: 9em; height: 9em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #64d2ff 22%, var(--pc) 52%, #0a2a5c 82%); box-shadow: 0 0 3em var(--pc); }
.mk-store__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; padding: 1.2em 1.4em 1.4em; }
.mk-store__grid > span { border-radius: 1em; background: #0d1525; border: .1em solid var(--mk-line); padding: .7em; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: .5em; }
.mk-store__grid em { height: .6em; width: 70%; border-radius: .3em; background: #2a354d; }
.mk-store__grid b { font-size: 1.2em; }
.mk-prod { border-radius: .7em; background: #111a2c; position: relative; overflow: hidden; }
.mk-prod::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.mk-prod--a::after { width: 4.5em; height: 4.5em; border-radius: 50%; border: .5em solid #64d2ff; box-shadow: 0 0 1.5em #2997ff; }
.mk-prod--b::after { width: 3.6em; height: 5.2em; border-radius: .8em; background: linear-gradient(160deg, #2997ff, #0a2a5c); box-shadow: 0 0 1.5em #2997ff; }
.mk-prod--c::after { width: 6em; height: 3.4em; border-radius: .6em; background: linear-gradient(90deg, #1b2436, #64d2ff); box-shadow: 0 0 1.5em #2997ff; }

/* Animaciones (solo con «animaciones» activas en el panel y sin movimiento reducido) */
@keyframes mk-pop { 0%, 6% { opacity: 0; transform: translateY(1em) scale(.94); } 12%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-.4em); } }
@keyframes mk-draw { 0% { stroke-dashoffset: 420; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes mk-route { 0% { stroke-dashoffset: 560; } 40%, 100% { stroke-dashoffset: 0; } }
@keyframes mk-grow { 0% { transform: scaleY(.08); } 30%, 100% { transform: none; } }
@keyframes mk-float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-.8em); } }
@keyframes mk-ping { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes mk-typing { 0%, 10% { opacity: 0; max-height: 0; padding-block: 0; margin-bottom: -.8em; } 14%, 30% { opacity: 1; max-height: 3em; padding-block: .8em; margin-bottom: 0; } 34%, 100% { opacity: 0; max-height: 0; padding-block: 0; margin-bottom: -.8em; } }
@keyframes mk-seq-user { 0%, 4% { opacity: 0; transform: translateY(.8em); } 9%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mk-seq-bot { 0%, 32% { opacity: 0; transform: translateY(.8em); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mk-seq-chips { 0%, 46% { opacity: 0; transform: translateY(.8em); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mk-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-.25em); } }
@keyframes mk-glowpulse { 0%, 100% { box-shadow: 0 0 1em var(--mk-glow); } 50% { box-shadow: 0 0 2.4em var(--pc); } }
html.motion:not(.calm) .mk-toast, html.motion:not(.calm) .mk-notif { animation: mk-pop 7s var(--ease) infinite; }
html.motion:not(.calm) .mk-draw { animation: mk-draw 7s ease-in-out infinite; }
html.motion:not(.calm) .mk-bars span { animation: mk-grow 7s var(--ease) infinite; animation-delay: var(--d); }
html.motion:not(.calm) .mk-call { animation: mk-float 7s ease-in-out infinite; }
html.motion:not(.calm) .mk-appt .mk-btn { animation: mk-glowpulse 2.4s ease-in-out infinite; }
html.motion:not(.calm) .mk-route { animation: mk-route 9s ease-in-out infinite; }
html.motion:not(.calm) .mk-ping { animation: mk-ping 2s ease-out infinite; }
html.motion:not(.calm) .mk-msg--user { animation: mk-seq-user 9s var(--ease) infinite; }
html.motion:not(.calm) .mk-typing { display: flex; align-self: flex-start; gap: .3em; padding-inline: 1em; background: #131b2d; border-radius: 1em; overflow: hidden; animation: mk-typing 9s ease infinite; }
html.motion:not(.calm) .mk-typing i { width: .5em; height: .5em; border-radius: 50%; background: var(--mk-dim); animation: mk-dot 1s ease-in-out infinite; }
html.motion:not(.calm) .mk-typing i:nth-child(2) { animation-delay: .15s; }
html.motion:not(.calm) .mk-typing i:nth-child(3) { animation-delay: .3s; }
html.motion:not(.calm) .mk-msg--bot { animation: mk-seq-bot 9s var(--ease) infinite; }
html.motion:not(.calm) .mk-chips { animation: mk-seq-chips 9s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .mk *, .mk *::before, .mk *::after { animation: none !important; } .mk-typing { display: none !important; } }

/* Proceso: duración y entregables de cada paso */
.pin__n { display: flex; align-items: center; gap: 14px; }
.pin__dur { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 6px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; }
.pin__steps > li.is-active .pin__dur { color: #fff; border-color: rgba(41, 151, 255, .7); box-shadow: 0 0 14px rgba(41, 151, 255, .35); }
.pin__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pin__list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: color .4s, border-color .4s, background .4s; }
.pin__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.pin__steps > li.is-active .pin__list li { color: #fff; border-color: rgba(41, 151, 255, .45); background: rgba(41, 151, 255, .08); }
html.motion:not(.calm) .pin__steps > li.is-active .pin__list li { animation: rv-up .5s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 120ms); }
@media (max-width: 1023px) {
  .pin__stage { background: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, 0)); height: 40vh; }
}

/* ── Artículos: gráficas interactivas, calculadoras y destacados (components/Charts.tsx) ── */
.contents { display: contents; }
.article__body.prose { max-width: none; }
.article__body > *:not(.chart):not(.contents), .article__body > .contents > *:not(.chart) { max-width: 68ch; }
.article__body blockquote { font: 600 clamp(21px, 2.1vw, 28px)/1.3 var(--display); letter-spacing: -.01em; color: #fff; padding: 6px 0 6px 22px; margin: 10px 0; }
.article__body blockquote p { color: inherit; }
.article__body h2 { scroll-margin-top: calc(var(--header-h) + 24px); }

.chart { max-width: 1040px; margin: 18px 0; padding: clamp(18px, 2.6vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 18px; min-width: 0; }
.chart__title { font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--sans); color: #fff; max-width: 56ch; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-2); }
.chart__legend li { display: flex; align-items: center; gap: 8px; padding: 0; }
.chart__legend li::before { display: none; }
.chart__legend i { width: 18px; height: 3px; border-radius: 2px; }
.chart__plot { position: relative; min-width: 0; }
.chart__plot svg { display: block; overflow: visible; outline: none; border-radius: 8px; }
.chart__plot svg:focus-visible { box-shadow: 0 0 0 2px var(--neon); }
.chart__grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.chart__tick { fill: var(--muted); font: 11px var(--mono); }
.chart__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.motion .chart:not(.is-in) .chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .chart.is-in .chart__line { stroke-dasharray: 1; animation: chart-draw 1.6s var(--ease) .25s both; }
@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.chart__end { font: 500 12px var(--sans); fill: var(--text); }
.chart__endval { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.chart__cross line { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.chart__cross circle { stroke: var(--panel); stroke-width: 2; }
.chart__marker line { stroke: var(--neon-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.chart__marker circle { fill: var(--panel); stroke: #fff; stroke-width: 2; }
.chart__marker text { fill: #fff; font: 500 12px var(--mono); }
.chart__tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 4px; min-width: 150px; padding: 10px 12px; font-size: 13px;
  background: rgba(26, 26, 31, .97); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.chart__tip p { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--text-2); }
.chart__tip i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.chart__tip b { color: #fff; font-weight: 600; }
.chart__tip span { color: var(--muted); }
.chart__tiphead { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.chart__foot { display: grid; gap: 10px; }
.chart__note { font-size: 14px; color: var(--muted); max-width: 70ch; }
.chart__data summary { cursor: pointer; width: max-content; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--neon-soft); }
.chart__data table { margin-top: 12px; font-size: 14px; }

.bars { display: grid; gap: 6px; }
.bars__row { display: grid; grid-template-columns: minmax(110px, 32%) 1fr minmax(64px, auto); align-items: center; gap: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; outline: none; transition: background .2s; }
.bars .bars__row::before { display: none; }
.bars__row.is-hover, .bars__row:focus-visible { background: rgba(255, 255, 255, .05); }
.bars__label { font-size: 15px; color: var(--text-2); line-height: 1.3; }
.bars__row.is-hot .bars__label { color: #fff; }
.bars__track { height: 14px; display: block; }
.bars__bar { display: block; height: 100%; width: var(--w); min-width: 3px; background: rgba(41, 151, 255, .5); border-radius: 0 4px 4px 0; transition: width .5s var(--ease), background .2s; }
.bars__row.is-hot .bars__bar, .bars__row.is-hover .bars__bar { background: var(--neon); }
.bars__value { font: 500 14px var(--mono); color: #fff; text-align: right; }
.motion .chart:not(.is-in) .bars__bar { width: 0; }
@media (max-width: 559px) {
  .bars__row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .bars__track { grid-column: 1 / -1; grid-row: 2; }
}

.calc { display: grid; gap: clamp(22px, 3vw, 40px); min-width: 0; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); align-items: start; } }
.calc__inputs { display: grid; gap: 14px; }
.calc__field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
.calc__label { font-size: 14px; color: var(--text-2); line-height: 1.3; }
.calc__value { font: 500 14px var(--mono); color: #fff; }
.calc__field input[type=range] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.calc__field input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--neon), var(--neon)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .14); }
.calc__field input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--neon), var(--neon)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .14); }
.calc__field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(41, 151, 255, .35); }
.calc__field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(41, 151, 255, .35); }
.calc__field input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(41, 151, 255, .7); }
.calc__field input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgba(41, 151, 255, .7); }
.calc__reset { justify-self: start; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--neon-soft); }
.calc__out { display: grid; gap: 18px; min-width: 0; }
.calc__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.calc__tiles > div { display: grid; gap: 6px; align-content: start; padding: 14px 16px; background: var(--panel); }
.calc__tiles dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.calc__tiles dd { font: 700 clamp(22px, 2.3vw, 30px)/1.05 var(--display); letter-spacing: -.02em; color: #fff; }
.calc__tiles > div:first-child dd { color: var(--neon-soft); }
@media (max-width: 559px) {
  .calc__tiles { grid-template-columns: 1fr 1fr; }
  .calc__tiles > div:first-child { grid-column: 1 / -1; }
}

/* Transición suave entre páginas (navegadores que la admiten; sin JavaScript) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Aviso de cookies (la analítica solo se carga si se acepta) */
.cookies { position: fixed; z-index: 60; left: var(--g); bottom: 24px; width: min(440px, calc(100vw - 2 * var(--g))); display: grid; gap: 10px;
  padding: 18px 20px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(41, 151, 255, .1); }
.cookies__title { font-weight: 600; color: #fff; }
.cookies__text { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookies__text a { color: var(--neon-soft); text-decoration: underline; text-underline-offset: 3px; }
.cookies__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 1099px) { .cookies { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); } }
.motion .cookies:not([hidden]) { animation: rv-up .6s var(--ease) both; }
.footer__cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__cookies:hover { color: #fff; }
