/* ==========================================================================
   Neotech — hoja de estilos compartida
   Paleta: tinta / hueso / señal. Tipos: Archivo · Instrument Serif · JetBrains Mono
   ========================================================================== */

/* Variables animables: permiten que el fondo cambie suavemente entre secciones */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0e0e0c; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ebe7de; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #8f8a7e; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(235, 231, 222, 0.14); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff5a1f; }

:root {
  --ink: #0e0e0c;
  --ink-2: #161613;
  --bone: #ebe7de;
  --paper: #f3efe6;
  --signal: #ff5a1f;

  --bg: var(--ink);
  --fg: var(--bone);
  --muted: #8f8a7e;
  --line: rgba(235, 231, 222, 0.14);
  --accent: var(--signal);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* Temas por sección. Con JS el tema se aplica al <html>; sin JS, a la propia sección */
html[data-theme="light"],
html:not(.js) [data-theme="light"] {
  --bg: var(--bone);
  --fg: var(--ink);
  --muted: #5e5a51;
  --line: rgba(14, 14, 12, 0.16);
  --accent: #d4410a;
}

html[data-theme="signal"],
html:not(.js) [data-theme="signal"] {
  --bg: var(--signal);
  --fg: var(--ink);
  --muted: rgba(14, 14, 12, 0.78);
  --line: rgba(14, 14, 12, 0.22);
  --accent: var(--ink);
}

html:not(.js) section[data-theme] {
  background: var(--bg);
  color: var(--fg);
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  transition: --bg 0.8s var(--ease), --fg 0.8s var(--ease), --muted 0.8s var(--ease),
    --line 0.8s var(--ease), --accent 0.8s var(--ease);
}

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-stopped { overflow: hidden; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grano de papel: rompe la limpieza "digital" del fondo plano */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Utilidades tipográficas ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.01em;
}

.accent { color: var(--accent); }
.muted { color: var(--muted); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.label__idx { color: var(--accent); }
.label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h2 {
  font-size: clamp(44px, 7.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 750;
  font-stretch: 108%;
}
.h2 .serif { letter-spacing: -0.03em; padding-right: 0.04em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  transition: transform 0.55s var(--ease), background-color 0.45s, color 0.45s;
}
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn__icon svg { width: 16px; height: 16px; }

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal .btn__icon { background: var(--ink); color: var(--signal); }
.btn--signal::before { background: var(--bone); }

.btn--small { height: 42px; padding: 0 18px; font-size: 14px; }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.link-u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease);
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Texto que "rueda" al pasar el ratón (navegación) */
.roll { display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: inline-block; position: relative; transition: transform 0.5s var(--ease); }
.roll > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
a:hover > .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled { background: var(--bg); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  font-stretch: 112%;
}
.brand svg { width: 30px; height: 30px; flex: none; }

.nav { display: none; gap: 32px; font-size: 14px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav a sup { font-family: var(--f-mono); font-size: 9px; color: var(--muted); }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-clock { display: none; color: var(--muted); }
.header-clock b { color: var(--fg); font-weight: 500; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 4px;
}
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8.5px; }
html.menu-open .menu-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
html.menu-open .menu-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1180px) {
  .header-clock { display: inline; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
html.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease), visibility 0s;
}
html.menu-open .site-header { color: var(--bone); background: transparent; border-color: transparent; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(235, 231, 222, 0.14);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-stretch: 110%;
}
.mobile-menu nav a span { font-family: var(--f-mono); font-size: 12px; color: #8f8a7e; letter-spacing: 0.08em; }
.mobile-menu__foot { display: grid; gap: 6px; color: #8f8a7e; }
.mobile-menu__foot a { color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 24px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease) 0.2s;
}
.hero__canvas.is-ready { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(14, 14, 12, 0.92) 0%, rgba(14, 14, 12, 0) 48%),
    linear-gradient(90deg, rgba(14, 14, 12, 0.7) 0%, rgba(14, 14, 12, 0) 55%);
}
.no-webgl .hero__shade {
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(255, 90, 31, 0.16), transparent 70%),
    linear-gradient(0deg, rgba(14, 14, 12, 0.9), transparent 50%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 36px); color: var(--muted); }
.hero__eyebrow .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6);
  animation: ping 2.4s var(--ease) infinite;
}

