/* ==========================================================================
   WEBSOLEA · Estilos
   Lenguaje: vacío negro, titulares grandes con carácter y un único violeta
   para actuar. Tipografías: Clash Display (titulares) y Satoshi (texto),
   cargadas desde Fontshare en el <head>.
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  --void: #000000;
  --bone: #ffffff;
  --silver: #bdbdbd;
  --ash: #9a9a9a;
  --dim: #858585;
  --iris: #8052ff;
  --iris-hi: #8f66ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  /* Superficies opacas: así las partículas pasan por detrás y no se ven a través */
  --iris-tint: #21153f;
  --veil: #0f0f0f;
  --veil-2: #1a1a1a;
  --field: #121212;
  --field-hover: #171717;
  --field-focus: #1b1b1b;
  --error: #ff8f8f;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Clash Display", "Satoshi", ui-sans-serif, system-ui, sans-serif;

  /* Radios: botones y bloques 24px, chips en píldora, campos 16px */
  --radius: 24px;
  --radius-pill: 9999px;
  --radius-field: 16px;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 13vw, 168px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Capas */
  --z-canvas: 0;
  --z-content: 1;
  --z-nav: 10;
  --z-float: 30;
  --z-menu: 40;

  color-scheme: dark;
}

/* ------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--iris); color: var(--bone); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--void);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}
main, .footer { position: relative; z-index: var(--z-content); }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------- Tipografía */
.display {
  font-size: clamp(52px, 7.5vw, 113px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.h-lg {
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-wrap: balance;
}
.h-md {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.5;
  font-weight: 200;
  color: var(--bone);
  max-width: 34em;
  text-wrap: pretty;
}
.label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--saffron);
}

/* ---------------------------------------------------------------- Botones */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--iris);
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn--lg { min-height: 56px; padding: 0 28px; border-radius: 28px; font-size: 15px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: 20px; }
.btn--ghost { background: var(--veil-2); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--iris-hi); }
  .btn--ghost:hover { background: #262626; }
}

.link {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease;
}
.link .ico { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--saffron); }
  .link:hover .ico { transform: translateX(2px); }
}

/* -------------------------------------------------------------------- Nav */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.logo__mark { width: 30px; height: 30px; }
.logo__word {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--veil);
  cursor: pointer;
  font-size: 20px;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 96px var(--gutter) 48px;
  background: var(--void);
}
.menu[hidden] { display: none; }
.menu__close {
  position: absolute;
  top: 18px; right: var(--gutter);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--veil);
  font-size: 20px;
  cursor: pointer;
}
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-size: clamp(38px, 11vw, 56px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-decoration: none;
  animation: menu-in 600ms var(--ease-out) both;
}
.menu__links a:nth-child(2) { animation-delay: 40ms; }
.menu__links a:nth-child(3) { animation-delay: 80ms; }
.menu__links a:nth-child(4) { animation-delay: 120ms; }
.menu__links a:nth-child(5) { animation-delay: 160ms; }
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100dvh;
  padding-top: 96px;
  padding-bottom: 48px;
}
/* Rejilla de puntos muy suave detrás de la portada */
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 70% 48%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 70% 48%, #000 15%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.hero__label { margin-bottom: 28px; }
.hero__title { margin-bottom: 28px; font-weight: 700; }
.hero__title .line {
  display: block;
  /* Recorta solo por abajo (para la animación de entrada), no por los lados */
  clip-path: inset(-0.3em -100vw 0 -100vw);
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  white-space: nowrap;
}
.hero__title .line > span { display: inline-block; }
.shine {
  background: linear-gradient(100deg, #8052ff 0%, #c25bff 28%, #ff4fa3 52%, #ffb829 76%, #8052ff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
  animation: shine 9s ease-in-out infinite alternate;
}
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero__lead { max-width: 30em; margin-bottom: 40px; color: var(--silver); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__glow {
  position: absolute;
  inset: -6% -12% 8%;
  background:
    radial-gradient(closest-side at 50% 46%, rgba(128, 82, 255, 0.34), transparent),
    radial-gradient(closest-side at 72% 66%, rgba(255, 79, 163, 0.16), transparent),
    radial-gradient(closest-side at 28% 70%, rgba(31, 178, 146, 0.16), transparent);
  filter: blur(36px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.65; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }
.slot { position: relative; width: 100%; }
.hero__slot { aspect-ratio: 1 / 1; max-height: 70vh; margin-inline: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
}
.pill__icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 184, 41, 0.12);
  color: var(--saffron);
  font-size: 14px;
}

.modes {
  position: relative;
  display: inline-flex;
  gap: 4px;
  margin-top: 12px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.modes button {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ash);
  cursor: pointer;
  transition: background-color 350ms var(--ease-out), color 350ms var(--ease-out);
}
.modes button .ico { width: 18px; height: 18px; }
.modes button:hover { color: var(--bone); }
.modes button[aria-pressed="true"] { background: var(--bone); color: var(--void); }
.modes button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--iris);
  transform: scaleX(0);
  transform-origin: left;
}
.modes button[aria-pressed="true"]::after { animation: mode-fill var(--cycle, 4800ms) linear both; }
.modes.is-paused button::after { animation: none; transform: scaleX(1); }
@keyframes mode-fill { to { transform: scaleX(1); } }

