/* =====================================================================
   Vaant — servicios digitales con IA  ·  v5

   Rediseño de la piel y de las interacciones. El contenido y el orden
   de las secciones se mantienen; lo que cambia es cómo se muestra:

     · Portada con titular grande + tres "ventanas" que enseñan, en chico,
       qué se construye (sitio, bot, panel). Parallax suave con el mouse.
     · Servicios como explorador: una lista y una demo ilustrativa por
       servicio (la de micro apps funciona de verdad).
     · Una línea de circuito (eco del isotipo) acompaña el scroll y se
       enciende en cada sección.
     · "Cómo trabajamos" como línea de tiempo; "Tecnología" como pila 3D
       sincronizada con la lista; FAQ nativo con apertura animada.

   Reglas del proyecto que siguen vigentes (ver AI-CONTEXT.md): sin prueba
   social inventada, sin logos de terceros, sin interfaces que prometan
   una función inexistente (las demos están rotuladas como ilustrativas).

   Movimiento: sólo transform y opacity en lo importante; curvas fuertes
   de salida (ease-out) para entradas; interacciones < 300 ms; todo se
   apaga o se suaviza con prefers-reduced-motion (ver el final).
   ===================================================================== */

/* ---------------------------------------------------------------------
   Fuentes (variables, subset latino — cubre ñ, tildes y signos del español)
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Variable";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

[hidden] { display: none !important; }

:root {
  --font-display: "Bricolage Grotesque Variable", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 76px;

  /* Curvas (ver skill de animación: sin ease-in en UI) */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Paleta tomada del logo */
  --navy-deep: #06142e;
  --navy:      #0b2147;
  --blue:      #0b7bf0;
  --blue-deep: #0866d6;   /* azul con contraste AA sobre claro, para texto */
  --teal:      #12c4c9;
  --violet:    #6c47d3;

  --paper:     #f6f8fc;
  --paper-2:   #ecf1f9;
  --white:     #ffffff;
  --ink:       var(--navy);
  --ink-soft:  #2a3a5c;
  --ink-muted: #56647f;
  --line:      rgba(11, 33, 71, 0.11);

  interpolate-size: allow-keywords;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

a { color: inherit; }

img { max-width: 100%; }

::selection { background: rgba(11, 123, 240, 0.22); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip:focus { transform: translateY(0); }

/* (se usa sólo en la página 404) */
.grad {
  background: linear-gradient(120deg, var(--violet) 0%, var(--blue) 52%, var(--teal) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
}

/* =====================================================================
   NAV — barra a todo el ancho; el fondo aparece al scrollear
   ===================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(246, 248, 252, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 240ms ease;
}

.nav.is-scrolled::before,
.nav.is-open::before { opacity: 1; }

.nav__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.nav__logo {
  display: block;
  height: 46px;
  width: auto;
}

.nav__links {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2px;
}

/* La "píldora" que se desliza hasta el link señalado (app.js) */
.nav__pill {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--w, 0);
  height: 38px;
  border-radius: 999px;
  background: rgba(11, 33, 71, 0.07);
  opacity: 0;
  transform: translate(var(--x, 0), -50%);
  transition: transform 300ms var(--ease-out), width 300ms var(--ease-out), opacity 160ms ease;
  pointer-events: none;
}

.nav__pill.is-on { opacity: 1; }

.nav__links a {
  position: relative;
  z-index: 1;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--ink); }

.nav__links a[aria-current="true"] { font-weight: 650; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.nav__cta .btn__icon {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 220ms var(--ease-out), background-color 200ms ease;
}

.nav__cta:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { background: var(--blue-deep); }
  .nav__cta:hover .btn__icon { transform: translateX(2px); background: rgba(255, 255, 255, 0.24); }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}

.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--paper);
  flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
  gap: 0.15rem;
  overflow-y: auto;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 240ms ease, transform 300ms var(--ease-out), visibility 0ms linear 300ms;
}

.nav.is-open .nav-mobile {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 300ms var(--ease-out), visibility 0ms linear 0ms;
}

.nav-mobile a {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-mobile__cta {
  margin-top: 1.2rem;
  text-align: center;
  border-radius: 999px;
  border-bottom: 0 !important;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* =====================================================================
   Botones
   ===================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.6rem 0.6rem 0.6rem 1.7rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 220ms ease;
}

.btn:active { transform: scale(0.97); }

/* Un color "tinta" que se expande desde donde entra el cursor */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: circle(0% at var(--bx, 12%) var(--by, 50%));
  transition: clip-path 480ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: circle(140% at var(--bx, 12%) var(--by, 50%)); }
  .btn:hover .btn__icon { transform: translateX(3px) rotate(-45deg); }
}

.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 14px 30px -16px rgba(11, 33, 71, 0.7); }
.btn--primary::before { background: var(--blue-deep); }

.btn--light { background: var(--white); color: var(--navy); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.5); }
.btn--light::before { background: #cfe6ff; }

.btn--big { padding: 0.7rem 0.7rem 0.7rem 2.1rem; font-size: 1.1rem; }

.btn__icon {
  width: 38px;
  height: 38px;
  flex: none;
  padding: 10px;
  border-radius: 50%;
  transition: transform 260ms var(--ease-out);
}

.btn--primary .btn__icon { background: rgba(255, 255, 255, 0.16); }
.btn--light .btn__icon { background: var(--navy); color: var(--white); }
.btn--big .btn__icon { width: 44px; height: 44px; padding: 12px; }

/* =====================================================================
   Revelado al hacer scroll — sólo si hay JS (si no, todo se ve)
   ===================================================================== */
.js [data-rise] {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 700ms var(--ease-out), translate 800ms var(--ease-out);
  transition-delay: var(--dl, 0ms);
}

.js [data-rise].is-in { opacity: 1; translate: 0 0; }

/* Titulares palabra por palabra: cada palabra sube desde una "máscara" */
.js [data-split]:not(.is-split) {
  visibility: hidden;
  animation: show-fallback 0s 1.4s forwards;   /* si el JS tarda, no queda invisible */
}

@keyframes show-fallback { to { visibility: visible; } }

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em 0.16em;
  margin: 0 -0.06em -0.16em;
}

.wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 38ms + var(--base, 0ms));
}

.is-in > .w > .wi,
.is-in .w > .wi { transform: translateY(0); }

/* =====================================================================
   Línea de circuito que acompaña el scroll
   ===================================================================== */
main { position: relative; }

.trace {
  position: absolute;
  top: 0;
  left: max(9px, calc(50% - 640px - 26px));
  width: 2px;
  height: 0;
  z-index: 5;
  pointer-events: none;
}

.trace__base,
.trace__fill { position: absolute; inset: 0; border-radius: 2px; }

.trace__base { background: var(--blue); opacity: 0.2; }

.trace__fill {
  background: linear-gradient(180deg, var(--violet), var(--blue) 45%, var(--teal));
  transform-origin: top;
  transform: scaleY(var(--tp, 0));
}

