/* =========================================================
   Tresvel Studio — main.css
   Sistema: tres barras inclinadas (isotipo) como lenguaje de
   forma y de movimiento. Paleta de marca:
   #146BFF confianza · #00C2FF movimiento · #0B132B solidez · #E6EBF2 claridad
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blue: #146BFF;
  --cyan: #00C2FF;
  --navy: #0B132B;
  --ink: #060B1D;
  --mist: #E6EBF2;

  --bg: var(--ink);
  --fg: #F2F5FA;
  --muted: rgba(230, 235, 242, .64);
  --faint: rgba(230, 235, 242, .38);
  --line: rgba(230, 235, 242, .12);
  --line-strong: rgba(230, 235, 242, .22);
  --panel: rgba(255, 255, 255, .03);

  --grad: linear-gradient(100deg, #146BFF 0%, #1A8BFF 45%, #00D4FF 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --f-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 72px;
  --skew: -14deg;
}

html[data-surface="light"] {
  --bg: var(--mist);
  --fg: var(--navy);
  --muted: rgba(11, 19, 43, .66);
  --faint: rgba(11, 19, 43, .42);
  --line: rgba(11, 19, 43, .12);
  --line-strong: rgba(11, 19, 43, .24);
  --panel: rgba(11, 19, 43, .03);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease-io), color .8s var(--ease-io);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: .7em 1.1em; background: var(--blue); color: #fff; border-radius: 8px;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Colores que cambian con la superficie */
.section-lede, .eyebrow, .project-desc, .tags li, .svc-panel p, .step p, .member p,
.principles li, .facts span, .field label, .form-legal, .pr-note, .footer-bottom,
.svc, .svc-list, .facts, .principles, .member {
  transition: color .8s var(--ease-io), border-color .8s var(--ease-io), background-color .8s var(--ease-io);
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .9em;
  font-size: .75rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.dash {
  display: inline-block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--grad);
  transform: skewX(var(--skew));
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.h2 em, .contact-title em { font-style: normal; color: var(--faint); transition: color .8s var(--ease-io); }
.section-head { margin-bottom: clamp(48px, 8vw, 110px); }
.section-head .h2 + .section-lede { margin-top: 1.8rem; }
.section-head-split {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
}
.section-lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
}

