/* =====================================================================
   NUMRO LABS — Sistema visual
   Paleta oficial: Obsidiana #0B0B0F · Púrpura #7B3FF2 · Lavanda #A78BFA
                   Hueso #F5F5F7 · Blanco #FFFFFF
   Tipografía UI: Inter
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --obsidian: #0B0B0F;
  --purple: #7B3FF2;
  --purple-strong: #6A2EE6;
  --lavender: #A78BFA;
  --bone: #F5F5F7;
  --white: #FFFFFF;

  /* Tema oscuro (por defecto) */
  --page: var(--obsidian);
  --surface: #121219;
  --surface-2: #191922;
  --text: var(--bone);
  --muted: #c0bec7;
  --soft: #a7a5b1;
  --line: rgba(245, 245, 247, .14);
  --line-strong: rgba(245, 245, 247, .26);
  --accent: var(--purple);
  --accent-text: var(--lavender);   /* púrpura sobre obsidiana no llega a 4.5:1 en texto pequeño */
  --glow: rgba(123, 63, 242, .32);
  --header-bg: rgba(11, 11, 15, .72);
  --logo-word: var(--bone);
  --logo-labs: var(--lavender);

  /* Tipografía */
  --font: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Layout */
  --content: 1200px;
  --header-h: 84px;
  --radius: 18px;

  /* Movimiento (curvas de Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 200ms;
  --dur-ui: 280ms;
}

html[data-theme="light"] {
  --page: var(--bone);
  --surface: var(--white);
  --surface-2: #ECEBF0;
  --text: var(--obsidian);
  --muted: #45434c;
  --soft: #5c5b63;
  --line: rgba(11, 11, 15, .12);
  --line-strong: rgba(11, 11, 15, .24);
  --accent-text: var(--purple);
  --glow: rgba(123, 63, 242, .18);
  --header-bg: rgba(245, 245, 247, .78);
  --logo-word: var(--obsidian);
  --logo-labs: var(--purple);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--page);
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--purple); color: var(--white); }
/* Sin destello gris al tocar; sin seleccionar texto de controles con pulsación larga */
a, button { -webkit-tap-highlight-color: transparent; }
.button, .copy-mail, .language-switch, .theme-toggle, .menu-toggle, .nav-cta { -webkit-user-select: none; user-select: none; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; border-radius: 8px; }
html[data-theme="light"] :where(a, button, summary):focus-visible { outline-color: var(--purple); }

.wrap { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 99px; background: var(--purple); color: var(--white); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent-text);
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo { width: 188px; height: auto; aspect-ratio: 618 / 131; --logo-n: var(--purple); --logo-dot: var(--purple); }

/* ---------- Botones ---------- */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 99px;
  background: var(--purple); color: var(--white);
  font-size: .9rem; font-weight: 650; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(123, 63, 242, .75);
  transition: transform var(--dur-press) var(--ease-out);
  touch-action: manipulation;
}
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, var(--purple-strong), var(--lavender));
  clip-path: inset(0 100% 0 0);
  transition: clip-path 250ms var(--ease-out);
}
.button .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-out); }
.button:active { transform: scale(.97); }
.button-lg { min-height: 58px; padding: 0 30px; font-size: 1rem; }

.quiet-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .9rem; font-weight: 550; color: var(--text);
}
.quiet-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; transform-origin: 100% 50%; transform: scaleX(.35); opacity: .5;
  transition: transform 360ms var(--ease-out), opacity var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { box-shadow: 0 18px 40px -12px rgba(123, 63, 242, .9); }
  .button:hover::before { clip-path: inset(0 0 0 0); }
  .button:hover .arrow { transform: translateX(4px); }
  .quiet-link:hover::after { transform-origin: 0 50%; transform: scaleX(1); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform 420ms var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--header-bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 60%, transparent), 0 10px 30px -18px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.menu-panel { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 500; }
.nav-links > a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); transition: color var(--dur-fast) ease;
}
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--purple);
  opacity: 0; transform: translateY(4px) scale(.6);
  transition: opacity var(--dur-fast) ease, transform var(--dur-ui) var(--ease-out);
}
.nav-links > a.is-active { color: var(--text); }
.nav-links > a.is-active::after { opacity: 1; transform: none; }
.nav-cta {
  margin-left: 8px; padding: 0 18px !important; border: 1px solid rgba(167, 139, 250, .6); border-radius: 99px;
  color: var(--text) !important;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out) !important;
}
.nav-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .nav-links > a:hover { color: var(--text); }
  .nav-cta:hover { background: var(--purple); border-color: var(--purple); color: var(--white) !important; }
}

.site-controls { display: flex; align-items: center; gap: 10px; }
.language-switch {
  position: relative; display: grid; grid-template-columns: repeat(3, 38px);
  padding: 3px; border: 1px solid var(--line-strong); border-radius: 99px;
}
.language-switch button {
  position: relative; z-index: 1; min-height: 34px; border: 0; border-radius: 99px; background: transparent;
  color: var(--soft); font-size: .68rem; font-weight: 700; letter-spacing: .04em; cursor: pointer;
  transition: color var(--dur-fast) ease;
  touch-action: manipulation;
}
.language-switch button[aria-pressed="true"] { color: var(--white); }
.language-pill {
  position: absolute; top: 3px; left: 3px; width: 38px; height: 34px; border-radius: 99px; background: var(--purple);
  transform: translateX(calc(var(--lang-i, 0) * 100%));
  transition: transform var(--dur-ui) var(--ease-out);
}
.theme-toggle {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
  touch-action: manipulation;
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 420ms var(--ease-out), opacity var(--dur-fast) ease;
}
.icon-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="light"] .icon-moon { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover, .language-switch:hover { border-color: rgba(167, 139, 250, .7); }
  .language-switch button:not([aria-pressed="true"]):hover { color: var(--text); }
}