/* Entrada orquestada: el titular sube, el resto aparece después */
.hero__title .line > span { animation: rise 1100ms var(--ease-out) both 120ms; }
.hero__title .line:nth-child(2) > span { animation-delay: 210ms; }
.hero__label { animation: fade 900ms var(--ease-out) both 40ms; }
.hero__lead { animation: fade 900ms var(--ease-out) both 420ms; }
.hero__actions { animation: fade 900ms var(--ease-out) both 520ms; }
.modes { animation: fade 900ms var(--ease-out) both 900ms; }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------- Manifiesto */
.manifesto { padding-block: var(--section); }
.manifesto__text {
  max-width: 21em;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.manifesto__text .w { color: #2e2e2e; transition: color 600ms var(--ease-out); }
.manifesto__text .w.is-lit { color: var(--bone); }

/* -------------------------------------------------------------- Servicios */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: calc(var(--section) * 0.5) var(--section);
}
.services__title { margin-bottom: clamp(36px, 5vw, 60px); color: var(--silver); }
.svc { padding-block: clamp(12px, 1.4vw, 20px); cursor: default; }
.svc:focus-visible { outline: none; }
.svc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.svc__name {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--dim);
  transition: color 400ms var(--ease-out);
}
.svc:focus-visible .svc__name {
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}
.svc__price {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
  transition: color 400ms var(--ease-out);
}
.svc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out);
}
.svc__body > div { overflow: hidden; }
.svc__body p {
  max-width: 34em;
  padding-top: 12px;
  color: var(--silver);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 500ms var(--ease-out);
}
.svc.is-active .svc__name { color: var(--bone); }
.svc.is-active .svc__price { color: var(--saffron); }
.svc.is-active .svc__body { grid-template-rows: 1fr; }
.svc.is-active .svc__body p { opacity: 1; transform: none; }
.services__slot { position: sticky; top: 12vh; height: 76vh; }

/* ------------------------------------------------------- Automatizaciones */
.auto { padding-block: var(--section); }
.auto__head { max-width: 860px; }
.auto__head .label { margin-bottom: 24px; }
.auto__head .h-lg { margin-bottom: 28px; }

.flow { margin-top: clamp(56px, 7vw, 96px); }
.flow__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--veil);
}
.flow__tabs button, .tabs button {
  -webkit-appearance: none;
  appearance: none;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: var(--ash);
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.flow__tabs button:hover, .tabs button:hover { color: var(--bone); }
.flow__tabs button[aria-selected="true"], .tabs button[aria-selected="true"] {
  background: var(--veil-2);
  color: var(--bone);
}

.flow__track { position: relative; margin-top: 56px; --step: 0; --n: 4; }
.flow__line {
  position: absolute;
  top: 36px;
  left: calc(100% / var(--n) / 2);
  right: calc(100% / var(--n) / 2);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.flow__fill {
  position: absolute;
  inset: 0;
  background: var(--iris);
  transform-origin: left;
  transform: scaleX(calc(var(--step) / (var(--n) - 1)));
  transition: transform 900ms var(--ease-in-out);
}
.flow__pulse {
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px; height: 10px;
  margin-left: -5px;
  background: var(--saffron);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(calc(var(--track-w, 0px) * var(--step) / (var(--n) - 1)));
  transition: transform 900ms var(--ease-in-out);
}
.flow__nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 16px;
}
.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: fade 600ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms);
}
.node__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--dim);
  font-size: 28px;
  transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease, transform 500ms var(--ease-out);
}
.node__title, .node__tool { display: block; }
.node__title {
  max-width: 14em;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ash);
  transition: color 400ms ease;
}
.node__tool { margin-top: 6px; font-size: 14px; font-weight: 200; color: var(--dim); }
.node.is-done .node__icon { color: var(--bone); box-shadow: inset 0 0 0 1px rgba(128, 82, 255, 0.6); }
.node.is-done .node__title { color: var(--bone); }
.node.is-current .node__icon { background: var(--iris); color: var(--bone); box-shadow: none; transform: scale(1.06); }
.node.is-current .node__title { color: var(--bone); }
.auto__link { margin-top: clamp(48px, 6vw, 72px); }

/* ---------------------------------------------------------------- Proceso */
.process { padding-block: var(--section); }
.process__title { max-width: 12em; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 96px);
}
/* Cada paso baja un escalón: el proceso se lee como una escalera */
.step:nth-child(2) { margin-top: 72px; }
.step:nth-child(3) { margin-top: 144px; }
.step:nth-child(4) { margin-top: 216px; }
.step__n {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.step__title { margin-bottom: 12px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
.step p { color: var(--silver); max-width: 22em; }

/* ------------------------------------------------------------ Presupuesto */
.quote { padding-block: var(--section); }
.quote__head { max-width: 860px; margin-bottom: 48px; }
.quote__head .h-lg { margin-bottom: 24px; }
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--veil);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 30px; font-size: 18px; }
.tabs button .ico { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; justify-content: center; min-height: 56px; padding: 0 12px; font-size: 16px; }
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.group + .group { margin-top: clamp(48px, 5vw, 64px); }
.group__title {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.group__hint { margin-bottom: 4px; font-size: 16px; color: var(--ash); }
.opts, .chips { margin-top: 20px; }

.opts { display: grid; gap: 4px; }
.opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 250ms ease;
}
.opt:hover { background: #090909; }
.opt.is-on { background: var(--veil); }
.opt:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
.opt__mark { width: 22px; height: 22px; color: var(--dim); transition: color 250ms ease, transform 400ms var(--ease-out); }
.opt__mark path { fill: transparent; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill 250ms ease; }
.opt.is-on .opt__mark { color: var(--iris); transform: scale(1.08); }
.opt.is-on .opt__mark path { fill: var(--iris); }
.opt__name { display: block; font-size: clamp(19px, 1.7vw, 22px); font-weight: 400; letter-spacing: -0.015em; color: var(--silver); transition: color 250ms ease; }
.opt.is-on .opt__name { color: var(--bone); }
.opt__desc { display: block; margin-top: 2px; font-size: 15px; color: var(--ash); }
.opt--compact { padding-block: 14px; }
.opt__price { font-size: 16px; font-weight: 400; color: var(--ash); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt.is-on .opt__price { color: var(--bone); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--veil);
  font-size: 15px;
  font-weight: 400;
  color: var(--silver);
  cursor: pointer;
  user-select: none;
  transition: background-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out);
}
.chip:hover { background: var(--veil-2); color: var(--bone); }
.chip:active { transform: scale(0.97); }
.chip.is-on { background: var(--iris-tint); color: var(--bone); }
.chip:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
.chip__check {
  display: grid;
  place-items: center;
  width: 0;
  overflow: hidden;
  color: var(--saffron);
  font-size: 15px;
  transition: width 300ms var(--ease-out);
}
.chip.is-on .chip__check { width: 16px; }
.chip__price { color: var(--ash); font-weight: 200; font-variant-numeric: tabular-nums; }
.chip.is-on .chip__price { color: var(--silver); }