.hero__title {
  font-size: clamp(46px, 8.6vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-stretch: 108%;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .serif { color: var(--signal); letter-spacing: -0.035em; padding-right: 0.06em; }

.js .hero__title .line > span,
.js .hero [data-intro] {
  animation: rise 1.3s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.js .hero [data-intro] { animation-name: fadeUp; }

.hero__bottom {
  display: grid;
  gap: 28px;
  align-items: end;
}
.hero__lead { max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); }
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.hero__foot .hide-sm { display: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i {
  position: relative;
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal);
  animation: cue 2.2s var(--ease) infinite;
}

@media (max-width: 759px) {
  .hero__shade {
    background: linear-gradient(0deg, rgba(14, 14, 12, 0.97) 0%, rgba(14, 14, 12, 0.88) 52%, rgba(14, 14, 12, 0) 74%);
  }
}
@media (min-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__foot .hide-sm { display: inline; }
}

/* ---------- Declaración (palabras que se encienden) ---------- */
.statement { padding: clamp(120px, 17vw, 260px) 0; }
.statement__wrap { position: relative; }
.statement__label { margin-bottom: 28px; }
.statement__text {
  max-width: 1240px;
  font-size: clamp(30px, 4.3vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 600;
  font-stretch: 104%;
}
.statement__text .serif { color: var(--accent); font-weight: 400; }
@media (min-width: 960px) {
  .statement__label { position: absolute; top: 0.9em; left: var(--gutter); margin: 0; }
  .statement__text { text-indent: clamp(160px, 18vw, 290px); }
  .statement__text * { text-indent: 0; }
}

/* ---------- Marquesina ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 30px) 0;
  white-space: nowrap;
  user-select: none;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__group {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3.6vw, 60px);
  padding-right: clamp(24px, 3.6vw, 60px);
  font-size: clamp(40px, 7vw, 116px);
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: -0.045em;
  line-height: 1;
}
.marquee__group .is-outline { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.marquee__group .serif { font-weight: 400; letter-spacing: -0.02em; }
.marquee__star { width: 0.42em; height: 0.42em; color: var(--accent); animation: spin 9s linear infinite; }
html:not(.js) .marquee__track { animation: marquee 50s linear infinite; }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 150px); }
.section-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 110px);
}
.section-head .label { margin-bottom: 22px; }
.section-head__aside { max-width: 44ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.35fr 1fr; align-items: end; }
  .section-head__aside { justify-self: end; }
}

/* ---------- Servicios ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px 12px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  transition: color 0.5s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: -1px calc(var(--gutter) * -1) 0;
  z-index: -1;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.65s var(--ease);
}
.service__num { color: var(--accent); padding-top: 0.7em; transition: color 0.5s; }
.service__title {
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.038em;
  font-weight: 700;
  font-stretch: 106%;
  transition: transform 0.65s var(--ease);
}
.service__title .serif { font-weight: 400; }
.service__body { grid-column: 2 / -1; }
.service__desc { max-width: 50ch; margin-bottom: 18px; color: var(--muted); transition: color 0.5s; }
.service__link { position: absolute; inset: 0; z-index: 1; }
.service__arrow {
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.65s var(--ease), background-color 0.4s, border-color 0.4s, color 0.4s;
}
.service__arrow svg { width: 18px; height: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.5s;
}

@media (min-width: 960px) {
  .service {
    grid-template-columns: 92px minmax(0, 1.2fr) minmax(0, 1fr) 58px;
    gap: 24px;
    align-items: start;
    padding: 46px 0 50px;
  }
  .service__body { grid-column: auto; padding-top: 0.5em; }
  .service__arrow { display: grid; }
}

@media (hover: hover) and (min-width: 960px) {
  .service:hover { color: var(--bg); }
  .service:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .service:hover .service__title { transform: translateX(14px); }
  .service:hover .service__desc { color: color-mix(in srgb, var(--bg) 72%, transparent); }
  .service:hover .service__num { color: var(--signal); }
  .service:hover .tags li { border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
  .service:hover .service__arrow { transform: rotate(-45deg); background: var(--signal); border-color: var(--signal); color: var(--ink); }
}

/* ---------- Producto (historia 3D con scroll) ---------- */
.product { padding-top: clamp(100px, 14vw, 200px); }
.product .section-head { margin-bottom: clamp(24px, 4vw, 56px); }
.product__story { position: relative; height: 440vh; }
.no-webgl .product__story { height: 280vh; }
.product__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.product__canvas { position: absolute; inset: 0 0 40% 0; width: 100%; height: 60%; }
.no-webgl .product__canvas { display: none; }

.product__panel {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  z-index: 1;
  max-width: 440px;
}
.step-index { display: flex; gap: 6px; margin-bottom: 22px; }
.step-index span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.step-index span.is-active { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.steps { display: grid; list-style: none; margin: 0; padding: 0; }
.step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.8s var(--ease);
  pointer-events: none;
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step .mono { color: var(--accent); }
.step h3 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-stretch: 104%;
}
.step p { color: var(--muted); max-width: 40ch; }

.product__progress { height: 2px; margin-top: 18px; background: var(--line); }
.product__progress span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }

.product__hud {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter);
  z-index: 1;
  display: none;
  gap: 4px;
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--muted);
}
.product__hud div { display: flex; justify-content: space-between; gap: 24px; }
.product__hud b { color: var(--fg); font-weight: 500; }
.product__hud b.is-hot { color: var(--signal); }