/* ---------- Botones (inclinados, como el isotipo) ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: 1.05em 1.7em;
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  letter-spacing: .005em;
  white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .45s var(--ease-out), color .3s;
}
.btn .i { width: 1.15em; height: 1.15em; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover .i { transform: translateX(4px); }

.btn-primary { color: #fff; }
.btn-primary::before, .btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 12px;
  transform: skewX(var(--skew));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-position .6s var(--ease-out);
}
.btn-primary::before {
  background: linear-gradient(100deg, #146BFF 0%, #1A8BFF 40%, #00C8FF 70%, #146BFF 100%);
  background-size: 220% 100%;
  box-shadow: 0 14px 34px -14px rgba(20, 107, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover::before {
  background-position: 100% 0;
  box-shadow: 0 18px 44px -12px rgba(0, 170, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:active::before { transform: skewX(var(--skew)) scale(.97); }
.btn-ghost::before { border: 1px solid var(--line-strong); }
.btn-ghost:hover::before { border-color: var(--cyan); background: rgba(0, 194, 255, .08); }
.btn-sm { padding: .72em 1.25em; font-size: .9rem; }

.btn-link { padding: .6em 0; color: var(--fg); }
.btn-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2em; height: 2px;
  background: var(--grad);
  transform: scaleX(.28); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.btn-link:hover::after { transform: scaleX(1); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: transform .5s var(--ease-out), background-color .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 11, 29, .72);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark { width: 34px; height: 26px; filter: drop-shadow(0 0 8px rgba(0, 160, 255, .45)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand-word span { font-size: .52rem; font-weight: 500; letter-spacing: .78em; margin-top: .3em; padding-left: .1em; }

.nav ul { display: flex; gap: 2.1rem; }
.nav a {
  position: relative; font-size: .95rem; font-weight: 600; color: var(--muted);
  transition: color .3s;
  padding-block: .4em;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0) skewX(var(--skew)); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav a:hover, .nav a.is-current { color: var(--fg); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1) skewX(var(--skew)); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.menu-icon { position: relative; width: 26px; height: 16px; }
.menu-icon i {
  position: absolute; right: 0; height: 2.5px; border-radius: 2px; background: currentColor;
  transform: skewX(-30deg); transition: transform .45s var(--ease-out), width .45s var(--ease-out), top .45s var(--ease-out), opacity .3s;
}
.menu-icon i:nth-child(1) { top: 0; width: 100%; }
.menu-icon i:nth-child(2) { top: 7px; width: 72%; right: 14%; }
.menu-icon i:nth-child(3) { top: 14px; width: 46%; right: 28%; }
.menu-open .menu-icon i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { top: 7px; width: 100%; right: 0; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 60% at 100% 0%, rgba(20, 107, 255, .28), transparent 60%), var(--ink);
  color: #F2F5FA;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu li { overflow: hidden; }
.menu a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 4rem);
  letter-spacing: -.035em; line-height: 1.15;
  transform: translateY(110%); transition: transform .7s var(--ease-out);
}
.menu.is-open a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .05s; }
.menu li:nth-child(3) a { transition-delay: .1s; }
.menu li:nth-child(4) a { transition-delay: .15s; }
.menu small { font-family: var(--f-text); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--cyan); }
.menu-foot { color: rgba(230, 235, 242, .6); font-size: .95rem; }
.menu-foot a { color: #fff; font-weight: 700; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  overflow: clip;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(20, 107, 255, .32), transparent 70%),
    radial-gradient(40% 40% at 100% 0%, rgba(0, 194, 255, .18), transparent 70%),
    linear-gradient(180deg, #0B132B 0%, var(--ink) 100%);
}
/* El elemento memorable: el isotipo, gigante y vivo */
.hero-mark {
  --mx: 0; --my: 0; --sp: 0;
  position: absolute; z-index: -1;
  width: min(47vw, 900px);
  aspect-ratio: 850 / 642;
  right: -5vw; top: 44%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hm-bar { position: absolute; inset: 0; animation: hm-enter 1.25s var(--ease-out) both; }
.hm-1 { --depth: 14; --fly: 20; animation-delay: .1s; }
.hm-2 { --depth: 26; --fly: 34; animation-delay: .2s; }
.hm-3 { --depth: 40; --fly: 50; animation-delay: .3s; }
.hm-in {
  position: absolute; inset: 0;
  transform:
    translate3d(calc(var(--mx) * var(--depth) * 1px + var(--sp) * var(--fly) * 1vw),
                calc(var(--my) * var(--depth) * 1px), 0);
  opacity: calc(1 - var(--sp) * .9);
  will-change: transform;
}
.hm-in svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(0, 150, 255, .55)) drop-shadow(0 0 2px rgba(140, 225, 255, .8)); }
/* Estelas de luz al entrar (como las del banner) */
.hm-bar::before {
  content: ""; position: absolute; height: 2px; right: 100%; width: 70vw;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 255, .9));
  box-shadow: 0 0 12px rgba(0, 194, 255, .8);
  transform-origin: right;
  animation: hm-trail 1.6s var(--ease-out) both;
  animation-delay: inherit;
}
.hm-1::before { top: 1%; right: 85%; }
.hm-2::before { top: 63.5%; right: 70%; }
.hm-3::before { top: 99%; right: 70%; }
@keyframes hm-enter {
  0% { transform: translate3d(-90vw, 0, 0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes hm-trail {
  0%, 30% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

.hero-inner { position: relative; }
.hero-eyebrow { opacity: 0; animation: fade-up .9s var(--ease-out) .35s both; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.1rem, 8.2vw, 8.6rem);
  line-height: .93;
  letter-spacing: -.045em;
  margin-left: -.04em;
}
.ht-line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.ht-line > span { display: inline-block; animation: line-up 1.1s var(--ease-out) both; animation-delay: .45s; }
.ht-2 { padding-left: .62em; }
.ht-3 { padding-left: .55em; }
.ht-2 > span { animation-delay: .55s; }
.ht-3 > span { animation-delay: .65s; }
@keyframes line-up {
  from { transform: translate3d(0, 110%, 0) skewY(5deg); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.hero-bottom {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.8rem;
  margin-top: clamp(2rem, 4.5vw, 3.4rem);
  animation: fade-up 1s var(--ease-out) .9s both;
}
.hero-lede { max-width: 44ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: clamp(2rem, 5vh, 3.5rem) 1.6rem;
  animation: fade-up 1s var(--ease-out) 1.1s both;
}
.workbench { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); min-width: 0; }
.wb-label { font-weight: 700; color: var(--fg); white-space: nowrap; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.wb-rotator { position: relative; display: inline-grid; overflow: hidden; height: 1.6em; min-width: 0; }
.wb-rotator > span {
  grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(100%); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
}
.wb-rotator > span.is-active { transform: none; opacity: 1; }
.wb-rotator > span.is-leaving { transform: translateY(-100%); opacity: 0; }
.scroll-cue {
  position: relative; width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: border-color .3s;
}
.scroll-cue:hover { border-color: var(--cyan); }
.scroll-cue span { width: 2px; height: 16px; background: var(--grad); border-radius: 2px; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-6px) scaleY(.3); opacity: 0; } 40% { opacity: 1; transform: none; } 100% { transform: translateY(8px) scaleY(.3); opacity: 0; } }

/* ---------- Revelados al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.js [data-split].is-in .w { transform: none; }

/* ---------- MANIFIESTO ---------- */
.manifesto { padding-block: clamp(110px, 16vw, 230px) clamp(90px, 12vw, 170px); }
.manifesto-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3.7rem);
  line-height: 1.13;
  letter-spacing: -.025em;
  max-width: 24ch;
  max-width: min(24ch, 100%);
  text-wrap: pretty;
}
.manifesto-text .sw { transition: opacity .35s linear, color .35s linear; }
.js .manifesto-text .sw { opacity: .16; }
.js .manifesto-text .sw.on { opacity: 1; }
.manifesto-text .sw.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  margin-top: clamp(64px, 9vw, 120px);
}
.facts li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.facts b {
  display: block;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  margin-bottom: .6rem;
}
.facts span { color: var(--muted); max-width: 24ch; display: block; }