.trace__node {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid rgba(11, 123, 240, 0.4);
  transition: border-color 360ms ease, background-color 360ms ease, box-shadow 360ms ease, transform 360ms var(--ease-out);
}

.trace__node.is-on {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(18, 196, 201, 0.22);
  transform: scale(1.1);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.2rem) 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
}

@keyframes draw { from { stroke-dashoffset: 1; } }

.hero__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  min-height: min(720px, calc(100svh - var(--nav-h) - 6rem));
}

.hero__copy { position: relative; min-width: 0; }

.hero__title {
  margin: 0 0 1.7rem;
  font-size: clamp(2.45rem, 4.5vw, 4.2rem);
  line-height: 1.01;
  font-weight: 700;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__sub {
  margin: 0 0 2.2rem;
  max-width: 33rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-muted);
  text-wrap: pretty;
  opacity: 0;
  animation: rise-in 900ms var(--ease-out) 700ms forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem 1.8rem;
  opacity: 0;
  animation: rise-in 900ms var(--ease-out) 820ms forwards;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  opacity: 0;
  animation: rise-in 900ms var(--ease-out) 940ms forwards;
}

.hero__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 196, 201, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(18, 196, 201, 0); }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.link-down {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat;
  transition: background-size 320ms var(--ease-out);
  padding-bottom: 2px;
}

.link-down svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link-down:hover { background-size: calc(100% - 26px) 1.5px; }
  .link-down:hover svg { transform: rotate(90deg) translateX(3px); }
}

/* ---- Escenario: tres ventanas con profundidad ---- */
.stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.06;
  margin-inline: auto;
  container-type: inline-size;
  perspective: 1400px;
}

/* campo de puntos, como un plano de trabajo */
.stage::before {
  content: "";
  position: absolute;
  inset: -8% -10%;
  z-index: -1;
  background: radial-gradient(circle, rgba(11, 33, 71, 0.2) 1.3px, transparent 1.8px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  animation: fade-in 1.4s ease 0.2s backwards;
}

.stage__v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stage__lines path,
.stage__traces path {
  fill: none;
  stroke: url(#vg1);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: draw 2s var(--ease-out) backwards;
}

.stage__lines path { stroke-width: 8; }
.stage__lines path:nth-child(1) { animation-delay: 0.25s; }
.stage__lines path:nth-child(2) { animation-delay: 0.4s; stroke-width: 6; opacity: 0.8; }
.stage__lines path:nth-child(3) { animation-delay: 0.55s; stroke-width: 4; opacity: 0.6; }

.stage__traces path { stroke-width: 2.4; animation-delay: 1.2s; animation-duration: 1.4s; }

.stage__nodes circle {
  fill: var(--white);
  stroke: url(#vg1);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 600ms var(--ease-out) 2.2s backwards;
}

@keyframes node-in { from { opacity: 0; transform: scale(0.4); } }

.win { font-size: 12px; }

@supports (font-size: 1cqw) {
  .win { font-size: 2.7cqw; }
}

.win {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(11, 33, 71, 0.08);
  border-radius: 1.3em;
  background: var(--white);
  box-shadow: 0 34px 60px -30px rgba(11, 33, 71, 0.42), 0 2px 8px rgba(11, 33, 71, 0.05);
  transform:
    translate3d(calc(var(--px, 0) * var(--dx, 0) * 1px), calc(var(--py, 0) * var(--dy, 0) * 1px), 0)
    rotateX(calc(var(--py, 0) * -3deg))
    rotateY(calc(var(--px, 0) * 4deg));
  animation:
    win-in 900ms var(--ease-out) var(--t0, 0.5s) backwards,
    bob 8s ease-in-out var(--t1, 0s) infinite;
  will-change: transform;
}

@keyframes win-in { from { opacity: 0; scale: 0.9; } }
@keyframes bob    { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.7em; } }

.win--site { --t0: 0.55s; --t1: -1s; --dx: 12; --dy: 9;   width: 72%; left: 0;    top: 3%; }
.win--chat { --t0: 0.8s;  --t1: -4s; --dx: -16; --dy: -11; width: 56%; right: 0;   top: 36%; }
.win--data { --t0: 1.05s; --t1: -6s; --dx: 7; --dy: 15;   width: 54%; left: 6%;  bottom: 0; }

.win__bar {
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: 2.6em;
  padding: 0 1em;
  background: #f0f3f9;
  border-bottom: 1px solid var(--line);
}

.win__bar i { width: 0.65em; height: 0.65em; border-radius: 50%; background: rgba(11, 33, 71, 0.18); }

.win__bar span {
  flex: 1;
  margin-left: 0.7em;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--ink-muted);
}

.win__load {
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform-origin: left;
  animation: load 1.3s var(--ease-out) 1s backwards;
}

@keyframes load { from { transform: scaleX(0); } }

.mini-site { padding: 1.1em; display: grid; gap: 1.1em; }

.ms-nav { display: flex; align-items: center; gap: 0.8em; animation: rise-in 700ms var(--ease-out) 1.1s backwards; }
.ms-nav b { width: 3.4em; height: 1.1em; border-radius: 0.4em; background: var(--navy); }
.ms-nav u { width: 2.4em; height: 0.5em; border-radius: 99px; background: #d9e0ec; }
.ms-nav u:first-of-type { margin-left: auto; }

.ms-hero { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 1.1em; align-items: center; animation: rise-in 700ms var(--ease-out) 1.25s backwards; }
.ms-l { display: grid; gap: 0.55em; }
.ms-l s { display: block; border-radius: 0.4em; background: #d9e0ec; }
.ms-h { height: 1.4em; width: 94%; background: var(--navy) !important; }
.ms-h--2 { width: 66%; }
.ms-p { height: 0.6em; width: 82%; border-radius: 99px !important; }
.ms-btn { height: 1.9em; width: 6.5em; border-radius: 99px !important; background: var(--blue) !important; margin-top: 0.4em; }
.ms-img { aspect-ratio: 1; border-radius: 1em; background: linear-gradient(145deg, var(--teal), var(--blue) 55%, var(--violet)); }

.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; animation: rise-in 700ms var(--ease-out) 1.4s backwards; }
.ms-cards i { height: 3.6em; border-radius: 0.8em; background: #f0f3f9; border: 1px solid var(--line); }

.chatm__head,
.datam__head { display: flex; align-items: center; gap: 0.7em; padding: 0.9em 1em; border-bottom: 1px solid var(--line); background: #f0f3f9; }

.chatm__av { width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(145deg, var(--teal), var(--blue)); flex: none; }
.chatm__head b, .datam__head b { font-family: var(--font-display); font-weight: 600; font-size: 1em; color: var(--ink); letter-spacing: -0.01em; }
.chatm__head span { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.78em; font-weight: 600; color: var(--ink-muted); }
.chatm__head em { width: 0.6em; height: 0.6em; border-radius: 50%; background: #1fbf75; }

.chatm__body { display: flex; flex-direction: column; gap: 0.6em; padding: 1em; }

.bub {
  margin: 0;
  max-width: 90%;
  padding: 0.65em 0.95em;
  border-radius: 1.1em;
  font-size: 0.92em;
  line-height: 1.35;
}

.bub--in  { align-self: flex-start; background: #eef2fa; color: var(--ink); border-bottom-left-radius: 0.3em; animation: bubble 600ms var(--ease-out) 1.6s backwards; }
.bub--out { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 0.3em; animation: bubble 600ms var(--ease-out) 2.6s backwards; }
.bub--dots { align-self: flex-start; display: flex; gap: 0.3em; padding: 0.8em 0.95em; background: #eef2fa; border-bottom-left-radius: 0.3em; animation: bubble 600ms var(--ease-out) 3.5s backwards; }
.bub--dots i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink-muted); animation: dot 1.2s ease-in-out infinite; }
.bub--dots i:nth-child(2) { animation-delay: 0.15s; }
.bub--dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes bubble { from { opacity: 0; transform: translateY(0.8em) scale(0.96); } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-0.35em); opacity: 1; } }

.datam__head span { margin-left: auto; width: 3.6em; height: 0.5em; border-radius: 99px; background: #d9e0ec; }

.datam__bars { position: relative; display: flex; align-items: flex-end; gap: 0.55em; height: 8em; padding: 1em 1em 1em; }

.datam__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 0.35em 0.35em 0 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  transform-origin: bottom;
  animation: grow 900ms var(--ease-out) backwards;
}

.datam__bars i:nth-child(1) { animation-delay: 1.5s; }
.datam__bars i:nth-child(2) { animation-delay: 1.57s; }
.datam__bars i:nth-child(3) { animation-delay: 1.64s; }
.datam__bars i:nth-child(4) { animation-delay: 1.71s; }
.datam__bars i:nth-child(5) { animation-delay: 1.78s; }
.datam__bars i:nth-child(6) { animation-delay: 1.85s; }

@keyframes grow { from { transform: scaleY(0.02); opacity: 0.3; } }

.datam__line {
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 1em;
  width: calc(100% - 2em);
  height: 7em;
  overflow: visible;
  pointer-events: none;
}

.datam__line path { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; animation: draw 1.6s var(--ease-out) 2.1s backwards; }

/* =====================================================================
   CINTA (ticker)
   ===================================================================== */
.ticker {
  overflow: hidden;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: tick 52s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}

.ticker span {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

.ticker span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--ink);
}

.ticker i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.ticker i::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--teal);
}