html:not(.js) .product__story { height: auto; }
html:not(.js) .product__sticky { position: static; height: auto; padding: 40px 0; }
html:not(.js) .product__canvas, html:not(.js) .step-index, html:not(.js) .product__progress { display: none; }
html:not(.js) .product__panel { position: static; max-width: none; padding-inline: var(--gutter); }
html:not(.js) .steps { gap: 40px; }
html:not(.js) .step { grid-area: auto; opacity: 1; transform: none; }

@media (min-width: 960px) {
  .product__canvas { inset: 0; height: 100%; }
  .product__panel { top: 50%; bottom: auto; transform: translateY(-35%); }
  .product__hud { display: grid; }
}

/* ---------- Proceso (scroll horizontal) ---------- */
.process { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(80px, 10vw, 150px); }
.process__pin { overflow: hidden; }
.process .section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.process__track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: var(--gutter);
}
.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}
.process-card__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--muted); }
.process-card__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(110px, 13vw, 210px);
  line-height: 0.78;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.process-card h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-stretch: 104%;
}
.process-card p { color: var(--muted); max-width: 38ch; }
.process-card--cta { background: var(--fg); color: var(--bg); border-color: var(--fg); transition: background-color 0.5s var(--ease), border-color 0.5s; }
.process-card--cta .process-card__big {
  color: inherit;
  font-size: clamp(40px, 3.8vw, 68px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-stretch: 110%;
}
.process-card--cta .process-card__big .serif { color: var(--signal); font-weight: 400; }
.process-card--cta:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.process-card--cta:hover .process-card__big .serif { color: var(--ink); }
.process-card--cta .btn__icon { width: 64px; height: 64px; background: var(--signal); color: var(--ink); }
.process-card--cta:hover .btn__icon { background: var(--ink); color: var(--signal); transform: rotate(-45deg); }
.process-card--cta .btn__icon svg { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .process.is-horizontal .process__track { flex-direction: row; width: max-content; gap: 24px; }
  .process.is-horizontal .process-card { width: clamp(340px, 34vw, 520px); min-height: clamp(380px, 54vh, 540px); padding: 34px; }
  .process.is-horizontal .process__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .process.is-horizontal { padding-top: 0; padding-bottom: 0; }
}

/* ---------- Contacto ---------- */
.contact { padding: clamp(120px, 15vw, 220px) 0 clamp(64px, 8vw, 110px); }
.contact__title {
  margin: 28px 0 clamp(28px, 4vw, 48px);
  font-size: clamp(48px, 13vw, 250px);
  line-height: 0.84;
  letter-spacing: -0.065em;
  font-weight: 800;
  font-stretch: 112%;
}
.contact__title .serif { font-weight: 400; letter-spacing: -0.04em; }
.contact__lead { max-width: 44ch; font-size: clamp(18px, 1.5vw, 22px); margin-bottom: clamp(36px, 5vw, 64px); }
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: clamp(26px, 4.8vw, 80px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  border-bottom: 2px solid currentColor;
  word-break: break-all;
}
.contact__email svg { width: 0.62em; height: 0.62em; flex: none; transition: transform 0.6s var(--ease); }
.contact__email:hover svg { transform: rotate(-45deg); }
.contact__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact__meta dt { margin-bottom: 6px; color: var(--muted); }
.contact__meta dd { margin: 0; font-size: 18px; font-weight: 500; }

/* ---------- Pie ---------- */
.site-footer {
  --fg: var(--bone);
  --muted: #8f8a7e;
  --line: rgba(235, 231, 222, 0.14);
  --accent: var(--signal);
  position: relative;
  background: var(--ink);
  color: var(--bone);
  padding: 64px 0 28px;
  overflow: hidden;
}
.site-footer__grid { display: grid; gap: 40px; }
.site-footer__col { display: grid; gap: 8px; align-content: start; }
.site-footer__col .mono { color: var(--muted); margin-bottom: 6px; }
.site-footer__col p, .site-footer__col a { font-size: 15px; }
.site-footer__col a { width: fit-content; }
.site-footer__word {
  margin-top: clamp(48px, 7vw, 96px);
  font-size: clamp(64px, 18.5vw, 330px);
  line-height: 0.78;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.07em;
  color: var(--bone);
  white-space: nowrap;
}
.site-footer__word .accent { color: var(--signal); }
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px); }
.legal__grid { display: grid; gap: 48px; }
.legal__aside { container-type: inline-size; }
.legal__title {
  font-size: clamp(40px, 4.4vw, 76px);
  font-size: clamp(40px, 13cqi, 96px); /* relativo al ancho de su columna */
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-stretch: 108%;
  margin: 24px 0 0;
}