.stepper { display: inline-flex; align-items: center; gap: 20px; margin-top: 20px; }
.stepper__btn {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--veil);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.stepper__btn:hover { background: var(--veil-2); }
.stepper__btn:active { transform: scale(0.94); }
.stepper__btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.stepper__value {
  min-width: 2ch;
  text-align: center;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
[data-pages-group].is-locked .stepper { opacity: 0.4; }

.summary { position: sticky; top: 32px; }
.summary__label { font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--ash); }
.summary__price {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  margin-top: 8px;
  font-size: clamp(64px, 7.4vw, 113px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.summary__cur { font-size: 0.42em; color: var(--ash); letter-spacing: 0; }
.summary__tax { margin-top: 10px; font-size: 16px; color: var(--ash); }
.summary__tax [data-monthly]:not(:empty)::before { content: "  ·  "; white-space: pre; }
.summary.is-custom .summary__price { font-size: clamp(48px, 5.4vw, 84px); }
.summary.is-custom .summary__cur,
.summary.is-custom .summary__iva,
.summary.is-custom .summary__tax [data-monthly]::before,
.pricebar.is-custom .pricebar__cur { display: none; }
.summary__lines { display: grid; gap: 10px; margin-top: 32px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 18px; font-size: 15px; color: var(--silver); }
.summary__lines li span:last-child { flex: none; color: var(--bone); font-weight: 400; font-variant-numeric: tabular-nums; }
.summary__eta { margin-top: 20px; font-size: 15px; color: var(--ash); }
.summary__eta strong { font-weight: 400; color: var(--bone); }
.summary__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.summary__note { margin-top: 24px; font-size: 14px; color: var(--ash); max-width: 28em; }


/* ---------------------------------------------------------------- Campos */
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 400; color: var(--silver); }
.field label small { color: var(--ash); font-weight: 200; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--field);
  font-size: 17px;
  font-weight: 300;
  color: var(--bone);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.field input:hover, .field textarea:hover, .field select:hover { background: var(--field-hover); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--field-focus); box-shadow: 0 0 0 2px var(--iris); }
.field.has-error input { box-shadow: 0 0 0 2px var(--error); }
.field__error { min-height: 0; font-size: 14px; font-weight: 400; color: var(--error); }
.field__error:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--silver); cursor: pointer; }
.consent input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  background: var(--veil-2);
  cursor: pointer;
  transition: background-color 200ms ease;
}
.consent input::after {
  content: "";
  width: 10px; height: 6px;
  margin-top: -2px;
  border-left: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  transform: rotate(-45deg) scale(0);
  transition: transform 200ms var(--ease-out);
}
.consent input:checked { background: var(--iris); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: var(--bone); text-underline-offset: 3px; }
.consent.has-error input { box-shadow: 0 0 0 2px var(--error); }
.form-error { font-size: 15px; font-weight: 400; color: var(--error); }
.form-error:empty { display: none; }
.form-ok { font-size: 16px; color: var(--bone); }

/* ---------------------------------------------------------------- Asistente */
.wiz { max-width: 880px; min-height: 520px; }
.wiz__progress { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.wiz__count { font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--ash); font-variant-numeric: tabular-nums; }
.wiz__dots { display: flex; gap: 8px; }
.wiz__dots li { width: 12px; height: 11px; color: var(--dim); }
.wiz__dots svg { width: 100%; height: 100%; }
.wiz__dots path { fill: transparent; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: fill 300ms ease; }
.wiz__dots li.is-done { color: var(--iris); }
.wiz__dots li.is-done path { fill: var(--iris); }
.wiz__dots li.is-current { color: var(--bone); }

.wiz__step[hidden] { display: none; }
.wiz__step { animation: step-in 420ms var(--ease-out) both; }
.wiz__step.from-left { animation-name: step-in-left; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-18px); } }
.wiz__q {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.wiz__q:focus { outline: none; }
.wiz__hint { color: var(--ash); font-size: 16px; }
.wiz__step .chips { margin-top: 28px; gap: 12px; }
.wiz .chip { min-height: 56px; padding: 0 24px; font-size: 17px; }
.wiz .chip.is-on { background: var(--iris); color: #fff; }
.wiz .chip.is-on .chip__check { color: #fff; }
.wiz { max-width: none; }
.wiz__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.wiz__fields .field--wide { grid-column: 1 / -1; }
.wiz__step .consent { margin-top: 24px; }
.wiz__error { margin-top: 16px; }
.wiz__nav { display: flex; align-items: center; gap: 28px; margin-top: 48px; }
.wiz__nav [data-back][hidden] { display: none; }

.done { max-width: 720px; animation: step-in 500ms var(--ease-out) both; }
.done:focus { outline: none; }
.done__title { font-size: clamp(48px, 6vw, 78px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 20px; }
.done p + p { margin-top: 12px; }
.done .lead strong { font-weight: 400; color: var(--saffron); }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }

/* -------------------------------------------------------------- Preguntas */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  padding-block: var(--section);
}
.faq__title { position: sticky; top: 40px; align-self: start; max-width: 7em; }
.qa { padding-block: 22px; }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 200ms ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--silver); }
.qa__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--veil);
  font-size: 16px;
  transition: transform 450ms var(--ease-out), background-color 250ms ease;
}
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--veil-2); }
.qa p { padding-top: 14px; max-width: 36em; color: var(--silver); }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 450ms var(--ease-out), content-visibility 450ms allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}