@keyframes tick { to { transform: translateX(-50%); } }

/* =====================================================================
   Títulos de sección (compartidos)
   ===================================================================== */
.services__head h2,
.process__head h2,
.stack__copy h2,
.faq__head h2,
.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

/* =====================================================================
   INTRO — el texto se "enciende" palabra por palabra al scrollear
   ===================================================================== */
.intro { padding: 7.5rem 1.5rem 6rem; }

.intro__inner { max-width: 1100px; margin: 0 auto; }

.intro__lead {
  max-width: 19em;
  margin: 0 0 2.4rem;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.sw { color: rgba(11, 33, 71, 0.2); transition: color 300ms ease; }
.sw.is-lit { color: var(--ink); }

.intro__body {
  max-width: 36rem;
  margin: 0 0 0 auto;
  font-size: 1.14rem;
  line-height: 1.72;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* =====================================================================
   SERVICIOS — explorador
   ===================================================================== */
.services { padding: 3rem 1.5rem 7.5rem; }

.services__head {
  max-width: 1280px;
  margin: 0 auto 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2rem 4rem;
  align-items: end;
}

.services__head p { margin: 0 0 0.4rem; color: var(--ink-muted); font-size: 1.05rem; max-width: 22rem; }

.xp {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  gap: 1.4rem;
  align-items: start;
}

.xp__tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

/* Fondo que se desliza hasta el servicio elegido */
.xp__bar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--w, 0);
  height: var(--h, 0);
  border-radius: 19px;
  background: var(--navy);
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform 340ms var(--ease-out), width 340ms var(--ease-out), height 340ms var(--ease-out);
  box-shadow: 0 16px 30px -18px rgba(11, 33, 71, 0.8);
}

.xp__tab {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 0.95rem;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0.75rem 1rem 0.75rem 0.8rem;
  border: 0;
  border-radius: 19px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease, background-color 200ms ease;
}

.xp__tab:focus-visible { outline-offset: -3px; }

.xp__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--c) 12%, var(--white));
  color: var(--c);
  transition: background-color 220ms ease, color 220ms ease;
}

.xp__ico svg { width: 22px; height: 22px; }

.xp__name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.xp__name small { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.3; opacity: 0.62; }

.xp__go {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}

.xp__tab[aria-selected="true"] { color: var(--white); }
.xp__tab[aria-selected="true"] .xp__ico { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.xp__tab[aria-selected="true"] .xp__go { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .xp__tab[aria-selected="false"]:hover { background: rgba(11, 33, 71, 0.045); }
  .xp__tab[aria-selected="false"]:hover .xp__go { opacity: 0.55; transform: none; }
}

.xp__tab:active .xp__ico { transform: scale(0.94); }
.xp__ico { transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out); }

/* ---- Escenario ---- */
.xp__stage { display: grid; min-width: 0; }

.xp__panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--c) 20%, var(--white));
  border-radius: 30px;
  background: color-mix(in srgb, var(--c) 7%, var(--white));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 380ms var(--ease-out), visibility 0s linear 240ms;
}

.xp__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.xp__demo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 32vw, 372px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  container-type: inline-size;
}

.dm {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-size: 13px;
}

@supports (font-size: 1cqw) {
  .dm { font-size: clamp(11.5px, 2.15cqw, 14.5px); }
}

.xp__text { padding: 1.5rem 0.7rem 0.5rem; }

.xp__text h3 {
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.xp__text p { margin: 0 0 1.1rem; max-width: 38rem; color: var(--ink-muted); font-size: 1.02rem; line-height: 1.65; }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem 0.42rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--white));
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.chips svg { width: 15px; height: 15px; flex: none; color: var(--c); }

/* --- Animaciones de las demos: sólo corren en el panel activo (.is-live) --- */
.dm * { animation-play-state: paused; }
.is-live .dm *, .is-live .dm { animation-play-state: running; }