/* ---------- PROYECTOS ---------- */
.projects { overflow-x: clip; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(100px, 12vw, 180px); }
.project { --p: .5; position: relative; padding-block: clamp(56px, 9vw, 130px); }
.project + .project::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  max-width: var(--max); margin-inline: auto;
  height: 1px; background: var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: start;
}
.project-flip .project-media { order: 2; }
.project-media { position: sticky; top: calc(var(--header-h) + 6vh); }
.project-body { position: relative; isolation: isolate; padding-block: 4vh 12vh; }
.project-index {
  position: absolute; top: -.25em; right: 0; z-index: -1;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 15vw, 14rem); line-height: 1;
  letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  transform: translate3d(0, calc((var(--p) - .5) * -120px), 0);
  user-select: none;
}
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.4rem; }
.kind { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.status {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em .9em .45em .8em; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: #4FE3B0; border-color: rgba(79, 227, 176, .35); background: rgba(79, 227, 176, .07); }
.status-live::before { box-shadow: 0 0 0 0 rgba(79, 227, 176, .6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(79, 227, 176, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(79, 227, 176, 0); } }
.status-beta { color: #56B8FF; border-color: rgba(86, 184, 255, .35); background: rgba(86, 184, 255, .07); }
.status-dev { color: var(--muted); }
.status-dev::before { background: transparent; border: 1.5px solid currentColor; }

.project-name {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .95; letter-spacing: -.05em;
  margin-bottom: 1.6rem;
}
.project-problem {
  position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.3;
  letter-spacing: -.01em;
  padding-left: 1.3rem; margin-bottom: 1.4rem;
  max-width: 30ch;
}
.project-problem::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform: skewY(-20deg);
}
.project-desc { color: var(--muted); max-width: 44ch; margin-bottom: 1.8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tags li {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: .42em .9em; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel);
}

/* Escenario de los mockups */
.mock { position: relative; padding: clamp(28px, 5vw, 64px) clamp(12px, 3vw, 40px); }
.mock::before {
  content: ""; position: absolute; inset: 6% 4%; z-index: -1;
  border-radius: 34px;
  transform: skewX(var(--skew));
  background:
    radial-gradient(80% 70% at 70% 30%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
}
.mock > .phone, .mock > .browser {
  transform: translate3d(0, calc((var(--p) - .5) * -40px), 0);
}
.float-note {
  position: absolute; right: 0; bottom: 14%;
  display: flex; flex-direction: column; gap: .15rem;
  max-width: 220px;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: rgba(13, 21, 48, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  color: #E9EEF7;
  font-size: .82rem; line-height: 1.35;
  opacity: 0; transform: translate3d(0, 20px, 0) scale(.96);
  transition: opacity .8s var(--ease-out) .9s, transform .8s var(--ease-out) .9s;
}
.float-note b { font-family: var(--f-display); font-size: 1rem; color: var(--accent); }
.float-note span { color: rgba(233, 238, 247, .75); }
.float-left { right: auto; left: -2%; bottom: auto; top: 52%; }
.float-top { bottom: auto; top: 0; }
.is-in .float-note { opacity: 1; transform: none; }

/* Teléfono */
.phone {
  position: relative;
  width: min(300px, 68vw);
  margin-inline: auto;
  aspect-ratio: 300 / 640;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(160deg, #22263A, #0A0C16);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 0 70px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 40px;
  background: #0B0B12;
}
.phone-screen .scr {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.phone-screen .scr.is-active { opacity: 1; transform: none; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Selector de pantallas bajo el teléfono */
.screen-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  margin-top: 1.6rem;
}
.screen-tabs button {
  position: relative;
  padding: .5em .95em; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line);
  transition: color .3s, border-color .3s, background-color .3s;
}
.screen-tabs button:hover { color: var(--fg); border-color: var(--line-strong); }
.screen-tabs button[aria-pressed="true"] {
  color: #0B0B12; border-color: transparent;
  background: var(--accent);
}
.screen-tabs button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: rgba(11, 11, 18, .35);
  transform: scaleX(0); transform-origin: left;
}
.screen-tabs.is-auto button[aria-pressed="true"]::after { animation: tab-progress var(--auto, 3.6s) linear forwards; }
@keyframes tab-progress { to { transform: scaleX(1); } }

/* App HYROX / DEKA (recreada en HTML) */
.hx { background: #0A0A0A; color: #F2F2F2; font-size: 11px; line-height: 1.3; }
.hx-screen { display: flex; flex-direction: column; padding: 52px 16px 18px; }
.hx-screen::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  border-radius: 14px; background: #000;
}
.hx-top { text-align: center; font-weight: 700; font-size: 12px; margin-bottom: 16px; }
.hx-run { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #161616; }
.hx-run small { color: #9A9A9A; font-size: 10.5px; }
.hx-run b { font-size: 17px; letter-spacing: -.01em; }
.hx-clock {
  margin-top: 26px; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: 54px; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hx-target { text-align: center; color: #9A9A9A; font-size: 12px; margin-top: 4px; }
.hx-bar { height: 7px; border-radius: 4px; background: #222; margin: 20px 4px 10px; overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: 42%; border-radius: inherit; background: linear-gradient(90deg, #3DDC84, #E4FF3A); }
.hx-meta { display: flex; justify-content: space-between; padding: 0 4px; font-size: 10.5px; color: #CFCFCF; }
.hx-meta span:last-child { color: #FF6B6B; }
.hx-ctrls { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.hx-ctrls > span:not(.hx-pause) {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3A3A3A;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.hx-pause { width: 66px; height: 66px; border-radius: 50%; background: #E4FF3A; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 0 30px -6px rgba(228, 255, 58, .6); }
.hx-pause i { width: 6px; height: 22px; border-radius: 2px; background: #0A0A0A; }
.hx-splits { display: flex; flex-direction: column; gap: 6px; }
.hx-splits li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 10px; background: #151515;
  font-size: 11px; font-weight: 600; color: #8A8A8A;
}
.hx-splits li span { width: 14px; color: #6A6A6A; font-size: 10px; }
.hx-splits small { font-weight: 500; color: #6A6A6A; }
.hx-splits b { margin-left: auto; font-variant-numeric: tabular-nums; }
.hx-splits .done { color: #EDEDED; }
.hx-splits .done b { color: #E4FF3A; }
.hx-splits .on { color: #fff; border: 1px solid #E4FF3A; background: rgba(228, 255, 58, .08); }
.hx-splits .on b { color: #E4FF3A; }
.hx-total { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 14px; background: #151515; }
.hx-total small { display: block; color: #9A9A9A; font-size: 10px; }
.hx-total b { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hx-total em { font-style: normal; text-align: center; color: #3DDC84; font-weight: 800; font-size: 15px; padding: 6px 9px; border-radius: 10px; background: rgba(61, 220, 132, .12); }
.hx-total em small { color: #3DDC84; font-weight: 600; font-size: 8.5px; }
.hx-sub { margin: 16px 0 8px; font-weight: 700; font-size: 11.5px; }
.hx-chart { display: flex; align-items: flex-end; gap: 5px; height: 92px; padding: 0 2px; border-bottom: 1px solid #2A2A2A; }
.hx-chart i { flex: 1; position: relative; height: calc(var(--a) * 100%); border-radius: 2px 2px 0 0; background: #3EA6FF; transform-origin: bottom; }
.hx-chart i::after { content: ""; position: absolute; left: 100%; bottom: 0; width: 3px; height: calc(var(--b) / var(--a) * 100%); background: #2FD4C4; border-radius: 1px; }
.hx-split-tags { display: flex; gap: 12px; margin: 8px 0 14px; font-size: 9.5px; color: #9A9A9A; }
.hx-split-tags i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2FD4C4; margin-right: 4px; }
.hx-split-tags i.me { background: #3EA6FF; }
.hx-types { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin-top: 8px; border-radius: 14px; background: #151515; }
.hx-types li { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #CFCFCF; }
.hx-types i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hx-types b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.slash { color: var(--accent); }
.hx-best { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.hx-best div { padding: 10px; border-radius: 12px; background: #151515; text-align: center; }
.hx-best small { display: block; color: #9A9A9A; font-size: 9.5px; }
.hx-best b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 800; margin: 2px 0; }
.hx-best span { font-size: 9px; color: #9A9A9A; }
.hx-strip { display: flex; justify-content: space-between; margin-top: 18px; padding: 0 4px; }
.hx-strip i { width: 22px; height: 22px; border-radius: 50%; background: #1C1C1C; border: 1px solid #2E2E2E; }
.hx-strip i.on { background: #E4FF3A; border-color: #E4FF3A; }

/* Navegador */
.browser {
  width: 100%; max-width: 620px; margin-inline: auto;
  border-radius: 16px; overflow: hidden;
  background: #0E1633;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 60px -25px rgba(0, 160, 255, .35);
  color: #E9EEF7;
  font-size: 12px; line-height: 1.35;
}
.br-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.br-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.br-bar span { margin-left: 10px; font-size: 11px; color: rgba(233, 238, 247, .55); font-weight: 600; }
.br-body { padding: clamp(14px, 2.4vw, 24px); }


.nodo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: center; }
.graph { position: relative; aspect-ratio: 3 / 2; }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-lines path { fill: none; stroke: rgba(122, 168, 255, .55); stroke-width: 1.5; stroke-dasharray: 4 6; }
.is-in.is-live .graph-lines path { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.gn {
  position: absolute; transform: translate(-50%, -50%);
  padding: 5px 9px; border-radius: 8px;
  background: #18224A; border: 1px solid rgba(255, 255, 255, .12);
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.gn-hub {
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); border: 0;
  box-shadow: 0 0 0 6px rgba(20, 107, 255, .15), 0 0 30px rgba(0, 160, 255, .6);
}
.gn-hub svg { width: 26px; height: 20px; }
.kpis { display: grid; gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.kpi small { display: block; color: rgba(233, 238, 247, .55); font-size: 9.5px; }
.kpi b { font-family: var(--f-display); font-size: 17px; letter-spacing: -.02em; margin-right: 6px; }
.kpi em { font-style: normal; font-size: 10px; font-weight: 700; color: #4FE3B0; }
.kpi em.neg { color: #56B8FF; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #00C2FF, #146BFF); transform-origin: bottom; }
.js .chart i { transform: scaleY(.05); transition: transform .9s var(--ease-out); }
.js .chart i:nth-child(2) { transition-delay: .06s; } .js .chart i:nth-child(3) { transition-delay: .12s; }
.js .chart i:nth-child(4) { transition-delay: .18s; } .js .chart i:nth-child(5) { transition-delay: .24s; }
.js .chart i:nth-child(6) { transition-delay: .3s; } .js .chart i:nth-child(7) { transition-delay: .36s; }
.js .is-in .chart i { transform: none; }


.idea-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid var(--line);
}
.idea-strip p { max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); }
.idea-strip b { color: var(--fg); }

/* ---------- SERVICIOS ---------- */
.services { padding-block: clamp(110px, 14vw, 200px); }
.svc-list { border-top: 1px solid var(--line-strong); }
.svc { border-bottom: 1px solid var(--line-strong); }
.svc-q { font: inherit; }
.svc-q button {
  position: relative; isolation: isolate;
  width: 100%;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto 2.6rem; align-items: center; gap: 1rem;
  padding: clamp(1.3rem, 2.4vw, 2rem) 0;
  text-align: left;
}
.svc-q button::before {
  content: ""; position: absolute; z-index: -1; inset: 8px -18px;
  border-radius: 14px;
  background: rgba(20, 107, 255, .07);
  transform: skewX(var(--skew)) scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.svc-q button:hover::before { transform: skewX(var(--skew)) scaleX(1); }
.svc-n { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.svc-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.7vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em;
  transition: transform .5s var(--ease-out);
}
.svc-q button:hover .svc-title { transform: translateX(8px); }
.svc-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding: .45em .9em; border: 1px solid var(--line-strong); border-radius: 999px;
}
.svc-plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc-plus::before, .svc-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease-out);
}
.svc-plus::after { transform: rotate(90deg); }
.svc.is-open .svc-plus::after { transform: rotate(0deg); }
.svc.is-open .svc-plus::before { transform: rotate(180deg); }
.svc.is-open .svc-n { color: var(--blue); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.svc.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-panel-in { overflow: hidden; padding-left: 5rem; }
.svc-panel-in > :first-child { margin-top: 0; }
.svc-panel p { max-width: 58ch; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); margin-bottom: 1.4rem; }
.svc-panel .tags { margin-bottom: 1rem; }
.svc-panel .btn-link { margin-bottom: 2rem; }
.no-js-accordion .svc-panel { grid-template-rows: 1fr; }

/* ---------- ¿TE SUENA? ---------- */
.pains { padding-block: clamp(110px, 14vw, 200px); }
.pains-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas: "copy chips" "result chips";
  grid-template-rows: auto 1fr;
  gap: 2.4rem clamp(40px, 7vw, 110px); align-items: start;
}
.pains-copy { grid-area: copy; }
.pains-copy .section-lede { margin-top: 1.6rem; }
.pains .h2 { font-size: clamp(2.2rem, 4.3vw, 4rem); }
.pain-chips { grid-area: chips; }
.pains-result { grid-area: result; }
.pain-chips { display: flex; flex-wrap: wrap; gap: .7rem; align-content: flex-start; }
.chip {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.2em; border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-weight: 600; font-size: .98rem; text-align: left; line-height: 1.3;
  transition: border-color .3s, color .3s, transform .3s var(--ease-out), background-color .3s;
}
.chip::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  transition: background-color .3s, border-color .3s;
  background: center / 12px no-repeat;
}
.chip:hover { border-color: var(--cyan); transform: translateY(-2px); }
.chip[aria-pressed="true"] {
  border-color: transparent; color: #fff;
  background: linear-gradient(100deg, rgba(20, 107, 255, .95), rgba(0, 170, 255, .85));
  box-shadow: 0 12px 30px -14px rgba(20, 107, 255, .9);
}
.chip[aria-pressed="true"]::before {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.5 3.6' fill='none' stroke='%23146BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pains-result {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 100% 0%, rgba(20, 107, 255, .16), transparent 60%), var(--panel);
}
.pr-num {
  display: flex; align-items: baseline; gap: .4rem;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.05em;
}
.pr-num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.pr-num small { font-size: .26em; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.pr-text { margin: .9rem 0 1.6rem; font-size: 1.12rem; max-width: 40ch; min-height: 3.2em; }
.pr-note { margin-top: 1.1rem; font-size: .82rem; color: var(--faint); }

/* ---------- PROCESO ---------- */
.process { padding-block: clamp(90px, 12vw, 170px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); }
.step-bar {
  width: 100%; height: auto; margin-bottom: 2rem;
  filter: drop-shadow(0 0 14px rgba(0, 150, 255, .45));
}
.js .step-bar { transform: translate3d(-30px, 0, 0); opacity: 0; transition: transform 1.1s var(--ease-out), opacity 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + .15s); }
.js .is-in .step-bar { transform: none; opacity: 1; }
.step-n { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; margin-bottom: .9rem; }
.step p:last-child { color: var(--muted); }

/* ---------- NOSOTROS ---------- */
.about { padding-block: clamp(90px, 12vw, 170px); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.member { padding-top: 0; }
.member-bar {
  display: block; height: 16px; margin-bottom: 2rem; border-radius: 6px 3px;
  background: var(--grad);
  transform: skewX(-38deg); transform-origin: bottom left;
  box-shadow: 0 0 22px rgba(0, 150, 255, .45);
}
.mb-1 { width: 100%; }
.mb-2 { width: 66%; margin-left: 9%; }
.mb-3 { width: 45%; margin-left: 9%; }
.js .member-bar { transform: skewX(-38deg) scaleX(0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0s) + .2s); }
.js .is-in .member-bar { transform: skewX(-38deg) scaleX(1); }
.member-role { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: .8rem; }
.member h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -.025em; margin-bottom: .8rem; }
.member p:last-child { color: var(--muted); }
.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 110px); padding-top: 2rem; border-top: 1px solid var(--line);
}
.principles li { color: var(--muted); }
.principles b { display: block; color: var(--fg); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: .2rem; }

/* ---------- CONTACTO ---------- */
.contact { position: relative; padding-block: clamp(110px, 14vw, 200px); overflow: clip; isolation: isolate; }
.contact-glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(50% 45% at 12% 72%, rgba(20, 107, 255, .26), transparent 70%),
              radial-gradient(40% 40% at 90% 10%, rgba(0, 194, 255, .1), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 8vh); }
.contact-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3.6rem, 7.2vw, 7.6rem); line-height: .9; letter-spacing: -.055em;
  margin: 0 0 2rem -.04em;
}
.contact-mail { margin-top: 2rem; color: var(--muted); }
.contact-mail a { color: var(--fg); font-weight: 700; border-bottom: 2px solid var(--blue); padding-bottom: 2px; transition: border-color .3s; }
.contact-mail a:hover { border-color: var(--cyan); }

.contact-form {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.field-types { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.field-types legend, .field label {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem; padding: 0;
}
.field-types legend span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.type-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.type-chips label { position: relative; cursor: pointer; }
.type-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-chips span {
  display: inline-block; padding: .62em 1.05em; border-radius: 10px;
  border: 1px solid var(--line-strong); font-weight: 600; font-size: .92rem;
  transition: border-color .25s, background-color .25s, color .25s;
}
.type-chips label:hover span { border-color: var(--cyan); }
.type-chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 107, 255, .9); }
.type-chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

.field { position: relative; margin-bottom: 1.7rem; }
.field label { display: block; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: .7rem 0 .8rem;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  font: inherit; font-size: 1.15rem; font-weight: 500;
  transition: border-color .3s;
  resize: vertical;
}
.field textarea { min-height: 6.5rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cyan); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.field:has(.field-error:not([hidden]))::after { display: none; }
.field:focus-within::after { transform: scaleX(1); }
.field [aria-invalid="true"] { border-bottom-color: #FF7A85; }
.field-error { margin-top: .45rem; font-size: .88rem; color: #FF8E97; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2.2rem; }
.form-legal { font-size: .85rem; color: var(--faint); }
.form-legal a { text-decoration: underline; text-underline-offset: 3px; }
.btn-submit[disabled] { opacity: .7; pointer-events: none; }
.form-status { margin-top: 1.2rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #4FE3B0; }
.form-status.err { color: #FF8E97; }
.form-status a { text-decoration: underline; }

.form-done { text-align: left; padding: 1rem 0; }
.form-done .done-mark { width: 64px; height: 48px; margin-bottom: 1.5rem; filter: drop-shadow(0 0 14px rgba(0, 150, 255, .6)); }
.form-done h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .8rem; }
.form-done p { color: var(--muted); }

/* ---------- FOOTER ---------- */
.site-footer { padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); overflow: clip; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer-claim { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.045em; }
.footer-nav { display: flex; gap: clamp(2.5rem, 6vw, 6rem); }
.footer-nav li + li { margin-top: .55rem; }
.footer-nav a { color: var(--muted); font-weight: 600; transition: color .3s; }
.footer-nav a:hover { color: var(--fg); }
.footer-word {
  display: flex; align-items: center; gap: 2.4vw;
  margin-top: clamp(60px, 9vw, 120px);
  font-family: var(--f-display); font-weight: 800; font-size: 14.5vw; line-height: .8; letter-spacing: -.05em;
  white-space: nowrap;
  user-select: none;
}
.footer-word span {
  background: linear-gradient(180deg, rgba(230, 235, 242, .16), rgba(230, 235, 242, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.fw-mark { width: .9em; height: .68em; flex: none; opacity: .9; filter: drop-shadow(0 0 30px rgba(0, 150, 255, .4)); }
@media (min-width: 1660px) { .footer-word { font-size: 240px; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem 2rem; margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--faint);
}
.footer-bottom a:hover { color: var(--fg); }

/* ---------- Páginas secundarias ---------- */
.page-simple { padding: calc(var(--header-h) + 80px) 0 120px; }
.page-simple .prose { max-width: 70ch; }
.prose h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; margin-bottom: 2rem; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; margin: 2.4rem 0 .8rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-top: .6rem; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1800px) {
  :root { --max: 1480px; }
  body { font-size: 1.125rem; }
}

@media (max-width: 1080px) {
  .nodo { grid-template-columns: 1fr; }
  .graph { max-width: 360px; width: 100%; margin-inline: auto; }
  .nav ul { gap: 1.5rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: .8rem; }

  .section-head-split { grid-template-columns: 1fr; align-items: start; }

  /* Hero móvil: el isotipo arriba, el mensaje abajo */
  .hero { justify-content: flex-end; padding-top: calc(var(--header-h) + 20px); }
  .hero-mark { width: 72vw; right: -12vw; top: calc(var(--header-h) + 2vh); transform: none; }
  .hero-inner { padding-top: calc(72vw * .755 + 2vh); }
  .hero-eyebrow .ey-long { display: none; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 6.2rem); }
  .ht-2 { padding-left: .45em; }
  .ht-3 { padding-left: .4em; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }

  /* Proyectos: sin sticky, mockup primero y a sangre */
  .project-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-flip .project-media { order: 0; }
  .project-media { position: relative; top: auto; margin-inline: calc(var(--gutter) * -1); }
  .project-body { padding-block: 0; }
  .project-index { top: -.55em; font-size: clamp(5rem, 26vw, 9rem); }
  .mock { padding-inline: var(--gutter); }
  .mock::before { inset: 4% 3%; }

  .pains-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "chips" "result"; grid-template-rows: auto; }

  .steps, .team, .principles { grid-template-columns: 1fr; }
  .steps { gap: 3.5rem; }
  .step { display: grid; grid-template-columns: 1fr; }
  .step-bar { max-width: 340px; }
  .team { gap: 3rem; }
  .member-bar { max-width: 340px; }
  .mb-2 { width: 66%; max-width: 224px; }
  .mb-3 { width: 45%; max-width: 153px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }

  .footer-top { flex-direction: column; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .hero-ctas { width: 100%; flex-direction: column; align-items: stretch; gap: .6rem; }
  .hero-ctas .btn-primary { width: calc(100% - 14px); margin-inline: 7px; }
  .hero-ctas .btn-link { align-self: flex-start; }
  .workbench .wb-label { display: none; }
  .facts { grid-template-columns: 1fr; gap: 1.6rem; }
  .facts li { display: grid; grid-template-columns: 4.6rem 1fr; align-items: baseline; gap: 1rem; }
  .facts b { margin: 0; font-size: 3.4rem; }
  .svc-q button { grid-template-columns: 2.4rem minmax(0, 1fr) 1.4rem; row-gap: .6rem; }
  .svc-tag { grid-column: 2; grid-row: 2; justify-self: start; }
  .svc-plus { grid-column: 3; grid-row: 1; width: 18px; height: 18px; }
  .svc-panel-in { padding-left: 3.4rem; }
  .svc-q button::before { inset: 6px -10px; }
  .float-note { display: none; }
  .chip { font-size: .93rem; padding: .78em 1em; }
  .form-foot .btn-submit { width: calc(100% - 14px); margin-inline: 7px; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .fw-mark { display: none; }
  .footer-word { font-size: 21vw; }
}


/* Pantallas bajas en horizontal */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-mark { width: 40vw; top: 50%; transform: translateY(-50%); }
  .hero-inner { padding-top: 0; }
  .hero-title { font-size: clamp(2.4rem, 7vw, 4rem); }
}

/* Dispositivos sin hover: sin efectos que dependan del cursor */
@media (hover: none) {
  .svc-q button::before { display: none; }
  .chip:hover { transform: none; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hm-in { transform: none !important; opacity: 1 !important; }
  .hm-bar::before { display: none; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; }
  .js .manifesto-text .sw { opacity: 1; }
  .project-index, .mock > .phone, .mock > .browser { transform: none !important; }
}