/* ------------------------------------------- Envío (final de la página) */
.quote__title {
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.summary__go { width: 100%; justify-content: center; margin-top: 32px; }

.send {
  display: grid;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(22px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--veil);
  box-shadow: inset 0 0 0 1px #222;
  scroll-margin-top: 24px;
}
.send__title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.send__sub { margin-top: 8px; color: var(--silver); }
.send__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.send__fields .field--wide { grid-column: 1 / -1; }
.send__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.send__actions .btn { flex: 1 1 240px; justify-content: center; }
.send .done__title { font-size: clamp(40px, 5vw, 64px); }
.send__ok { font-size: 18px; color: var(--silver); }
.send__ok strong { font-weight: 400; color: var(--saffron); }
@media (max-width: 640px) {
  .send__fields { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding-block: 40px 56px;
  font-size: 14px;
  color: var(--ash);
}
.footer .logo { margin-right: 0; color: var(--bone); }
.footer__motto { margin-right: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { text-decoration: none; transition: color 200ms ease; }
.footer__links a:hover { color: var(--bone); }

/* ---------------------------------------------------- WhatsApp y precio */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-radius: 28px;
  background: var(--bone);
  color: var(--void);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 450ms var(--ease-out), opacity 300ms ease;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 450ms var(--ease-out), margin-left 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover .wa-float__label { max-width: 120px; margin-left: 10px; }
}
.wa-float:active { transform: scale(0.96); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none; }

.pricebar { display: none; }

/* ----------------------------------------------------------- Herramientas */
.tools { padding-block: 8px 24px; }
.tools__title { margin-bottom: 22px; font-size: 15px; color: var(--ash); }
.tools__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tools__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding-inline: 36px;
  animation: marquee 48s linear infinite;
}
.tools__track img { width: auto; height: 28px; opacity: 0.7; transition: opacity 300ms ease; }
.tools__track img:hover { opacity: 1; }
.tools__viewport:hover .tools__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Ideas */
.gallery { padding-block: calc(var(--section) * 0.6) var(--section); }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.gallery__head .h-lg { margin-bottom: 20px; }
.gallery__nav { display: flex; gap: 10px; flex: none; }
.round-btn {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--veil);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.round-btn:hover { background: var(--veil-2); }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.gallery__track {
  --pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 880px);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-inline: var(--pad);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1264 / 848;
  border-radius: var(--radius);
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .shot:hover .shot__frame img { transform: scale(1.03); } }
.shot__frame.is-missing img { display: none; }
.shot__frame.is-missing::after {
  content: "Imagen pendiente";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 15px;
}
.shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 18px; }
.shot figcaption strong { font-size: 24px; letter-spacing: -0.02em; }
.shot__title { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shot__tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--veil-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--ash);
}
.shot__tag.is-real { background: rgba(255, 184, 41, 0.14); color: var(--saffron); }
a.shot__frame { display: block; text-decoration: none; }
.shot__frame--browser { display: flex; flex-direction: column; background: #121212; }
a.shot__frame--browser { display: flex; }
.shot__frame--browser img { flex: 1; min-height: 0; object-position: top center; }
.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 40px;
  padding: 0 16px;
  background: #171717;
}
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.shot__bar span {
  margin-left: 14px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: #0c0c0c;
  font-size: 13px;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot figcaption span { font-size: 16px; color: var(--ash); text-align: right; }

/* ------------------------------------------------------ Tres promesas */
.promise { padding-block: calc(var(--section) * 0.8); }
.promise__title { max-width: 16em; margin-bottom: clamp(36px, 5vw, 56px); color: var(--silver); }
.promise__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(140deg, var(--c1), rgba(255, 255, 255, 0.06) 45%, var(--c2)) border-box;
  transition: transform 600ms var(--ease-out), opacity 700ms var(--ease-out);
}
.promise__card::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c1), transparent);
  opacity: 0.28;
  filter: blur(20px);
  transition: opacity 500ms ease, transform 800ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .promise__card:hover { transform: translateY(-6px); }
  .promise__card:hover::before { opacity: 0.5; transform: scale(1.1); }
}
.promise__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  color: #000;
  font-size: 28px;
  margin-bottom: auto;
}
.promise__big {
  position: relative;
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(100deg, var(--c1, #8052ff), var(--c2, #ffb829));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promise__small { position: relative; margin-top: 14px; font-size: 16px; color: var(--ash); max-width: 26em; }

/* ------------------------------------------------------ Línea de tiempo */
.process__head { max-width: 760px; }
.process__head .h-lg { margin-bottom: 20px; }
.process__head .lead { color: var(--silver); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  --progress: 0;
}
/* Línea que une los iconos y se rellena al llegar a la sección */
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  top: 58px;
  left: 60px; right: 60px;
  height: 2px;
  border-radius: 2px;
}
.timeline::before { background: rgba(255, 255, 255, 0.08); }
.timeline::after {
  background: linear-gradient(90deg, #8052ff, #c25bff, #ff4fa3, #ffb829);
  transform-origin: left;
  transform: scaleX(var(--progress));
  transition: transform 1600ms var(--ease-in-out);
}
.timeline.is-in { --progress: 1; }
.tl {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 600ms var(--ease-out), opacity 700ms var(--ease-out), box-shadow 300ms ease;
}
.tl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--c);
  opacity: 0.8;
}
@media (hover: hover) { .tl:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-4px); } }
.tl__n {
  position: absolute;
  right: 14px; bottom: -18px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 26%, transparent);
  pointer-events: none;
}
.tl__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.tl__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 20%, #0a0a0a);
  box-shadow: 0 0 0 6px #000, 0 0 32px -4px var(--c);
  color: var(--c);
  font-size: 26px;
}
.tl__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c) 14%, #0a0a0a);
  color: var(--bone);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tl__time .ico { color: var(--c); }