.menu-toggle { display: none; }

/* ---------- Animación de carga (hero) ---------- */
.js .load-in { opacity: 0; transform: translateY(14px); }
.is-loaded .load-in {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--t, 0ms) + 120ms);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(940px, 100svh);
  padding: calc(var(--header-h) + 72px) 0 120px;
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
  opacity: .55;
}
.hero-glow {
  position: absolute; top: 30%; left: 62%; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 780px); align-items: center; }
.hero-copy { max-width: 780px; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 25%, transparent); }

.hero-title {
  margin-top: 22px;
  font-size: clamp(3.2rem, 5.9vw, 6.4rem); font-weight: 720; line-height: .96; letter-spacing: -.075em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .08em .06em 0; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1100ms var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 70ms; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 150ms; }
.accent {
  color: var(--purple);
  background: linear-gradient(100deg, var(--purple) 20%, var(--lavender) 45%, var(--purple) 70%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.is-loaded .accent { animation: sheen 1600ms 900ms var(--ease-in-out) both; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.hero-lead { max-width: 540px; margin-top: 30px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; }
.hero-caption { margin-top: 56px; color: var(--soft); font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }

/* Grafismo a sangre: el zigzag de la N cruza el hero por detrás del texto */
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  transform: translate3d(0, var(--sy, 0px), 0) scale(var(--ss, 1)); transform-origin: 70% 30%;
}
.ha-band { fill: none; stroke: url(#haBand); stroke-width: 250; stroke-linejoin: round; stroke-linecap: round; opacity: .22; }
.ha-line, .ha-comet { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ha-line {
  stroke: url(#haLine); stroke-width: 1.6;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: ha-wave 7s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--k) * -.3s);
}
.ha-line:nth-child(7) { stroke-width: 3; }
.js .ha-line { stroke-dashoffset: 1; }
.js .ha-band { opacity: 0; transition: opacity 1600ms ease; }
.is-loaded .ha-band { opacity: .22; transition-delay: 300ms; }
.is-loaded .ha-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2000ms var(--ease-in-out);
  transition-delay: var(--dl, 200ms);
}
@keyframes ha-wave { from { transform: translateY(0); } to { transform: translateY(-16px); } }
.ha-comet {
  stroke: #fff; stroke-width: 3.5; stroke-dasharray: .04 .96; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, .95)) drop-shadow(0 0 22px rgba(123, 63, 242, .9));
}
.is-loaded .ha-comet { opacity: 1; transition: opacity 600ms 2400ms ease; animation: ha-comet 8s 2400ms linear infinite; }
.is-loaded .ha-comet-2 { animation-delay: 6400ms; stroke-width: 2.5; stroke-dasharray: .02 .98; }
@keyframes ha-comet { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html[data-theme="light"] .ha-band { opacity: .14; }
html[data-theme="light"] .is-loaded .ha-band { opacity: .14; }
html[data-theme="light"] .ha-comet { filter: drop-shadow(0 0 6px rgba(123, 63, 242, .95)) drop-shadow(0 0 16px rgba(123, 63, 242, .7)); }
/* Velo para que el texto siempre se lea sobre el grafismo */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--page) 0%, color-mix(in srgb, var(--page) 70%, transparent) 38%, transparent 62%);
}
.mark-caption { color: var(--soft); font-size: .64rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; text-align: center; }

.scroll-note {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px;
  color: var(--soft); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.scroll-line { position: relative; width: 1px; height: 40px; background: var(--line-strong); overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--purple);
  transform: translateY(-100%); animation: scroll-line 2.2s 1.6s var(--ease-in-out) 3 both;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 40px; white-space: nowrap;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 680; letter-spacing: -.045em; color: var(--text);
}
.marquee-item svg { width: 34px; height: auto; fill: var(--purple); }
.marquee-item:nth-child(even) span { color: transparent; -webkit-text-stroke: 1px var(--soft); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Statement (resaltado de palabras con el scroll) ---------- */
.statement { padding: 120px 0 128px; border-bottom: 1px solid var(--line); }
.statement-text { max-width: 1100px; font-size: clamp(2.5rem, 6.8vw, 6.7rem); font-weight: 680; line-height: .98; letter-spacing: -.07em; }
.statement-text .w { color: var(--text); opacity: .3; transition: opacity 360ms ease, color 360ms ease; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.hl.on { color: var(--accent-text); }


/* ---------- Visión ---------- */
.about { padding: 132px 0 140px; }
.about-grid, .section-intro, .method-grid { display: grid; grid-template-columns: .42fr 1.58fr; gap: 58px; }
.about-side { padding-top: 14px; }
.about-side p:not(.eyebrow) { max-width: 270px; margin-top: 18px; color: var(--soft); font-size: .92rem; line-height: 1.7; }
.about-main h2, .section-intro h2, .method-copy h2 {
  font-size: clamp(2.6rem, 5.6vw, 5.7rem); font-weight: 680; line-height: .97; letter-spacing: -.07em; text-wrap: balance;
}
.about-main h2 { max-width: 900px; }
.about-main > p { max-width: 690px; margin-top: 30px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.value {
  position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; isolation: isolate;
  transition: border-color 150ms ease;
}
.value::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 0%), rgba(123, 63, 242, .16), transparent 55%);
  transition: opacity var(--dur-ui) ease;
}
.value-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px;
  background: rgba(123, 63, 242, .14); color: var(--accent-text);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, transform 420ms var(--ease-out);
}
.value-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
.value p { color: var(--soft); font-size: .9rem; line-height: 1.65; }
@media (hover: hover) and (pointer: fine) {
  .value:hover { border-color: rgba(167, 139, 250, .45); }
  .value:hover::before { opacity: 1; }
}

/* ---------- Proyectos: ver bloque "Proyectos v2" más abajo ---------- */

/* ---------- Proceso ---------- */
.method { padding: 124px 0; border-top: 1px solid var(--line); }
.method-copy { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.method-copy h2 { max-width: 500px; font-size: clamp(2.6rem, 4.3vw, 4.6rem); }
.method-copy > p:last-child { max-width: 360px; margin-top: 22px; color: var(--soft); font-size: .96rem; line-height: 1.7; }
.method-copy .eyebrow { margin-bottom: 14px; }
.steps { position: relative; padding-left: 40px; }
.steps-list { display: grid; gap: 16px; }
.steps-rail { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(var(--lavender), var(--purple)); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
.step {
  position: relative; display: grid; grid-template-columns: 70px minmax(160px, .7fr) 1fr; align-items: start; gap: 20px;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color 420ms ease, background-color 420ms ease;
}
.step::before {
  content: ""; position: absolute; left: -40px; top: 36px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--page); border: 2px solid var(--line-strong);
  transition: border-color 420ms ease, background-color 420ms ease, transform 420ms var(--ease-out);
}
.step.is-active { border-color: rgba(167, 139, 250, .4); }
.step.is-active::before { background: var(--purple); border-color: var(--purple); transform: scale(1.15); }
.step-index { color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .12em; padding-top: 6px; }
.step h3 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.step p { max-width: 430px; color: var(--soft); font-size: .95rem; line-height: 1.65; }

/* ---------- Contacto / CTA ---------- */
.contact { position: relative; overflow: hidden; padding: 128px 0 140px; border-top: 1px solid var(--line); }
.contact-wave { position: absolute; right: -4%; bottom: 0; width: 42%; height: 70%; overflow: visible; pointer-events: none; opacity: .55; }
.contact-wave path { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.contact .eyebrow { margin-bottom: 18px; }
.contact h2 { position: relative; max-width: 1000px; font-size: clamp(3rem, 7vw, 7.2rem); font-weight: 720; line-height: .92; letter-spacing: -.075em; text-wrap: balance; }
.contact-bottom { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 36px; }
.contact-bottom p { max-width: 500px; color: var(--soft); font-size: 1rem; line-height: 1.7; }

/* ---------- Footer (siempre obsidiana, como la marca) ---------- */
.site-footer {
  --logo-word: var(--bone); --logo-labs: var(--lavender);
  overflow: hidden; padding: 52px 0 0; background: var(--obsidian); color: var(--bone);
  border-top: 1px solid rgba(245, 245, 247, .14);
}
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.footer-logo { width: 196px; }
.footer-inner > .brand { justify-self: start; max-width: 100%; }
.footer-links { display: flex; justify-self: center; align-items: center; gap: 8px; font-size: .82rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #d3d0d9; transition: color var(--dur-fast) ease; }
.footer-note { color: #c0bec7; font-size: .8rem; text-align: right; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--lavender); } }
.footer-wordmark { width: min(var(--content), calc(100% - 64px)); margin: 80px auto 0; }
.footer-wordmark svg { width: 100%; height: auto; overflow: visible; }
.fw-word { fill: #1B1B23; }
.fw-dot { fill: var(--purple); transform-box: fill-box; transform-origin: 50% 50%; }
.js .footer-wordmark svg { clip-path: inset(100% 0 0 0); transform: translateY(40px); }
.js .footer-wordmark.is-visible svg { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1200ms var(--ease-out), transform 1200ms var(--ease-out); }
.js .fw-dot { transform: translateY(-120%) scale(.6); }
.js .footer-wordmark.is-visible .fw-dot { transform: none; transition: transform 1100ms 450ms cubic-bezier(.34, 1.56, .64, 1); }
.footer-bottom { padding: 16px 0 24px; color: #8d8a95; font-size: .72rem; text-align: center; }

/* ---------- Transición de tema (View Transitions) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* =====================================================================
   v2 — Más dinamismo
   ===================================================================== */

/* ---------- Botón secundario ---------- */
.button-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-ghost::before { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) {
  .button-ghost:hover { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .7); }
}

/* ---------- Hero: "Ahora construyendo" con palabra rotativa ---------- */
.hero-now {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 48px;
  font-size: .95rem; color: var(--soft);
}
.now-label { font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.rotator {
  position: relative; display: inline-grid; height: 1.6em; overflow: hidden;
  color: var(--text); font-weight: 600;
  padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  min-height: 44px; height: 44px; align-items: center;
}
.rotator-track { display: grid; }
.rotator-item {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: transform 520ms var(--ease-out), opacity 300ms ease;
}
.rotator-item b { color: var(--accent-text); font-weight: 700; }
.rotator-item.is-current { opacity: 1; transform: none; }
.rotator-item.is-leaving { opacity: 0; transform: translateY(-100%); transition-duration: 360ms, 200ms; }

/* ---------- Hero: órbita de conceptos alrededor del isotipo ---------- */

/* ---------- Títulos: palabras que suben al entrar ---------- */
.wr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wr > span { display: inline-block; }
[data-words] .wr.hl > span { color: var(--accent-text); }

/* ---------- Datos ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 80px 0 0; border-top: 1px solid var(--line); }
.fact { padding: 26px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 720; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.fact dt span::before { content: "0"; }
.fact dd { margin: 10px 0 0; max-width: 200px; color: var(--soft); font-size: .88rem; line-height: 1.5; }

/* ---------- Proyectos v2 ---------- */
.projects { padding: 120px 0 132px; border-top: 1px solid var(--line); }
.section-intro { margin-bottom: 56px; row-gap: 22px; }
.section-intro .eyebrow { padding-top: 14px; align-self: start; }
.section-intro h2 { max-width: 840px; }
.section-intro > p:last-child { grid-column: 2; max-width: 600px; color: var(--soft); font-size: 1rem; line-height: 1.7; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card {
  --x: 50%; --y: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  transition: border-color 150ms ease;
}
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(167, 139, 250, .14), transparent 50%);
  transition: opacity var(--dur-ui) ease;
}
.project-info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 28px 30px; }
.project-meta { display: flex; align-items: center; gap: 14px; width: 100%; }
.project-number { color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.project-type { color: var(--soft); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.project-name { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 680; line-height: 1.05; letter-spacing: -.055em; font-variant-ligatures: none; }
.project-info p { color: var(--muted); font-size: .96rem; line-height: 1.65; max-width: 460px; }
.status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--accent-text); font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.status-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #F5B94A; }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { border-color: rgba(167, 139, 250, .45); }
  .project-card:hover::after { opacity: 1; }
}

/* Escenarios animados de cada proyecto */
.mock {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(123, 63, 242, .22), transparent 60%),
    var(--surface-2);
}
html[data-theme="light"] .mock { background: radial-gradient(120% 90% at 80% 0%, rgba(123, 63, 242, .14), transparent 60%), #EEEDF3; }

/* RumiChat */
.mock-chat { display: flex; flex-direction: column; padding: 22px 26px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61, 214, 140, .2); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .84rem; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity 320ms ease, transform 420ms var(--ease-out);
}
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.bubble.out { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: typing 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble.show { opacity: 1; transform: none; }
.bubble.typing.gone { display: none; }

/* VERA */
.mock-vin { display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; }
.vin-code {
  margin-top: 8px; font: 600 clamp(1.1rem, 2.1vw, 1.6rem)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .14em; color: var(--text);
}
.vin-code .lock { color: var(--accent-text); }
.vin-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.vin-row {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  opacity: 0; transform: translateY(8px);
  transition: opacity 320ms ease, transform 480ms var(--ease-out);
}
.vin-row span { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.vin-row b { font-size: .86rem; font-weight: 650; }
.vin-row.show { opacity: 1; transform: none; }
.vin-row:nth-child(2) { transition-delay: 90ms; }
.vin-row:nth-child(3) { transition-delay: 180ms; }
.vin-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(transparent, rgba(167, 139, 250, .18) 80%, rgba(167, 139, 250, .6));
  border-bottom: 1px solid var(--lavender);
  transform: translateY(-110%); pointer-events: none;
}
.is-playing .vin-scan { animation: scan 4.8s var(--ease-in-out) infinite; }
@keyframes scan { 0% { transform: translateY(-110%); } 30%, 100% { transform: translateY(260%); } }

/* Monru */
.mock-money { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 30px; padding: 26px 32px; }
.ring { position: relative; width: clamp(110px, 13vw, 150px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--purple); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1600ms var(--ease-out); }
.is-playing .ring-fg { stroke-dashoffset: 28; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 720; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-text > span { font-size: .62rem; color: var(--soft); margin-top: 4px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px; height: 70%; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar::before {
  content: ""; width: 100%; height: 100%; border-radius: 10px;
  background: linear-gradient(var(--lavender), var(--purple));
  transform-origin: 50% 100%; transform: scaleY(.04);
  transition: transform 1100ms var(--ease-out);
}
.bar:nth-child(2)::before { transition-delay: 90ms; }
.bar:nth-child(3)::before { transition-delay: 180ms; background: var(--line-strong); }
.bar:nth-child(4)::before { transition-delay: 270ms; }
.is-playing .bar::before { transform: scaleY(var(--h)); }
.bar span { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: .58rem; font-weight: 600; color: var(--soft); }

/* Numi: impresión 3D + sistema de productos */
:root { --numi-c: #F5F5F7; }
html[data-theme="light"] { --numi-c: #0B0B0F; }
.project-numi .mock, html[data-theme="light"] .project-numi .mock { --numi-c: #F5F5F7; background: #0E0B18; color: #F5F5F7; }
.mock-numi { display: flex; flex-direction: column; padding: 20px 24px; }
.nm-waves { position: absolute; left: -10%; bottom: 0; width: 120%; height: 62%; pointer-events: none; }
.nm-waves .w1 { fill: #5B21D6; opacity: .55; }
.nm-waves .w2 { fill: #7B3FF2; opacity: .8; }
.is-playing .nm-waves .w1 { animation: nm-wave 9s var(--ease-in-out) infinite alternate; }
.is-playing .nm-waves .w2 { animation: nm-wave 7s var(--ease-in-out) infinite alternate-reverse; }
@keyframes nm-wave { from { transform: translateX(0); } to { transform: translateX(-6%); } }
.nm-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nm-logo { height: 20px; width: auto; }
.nm-tagline { font-size: .66rem; font-weight: 600; color: rgba(245, 245, 247, .62); white-space: nowrap; }
.nm-stage { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding-top: 10px; }
.nm-printer { position: relative; display: grid; justify-items: center; align-content: end; height: 100%; min-height: 150px; padding-bottom: 26px; }
.nm-piece { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; width: min(150px, 80%); }
.nm-piece i {
  display: block; width: calc(var(--w) * 100%); height: 7px; border-radius: 4px;
  background: linear-gradient(90deg, #6A2EE6, #A78BFA 55%, #7B3FF2);
  opacity: 0; transform: scaleX(.88); transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
.nm-piece i.on { opacity: 1; transform: none; }
.nm-bed { width: min(190px, 92%); height: 5px; margin-top: 3px; border-radius: 3px; background: rgba(245, 245, 247, .35); }
.nm-nozzle {
  position: absolute; left: 50%; top: 0; width: 18px; height: 16px; margin-left: -9px; border-radius: 4px 4px 2px 2px;
  background: #F5F5F7; box-shadow: 0 3px 0 -1px #A78BFA;
  transform: translate(var(--nx, 0), calc(var(--ny, 120px) - 18px));
  transition: transform 120ms linear;
  animation: nm-sweep .24s ease-in-out infinite alternate;
}
.mock-numi.done .nm-nozzle { opacity: 0; transition: opacity 300ms ease; }
@keyframes nm-sweep { from { translate: -34px 0; } to { translate: 34px 0; } }
.nm-status { position: absolute; bottom: 0; font-size: .64rem; font-weight: 600; color: rgba(245, 245, 247, .7); white-space: nowrap; }
.nm-status b { color: #fff; }
.nm-chips { display: grid; gap: 6px; }
.nm-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 10px;
  background: rgba(245, 245, 247, .07); border: 1px solid rgba(245, 245, 247, .1);
  font-size: .72rem; font-weight: 650; color: rgba(245, 245, 247, .75);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
}
.nm-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nm-chip.on { background: #F5F5F7; border-color: #F5F5F7; color: #4B1FB8; transform: translateX(-4px); }
.mock:not(.is-playing) .nm-nozzle { animation-play-state: paused; }
.mock:not(.is-playing) .bubble.typing i { animation-play-state: paused; }

/* ---------- Contacto ---------- */
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.copy-mail {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: .95rem; font-weight: 550;
  transition: border-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
  touch-action: manipulation;
}
.copy-mail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-mail:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .copy-mail:hover { border-color: rgba(167, 139, 250, .7); } }
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 80;
  padding: 12px 20px; border-radius: 99px; background: var(--text); color: var(--page);
  font-size: .88rem; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform 420ms var(--ease-out), opacity 200ms ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Servicios para empresas ---------- */
.services { padding: 120px 0 132px; border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* Fila 1: portal y procesos a la misma altura; fila 2: diseño a todo el ancho */
.service-card:not(.service-design) .mock { aspect-ratio: auto; height: 340px; }
.service-design { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.service-design .mock { aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
.service-design .project-info { justify-content: center; padding: 34px 36px; }
.service-card .mock { aspect-ratio: 16 / 8; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-tags li { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 600; }
.service-card .project-name { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.services-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: 28px; padding: 26px 30px; border-radius: 24px;
  background: linear-gradient(110deg, rgba(123, 63, 242, .22), rgba(167, 139, 250, .06));
  border: 1px solid rgba(167, 139, 250, .3);
}
.services-cta p { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 650; letter-spacing: -.025em; max-width: 640px; }

/* Portal */
.mock-portal { display: grid; grid-template-columns: 58px 1fr; }
.portal-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.portal-logo { width: 30px; margin-bottom: 8px; }
.portal-logo svg { width: 100%; fill: var(--purple); }
.portal-side i { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.portal-side i.on { background: var(--purple); }
.portal-main { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; min-width: 0; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-top b { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.portal-pill { padding: 5px 10px; border-radius: 99px; background: rgba(123, 63, 242, .16); color: var(--accent-text); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.portal-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi span { font-size: .62rem; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 720; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi:first-child b { color: var(--accent-text); }
.portal-rows { display: grid; gap: 8px; }
.prow {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-size: .78rem; font-weight: 550;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 360ms ease, transform 520ms var(--ease-out);
}
.prow i { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); }
.prow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow em { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.prow em.ok { background: rgba(61, 214, 140, .14); color: #3DD68C; }
.prow em.wait { background: rgba(245, 185, 74, .14); color: #E2A532; }
html[data-theme="light"] .prow em.ok { color: #12844F; }
html[data-theme="light"] .prow em.wait { color: #A2680B; }
.is-playing .prow { opacity: 1; transform: none; }
.is-playing .prow:nth-child(1) { transition-delay: 300ms; }
.is-playing .prow:nth-child(2) { transition-delay: 420ms; }
.is-playing .prow:nth-child(3) { transition-delay: 540ms; }

/* Mejora y automatización de procesos */
.mock-process { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px 26px; }
.imp-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; }
.imp-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.imp-steps { position: relative; display: flex; align-items: center; gap: 8px; }
.imp-steps i { position: relative; flex: 1; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); transition: opacity 400ms ease; }
.imp-steps i.x::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; border-radius: 2px; background: #F2547D;
  transform: scaleX(0); transition: transform 360ms var(--ease-out);
}
.imp-before.cut i.x::after { transform: scaleX(1); }
.imp-before.cut i.x { opacity: .35; }
.proc-arrow { display: flex; align-items: center; gap: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); transition: color 300ms ease; }
.proc-arrow::before, .proc-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.mock-process.simplified .proc-arrow { color: var(--accent-text); }
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; }
.node { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.node-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--soft);
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 420ms var(--ease-out);
}
.node-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node b { font-size: .62rem; font-weight: 650; color: var(--soft); white-space: nowrap; }
.node.lit .node-ic { background: var(--purple); border-color: var(--purple); color: #fff; transform: scale(1.08); }
.node.lit b { color: var(--text); }
.link { position: relative; height: 2px; margin: 0 6px 22px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.link i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--purple), var(--lavender)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 420ms var(--ease-in-out); }
.link.lit i { transform: scaleX(1); }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card:not(.service-design) .mock { height: auto; min-height: 300px; }
  .service-portal .mock { min-height: 360px; }
  .service-design { grid-template-columns: 1fr; }
  .service-design .mock { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
  .service-design .project-info { padding: 26px 28px 30px; }
}
@media (max-width: 760px) {
  .services { padding: 80px 0 86px; }
  .service-card .mock { aspect-ratio: auto; min-height: 210px; }
  .service-card:not(.service-design):not(.service-portal) .mock { min-height: 230px; }
  .service-design .project-info { padding: 22px 22px 26px; }
  .mock-portal { grid-template-columns: 44px 1fr; }
  .portal-main { padding: 16px; gap: 12px; }
  .kpi { padding: 10px; }
  .node-ic { width: 38px; height: 38px; border-radius: 11px; }
  .node b { font-size: .56rem; }
  .link { margin: 0 3px 20px; }
  .mock-process { padding: 20px 16px; }
  .imp-row { grid-template-columns: 44px 1fr; gap: 8px; }
  .imp-steps { gap: 5px; }
  .services-cta { padding: 22px; }
  .services-cta .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .prow { opacity: 1 !important; transform: none !important; }
  .node .node-ic { background: var(--purple); border-color: var(--purple); color: #fff; }
  .link i { transform: scaleX(1) !important; }
}


/* RumiChat: logo oficial (versión invertida en modo oscuro) */
:root { --rumi-a: #F5F5F7; --rumi-b: #A78BFA; }
html[data-theme="light"] { --rumi-a: #3C1594; --rumi-b: #966FF2; }
.project-logo { line-height: 0; padding: 4px 0 2px; }
.project-logo svg { height: clamp(30px, 3vw, 40px); width: auto; }
.chat-logo { height: 18px; width: auto; }

/* Diseño de producto y marca: tarjeta horizontal de ancho completo */
.mock-design { display: grid; place-items: center; padding: 26px; }
.dz-board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px; width: min(100%, 460px); }
.dz-swatches { grid-column: 1 / -1; display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dz-swatches i { flex: 1; height: 40px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); transform: scale(.92); opacity: 0; transition: transform 420ms var(--ease-out), opacity 260ms ease; }
.is-playing .dz-swatches i { transform: none; opacity: 1; }
.is-playing .dz-swatches i:nth-child(2) { transition-delay: 90ms; }
.is-playing .dz-swatches i:nth-child(3) { transition-delay: 180ms; }
.is-playing .dz-swatches i:nth-child(4) { transition-delay: 270ms; }
.dz-type, .dz-ui { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dz-type { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.dz-type b { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 720; letter-spacing: -.06em; line-height: 1; background: linear-gradient(110deg, var(--text) 40%, var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dz-type span { font-size: .62rem; font-weight: 600; color: var(--soft); }
.dz-ui { display: flex; flex-direction: column; gap: 8px; }
.dz-line { height: 8px; border-radius: 4px; background: var(--line-strong); }
.dz-line.short { width: 60%; }
.dz-btn {
  align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: 99px; font-size: .7rem; font-weight: 700;
  border: 1px dashed var(--line-strong); color: var(--soft);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 160ms var(--ease-out);
}
.mock-design.clicked .dz-btn { background: var(--purple); border: 1px solid var(--purple); color: #fff; }
.mock-design.pressing .dz-btn { transform: scale(.94); }
.dz-cursor {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; fill: var(--text); stroke: var(--page); stroke-width: 1.5;
  transform: translate(var(--cx, 80%), var(--cy, 80%)); transition: transform 900ms var(--ease-in-out);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
@media (max-width: 960px) {
}
@media (max-width: 760px) {
  .mock-design { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-swatches i { transform: none !important; opacity: 1 !important; }
  .dz-cursor { display: none; }
}


/* ---------- Findivin (identidad propia: carbón, marfil, coral) ---------- */
:root { --fv-a: #F5F1EA; --fv-b: #FF6A3D; }
html[data-theme="light"] { --fv-a: #0B0B0F; }
.project-findivin .mock,
html[data-theme="light"] .project-findivin .mock {
  --fv-a: #F5F1EA;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 106, 61, .22), transparent 60%), #111114;
  color: #F5F1EA;
}
.vin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fv-logo { height: 22px; width: auto; }
.vin-tagline { font-size: .66rem; font-style: italic; color: rgba(245, 241, 234, .6); white-space: nowrap; }
.vin-search {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 6px 6px 6px 14px; border-radius: 12px; background: #F5F1EA; color: #0B0B0F;
}
.vin-ic { width: 20px; height: 20px; fill: none; stroke: #FF6A3D; stroke-width: 1.8; stroke-linecap: round; }
.project-findivin .vin-code { margin: 0; color: #0B0B0F; font-size: clamp(.9rem, 1.6vw, 1.2rem); letter-spacing: .1em; white-space: nowrap; overflow: hidden; }
.project-findivin .vin-code .lock { color: #E2501F; }
.vin-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #FF6A3D; }
.vin-go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.project-findivin .vin-rows { margin-top: 14px; }
.project-findivin .vin-row { background: rgba(245, 241, 234, .06); border-color: rgba(245, 241, 234, .12); }
.project-findivin .vin-row span { color: rgba(245, 241, 234, .55); }
.project-findivin .vin-row b { color: #F5F1EA; }
.project-findivin .vin-scan { background: linear-gradient(transparent, rgba(255, 106, 61, .14) 80%, rgba(255, 106, 61, .5)); border-bottom-color: #FF6A3D; }
@media (max-width: 760px) {
  .vin-tagline { display: none; }
  .project-findivin .vin-code { font-size: .86rem; letter-spacing: .04em; }
  .vin-search { gap: 8px; padding-left: 10px; }
}


@media (max-width: 760px) {
  .project-numi .mock { aspect-ratio: auto; min-height: 270px; }
  .mock-numi { padding: 16px 18px; }
  .nm-tagline { font-size: .6rem; }
  .nm-chips { gap: 5px; }
  .nm-chip { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .nm-chip.on { transform: none; }
  .nm-waves { height: 48%; }
}
/* ---------- v2 responsive ---------- */
@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; row-gap: 0; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero-now { margin-top: 30px; }
  .rotator { height: auto; min-height: 44px; padding-block: 8px; border-radius: 16px; }
  .rotator-item { white-space: normal; }
  .facts { margin-top: 48px; }
  .fact { padding-right: 12px; }
  .fact + .fact { padding-left: 16px; }
  .projects { padding: 80px 0 86px; }
  .section-intro { margin-bottom: 30px; }
  .section-intro .eyebrow { padding-top: 0; }
  .section-intro > p:last-child { grid-column: 1; }
  .project-info { padding: 22px 22px 26px; }
  .mock-chat { padding: 18px 20px; aspect-ratio: auto; min-height: 290px; }
  .mock-vin { aspect-ratio: auto; min-height: 240px; }
  .vin-code { font-size: 1.05rem; letter-spacing: .08em; }
  .mock-money { gap: 20px; padding: 22px; }
  .mock-vin { padding: 22px; }
  .vin-rows { gap: 6px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .copy-mail { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .vin-row { opacity: 1 !important; transform: none !important; }
  .bubble.typing { display: none; }
  .ring-fg { stroke-dashoffset: 28 !important; }
  .bar::before { transform: scaleY(var(--h)) !important; }
  .hero-art { transform: none !important; }
  .rotator-item { transition: opacity 200ms ease !important; transform: none !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .about-grid, .section-intro, .method-grid { grid-template-columns: .34fr 1.66fr; gap: 32px; }
    .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; }
  .footer-inner { grid-template-columns: auto 1fr; row-gap: 18px; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-left: -10px; }
  .footer-note { grid-column: 2; grid-row: 1; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle {
    display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer; touch-action: manipulation;
    transition: transform var(--dur-press) var(--ease-out);
  }
  .menu-toggle:active { transform: scale(.94); }
  .menu-icon { position: relative; width: 18px; height: 10px; }
  .menu-icon i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform var(--dur-ui) var(--ease-out), top var(--dur-ui) var(--ease-out); }
  .menu-icon i:first-child { top: 0; }
  .menu-icon i:last-child { top: 8.4px; }
  .menu-open .menu-icon i:first-child { top: 4.2px; transform: rotate(45deg); }
  .menu-open .menu-icon i:last-child { top: 4.2px; transform: rotate(-45deg); }

  .menu-panel {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
    background: var(--page); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 380ms var(--ease-drawer), visibility 0s 380ms;
  }
  .menu-open .menu-panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 480ms var(--ease-drawer); }
  .menu-open.site-header { background: var(--page); border-bottom-color: var(--line); transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > a {
    min-height: 68px; padding: 0; border-bottom: 1px solid var(--line);
    font-size: 2rem; font-weight: 650; letter-spacing: -.045em; color: var(--text);
    opacity: 0; transform: translateY(16px);
    transition: opacity 360ms ease, transform 480ms var(--ease-out);
  }
  .nav-links > a:not(.nav-cta)::after { display: none; }
  .menu-open .nav-links > a { opacity: 1; transform: none; }
  .menu-open .nav-links > a:nth-child(1) { transition-delay: 80ms; }
  .menu-open .nav-links > a:nth-child(2) { transition-delay: 130ms; }
  .menu-open .nav-links > a:nth-child(3) { transition-delay: 180ms; }
  .menu-open .nav-links > a:nth-child(4) { transition-delay: 230ms; }
  .menu-open .nav-links > a:nth-child(5) { transition-delay: 280ms; }
  .nav-links > a.is-active { color: var(--accent-text); }
  .nav-cta {
    justify-content: center; margin: 22px 0 0; min-height: 56px !important; border: 0 !important;
    background: var(--purple); color: var(--white) !important; font-size: 1rem !important; letter-spacing: 0 !important;
  }
  .site-controls { justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
  .language-switch { grid-template-columns: repeat(3, 52px); }
  .language-switch button { min-height: 42px; font-size: .75rem; }
  .language-pill { width: 52px; height: 42px; }
  .theme-toggle { width: 50px; height: 50px; }
  .menu-open-body { overflow: hidden; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .logo { width: 150px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  /* Móvil: el grafismo se ancla arriba a la derecha y el velo cubre de abajo hacia arriba */
  .hero-art { left: auto; right: -70%; width: 200%; height: 72%; opacity: .6; }
  .hero-bg::after { background: linear-gradient(0deg, var(--page) 30%, color-mix(in srgb, var(--page) 60%, transparent) 55%, transparent 80%); }
  .mark-caption { text-align: left; font-size: .58rem; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4.6rem); line-height: .94; letter-spacing: -.07em; margin-top: 16px; }
  .hero-title .line { white-space: normal; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .button { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .hero-lead { font-size: 1rem; margin-top: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 26px; }
  .button { width: 100%; min-height: 54px; }
  .quiet-link { justify-content: center; }
  .quiet-link::after { display: none; }
  .hero-caption { margin-top: 28px; font-size: .6rem; line-height: 1.6; }
  .hero-glow { left: 70%; top: 18%; width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .marquee { padding: 16px 0; }
  .marquee-group, .marquee-item { gap: 26px; }
  .marquee-group { padding-right: 26px; }
  .marquee-item svg { width: 26px; }
  .statement { padding: 72px 0 78px; }
  .statement-text { font-size: clamp(2.3rem, 10.5vw, 3.8rem); line-height: 1.02; }
  .about { padding: 80px 0 84px; }
  .about-grid, .section-intro, .method-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-side { padding-top: 0; }
  .about-side p:not(.eyebrow) { max-width: 440px; margin-top: 12px; }
  .about-main h2, .section-intro h2, .method-copy h2 { font-size: clamp(2.5rem, 11vw, 3.8rem); line-height: 1; }
  .about-main > p { margin-top: 18px; font-size: 1rem; }
  .values { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .projects { padding: 80px 0 86px; }
  .section-intro { margin-bottom: 30px; }
  .section-intro .eyebrow { padding-top: 0; }
  .section-intro > p:last-child { grid-column: 1; }
  .method { padding: 80px 0; }
  .method-copy { position: static; }
  .method-copy > p:last-child { margin-top: 14px; }
  .method-grid { gap: 32px; }
  .steps { padding-left: 30px; }
  .steps-list { gap: 12px; }
  .steps-rail { left: 5px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .step::before { left: -30px; top: 28px; width: 14px; height: 14px; }
  .step p { grid-column: 1; }
  .step-index { padding: 0; }
  .step h3 { font-size: 1.3rem; }
  .contact { padding: 80px 0 92px; }
  .contact h2 { font-size: clamp(2.9rem, 12.5vw, 4.4rem); line-height: .98; }
  .contact-bottom { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 22px; }
  .contact-wave { width: 100%; height: 40%; opacity: .35; }
  .site-footer { padding-top: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-logo { width: 170px; }
  .footer-links { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: space-between; margin: 0; border-block: 1px solid rgba(245, 245, 247, .14); }
  .footer-links { flex-wrap: wrap; justify-content: flex-start; column-gap: 4px; }
  .footer-links a:first-child { margin-left: -10px; }
  .footer-note { grid-column: 1; grid-row: auto; text-align: left; white-space: normal; }
  .footer-wordmark { width: calc(100% - 40px); margin-top: 40px; }
  .scroll-note { display: none; }
}

/* =====================================================================
   Movimiento reducido: menos y más suave, no cero
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .load-in, .js .hero-title .line > span { opacity: 1 !important; transform: none !important; }
  .is-loaded .load-in { transition: opacity 200ms ease !important; }
  .js .ha-line { stroke-dashoffset: 0 !important; }
  .ha-comet { display: none; }
  .ha-line { translate: none !important; }
  .js .ha-band { opacity: .22 !important; }
  .js .footer-wordmark svg, .js .fw-dot { clip-path: none !important; transform: none !important; }

  .marquee-track { transform: none !important; }
  .statement-text .w { opacity: 1; }
  .contact-wave path { stroke-dashoffset: 0 !important; }
}

/* Transparencia reducida: superficies sólidas, sin desenfoque */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .menu-panel { background: var(--page); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-glow, .ha-band { display: none; }
}
/* Más contraste: bordes y textos secundarios más definidos */
@media (prefers-contrast: more) {
  :root { --line: rgba(245, 245, 247, .32); --line-strong: rgba(245, 245, 247, .5); --soft: #d0ced8; --muted: #e2e0e8; }
  html[data-theme="light"] { --line: rgba(11, 11, 15, .3); --line-strong: rgba(11, 11, 15, .5); --soft: #3c3a42; --muted: #2a2930; }
  .statement-text .w { opacity: 1; }
}