@keyframes loopfade { 0% { opacity: 0; } 3%, 91% { opacity: 1; } 100% { opacity: 0; } }
@keyframes st1 { 0%, 4%  { opacity: 0; transform: translateY(14px); } 11%, 100% { opacity: 1; transform: none; } }
@keyframes st2 { 0%, 11% { opacity: 0; transform: translateY(14px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes st3 { 0%, 18% { opacity: 0; transform: translateY(14px); } 25%, 100% { opacity: 1; transform: none; } }
@keyframes st4 { 0%, 25% { opacity: 0; transform: translateY(14px); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes st5 { 0%, 32% { opacity: 0; transform: translateY(14px); } 39%, 100% { opacity: 1; transform: none; } }

/* 1 · sitio web */
.br { position: relative; display: flex; align-items: center; gap: 0.45em; height: 2.9em; padding: 0 1.1em; background: #f0f3f9; border-bottom: 1px solid var(--line); }
.br i { width: 0.7em; height: 0.7em; border-radius: 50%; background: rgba(11, 33, 71, 0.18); }
.br__url { flex: 1; max-width: 18em; margin-left: 0.8em; padding: 0.3em 1em; border-radius: 99px; background: var(--white); font-size: 0.85em; color: var(--ink-muted); }
.br__load { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c); transform-origin: left; }

.dm-site__page { flex: 1; display: flex; flex-direction: column; gap: 1.1em; padding: 1.2em 1.4em; }
.s-nav { display: flex; align-items: center; gap: 0.9em; }
.s-nav b { width: 4em; height: 1.2em; border-radius: 0.4em; background: var(--navy); }
.s-nav u { width: 2.8em; height: 0.55em; border-radius: 99px; background: #d9e0ec; }
.s-nav u:first-of-type { margin-left: 1.4em; }
.s-nav em { margin-left: auto; width: 5em; height: 1.7em; border-radius: 99px; background: var(--c); }
.s-hero { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 1.4em; align-items: center; flex: 1; }
.s-txt { display: grid; gap: 0.6em; }
.s-txt s { display: block; border-radius: 0.4em; background: #d9e0ec; }
.s-h { height: 1.7em; width: 92%; background: var(--navy) !important; }
.s-h--2 { width: 64%; }
.s-p { height: 0.6em; border-radius: 99px !important; }
.s-p--2 { width: 76%; }
.s-btn { height: 2em; width: 7.4em; margin-top: 0.5em; border-radius: 99px !important; background: var(--c) !important; }
.s-img { position: relative; aspect-ratio: 1.2; border-radius: 1.1em; overflow: hidden; background: linear-gradient(145deg, var(--c), var(--teal)); }
.s-img i { position: absolute; right: -14%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.s-cards i { height: 3.8em; border-radius: 0.9em; background: #f4f7fb; border: 1px solid var(--line); }

.is-live .dm-site__page { animation: loopfade 7s linear infinite; }
.is-live .s-nav   { animation: st1 7s var(--ease-out) infinite; }
.is-live .s-hero  { animation: st2 7s var(--ease-out) infinite; }
.is-live .s-cards { animation: st4 7s var(--ease-out) infinite; }
.is-live .br__load { animation: brload 7s var(--ease-out) infinite; }

@keyframes brload { 0% { transform: scaleX(0); opacity: 1; } 12% { transform: scaleX(1); opacity: 1; } 18%, 100% { transform: scaleX(1); opacity: 0; } }

/* 2 · software */
.dm-app { flex-direction: row; }
.ap-side { flex: none; width: 4em; display: flex; flex-direction: column; gap: 0.9em; align-items: center; padding: 1.3em 0; background: var(--navy); }
.ap-side i { width: 1.5em; height: 1.5em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.22); }
.ap-side i.on { background: var(--teal); }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1.3em 1.4em; background: #f4f7fb; }
.ap-top { display: flex; align-items: center; justify-content: space-between; }
.ap-top b { width: 9em; height: 1.1em; border-radius: 0.4em; background: var(--navy); }
.ap-sync { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 0.9em; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: 0.82em; font-weight: 600; color: var(--ink-soft); }
.ap-sync em { width: 0.6em; height: 0.6em; border-radius: 50%; background: #1fbf75; }
.ap-rows { display: grid; gap: 0.6em; }
.ap-row { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 0.9em; align-items: center; padding: 0.7em 0.9em; border: 1px solid var(--line); border-radius: 0.9em; background: var(--white); }
.ap-row u { width: 2em; height: 2em; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--white)); }
.ap-row s { display: block; height: 0.6em; width: 72%; border-radius: 99px; background: #d9e0ec; }
.ap-row:nth-child(2) s { width: 54%; }
.ap-row:nth-child(3) s { width: 64%; }
.ap-row--new { border-color: color-mix(in srgb, var(--c) 45%, var(--white)); }
.st { display: inline-block; padding: 0.3em 0.85em; border-radius: 99px; font-size: 0.8em; font-weight: 650; white-space: nowrap; }
.st--ok   { background: #dcf5e8; color: #0f7a46; }
.st--wait { background: #eceff5; color: #55627d; }
.st--run  { background: #fff0cf; color: #8f5a00; }
.st--new  { background: var(--c); color: var(--white); }
.st-cycle { display: grid; }
.st-cycle .st { grid-area: 1 / 1; justify-self: end; opacity: 0; }
.ap-api { display: flex; align-items: center; gap: 0.7em; margin-top: auto; }
.ap-node { padding: 0.5em 0.95em; border: 1px solid var(--line); border-radius: 0.8em; background: var(--white); font-size: 0.85em; font-weight: 650; color: var(--ink); white-space: nowrap; }
.ap-node--c { background: var(--c); border-color: var(--c); color: var(--white); }
.ap-wire { position: relative; flex: 1; height: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent) 0 6px, transparent 6px 12px); }
.ap-wire i { position: absolute; inset: 0 auto 0 0; width: 30%; background: linear-gradient(90deg, transparent, var(--c), transparent); transform: translateX(-100%); }

.is-live .ap-rows { animation: loopfade 7s linear infinite; }
.is-live .ap-row:nth-child(1) { animation: st1 7s var(--ease-out) infinite; }
.is-live .ap-row:nth-child(2) { animation: st2 7s var(--ease-out) infinite; }
.is-live .ap-row:nth-child(3) { animation: st3 7s var(--ease-out) infinite; }
.is-live .ap-row:nth-child(4) { animation: st5 7s var(--ease-out) infinite; }
.is-live .st-cycle .st { animation: cyc 6s ease-in-out infinite; }
.is-live .st-cycle .st:nth-child(2) { animation-delay: 2s; }
.is-live .st-cycle .st:nth-child(3) { animation-delay: 4s; }
.is-live .ap-wire i { animation: wire 2.2s var(--ease-in-out) infinite; }
.is-live .ap-wire:last-of-type i { animation-delay: 1.1s; }
.dm-app:not(:hover) .st-cycle .st:nth-child(3) { opacity: 1; }
.is-live .dm-app .st-cycle .st:nth-child(3) { opacity: 0; }

@keyframes cyc { 0% { opacity: 0; } 6%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes wire { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* 3 · micro app (funciona) */
.dm-micro { justify-content: center; gap: 1.5em; padding: clamp(1.1rem, 4cqw, 2rem); }
.mc__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3em 1em; }
.mc__title b { font-family: var(--font-display); font-size: 1.5em; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.mc__title small { font-size: 0.85em; color: var(--ink-muted); }
.mc__field { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.mc__field > span { font-size: 1em; font-weight: 650; color: var(--ink); }

.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 99px; background: #eef2fa; }
.seg__thumb { position: absolute; top: 4px; left: 4px; width: calc((100% - 8px) / 3); height: calc(100% - 8px); border-radius: 99px; background: var(--white); box-shadow: 0 4px 12px -4px rgba(11, 33, 71, 0.35); transform: translateX(calc(var(--idx, 1) * 100%)); transition: transform 320ms var(--ease-out); }
.seg button { position: relative; z-index: 1; min-height: 42px; padding: 0.4em 1.1em; border: 0; border-radius: 99px; background: transparent; font: inherit; font-size: 0.95em; font-weight: 600; color: var(--ink-muted); cursor: pointer; transition: color 200ms ease; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg button:focus-visible { outline-offset: 0; }

.step { display: inline-flex; align-items: center; gap: 0.5em; }
.step button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef2fa; font: inherit; font-size: 1.3em; font-weight: 500; line-height: 1; color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out), background-color 200ms ease; }
.step button:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .step button:hover { background: #e0e8f6; } }
.step output { min-width: 2.6ch; text-align: center; font-family: var(--font-display); font-size: 1.45em; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }

.mc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding-top: 1.2em; border-top: 1px dashed rgba(11, 33, 71, 0.2); }
.mc__total span { font-size: 0.95em; color: var(--ink-muted); }
.mc__total strong { font-family: var(--font-display); font-size: 2.5em; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* 4 · automatizaciones */
.dm-chat { background: #f4f7fb; }
.ch__head { display: flex; align-items: center; gap: 0.8em; padding: 1em 1.3em; background: var(--white); border-bottom: 1px solid var(--line); }
.ch__av { width: 2.3em; height: 2.3em; border-radius: 50%; background: linear-gradient(145deg, var(--c), var(--blue)); flex: none; }
.ch__head b { font-family: var(--font-display); font-size: 1.1em; font-weight: 620; color: var(--ink); }
.ch__live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.85em; font-weight: 650; color: var(--ink-muted); }
.ch__live em { width: 0.65em; height: 0.65em; border-radius: 50%; background: #1fbf75; }
.ch__body { flex: 1; display: flex; flex-direction: column; gap: 0.6em; padding: 1.1em 1.3em; }
.msg { margin: 0; max-width: 78%; padding: 0.7em 1em; border-radius: 1.15em; font-size: 1em; line-height: 1.38; }
.msg--in { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 0.3em; }
.msg--out { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 0.3em; }
.msg--dots { align-self: flex-end; display: none; gap: 0.3em; padding: 0.85em 1em; background: var(--navy); border-bottom-right-radius: 0.3em; }
.msg--dots i { width: 0.5em; height: 0.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.7); animation: dot 1.1s ease-in-out infinite; }
.msg--dots i:nth-child(2) { animation-delay: 0.15s; }
.msg--dots i:nth-child(3) { animation-delay: 0.3s; }
.js .msg { opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 260ms ease, transform 420ms var(--ease-out); }
.js .msg.is-in { opacity: 1; transform: none; }
.js .msg--dots { display: flex; position: absolute; visibility: hidden; }
.js .msg--dots.is-in { position: static; visibility: visible; }
.ch__voice { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1.3em; background: var(--white); border-top: 1px solid var(--line); font-size: 0.9em; font-weight: 600; color: var(--ink-soft); }
.ch__voice svg { width: 1.3em; height: 1.3em; color: var(--c); flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 1.8em; margin-left: auto; }
.wave i { width: 3px; height: 28%; border-radius: 2px; background: var(--c); animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n)   { animation-delay: -0.3s; }
.wave i:nth-child(3n+1) { animation-delay: -0.7s; }
.wave i:nth-child(2n)   { animation-delay: -1.0s; }
@keyframes wave { 0%, 100% { height: 24%; } 50% { height: 100%; } }

/* 5 · video e imagen */
.ed__top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.2em; padding: 1.2em 1.3em 0.9em; align-items: center; }
.ed__view { position: relative; aspect-ratio: 16 / 10; border-radius: 0.9em; overflow: hidden; background: var(--navy); }
.ed__scene { position: absolute; inset: 0; background: linear-gradient(180deg, #6c47d3 0%, #d6318c 52%, #ff9d6c 100%); animation: grade 6s ease-in-out infinite alternate; }
.ed__sun { position: absolute; left: 58%; top: 38%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 40px 10px rgba(255, 220, 150, 0.6); }
.ed__hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.ed__hill--1 { bottom: -22%; height: 55%; background: #1c2f63; }
.ed__hill--2 { bottom: -34%; height: 55%; left: 20%; background: #0b2147; }
.ed__tools { display: grid; gap: 1em; }
.ed__tool span { display: block; margin-bottom: 0.45em; font-size: 0.82em; font-weight: 650; color: var(--ink-soft); }
.ed__tool b { display: block; height: 6px; border-radius: 99px; background: #e4e9f3; }
.ed__tool i { position: relative; display: block; height: 100%; border-radius: 99px; background: var(--c); width: 50%; }
.ed__tool i::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--white); border: 2px solid var(--c); box-shadow: 0 2px 6px rgba(11, 33, 71, 0.25); }
.ed__tl { position: relative; display: grid; gap: 0.5em; margin: 0 1.3em 1.3em; padding: 0.7em; border-radius: 0.9em; background: #eef2fa; }
.ed__track { display: flex; gap: 4px; height: 2.1em; }
.ed__track i { width: var(--w); border-radius: 0.5em; background: var(--c); }
.ed__track i.alt { background: var(--navy); }
.ed__track--a { height: 1.5em; }
.ed__track--a i { width: var(--w); background: repeating-linear-gradient(90deg, #8c9ab4 0 2px, transparent 2px 5px); opacity: 0.9; }
.ed__head { position: absolute; top: 0; bottom: 0; left: 0.7em; width: 2px; background: var(--navy); border-radius: 2px; }
.ed__head::before { content: ""; position: absolute; left: -5px; top: -3px; width: 12px; height: 8px; background: var(--navy); border-radius: 3px 3px 6px 6px; }

.is-live .ed__head { animation: playhead 6s linear infinite; }
.is-live .ed__tool:nth-child(1) i { animation: sl1 6s ease-in-out infinite alternate; }
.is-live .ed__tool:nth-child(2) i { animation: sl2 6s ease-in-out infinite alternate; }
.is-live .ed__tool:nth-child(3) i { animation: sl3 6s ease-in-out infinite alternate; }

@keyframes grade { from { filter: hue-rotate(0deg) saturate(1) brightness(1); } to { filter: hue-rotate(-38deg) saturate(1.25) brightness(1.08); } }
@keyframes playhead { from { left: 0.7em; } to { left: calc(100% - 0.7em - 2px); } }
@keyframes sl1 { from { width: 28%; } to { width: 78%; } }
@keyframes sl2 { from { width: 74%; } to { width: 34%; } }
@keyframes sl3 { from { width: 40%; } to { width: 88%; } }

/* 6 · datos */
.dm-data { gap: 1em; padding: 1.3em 1.4em; background: #f4f7fb; }
.dd__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.dd__kpi { padding: 0.8em 0.9em; border: 1px solid var(--line); border-radius: 0.95em; background: var(--white); min-width: 0; }
.dd__kpi small { display: block; margin-bottom: 0.5em; font-size: 0.8em; font-weight: 650; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__kpi svg { display: block; width: 100%; height: 2.3em; overflow: visible; }
.dd__kpi path { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dd__chart { position: relative; flex: 1; display: flex; align-items: flex-end; min-height: 9em; padding: 1em; border: 1px solid var(--line); border-radius: 0.95em; background: var(--white); }
.dd__bars { flex: 1; align-self: stretch; display: flex; align-items: flex-end; gap: 0.7em; }
.dd__bars i { flex: 1; height: var(--h); border-radius: 0.4em 0.4em 0 0; background: color-mix(in srgb, var(--c) 32%, var(--white)); transform-origin: bottom; }
.dd__bars i:last-child { background: var(--c); }
.dd__trend { position: absolute; inset: 1em; width: calc(100% - 2em); height: calc(100% - 2em); overflow: visible; pointer-events: none; }
.dd__trend path { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dd__toast { position: absolute; right: 1.3em; bottom: 1.3em; display: inline-flex; align-items: center; gap: 0.6em; padding: 0.65em 1.1em 0.65em 0.85em; border-radius: 99px; background: var(--navy); color: var(--white); font-size: 0.88em; font-weight: 600; box-shadow: 0 16px 30px -12px rgba(11, 33, 71, 0.6); }
.dd__toast svg { width: 1.3em; height: 1.3em; color: var(--teal); }

.is-live .dd__kpi svg  { animation: draw-loop 7s var(--ease-out) infinite; }
.is-live .dd__trend { animation: draw-loop 7s var(--ease-out) infinite; animation-delay: 0.5s; }
.is-live .dd__bars i { animation: grow-loop 7s var(--ease-out) infinite; }
.is-live .dd__bars i:nth-child(2) { animation-delay: 0.06s; }
.is-live .dd__bars i:nth-child(3) { animation-delay: 0.12s; }
.is-live .dd__bars i:nth-child(4) { animation-delay: 0.18s; }
.is-live .dd__bars i:nth-child(5) { animation-delay: 0.24s; }
.is-live .dd__bars i:nth-child(6) { animation-delay: 0.3s; }
.is-live .dd__bars i:nth-child(7) { animation-delay: 0.36s; }
.is-live .dd__bars i:nth-child(8) { animation-delay: 0.42s; }
.is-live .dd__toast { animation: toast 7s var(--ease-out) infinite; }

@keyframes draw-loop { 0% { clip-path: inset(-6px 100% -6px -6px); opacity: 1; } 22%, 90% { clip-path: inset(-6px -6px -6px -6px); opacity: 1; } 100% { clip-path: inset(-6px -6px -6px -6px); opacity: 0; } }
@keyframes grow-loop { 0% { transform: scaleY(0.04); opacity: 1; } 18% { transform: scaleY(1); opacity: 1; } 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes toast { 0%, 52% { opacity: 0; transform: translateY(14px); } 60%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(6px); } }

/* =====================================================================
   CÓMO TRABAJAMOS — línea de tiempo sobre fondo oscuro
   ===================================================================== */
.process {
  position: relative;
  padding: 7.5rem 1.5rem 7rem;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.process::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -12%;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(18, 196, 201, 0.2), transparent 66%);
  pointer-events: none;
}

.process__head { max-width: 1280px; margin: 0 auto 4rem; }
.process__head h2 { color: var(--white); max-width: 16em; }

.steps { max-width: 1280px; margin: 0 auto; padding: 0; list-style: none; }

.step {
  display: grid;
  grid-template-columns: minmax(5rem, 0.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.step__n {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 9vw, 8.2rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
  transition: color 600ms ease, -webkit-text-stroke-color 600ms ease;
}

.step__body h3 { margin: 0 0 0.55rem; font-size: clamp(1.45rem, 2.6vw, 2.15rem); font-weight: 620; letter-spacing: -0.03em; color: var(--white); }
.step__body p { margin: 0; max-width: 34rem; font-size: 1.06rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }

.step__ico {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  transition: color 500ms ease, border-color 500ms ease, background-color 500ms ease, transform 700ms var(--ease-out);
}

.step__ico svg { width: 30px; height: 30px; }

.js .step__body { opacity: 0.38; transition: opacity 600ms ease; }
.step.is-on .step__body { opacity: 1; }
.step.is-on .step__n { color: var(--white); -webkit-text-stroke-color: var(--white); }
.step.is-on .step__ico { color: var(--teal); border-color: var(--teal); background: rgba(18, 196, 201, 0.1); transform: rotate(-8deg); }

.facts {
  max-width: 1280px;
  margin: 4.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact { padding: 0 2.2rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact dt { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--white); }
.fact dd { margin: 0.4rem 0 0; max-width: 17rem; color: rgba(255, 255, 255, 0.62); font-size: 0.98rem; line-height: 1.5; }

/* =====================================================================
   TECNOLOGÍA — lista + pila 3D sincronizadas
   ===================================================================== */
.stack { padding: 7.5rem 1.5rem; }

.stack__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.stack__list { margin: 2.6rem 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }

.stack__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  cursor: default;
  outline: none;
  transition: padding-left 360ms var(--ease-out);
}

.stack__list svg { width: 24px; height: 24px; margin-top: 2px; color: var(--ink-muted); transition: color 240ms ease, transform 360ms var(--ease-out); }
.stack__list h3 { margin: 0 0 0.2rem; font-size: 1.2rem; font-weight: 620; letter-spacing: -0.025em; color: var(--ink); transition: color 240ms ease; }
.stack__list p { margin: 0; max-width: 30rem; font-size: 0.97rem; line-height: 1.55; color: var(--ink-muted); }

.stack__list li.is-active { padding-left: 1rem; }
.stack__list li.is-active svg { color: var(--blue-deep); transform: scale(1.12); }
.stack__list li.is-active h3 { color: var(--blue-deep); }
.stack__list li:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px; }

.iso-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  perspective: 1700px;
}

.iso {
  position: relative;
  width: min(360px, 74%);
  aspect-ratio: 1;
  transform: rotateX(58deg) rotateZ(-38deg);
  transform-style: preserve-3d;
}

.slab {
  position: absolute;
  inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--sc) 60%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--sc) 13%, rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 30px 40px -24px rgba(11, 33, 71, 0.35);
  transform: translateZ(calc(var(--k) * 40px + var(--up, 0px)));
  transition: transform 560ms var(--ease-out), background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.slab b { position: absolute; inset: 13%; border: 1.5px dashed color-mix(in srgb, var(--sc) 55%, transparent); border-radius: 16px; transition: border-color 300ms ease, background-color 300ms ease; }

.slab:nth-child(1) { --sc: #6c47d3; }
.slab:nth-child(2) { --sc: #4a63df; }
.slab:nth-child(3) { --sc: #0b7bf0; }
.slab:nth-child(4) { --sc: #0e9bd8; }
.slab:nth-child(5) { --sc: #10b3cf; }
.slab:nth-child(6) { --sc: #12c4c9; }

.slab.is-active {
  background: color-mix(in srgb, var(--sc) 28%, rgba(255, 255, 255, 0.8));
  border-color: var(--sc);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 40px 50px -22px color-mix(in srgb, var(--sc) 70%, transparent);
}

.slab.is-active b { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }

.iso.is-in .slab { animation: slab-in 1s var(--ease-out) calc(var(--k) * 90ms) backwards; }

@keyframes slab-in { from { opacity: 0; translate: 0 0 -140px; } }

.iso__wire {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 330px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--teal) 30%, var(--blue));
  transform-origin: 50% 0;
  transform: rotateX(-90deg) translateY(-8px);
  opacity: 0.55;
}

/* =====================================================================
   FAQ — <details>/<summary> nativo, con apertura animada
   ===================================================================== */
.faq { padding: 7.5rem 1.5rem; background: var(--paper-2); }

.faq__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq__head p { margin: 1.4rem 0 0; max-width: 22rem; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 200ms ease;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 2px; border-radius: 8px; }

@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover { color: var(--blue-deep); }
}

.faq__pm {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color 240ms ease, border-color 240ms ease, transform 420ms var(--ease-out);
}

.faq__pm::before,
.faq__pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 420ms var(--ease-out), background-color 240ms ease;
}

.faq__pm::after { transform: rotate(90deg); }

.faq__item[open] .faq__pm { background: var(--ink); transform: rotate(180deg); }
.faq__item[open] .faq__pm::before,
.faq__item[open] .faq__pm::after { background: var(--white); }
.faq__item[open] .faq__pm::after { transform: rotate(0deg); }

.faq__item p { margin: 0 0 1.7rem; max-width: 40rem; font-size: 1.04rem; line-height: 1.72; color: var(--ink-muted); }

.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 380ms var(--ease-out), opacity 300ms ease, content-visibility 380ms allow-discrete;
}

.faq__item[open]::details-content { block-size: auto; opacity: 1; }

/* =====================================================================
   CIERRE
   ===================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8.5rem 1.5rem 8rem;
  background: linear-gradient(160deg, #07173a 0%, #0a2a6e 58%, #0a3f94 100%);
  color: var(--white);
}

.cta__bg {
  position: absolute;
  z-index: -1;
  right: -14%;
  top: 50%;
  width: min(58vw, 660px);
  transform: translateY(-50%);
  pointer-events: none;
}

.cta__bg svg { display: block; width: 100%; height: auto; overflow: visible; }

.cta__bg path {
  fill: none;
  stroke: url(#vg2);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  opacity: 0.5;
}

.cta__bg path:nth-of-type(2) { opacity: 0.4; }
.cta__bg path:nth-of-type(3) { opacity: 0.3; }
.cta__bg path:nth-of-type(4) { opacity: 0.22; }

.js .cta__bg path { stroke-dashoffset: 1; }

.cta.is-in .cta__bg path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-out); }
.cta.is-in .cta__bg path:nth-of-type(2) { transition-delay: 0.15s; }
.cta.is-in .cta__bg path:nth-of-type(3) { transition-delay: 0.3s; }
.cta.is-in .cta__bg path:nth-of-type(4) { transition-delay: 0.45s; }

.cta__inner { max-width: 1280px; margin: 0 auto; }
.cta h2 { max-width: 14.5em; color: var(--white); font-size: clamp(2.2rem, 5.6vw, 4.9rem); line-height: 1.02; }
.cta__inner > p { margin: 1.6rem 0 2.6rem; max-width: 30rem; color: rgba(255, 255, 255, 0.78); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.cta__channels { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }

.cta__channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 0% 1.5px no-repeat;
  transition: color 200ms ease, background-size 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cta__channels a:hover { color: var(--white); background-size: 100% 1.5px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.62);
  padding: 4.5rem 1.5rem 0;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand .nav__logo { height: 58px; }
.footer__brand p { margin: 1.1rem 0 0; font-size: 0.9rem; line-height: 1.6; max-width: 22rem; }

.footer__col h3,
.footer__col h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--white);
}

.footer__col a {
  display: block;
  padding: 0.35rem 0;
  margin-bottom: 0.1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 160ms ease, transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--white); transform: translateX(3px); }
}

.footer__legal { max-width: 1280px; margin: 0 auto; }
.footer__legal p { margin: 0; font-size: 0.82rem; }

.footer__mark {
  max-width: 1280px;
  margin: 1.2rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 25vw, 23rem);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  white-space: nowrap;
  transform: translateY(0.1em);
}

.footer .footer__social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

.footer .footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin: 0;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.footer .footer__social a svg { width: 16px; height: 16px; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .footer .footer__social a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.34); color: var(--white); transform: translateY(-1px); }
}

/* =====================================================================
   VENTANA DE CONTACTO — <dialog> nativo (en celular sube desde abajo)
   ===================================================================== */
.contact {
  width: min(480px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  overflow: visible;
}

.contact::backdrop {
  background: rgba(6, 20, 46, 0.6);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
}

.contact[open] { animation: contact-in 380ms var(--ease-out); }
.contact[open]::backdrop { animation: fade-in 280ms ease; }

@keyframes contact-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
@keyframes fade-in    { from { opacity: 0; } }

.contact__panel {
  position: relative;
  padding: 2.2rem 1.8rem 1.8rem;
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 50px 100px -30px rgba(6, 20, 46, 0.65);
}

.contact__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, transform 260ms var(--ease-out);
}

.contact__close svg { width: 16px; height: 16px; }
.contact__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .contact__close:hover { background: #dbe5f5; transform: rotate(90deg); } }

.contact .eyebrow { margin: 0 0 0.7rem; font-size: 0.88rem; font-weight: 600; color: var(--blue-deep); }

.contact__title {
  margin: 0 3rem 0.6rem 0;
  font-size: clamp(1.55rem, 3.6vw, 1.95rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.contact__lead { margin: 0 0 1.5rem; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.6; }

.contact__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.contact__opt {
  --c: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.contact__opt--wa   { --c: #0c9c60; }
.contact__opt--ig   { --c: #d6318c; }
.contact__opt--mail { --c: #0866d6; }

.contact__opt i {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, var(--white));
  color: var(--c);
  transition: transform 260ms var(--ease-out);
}

.contact__opt i svg { width: 23px; height: 23px; }

.contact__txt { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.contact__txt strong { font-family: var(--font-display); font-size: 1.08rem; font-weight: 650; letter-spacing: -0.02em; }
.contact__txt small { font-size: 0.88rem; color: var(--ink-muted); overflow-wrap: anywhere; }

.contact__go { flex: none; width: 18px; height: 18px; color: var(--c); opacity: 0.55; transition: transform 220ms var(--ease-out), opacity 220ms ease; }

.contact__opt:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .contact__opt:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--c) 40%, var(--white));
    background: color-mix(in srgb, var(--c) 5%, var(--white));
    box-shadow: 0 18px 34px -22px color-mix(in srgb, var(--c) 70%, transparent);
  }
  .contact__opt:hover i { transform: scale(1.06); }
  .contact__opt:hover .contact__go { transform: translateX(4px); opacity: 1; }
}

.contact__opt:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* =====================================================================
   PÁGINAS INTERNAS — aviso legal, privacidad, cookies y 404
   ===================================================================== */
.nav__cta.nav__cta--back { display: inline-flex; margin-left: auto; padding: 0.7rem 1.3rem; }

.legal { padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem; background: var(--paper); }
.legal__wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { margin: 0 0 0.6rem; font-size: clamp(2.1rem, 4.8vw, 3.2rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.legal__meta { margin: 0 0 1.6rem; font-size: 0.88rem; color: var(--ink-muted); }
.legal__intro { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.legal h2 { margin: 2.4rem 0 0.7rem; font-size: 1.35rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); }
.legal p, .legal li { line-height: 1.75; color: var(--ink-soft); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--navy); }

.err {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  text-align: center;
  background: var(--paper);
}

.err__wrap { max-width: 520px; }
.err__code { margin: 0; font-family: var(--font-display); font-size: clamp(6rem, 24vw, 10rem); line-height: 1; font-weight: 700; letter-spacing: -0.06em; }
.err__code.grad { background: none; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px var(--navy); }
.err h1 { margin: 0.4rem 0 0.8rem; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 650; letter-spacing: -0.035em; color: var(--ink); }
.err__text { margin: 0 0 2rem; line-height: 1.65; color: var(--ink-muted); }

/* =====================================================================
   Pantallas chicas
   ===================================================================== */
@media (max-width: 1100px) {
  .stack__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .iso-wrap { min-height: 460px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta:not(.nav__cta--back) { display: none; }
  .nav__toggle { display: flex; }
  .nav-mobile { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 3.5rem; }
  .hero__layout { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 2.5rem; }
  .stage { max-width: 440px; }

  .services__head { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-bottom: 2.2rem; }

  .xp { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .xp__tabs {
    flex-direction: row;
    gap: 4px;
    padding: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    border-radius: 999px;
  }
  .xp__tabs::-webkit-scrollbar { display: none; }
  .xp__bar { border-radius: 999px; }
  .xp__tab { flex: none; width: auto; min-height: 52px; grid-template-columns: 36px auto; gap: 0.6rem; padding: 0.3rem 1.1rem 0.3rem 0.3rem; border-radius: 999px; scroll-snap-align: center; }
  .xp__ico { width: 36px; height: 36px; border-radius: 50%; }
  .xp__ico svg { width: 18px; height: 18px; }
  .xp__name small, .xp__go { display: none; }
  .xp__name strong { font-size: 0.95rem; white-space: nowrap; }

  .stack__layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .iso-wrap { order: -1; min-height: 340px; }
  .iso { width: min(260px, 62%); }
  .iso__wire { height: 250px; }

  .faq__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .faq__head { position: static; }

  .step { grid-template-columns: minmax(3.4rem, 0.16fr) minmax(0, 1fr); gap: 1.4rem; }
  .step__ico { display: none; }

  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
  .fact, .fact:first-child { padding: 1.4rem 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
}

@media (max-width: 734px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }

  .nav__inner { padding: 0 1rem; }
  .nav__logo { height: 40px; }

  .hero { padding: calc(var(--nav-h) + 1.2rem) 1.25rem 3rem; }
  .hero__title { font-size: clamp(2.2rem, 10.6vw, 3rem); margin-bottom: 1.3rem; }
  .hero__sub { margin-bottom: 1.7rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .hero__actions .btn { justify-content: space-between; }
  .link-down { justify-content: center; }
  .stage { max-width: 360px; }

  .intro { padding: 4.5rem 1.25rem 3.5rem; }
  .intro__body { margin-left: 0; font-size: 1.06rem; }

  .services { padding: 1.5rem 1.25rem 4.5rem; }
  .xp__panel { padding: 0.8rem; border-radius: 26px; }
  .xp__text { padding: 1.2rem 0.4rem 0.3rem; }
  .xp__text h3 { font-size: 1.45rem; }
  .ed__top { grid-template-columns: 1fr; }
  .ed__tools { display: none; }
  .dd__kpis { gap: 0.5em; }

  .process { padding: 4.5rem 1.25rem; }
  .process__head { margin-bottom: 2.4rem; }
  .step { padding: 1.7rem 0; }

  .stack { padding: 4.5rem 1.25rem; }
  .stack__list { margin-top: 1.8rem; }

  .faq { padding: 4.5rem 1.25rem; }
  .faq__item summary { padding: 1.25rem 0; }

  .cta { padding: 5.5rem 1.25rem 5rem; }
  .cta__bg { right: -30%; width: 120vw; opacity: 0.7; }
  .cta__actions .btn { width: 100%; justify-content: space-between; }

  .footer { padding: 3rem 1.25rem 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 1.7rem 1.2rem; padding-bottom: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__inner > .footer__col:nth-child(2):has(~ .footer__col ~ .footer__col) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .footer__inner > .footer__col:nth-child(2):has(~ .footer__col ~ .footer__col) h2,
  .footer__inner > .footer__col:nth-child(2):has(~ .footer__col ~ .footer__col) h3 { grid-column: 1 / -1; }
  .footer__col h2, .footer__col h3 { margin-bottom: 0.5rem; }
  .footer__col a { display: flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
  .footer .footer__social a { min-height: 44px; }

  .contact { width: 100%; max-height: 100dvh; margin: auto 0 0; }
  .contact[open] { animation-name: contact-sheet; }
  @keyframes contact-sheet { from { opacity: 0; transform: translateY(40px); } }
  .contact__panel { padding: 2rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 2.05rem; }
}

/* =====================================================================
   Accesibilidad — prefers-reduced-motion
   Menos y más suave, no cero: se conservan los cambios de opacidad y de
   color que ayudan a entender; se quitan desplazamientos, parallax,
   bucles y la cinta.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-rise] { opacity: 1; translate: none; }
  .js [data-split]:not(.is-split) { visibility: visible; }
  .wi { transform: none; }
  .win { transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 1.5rem; row-gap: 0.4rem; }
  .ticker__track > :nth-child(n+13) { display: none; }
  .sw { color: var(--ink); }
  .js .msg { opacity: 1; transform: none; }
  .js .step__body { opacity: 1; }
  .cta .cta__bg path { stroke-dashoffset: 0; }
  .hero__sub, .hero__actions, .hero__status { opacity: 1; }
}