.tl__title { position: relative; margin-bottom: 10px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.tl p { position: relative; color: var(--silver); font-size: 16px; max-width: 24em; }

/* ------------------------------------------------------ Galería: ver web */
.shot__visit {
  position: absolute;
  right: 18px; bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--bone);
  color: var(--void);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
a.shot__frame:hover .shot__visit, a.shot__frame:focus-visible .shot__visit { opacity: 1; transform: none; }
@media (hover: none) { .shot__visit { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .promise__grid { grid-template-columns: minmax(0, 1fr); }
  .promise__card { min-height: 0; }
  .promise__big { margin-top: 40px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline::before, .timeline::after { top: 40px; bottom: 40px; left: 56px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--progress)); background: linear-gradient(180deg, #8052ff, #c25bff, #ff4fa3, #ffb829); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline { --progress: 1; }
}

/* ------------------------------------------------------------- Idiomas */
.lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: #0b0b0b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.lang__btn {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px; height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 200ms ease, background-color 200ms ease;
}
.lang__btn svg { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; }
.lang__btn:hover { opacity: 0.85; }
.lang__btn[aria-pressed="true"] { opacity: 1; background: var(--veil-2); }

/* -------------------------------------------------- Galería: botón ficha */
button.shot__frame {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------ Ficha de proyecto */
.case {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #0a0a0a;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 120px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
.case::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case[open] { animation: case-in 450ms var(--ease-out); }
@keyframes case-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.case__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.case__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; font-size: 18px; }
.case__media { background: #000; display: grid; place-items: center; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 44px 40px 40px; }
.case__sector { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255, 184, 41, 0.14); color: var(--saffron); font-size: 13px; font-weight: 500; }
.case__title { margin-bottom: 26px; font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.case h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.case__cols { display: grid; gap: 20px; margin-bottom: 26px; }
.case__cols p { color: var(--silver); font-size: 16px; }
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.case__chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-pill); background: var(--veil-2); font-size: 14px; }
.case__chips .ico { color: var(--saffron); width: 15px; height: 15px; }
.case__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.case__actions .btn[hidden] { display: none; }

/* ---------------------------------------------------------------- Cookies */
.cookies {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-menu);
  width: min(420px, calc(100vw - 32px));
  padding: 20px 22px;
  border-radius: 22px;
  background: #0e0e0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: case-in 450ms var(--ease-out);
}
.cookies__text { font-size: 15px; color: var(--silver); }
.cookies__text a { color: var(--bone); }
.cookies__actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 14px; }
.footer__btn { -webkit-appearance: none; appearance: none; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer__btn:hover { color: var(--bone); }
.footer__btn[hidden] { display: none; }

@media (max-width: 960px) {
  .lang { margin-left: auto; }
  .case__inner { grid-template-columns: minmax(0, 1fr); }
  .case__body { padding: 28px 22px 28px; }
}

/* ------------------------------------------------------------ Proyectos */
.work { padding-block: calc(var(--section) * 0.7) var(--section); }
.work__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.work__head .h-lg { margin-bottom: 20px; }
.work__head .lead { color: var(--silver); }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.feat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(150deg, rgba(128, 82, 255, 0.55), rgba(255, 255, 255, 0.05) 45%, rgba(255, 184, 41, 0.45)) border-box;
  transition: transform 600ms var(--ease-out), opacity 700ms var(--ease-out);
}
.feat__media {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 1264 / 848;
  background: #050505;
  cursor: pointer;
}
.feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .feat:hover .feat__media img { transform: scale(1.04); } .feat:hover { transform: translateY(-4px); } }
.feat__media:hover .shot__visit, .feat__media:focus-visible .shot__visit { opacity: 1; transform: none; }
.feat__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; }
.feat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ash); }
.feat__title { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.feat__desc { color: var(--silver); font-size: 17px; }
.feat__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.feat__chips li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--veil-2); font-size: 13px; color: var(--silver); }
.feat__actions { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 6px; }
.link--dim { color: var(--ash); }

/* "Ver más ejemplos": discreto a propósito */
.work__more { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.work__toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--ash);
  cursor: pointer;
  transition: color 200ms ease;
}
.work__toggle:hover { color: var(--bone); }
.work__chev { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--veil-2); font-size: 13px; transition: transform 400ms var(--ease-out); }
.work__toggle[aria-expanded="true"] .work__chev { transform: rotate(45deg); }
.work__extra { margin-top: 24px; text-align: left; animation: fade 600ms var(--ease-out) both; }
.work__extra[hidden] { display: none; }
.work__note { margin-bottom: 18px; font-size: 15px; color: var(--ash); text-align: center; }
.work__mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini { margin: 0; }
.mini__img { position: relative; overflow: hidden; aspect-ratio: 1264 / 848; border-radius: 18px; background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini figcaption { display: grid; gap: 2px; margin-top: 10px; }
.mini figcaption strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.mini figcaption span { font-size: 13px; color: var(--ash); }
.is-missing img { display: none; }

/* Menú móvil: un único botón de acción */
.menu__cta { align-self: flex-start; }

/* ------------------------------------------ Animaciones al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 90ms; }
.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 180ms; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 270ms; }
.js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: 360ms; }
.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: 450ms; }
.js [data-reveal-group].is-in > *:nth-child(n+7) { transition-delay: 520ms; }

@media (max-width: 960px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat__body { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* ------------------------------------------- Automatizaciones: refuerzo */
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stack li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 500;
}
.stack img { width: 18px; height: 18px; }
.stack__ai { display: grid; place-items: center; color: var(--saffron); font-size: 16px; }