.legal__title_condicions {
  font-size: clamp(40px, 4.4vw, 76px);
  font-size: clamp(40px, 13cqi, 96px); /* relativo al ancho de su columna */
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-stretch: 90%;
  margin: 24px 0 0;
}

.legal__toc { display: grid; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; color: var(--muted); }
.legal__toc a:hover { color: var(--fg); }
.prose { max-width: 760px; }
.prose section { padding: 32px 0; border-top: 1px solid var(--line); }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 .mono { color: var(--accent); padding-top: 0.55em; }
.prose p, .prose li { color: var(--muted); }
.prose section > p + p, .prose section > ul + p { margin-top: 14px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
@media (min-width: 960px) {
  .legal__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .legal__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ---------- Animaciones ---------- */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.js) .marquee__track { animation: none; }
}

/* ---------- Página de alta (Stripe) ---------- */
.secure-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.secure-badge svg { width: 15px; height: 15px; color: var(--signal); }

.alta { padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(64px, 8vw, 110px); }
.alta__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.alta__head .label { margin-bottom: 20px; }
.alta__title {
  font-size: clamp(48px, 7.4vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-stretch: 108%;
}
.alta__title .serif { font-weight: 400; letter-spacing: -0.03em; }
.alta__lead { max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.alta__for { margin-bottom: 20px; color: var(--signal); }
.alta__all { margin-top: 24px; color: var(--muted); }
@media (min-width: 960px) {
  .alta__head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .alta__head .alta__lead { justify-self: end; }
}

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.plans--single { grid-template-columns: minmax(0, 520px); }

.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.plan:hover { border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.plan.is-featured { border-color: var(--signal); }
.plan__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); min-height: 26px; }
.plan__tag { padding: 5px 10px; border-radius: 999px; background: var(--signal); color: var(--ink); }
.plan__name {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-stretch: 106%;
}
.plan__desc { color: var(--muted); min-height: 3.1em; }
.plan__price { display: flex; align-items: baseline; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); }
.plan__amount { font-size: clamp(44px, 4.4vw, 64px); font-weight: 750; letter-spacing: -0.05em; line-height: 1; font-stretch: 106%; }
.plan__period { color: var(--muted); }
.plan__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan__list li { position: relative; padding-left: 22px; font-size: 15px; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--signal);
}
.plan .btn { justify-content: space-between; width: 100%; }

.alta-done { max-width: 760px; display: grid; gap: 28px; justify-items: start; }
.alta-done[hidden], #alta-plans[hidden] { display: none; }

.alta-info {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.alta-info dt { margin-bottom: 8px; color: var(--muted); }
.alta-info dd { margin: 0; font-size: 15px; }

.site-footer--mini { padding: 0 0 28px; }
.site-footer--mini .site-footer__bar { margin-top: 0; }