.auto__sub { margin-top: clamp(72px, 9vw, 120px); margin-bottom: clamp(28px, 4vw, 44px); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 600ms var(--ease-out), opacity 700ms var(--ease-out), box-shadow 300ms ease;
}
.case-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -40%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: 0.16;
  filter: blur(16px);
  pointer-events: none;
}
@media (hover: hover) { .case-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); } }
.case-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 18%, #0a0a0a);
  color: var(--c);
  font-size: 24px;
}
.case-card h4 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.case-card p { font-size: 16px; color: var(--silver); }
.case-card__tools { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ash); }

/* Calculadora de ahorro */
.roi {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(128, 82, 255, 0.22), transparent 70%) padding-box,
    linear-gradient(#090909, #090909) padding-box,
    linear-gradient(140deg, rgba(128, 82, 255, 0.6), rgba(255, 255, 255, 0.06) 50%, rgba(255, 184, 41, 0.5)) border-box;
}
.roi__copy > p { margin-top: 12px; color: var(--silver); }
.roi__field { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; margin-top: 30px; }
.roi__field label { font-size: 16px; color: var(--silver); }
.roi__field output { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.roi__field input { grid-column: 1 / -1; }
.roi input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
  --pct: 50%;
}
.roi input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--iris), #ff4fa3 var(--pct), #262626 var(--pct));
}
.roi input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #262626; }
.roi input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--iris), #ff4fa3); }
.roi input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 0 6px rgba(128, 82, 255, 0.35);
}
.roi input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 6px rgba(128, 82, 255, 0.35); }
.roi input[type="range"]:focus-visible { outline: 2px solid var(--saffron); outline-offset: 6px; border-radius: 8px; }
.roi__result { display: grid; justify-items: start; gap: 6px; }
.roi__label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.roi__big {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffffff 30%, #ffb829);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.roi__cur { font-size: 0.45em; }
.roi__hours { font-size: 18px; color: var(--silver); margin-bottom: 18px; }
.roi__hours strong { color: var(--bone); font-weight: 700; }
.roi__note { margin-top: 14px; font-size: 13px; color: var(--ash); }

/* Servicio destacado */
.svc--star .svc__name::after {
  content: "";
  display: inline-block;
  width: 0.32em; height: 0.32em;
  margin-left: 0.3em;
  vertical-align: 0.5em;
  border-radius: 50%;
  background: var(--saffron);
}

@media (max-width: 960px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
  .roi { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-width: 960px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------- Páginas legales y 404 */
.legal { position: relative; z-index: var(--z-content); max-width: 800px; padding-block: 140px 100px; }
.legal h1 { margin-bottom: 14px; }
.legal__date { margin-bottom: 28px; font-size: 15px; color: var(--ash); }
.legal__todo { padding: 14px 18px; border-radius: 16px; background: rgba(255, 184, 41, 0.08); color: var(--silver); font-size: 15px; }
.legal h2 { margin: 44px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--silver); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--bone); font-weight: 500; }
.legal ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--bone); text-underline-offset: 3px; }
.legal mark { background: none; color: var(--saffron); }
.legal__table { margin-top: 18px; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.legal th { color: var(--bone); font-weight: 500; background: #0d0d0d; }
.legal td { color: var(--silver); }
.legal tr:last-child td { border-bottom: 0; }

.notfound {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding-block: 120px 80px;
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(120px, 26vw, 300px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(100deg, #8052ff, #c25bff 35%, #ff4fa3 65%, #ffb829);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}
.notfound .h-lg { margin-bottom: 18px; }
.notfound .lead { color: var(--silver); }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 36px; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .nav__links a:nth-child(5) { display: none; }
}
@media (max-width: 1060px) {
  .nav__links a:nth-child(4) { display: none; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    padding-top: 84px;
  }
  .hero__visual { order: -1; }
  .hero__slot { width: min(100%, 34vh); }
  .hero__title .line { white-space: normal; }
  .modes { margin-bottom: 16px; }
  .hero__label { margin-bottom: 18px; }
  .hero__title { margin-bottom: 20px; }
  .hero__lead { margin-bottom: 28px; }

  .services { grid-template-columns: minmax(0, 1fr); }
  .services__visual { display: none; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(even) { margin-top: 56px; }

  .calc { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }

  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__title { position: static; }


  .pricebar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-float);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(105%);
    transition: transform 450ms var(--ease-out);
  }
  .pricebar.is-visible { transform: none; }
  .pricebar__price { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .pricebar__price small { font-size: 14px; font-weight: 200; color: var(--ash); letter-spacing: 0; }
}

@media (max-width: 720px) {
  .flow__tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .flow__tabs button { flex: none; }
  .flow__track { margin-top: 40px; }
  .flow__nodes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .node { flex-direction: row; align-items: center; text-align: left; gap: 20px; min-height: 96px; }
  .node__icon { width: 60px; height: 60px; font-size: 24px; }
  .flow__line {
    top: 48px;
    bottom: 48px;
    left: 30px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .flow__fill { transform-origin: top; transform: scaleY(calc(var(--step) / (var(--n) - 1))); }
  .flow__pulse {
    top: 0;
    left: -5px;
    margin-left: 0;
    margin-top: -5px;
    width: 11px; height: 11px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateY(calc(var(--track-h, 0px) * var(--step) / (var(--n) - 1)));
  }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .step:nth-child(even) { margin-top: 0; }

  .opt { grid-template-columns: 20px minmax(0, 1fr); padding: 16px 14px; gap: 14px; }
  .opt__price { grid-column: 2; }

  .wiz__fields { grid-template-columns: minmax(0, 1fr); }
  .wiz__nav { justify-content: space-between; }

  .footer { flex-direction: column; align-items: flex-start; }

  .modes button { padding: 0 13px; }
  .modes button:not([aria-pressed="true"]) .modes__label { display: none; }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .gallery__track { grid-auto-columns: 86vw; gap: 14px; }
  .shot figcaption { flex-direction: column; gap: 4px; }
  .shot figcaption span { text-align: left; }
  .tools__track { gap: 48px; }
}

/* --------------------------------------------------- Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .manifesto__text .w { color: var(--bone); }
  .tools__track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 28px; }
}

/* Titulares y cifras grandes con la tipografía de display (al final para que mande) */
h1, h2, h3, .display, .h-lg, .h-md, .logo__word, .menu__links a, .manifesto__text,
.svc__name, .step__n, .summary__price, .stepper__value, .wiz__q, .done__title,
.quote__title, .pricebar__price, .group__title, .opt__name, .qa summary, .shot figcaption strong {
  font-family: var(--font-display);
  font-weight: 500;
}
.hero__title, .quote__title, .logo__word { font-weight: 600; }

/* -------------------------------------------------- Ajustes finos en móvil */
html, body { overflow-x: clip; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .roi .btn, .send__actions .btn, .hero__actions .btn, .notfound__actions .btn { width: 100%; padding-block: 14px; }
  .roi { padding: 24px 18px; border-radius: 26px; }
  .roi__field output { font-size: 20px; }
  .feat__actions { gap: 0 20px; }
  .case-card { padding: 22px 20px; }
  .stack li { font-size: 13px; padding: 7px 12px; }
}

/* ------------------------------------------- Servicios: recorrido con scroll */
.svc-pin { position: relative; }
.svc-pin.is-pinned { height: calc(100svh + var(--n, 6) * var(--step, 55svh)); }
.svc-pin.is-pinned > .services {
  position: sticky;
  top: 0;
  height: 100svh;
  align-items: center;
  padding-block: 64px 24px;
}
.svc-pin.is-pinned .services__slot { position: relative; top: auto; height: min(70svh, 560px); }
.svc-pin__steps { position: absolute; inset: 0; pointer-events: none; }
.svc-pin__step { position: absolute; left: 0; width: 1px; top: calc(50svh + var(--i) * var(--step, 55svh)); height: var(--step, 55svh); }
.svc-pin__step:first-child { top: 0; height: calc(50svh + var(--step, 55svh)); }

.svc-progress { display: flex; align-items: center; gap: 14px; margin: -18px 0 22px; }
.svc-progress__count { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; }
.svc-progress__bar { position: relative; flex: 1; max-width: 220px; height: 3px; border-radius: 3px; background: #222; overflow: hidden; }
.svc-progress__bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--iris), #ff4fa3, var(--saffron));
  transform: scaleX(0.166);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.svc-pin.is-pinned .svc { cursor: pointer; }
.svc.is-past .svc__name { color: #5e5e5e; }

@media (max-width: 960px) {
  .svc-pin.is-pinned > .services { padding-block: 56px 16px; align-content: center; }
  .svc-pin.is-pinned .services__title { margin-bottom: 28px; }
  .svc-pin.is-pinned .svc { padding-block: 8px; }
  .svc-pin.is-pinned .svc__name { font-size: clamp(26px, 8vw, 34px); }
}
@media (max-height: 640px) {
  .svc-pin.is-pinned .svc__name { font-size: clamp(22px, 6vw, 30px); }
  .svc-pin.is-pinned .svc__body p { font-size: 15px; }
}

/* Tamaños para que los seis servicios quepan siempre en la pantalla fija */
.svc-pin.is-pinned .services__title { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 26px; }
.svc-pin.is-pinned .svc { padding-block: clamp(8px, 1.4svh, 14px); }
.svc-pin.is-pinned .svc__name { font-size: clamp(26px, min(3vw, 5.4svh), 44px); }
.svc-pin.is-pinned .svc__body p { padding-top: 8px; }
@media (max-width: 960px) {
  .svc-pin.is-pinned .svc__name { font-size: clamp(22px, min(6.6vw, 4.4svh), 34px); }
  .svc-pin.is-pinned .svc__price { font-size: 12px; }
}
@media (max-height: 720px) {
  .svc-pin.is-pinned > .services { padding-block: 48px 12px; }
  .svc-pin.is-pinned .svc { padding-block: 6px; }
  .svc-pin.is-pinned .svc__body p { font-size: 15px; line-height: 1.4; }
}

.swipe-hint { display: none; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ash); }
.swipe-hint .ico { width: 16px; height: 16px; animation: swipe-nudge 1.6s var(--ease-out) infinite; }
@keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint .ico { animation: none; } }

/* ---------------------------------------------- Móvil: una web más corta */
/* En el móvil la gente no baja tanto: las tarjetas se deslizan en horizontal,
   los servicios pasan más rápido y la calculadora es más compacta.
   En ordenador no cambia nada. */
@media (max-width: 760px) {
  .svc-pin { --step: 32svh; }
  .promise { padding-block: 64px 40px; }

  .promise__grid, .cases {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .promise__grid::-webkit-scrollbar, .cases::-webkit-scrollbar { display: none; }
  .promise__grid > *, .cases > * { flex: 0 0 84%; scroll-snap-align: start; }
  .promise__card { min-height: 0; padding: 26px; }
  .swipe-hint { display: flex; }

  /* Calculadora: solo se ve la descripción de la opción elegida */
  .opt { grid-template-columns: 20px minmax(0, 1fr) auto; padding-block: 14px; }
  .opt__price { grid-column: auto; font-size: 15px; }
  .opt__desc { display: none; }
  .opt.is-on .opt__desc { display: block; }
  .calc .group + .group { margin-top: 28px; }
  .calc .chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
.tabs button[aria-selected="true"] { background: var(--iris); color: #fff; }

/* ------------------------------------------------ Solicitud enviada */
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .ico { animation: send-pulse 900ms ease-in-out infinite; }
@keyframes send-pulse { 50% { transform: translateX(6px); opacity: 0.4; } }
.send.is-sent { place-items: center; min-height: 420px; text-align: center; }
.sent { display: grid; justify-items: center; gap: 14px; max-width: 34em; animation: step-in 500ms var(--ease-out) both; }
.sent:focus { outline: none; }
.sent__badge { position: relative; width: 120px; height: 120px; margin-bottom: 8px; }
.sent__ring, .sent__check { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent__ring circle { stroke: var(--iris); stroke-width: 5; stroke-dasharray: 340; stroke-dashoffset: 340; animation: sent-draw 700ms var(--ease-out) 450ms forwards; transform: rotate(-90deg); transform-origin: center; }
.sent__check path { stroke: var(--saffron); stroke-width: 7; stroke-dasharray: 80; stroke-dashoffset: 80; animation: sent-draw 420ms var(--ease-out) 1050ms forwards; }
.sent__plane { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bone); animation: sent-fly 900ms var(--ease-in-out, ease-in-out) forwards; }
.sent__plane .ico { width: 48px; height: 48px; }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }
@keyframes sent-fly {
  0% { transform: scale(0.6); opacity: 0; }
  30% { transform: scale(1.1); opacity: 1; }
  55% { transform: scale(1); opacity: 1; }
  100% { transform: translate(90px, -90px) rotate(-12deg) scale(0.4); opacity: 0; }
}
.sent__title { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.sent__text { font-size: 18px; color: var(--silver); }
.sent__text strong { font-weight: 400; color: var(--saffron); }
.sent__hint { font-size: 15px; color: var(--ash); }
.sent__hint a { color: var(--bone); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .sent__ring circle, .sent__check path { animation: none; stroke-dashoffset: 0; }
  .sent__plane { display: none; }
}

/* ------------------------------------- Automatizaciones: tres a la vez */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.flow__lanes { display: grid; gap: 14px; }
.lane {
  --step: 0;
  padding: 18px 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 10%, #0b0b0b), #0b0b0b 60%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}
.lane__label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver); }
.lane__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); }
.lane.is-running .lane__dot { animation: lane-ping 1.2s ease-out infinite; }
@keyframes lane-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.lane__track { position: relative; }
.lane__nodes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lane__wire { position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.lane__fill { position: absolute; inset: 0; background: var(--c); transform-origin: left; transform: scaleX(calc(var(--step) / 3)); transition: transform 700ms var(--ease-out); border-radius: 2px; }
.lane__spark { position: absolute; top: 50%; left: calc(var(--step) / 3 * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--c); opacity: 0; transition: left 700ms var(--ease-out), opacity 300ms; }
.lane.is-running .lane__spark { opacity: 1; }
.lnode { display: grid; justify-items: center; gap: 8px; text-align: center; }
.lnode__icon {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: #141414;
  color: var(--dim);
  box-shadow: inset 0 0 0 1px #262626;
  transition: background 350ms ease, color 350ms ease, transform 450ms var(--ease-out), box-shadow 350ms ease;
}
.lnode__icon .ico { width: 22px; height: 22px; }
.lnode__title { font-size: 13px; line-height: 1.3; color: var(--dim); transition: color 350ms ease; }
.lnode.is-done .lnode__icon { color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.lnode.is-done .lnode__title { color: var(--silver); }
.lnode.is-current .lnode__icon { background: var(--c); color: #000; transform: scale(1.12); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); }
.lnode.is-current .lnode__title { color: var(--bone); }
.lane__now { display: none; }

.flow__phone { display: grid; justify-items: center; }
.phone {
  width: 100%;
  max-width: 330px;
  min-height: 430px;
  padding: 14px 16px 18px;
  border-radius: 42px;
  background: #070707;
  box-shadow: inset 0 0 0 1px #2a2a2a, 0 0 0 6px #111, 0 30px 80px -20px rgba(128, 82, 255, 0.45);
  display: flex;
  flex-direction: column;
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 12px; font-size: 12px; font-weight: 600; color: var(--silver); }
.phone__island { width: 86px; height: 22px; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px #1d1d1d; }
.phone__sig { width: 22px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--silver) 70%, #444 70%); }
.phone__title { margin: 4px 6px 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.phone__feed { display: grid; gap: 8px; flex: 1; align-content: start; }
.note {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  animation: note-in 520ms var(--ease-out) both;
}
.note:nth-child(n + 4) { opacity: 0.45; }
@keyframes note-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
.note__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c); color: #000; }
.note__icon .ico { width: 18px; height: 18px; }
.note__body { display: grid; min-width: 0; }
.note__app { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ash); }
.note__text { font-size: 14px; line-height: 1.3; color: var(--bone); }
.phone__stat { display: grid; justify-items: center; margin-top: 14px; padding: 14px; border-radius: 22px; background: var(--iris-tint); }
.phone__num { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--saffron); font-variant-numeric: tabular-nums; }
.phone__cap { margin-top: 4px; font-size: 13px; color: var(--silver); }

.stack a { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.tools__track a { display: grid; place-items: center; transition: transform 200ms ease, opacity 200ms ease; }
.tools__track a:hover { transform: scale(1.15); }
.tools__viewport:hover .tools__track { animation-play-state: paused; }

@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .phone { min-height: 0; }
}
@media (max-width: 760px) {
  .lane { padding: 14px 14px 16px; }
  .lane__label { margin-bottom: 10px; }
  .lnode__title { display: none; }
  .lnode__icon { width: 44px; height: 44px; border-radius: 14px; }
  .lane__wire { top: 22px; }
  .lane__now { display: block; min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--bone); }
  .phone { max-width: 340px; }
  .note:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lane.is-running .lane__dot, .note { animation: none; }
}
