/* ==========================================================================
   Atlas Digital Studio — Estilos
   Identidad heredada del portafolio del fundador (monocromático oscuro,
   Inter + JetBrains Mono + Instrument Serif) con un concepto espacial:
   mapa, globo y cielo estrellado.
   ========================================================================== */

:root {
  --bg: #121317;
  --s1: #17181d;
  --s2: #1a1b21;
  --s3: #23242b;
  --ink: #ededf0;
  --mute: #9c9da7;
  --mute-2: #767782;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --btn: #e7e7ea;
  --btn-ink: #121317;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --wa: #25d366;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  /* Superficies y estados que cambian con el tema */
  --ink-strong: #ffffff;
  --hover: rgba(255, 255, 255, .06);
  --hover-soft: rgba(255, 255, 255, .025);
  --line-3: rgba(255, 255, 255, .3);
  --glass: rgba(23, 24, 29, .6);
  --glass-strong: rgba(26, 27, 33, .85);
  --header-bg: rgba(18, 19, 23, .78);
  --footer-bg: rgba(18, 19, 23, .7);
  --field-bg: rgba(18, 19, 23, .7);
  --sticky-bg: #16171c;
  --featured-top: #1d1f27;
  --btn-glow: rgba(255, 255, 255, .35);
  --accent-text: #8fb6fa;
  --danger: #fca5a5;
  --danger-line: #f87171;
  --success: #86efac;
  --backdrop: rgba(8, 9, 11, .6);
  --shadow-deep: rgba(0, 0, 0, .8);
  --icon-filter: grayscale(1) brightness(1.6);
  --cursor: rgba(255, 255, 255, .45);

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

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: dark;
}

/* ---------- Modo claro ---------- */
:root[data-theme="light"] {
  --bg: #eef0f4;
  --s1: #f7f8fa;
  --s2: #ffffff;
  --s3: #e3e6ec;
  --ink: #121317;
  --mute: #565b67;
  --mute-2: #7b808c;
  --line: rgba(18, 19, 23, .09);
  --line-2: rgba(18, 19, 23, .16);
  --btn: #121317;
  --btn-ink: #f7f8fa;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .12);
  --shadow: 0 30px 60px -30px rgba(18, 19, 23, .25);
  --ink-strong: #000000;
  --hover: rgba(18, 19, 23, .05);
  --hover-soft: rgba(18, 19, 23, .025);
  --line-3: rgba(18, 19, 23, .3);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .92);
  --header-bg: rgba(238, 240, 244, .82);
  --footer-bg: rgba(247, 248, 250, .85);
  --field-bg: #ffffff;
  --sticky-bg: #ffffff;
  --featured-top: #ffffff;
  --btn-glow: rgba(18, 19, 23, .25);
  --accent-text: #1d4ed8;
  --danger: #b91c1c;
  --danger-line: #dc2626;
  --success: #15803d;
  --backdrop: rgba(18, 19, 23, .35);
  --shadow-deep: rgba(18, 19, 23, .25);
  --icon-filter: grayscale(1) brightness(.35);
  --cursor: rgba(18, 19, 23, .4);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
svg use { pointer-events: none; }
html.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}
.mono { font-family: var(--f-mono); letter-spacing: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: .7rem 1rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* Palabras destacadas en titulares */
h1 em, h2 em, h3 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Pantalla de carga ---------- */
.splash {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background:
    radial-gradient(50vmax 50vmax at 50% 45%, rgba(59, 130, 246, .10), transparent 65%),
    var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease);
  /* Red de seguridad: aunque el JS falle, se oculta a los 4.5 s */
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.no-splash .splash { display: none; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash__inner { display: grid; justify-items: center; gap: 1.25rem; transition: transform 1s var(--ease), opacity .6s ease; }
.splash.is-out .splash__inner { transform: translateY(-40px); opacity: 0; }
/* Logo de la pantalla de carga: las letras suben una a una y la estrella aparece al final */
.splash__logo { width: clamp(200px, 40vw, 340px); height: auto; overflow: visible; fill: var(--ink); }
.splash__l {
  transform-box: fill-box; transform-origin: 50% 100%;
  opacity: 0; transform: translateY(34%);
  animation: splashLetter .8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.splash__spark {
  fill: var(--accent);
  transform-box: fill-box; transform-origin: center;
  transform: scale(0) rotate(-90deg);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, .9));
  animation: splashSpark .7s var(--ease) .7s forwards, splashPulse 1.4s ease-in-out 1.4s infinite;
}
.splash__sub {
  font-size: .72rem; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--mute);
  opacity: 0;
  animation: splashWord .9s var(--ease) .55s forwards;
}
.splash__bar { width: 120px; height: 1px; background: var(--line-2); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: splashBar 1.35s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
@keyframes splashLetter { to { opacity: 1; transform: none; } }
@keyframes splashSpark { 60% { transform: scale(1.4) rotate(10deg); } to { transform: scale(1) rotate(0deg); } }
@keyframes splashPulse { 50% { opacity: .45; } }
@keyframes splashWord { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes splashBar { to { transform: scaleX(1); } }

/* Entrada del hero: arranca cuando se abre la pantalla de carga (.is-ready) */
.js:not(.is-ready) .hero__title,
.js:not(.is-ready) .hero__lead,
.js:not(.is-ready) .hero__actions > *,
.js:not(.is-ready) .hero__meta > div,
.js:not(.is-ready) .hero__visual,
.js:not(.is-ready) .header__inner,
.js:not(.is-ready) .scroll-cue {
  opacity: 0;
  /* Red de seguridad: se muestra igual si el JS no marca .is-ready */
  animation: heroSafety .01s 5s forwards;
}
@keyframes heroSafety { to { opacity: 1; transform: none; filter: none; } }

/* Titular: cada palabra sube detrás de una máscara */
.hero__title .w {
  display: inline-block; overflow: hidden;
  padding: 0 .09em .2em 0; margin: 0 -.09em -.2em 0;
}
.hero__title .w__i { display: inline-block; transform-origin: 0 100%; }
.is-ready .hero__title .w__i { animation: wordUp 1.15s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 75ms + 60ms); }
.is-ready .hero__title .w__i--em { animation-name: wordFocus; animation-duration: 1.4s; }
@keyframes wordUp { from { transform: translateY(108%) rotate(6deg); } }
@keyframes wordFocus { from { transform: translateY(70%); opacity: 0; filter: blur(12px); } }

.is-ready .hero__lead { animation: heroFocus 1.1s var(--ease) .45s backwards; }
.is-ready .hero__actions > * { animation: heroUp .9s var(--ease) backwards; }
.is-ready .hero__actions > :nth-child(1) { animation-delay: .62s; }
.is-ready .hero__actions > :nth-child(2) { animation-delay: .72s; }
/* Línea de los datos: se dibuja de izquierda a derecha */
.js .hero__meta { position: relative; border-top-color: transparent; }
.js .hero__meta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--line); transform-origin: left;
}
.js:not(.is-ready) .hero__meta::before { transform: scaleX(0); }
.is-ready .hero__meta::before { animation: lineDraw 1.3s var(--ease) .8s backwards; }
.is-ready .hero__meta > div { animation: heroUp .8s var(--ease) backwards; }
.is-ready .hero__meta > :nth-child(1) { animation-delay: .9s; }
.is-ready .hero__meta > :nth-child(2) { animation-delay: 1s; }
.is-ready .hero__meta > :nth-child(3) { animation-delay: 1.1s; }
.is-ready .hero__visual { animation: heroUp 1.3s var(--ease) 1s backwards; }
.is-ready .header__inner { animation: headerIn 1s var(--ease) .1s backwards; }
.is-ready .scroll-cue { animation: heroUp 1s var(--ease) 1.4s backwards; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes heroFocus { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } }
@keyframes lineDraw { from { transform: scaleX(0); } }
@keyframes headerIn { from { opacity: 0; transform: translateY(-16px); } }
@keyframes heroFade { from { opacity: 0; } }

/* ---------- Fondo espacial ---------- */
.starfield {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Nebulosas: el contenedor externo se desplaza con el scroll (--p de 0 a 1),
   el interno flota en bucle lento. */
.space {
  --p: 0;
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.space__neb {
  position: absolute;
  width: 70vmax; height: 70vmax;
  will-change: transform;
  transition: transform 1.2s var(--ease);
}
.space__neb b {
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: nebFloat 46s ease-in-out infinite alternate;
}
.space__neb--a { left: -28vmax; top: -24vmax; transform: translate3d(calc(var(--p) * 45vw), calc(var(--p) * 70vh), 0); }
.space__neb--a b { background: radial-gradient(closest-side, rgba(59, 130, 246, .16), rgba(59, 130, 246, .05) 55%, transparent); }
.space__neb--b { right: -34vmax; top: 22vh; transform: translate3d(calc(var(--p) * -35vw), calc(var(--p) * -30vh), 0); }
.space__neb--b b { background: radial-gradient(closest-side, rgba(99, 102, 241, .12), rgba(99, 102, 241, .035) 55%, transparent); animation-duration: 58s; animation-delay: -20s; }
.space__neb--c { left: 12vw; bottom: -52vmax; width: 85vmax; height: 85vmax; transform: translate3d(calc(var(--p) * 12vw), calc(var(--p) * -55vh), 0); }
.space__neb--c b { background: radial-gradient(closest-side, rgba(56, 189, 248, .08), rgba(56, 189, 248, .02) 60%, transparent); animation-duration: 64s; animation-delay: -35s; }
@keyframes nebFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 5vh, 0) scale(.94); }
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--btn); color: var(--btn-ink); }
.btn--light:hover { background: var(--ink-strong); box-shadow: 0 14px 34px -14px var(--btn-glow); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--hover-soft); }
.btn--ghost:hover { border-color: var(--line-3); background: var(--hover); }
.btn--sm { --h: 42px; padding: 0 1.05rem; font-size: .875rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--hover); }
.icon-btn--line { border: 1px solid var(--line-2); }

.link-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--mute); font-size: .9rem; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
  padding: .4rem 0;
}
.link-btn:hover { color: var(--ink); }
.link-btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }

/* Selector segmentado (ES/EN, C$/US$) */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--hover-soft);
}
.seg__btn {
  min-width: 40px; height: 32px; padding: 0 .6rem;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  color: var(--mute);
  transition: background-color .3s ease, color .3s ease;
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
/* Logo: palabra ATLAS + "DIGITAL STUDIO" justificado al mismo ancho */
.logo { display: inline-grid; gap: 5px; flex: none; color: var(--ink); }
.logo__word { display: block; height: 21px; width: auto; fill: currentColor; overflow: visible; }
.logo__sub {
  display: block; font-family: var(--f-mono); font-size: 8px; line-height: 1;
  letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--mute);
}
.footer .logo__word { height: 30px; }
.footer .logo__sub { font-size: 11.4px; }

.nav { display: none; margin-inline: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  position: relative; display: block;
  padding: .5rem .8rem; border-radius: 999px;
  font-size: .9rem; color: var(--mute);
  transition: color .3s ease, background-color .3s ease;
}
.nav__list a:hover { color: var(--ink); }
.nav__list a.is-active { color: var(--ink); background: var(--hover); }

.header__tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header__tools .seg { display: none; }
.header__cta { display: none; }

.cart-btn { position: relative; border: 1px solid var(--line-2); }
.theme-btn { border: 1px solid var(--line-2); }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 600 .7rem/1 var(--f-mono);
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.cart-btn.has-items .cart-btn__count { transform: scale(1); }
.cart-btn.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (min-width: 720px) {
  .header__tools .seg { display: inline-flex; }
}
@media (min-width: 560px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header__tools { margin-left: 0; }
}

/* ---------- Menú móvil ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.menu {
  width: 100%; height: 100%; margin: 0; inset: 0;
  background: var(--bg);
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
}
.menu[open] { display: flex; flex-direction: column; animation: menuIn .6s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu__label { color: var(--mute); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.menu__list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em;
}
.menu__list .mono { font-size: .75rem; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.menu__tools { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.menu__foot { margin-top: auto; padding-top: 2rem; color: var(--mute); font-size: .78rem; overflow-wrap: anywhere; }

/* ---------- Encabezados de sección ---------- */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--row {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem;
}
.section__head--row > div:first-child { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mute);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.section__title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
  text-wrap: balance;
}
.section__title em { font-size: 1.08em; }
.section__lead { margin-top: 1.25rem; color: var(--mute); font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 60ch; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 5rem;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 2rem; align-items: center; position: relative; }
.hero__copy { position: relative; z-index: 2; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: .95; letter-spacing: -0.055em; font-weight: 800;
  text-wrap: balance;
}
.hero__title em { font-size: 1.06em; letter-spacing: -0.02em; padding-right: .04em; }
.hero__lead { margin-top: 1.6rem; max-width: 34rem; color: var(--mute); font-size: clamp(1.02rem, 1.5vw, 1.2rem); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero__meta {
  display: grid; gap: .9rem 2rem;
  margin-top: 2.8rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.hero__meta div { display: flex; gap: 1rem; align-items: baseline; }
.hero__meta dt { width: 5.5rem; flex: none; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute-2); }
.hero__meta dd { font-size: .92rem; }

.hero__visual {
  position: absolute; z-index: 1;
  top: -2rem; right: 0;
  width: min(100vw, 560px); aspect-ratio: 1;
  --vo: .55;
  opacity: var(--vo);
  pointer-events: none;
}
/* Planeta del hero: capa completa detrás del contenido, con la nave en órbita */
.hero__globe { position: absolute; inset: 0; z-index: 0; isolation: isolate; pointer-events: none; }
.js .hero__globe { transition: opacity 1.2s var(--ease); }
.js:not(.is-ready) .hero__globe { opacity: 0; animation: heroSafety .01s 5s forwards; }
.globe__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.orbit-rocket {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: clamp(44px, 4.6vw, 68px); aspect-ratio: 160 / 200;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero.is-flying .orbit-rocket { visibility: hidden; }
.rocket__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.rocket__flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .14s ease-in-out infinite alternate; }
.rocket__core { transform-box: fill-box; transform-origin: 50% 0; animation: flame .09s ease-in-out infinite alternate-reverse; }
.rocket__nozzle { position: absolute; left: 50%; top: 86%; width: 1px; height: 1px; }
/* Luces de las puntas de las alas */
.ship__light { fill: #93c5fd; filter: drop-shadow(0 0 3px #3b82f6); animation: shipBlink 1.6s steps(1, end) infinite; }
.ship__light--r { animation-delay: .8s; }
@keyframes shipBlink { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes flame {
  from { transform: scale(.94, .84); opacity: .85; }
  to { transform: scale(1.04, 1.12); opacity: 1; }
}

/* Cohete volador (vuelta al hero) y su estela */
.hero__trail { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.rocket-fly {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none;
  offset-anchor: 50% 50%;
  offset-rotate: auto;
  opacity: 0;
}
.rocket-fly__inner { position: relative; width: 100%; height: 100%; transform: rotate(90deg); }
.rocket-fly.is-on { opacity: 1; }
.float-card {
  position: absolute; display: none; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--mute); font-size: .7rem; }
.float-card--a { top: 18%; left: -4%; }
.float-card--b { bottom: 10%; right: 0; }
.float-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--accent); }
.float-card__num { font-size: 1.4rem; font-weight: 500; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2);
}
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--mute), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 640px) {
  .hero__meta { grid-template-columns: repeat(3, auto); }
  .hero__meta div { flex-direction: column; gap: .3rem; }
  .hero__meta dt { width: auto; }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .hero__visual { position: relative; top: auto; right: auto; width: 100%; max-width: 540px; justify-self: end; --vo: 1; opacity: var(--vo); pointer-events: auto; }
  .float-card { display: flex; }
}
@media (min-width: 980px) and (min-height: 960px) {
  .scroll-cue { display: flex; }
}

/* ---------- Métricas + marquee ---------- */
.metrics { border-block: 1px solid var(--line); background: var(--glass); }
.metrics__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.metric {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 2rem 1rem 2rem 0;
}
.metric:nth-child(n+3) { border-top: 1px solid var(--line); }
.metric:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.metric__num { font-family: var(--f-mono); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.metric__label { color: var(--mute); font-size: .9rem; }
@media (min-width: 820px) {
  .metrics__grid { grid-template-columns: repeat(4, 1fr); }
  .metric { padding: 2.6rem 1.5rem; }
  .metric:first-child { padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 0; }
  .metric + .metric { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}

.marquee {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 2.6rem; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: inline-flex; align-items: center; gap: .6rem; color: var(--mute); font-size: .92rem; white-space: nowrap; }
.marquee__track img { width: 20px; height: 20px; filter: var(--icon-filter); opacity: .8; }
.marquee__star { color: var(--accent); font-size: .75rem; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.3rem)); } }

/* ---------- Tarjetas genéricas / tilt ---------- */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease), border-color .3s ease, background-color .3s ease;
  will-change: transform;
}
[data-tilt].is-tilting { transition: transform .12s linear, border-color .3s ease; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 1rem; }
.service {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--s2), var(--s1));
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .1), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.service:hover { border-color: var(--line-2); }
.service:hover::before { opacity: 1; }
.service__num { color: var(--mute-2); font-size: .8rem; }
.service__title { font-size: 1.35rem; letter-spacing: -0.025em; font-weight: 650; line-height: 1.2; }
.service p { color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.tags li {
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-mono); font-size: .7rem; color: var(--mute);
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Planes ---------- */
.plans__cur { display: flex; align-items: center; gap: .75rem; color: var(--mute); font-size: .8rem; }
.plans { display: grid; gap: 1rem; align-items: start; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--s2), var(--s1));
}
.plan:hover { border-color: var(--line-2); }
.plan__kicker { font-size: .72rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .12em; }
.plan__name { margin-top: .6rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; }
.plan__desc { margin-top: .6rem; color: var(--mute); font-size: .95rem; }
.plan__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem;
  padding-block: 1.1rem; border-block: 1px solid var(--line);
}
.price { font-family: var(--f-mono); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.plan__price .price { font-size: clamp(1.9rem, 3.4vw, 2.4rem); line-height: 1; }
.price.is-placeholder { color: var(--mute); }
.plan__term { color: var(--mute); font-size: .8rem; }
.plan__features { display: grid; gap: .7rem; }
.plan__features li {
  position: relative; padding-left: 1.75rem;
  font-size: .92rem; line-height: 1.45;
}
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: .12em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%233b82f6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.plan__add { margin-top: auto; }
.plan__add.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }

.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--featured-top), var(--s1)) padding-box,
    linear-gradient(160deg, rgba(59, 130, 246, .75), var(--line-2) 40%, var(--line) 70%, rgba(59, 130, 246, .35)) border-box;
  box-shadow: 0 40px 90px -40px rgba(59, 130, 246, .35);
}
.plan--featured:hover { border-color: transparent; }
.plan__badge {
  position: absolute; top: -12px; right: 1.5rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 22px -6px rgba(59, 130, 246, .6);
}
.js .plan--featured .plan__features li:nth-child(n+8) { display: none; }
.js .plan--featured.is-open .plan__features li:nth-child(n+8) { display: block; animation: fadeUp .5s var(--ease) both; }
.plan__more { align-self: flex-start; margin-top: -.5rem; }
.no-js .plan__more { display: none; }
.plan--featured.is-open .plan__more svg { transform: rotate(45deg); }
.plan__actions { display: grid; gap: .6rem; margin-top: auto; }
.plan__actions .plan__add { margin-top: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { grid-column: 1 / -1; }
  .plan--featured .plan__features { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .plan__actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 1100px) {
  .plans { grid-template-columns: 1fr 1fr 1.25fr; }
  .plan--featured { grid-column: auto; }
  .plan--featured .plan__features { grid-template-columns: 1fr; }
  .plan__actions { grid-template-columns: 1fr; }
}

/* Extras */
.extras {
  margin-top: 1rem;
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(23, 24, 29, .6);
}
.extras__title { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
.extras__head p { color: var(--mute); font-size: .9rem; margin-top: .3rem; }
.extras__list { display: grid; gap: .6rem; }
.chk {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--s1);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.chk:hover { border-color: var(--line-2); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk__box {
  width: 20px; height: 20px; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 6px;
  display: grid; place-items: center;
  transition: background-color .25s ease, border-color .25s ease;
}
.chk__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .25s ease, transform .4s var(--ease); }
.chk input:checked + .chk__box { background: var(--accent); border-color: var(--accent); }
.chk input:checked + .chk__box svg { opacity: 1; transform: none; }
.chk input:focus-visible + .chk__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.chk:has(input:checked) { border-color: rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .06); }
.chk__label { flex: 1; font-size: .9rem; line-height: 1.35; }
.chk__price { font-family: var(--f-mono); font-size: .8rem; color: var(--mute); white-space: nowrap; text-align: right; }
.chk__price small { display: block; font-size: .68rem; color: var(--mute-2); }
@media (min-width: 640px) { .extras__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .extras { grid-template-columns: 220px 1fr; align-items: start; }
  .extras__list { grid-template-columns: repeat(3, 1fr); }
}

/* Comparar planes */
.compare { margin-top: clamp(3rem, 6vw, 4.5rem); }
.compare__title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.compare__scroll {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(23, 24, 29, .6);
  -webkit-overflow-scrolling: touch;
}
.compare__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.compare__table th, .compare__table td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare__table tbody th, .compare__table tfoot th { text-align: left; font-weight: 500; color: var(--ink); }
.compare__table thead th { font-size: .8rem; font-weight: 600; color: var(--mute); vertical-align: bottom; }
.compare__table thead th:first-child { text-align: left; }
.compare__table tbody tr:hover { background: var(--hover-soft); }
.compare__table tfoot th, .compare__table tfoot td { border-bottom: 0; padding-block: 1.1rem; }
.compare__table tfoot .price { font-size: 1rem; }
.compare__table th:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--sticky-bg);
  min-width: 210px;
}
.compare__table .is-featured { background: rgba(59, 130, 246, .06); }
.compare__table thead .is-featured { color: var(--ink); }
.compare__table td.y, .compare__table td.n { position: relative; }
.compare__table td.y::before, .compare__table td.n::before {
  content: ""; display: inline-block; width: 22px; height: 22px; vertical-align: middle; border-radius: 50%;
}
.compare__table td.y::before {
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%233b82f6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.compare__table td.n::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 12h8' fill='none' stroke='%23767782' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Demo Plan Completo ---------- */
.demo { overflow: hidden; }
.demo__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.demo__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 2rem; }
.demo__chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .82rem; color: var(--ink);
}
.demo__chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.browser {
  display: block;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--s1);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--s2);
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); }
.browser__bar span {
  margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--hover);
  font-size: .68rem; color: var(--mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.browser__view { position: relative; }
.demo__shot figcaption { padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--mute); }

.hotspots li {
  position: absolute; left: var(--x); top: var(--y);
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .25);
}
.hotspots li::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.6s var(--ease) infinite;
}
.hotspots li:nth-child(2)::after { animation-delay: .5s; }
.hotspots li:nth-child(3)::after { animation-delay: 1s; }
.hotspots li:nth-child(4)::after { animation-delay: 1.5s; }
.hotspots li:nth-child(5)::after { animation-delay: 2s; }
.hotspots span {
  position: absolute; top: 50%; right: calc(100% + 10px); transform: translateY(-50%);
  padding: .3rem .6rem; border-radius: 8px;
  background: rgba(18, 19, 23, .92); border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--f-mono); font-size: .66rem; white-space: nowrap; color: #ededf0;
  display: none;
}
.hotspots li:nth-child(4) span { right: auto; left: calc(100% + 10px); }
@media (min-width: 720px) { .hotspots span { display: block; } }
@media (min-width: 980px) {
  .demo__grid { grid-template-columns: .85fr 1.15fr; }
}

/* ---------- Proceso ---------- */
.process { position: relative; display: grid; gap: 1rem; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(var(--accent) var(--progress, 0%), var(--line-2) var(--progress, 0%));
}
.step {
  position: relative;
  padding: 0 0 1.5rem 3.4rem;
}
.step__node {
  position: absolute; left: 12px; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.step.is-lit .step__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px rgba(59, 130, 246, .7); }
.step__num { font-size: .75rem; color: var(--mute-2); }
.step__title { margin: .4rem 0 .6rem; font-size: 1.3rem; font-weight: 650; letter-spacing: -0.025em; }
.step p { color: var(--mute); font-size: .95rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .process::before {
    left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, var(--accent) var(--progress, 0%), var(--line-2) var(--progress, 0%));
  }
  .step { padding: 2.4rem 0 0; }
  .step__node { left: 0; top: 0; }
}

/* ---------- Portafolio (carrusel) ---------- */
.carousel__nav { display: flex; align-items: center; gap: .75rem; }
.carousel__count { min-width: 4.6rem; text-align: center; font-size: .9rem; color: var(--mute); }
.carousel__count span:first-child { color: var(--ink); }
.carousel__track {
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  position: relative;
  display: flex; gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: .5rem var(--pad) 1.5rem;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; border-radius: 0; }
.project {
  flex: 0 0 min(88%, 1040px);
  scroll-snap-align: start;
  display: grid; gap: 1.25rem;
  padding: clamp(.9rem, 2vw, 1.25rem);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--s2), var(--s1));
  transition: opacity .6s var(--ease), border-color .3s ease;
}
.js .project:not(.is-current) { opacity: .5; }
.project__media { box-shadow: none; aspect-ratio: 16 / 10.6; display: flex; flex-direction: column; }
.project__media img { flex: 1; width: 100%; min-height: 0; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__info { display: flex; flex-direction: column; gap: .8rem; padding: .25rem .5rem .5rem; }
.project__info > p:not(.project__meta):not(.project__cat) { color: var(--mute); }
.project__info .btn { align-self: flex-start; margin-top: auto; }
.project__meta { display: flex; align-items: center; gap: .75rem; font-size: .78rem; color: var(--mute-2); }
.badge {
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(59, 130, 246, .35);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
}
.project__name { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.project__cat { font-size: .74rem; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 900px) {
  .project { grid-template-columns: 1.45fr 1fr; align-items: stretch; }
  .project__info { padding: 1.5rem 1rem 1rem; }
}

/* ---------- Sobre nosotros ---------- */
.about__grid { display: grid; gap: 0; }
.traits { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.traits li { padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; }
.founder {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--s1);
  max-width: 380px;
}
.founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.founder__name { font-weight: 650; }
.founder__role { font-size: .72rem; color: var(--mute); }
@media (min-width: 980px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .about__body .section__lead:first-child { margin-top: 2.1rem; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 1rem; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em;
  transition: color .3s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%;
  width: 14px; height: 1.5px; background: var(--mute);
  transition: transform .5s var(--ease), background-color .3s ease;
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa summary:hover { color: var(--ink-strong); }
.qa summary:hover::before, .qa summary:hover::after { background: var(--ink); }
.qa__a { padding: 0 2.5rem 1.5rem 0; color: var(--mute); }
.qa[open] .qa__a { animation: fadeUp .5s var(--ease); }
@media (min-width: 980px) {
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq .section__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Contacto ---------- */
.contact__card {
  position: relative; overflow: hidden;
  display: grid; gap: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(59, 130, 246, .12), transparent 60%),
    linear-gradient(180deg, var(--s2), var(--s1));
}
.contact__links { display: grid; gap: .6rem; margin-top: 2rem; }
.contact__links a {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .3s ease, background-color .3s ease;
  overflow-wrap: anywhere;
}
.contact__links a:hover { border-color: var(--line-2); background: var(--hover-soft); }
.contact__links svg { width: 22px; height: 22px; flex: none; color: var(--mute); }
.contact__links small { display: block; font-size: .68rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 980px) { .contact__card { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 500; color: var(--mute); }
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--field-bg);
  font-size: 1rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: var(--mute-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger-line); }
.field--radios { border: 0; padding: 0; margin: 0; }
.field--radios legend { margin-bottom: .45rem; padding: 0; }
.field--radios > div { display: grid; gap: .5rem; }
.radio {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  cursor: pointer; font-size: .92rem;
}
.radio input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.radio:has(input:checked) { border-color: rgba(59, 130, 246, .55); background: rgba(59, 130, 246, .06); }
.form__error { min-height: 1.2em; color: var(--danger); font-size: .85rem; }
.form__error:empty { min-height: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 4rem; background: var(--footer-bg); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { margin-top: 1rem; color: var(--mute); max-width: 34ch; font-size: .92rem; }
.footer__h { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--mute-2); margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: var(--mute); font-size: .92rem; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.5rem 6rem;
  border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--mute-2);
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { padding-bottom: 1.5rem; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #0b2e17;
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .55);
  transition: transform .5s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Drawer del carrito ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(440px, 100%); height: 100%;
  background: var(--s1);
  border-left: 1px solid var(--line-2);
  box-shadow: -40px 0 80px -40px var(--shadow-deep);
}
.drawer[open] { animation: drawerIn .55s var(--ease); }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; }
.drawer__head .seg { margin-left: auto; margin-right: .5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem; display: grid; gap: 1.5rem; align-content: start; }
.drawer__extras { border: 0; margin: 0; padding: 0; }
.drawer__extras legend { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: .8rem; padding: 0; }
.drawer__extras ul { display: grid; gap: .5rem; }
.drawer__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; background: var(--s2); }
.drawer__foot .link-btn { justify-self: center; }
.drawer__note { font-size: .68rem; color: var(--mute-2); text-align: center; }
.drawer.is-empty .drawer__extras, .drawer.is-empty .drawer__foot { display: none; }

.line-item {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  padding: 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--s2);
}
.line-item__kicker { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .68rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .1em; }
.line-item__name { font-weight: 650; }
.line-item__price { font-family: var(--f-mono); }
.line-item__actions { grid-column: 1 / -1; display: flex; gap: 1rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--mute); display: grid; gap: 1rem; justify-items: center; }
.empty svg { width: 40px; height: 40px; color: var(--mute-2); }

.totals { display: grid; gap: .4rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--mute); }
.totals dd { font-family: var(--f-mono); color: var(--ink); text-align: right; }
.totals .totals__grand { padding-top: .6rem; margin-top: .3rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1rem; }
.totals .totals__grand dd { font-size: 1.2rem; }

/* ---------- Modal de checkout ---------- */
.modal {
  width: min(920px, calc(100% - 1.5rem));
  max-height: calc(100svh - 1.5rem);
  margin: auto;
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px);
  background: var(--s1);
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.checkout { display: grid; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.25rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal__head .eyebrow { margin-bottom: .4rem; }
.modal__head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.checkout__grid { display: grid; gap: 1.5rem; padding: 1.5rem; }
.checkout__fields { display: grid; gap: 1rem; align-content: start; }
.checkout__safe { font-size: .72rem; color: var(--mute-2); }
.checkout__summary {
  padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--s2); align-self: start;
}
.checkout__summary h3 { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 1rem; }
.sum-list { display: grid; gap: .6rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sum-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.sum-list li span:last-child { font-family: var(--f-mono); white-space: nowrap; }
.sum-list li.is-sub { color: var(--mute); font-size: .85rem; }
.checkout > .form__error { padding: 0 1.5rem; }
.modal__foot {
  position: sticky; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem;
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, var(--s1) 30%);
}
.modal__foot .btn { flex: 1 1 240px; }
@media (max-height: 640px) { .modal__foot { position: static; } }
@media (min-width: 780px) {
  .checkout__grid { grid-template-columns: 1.2fr 1fr; }
  .modal__foot .btn { flex: 0 0 auto; }
}

/* ---------- Recomendador de plan ---------- */
.plans__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.quiz { width: min(640px, calc(100% - 1.5rem)); }
.quiz__body { padding: 1.25rem 1.5rem .25rem; }
.quiz__progress { height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: var(--w, 25%); background: var(--accent); transition: width .6s var(--ease); }
.quiz__count { margin: .8rem 0 1.1rem; font-size: .72rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .1em; }
.quiz__step { display: grid; gap: .6rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__step:not([hidden]) { animation: fadeUp .5s var(--ease); }
.quiz__step legend { padding: 0; margin-bottom: 1rem; font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; }
.quiz__step legend:focus { outline: none; }
.opt {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease;
}
.opt:hover { border-color: var(--line-3); }
.opt input { width: 18px; height: 18px; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.opt strong { display: block; font-weight: 600; }
.opt small { display: block; margin-top: .15rem; color: var(--mute); font-size: .85rem; }
.opt:has(input:checked) { border-color: rgba(59, 130, 246, .6); background: rgba(59, 130, 246, .07); }
.quiz__foot { justify-content: flex-end; }
.quiz__foot .btn { flex: 0 1 auto; }
.quiz__foot [data-quiz-back] { margin-right: auto; }
.quiz__result:focus { outline: none; }
.quiz__result:not([hidden]) { display: grid; gap: 1.25rem; margin-top: 1.4rem; animation: fadeUp .6s var(--ease); }
.rec__kicker { font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.rec__name { margin-top: .4rem; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.rec__price { margin-top: .5rem; display: flex; align-items: baseline; gap: .6rem; color: var(--mute); font-size: .85rem; }
.rec__price .price { color: var(--ink); font-size: 1.4rem; }
.rec__extras { display: grid; gap: .5rem; }
.rec__extras > p { font-size: .82rem; color: var(--mute); }
.rec__extras ul { display: grid; gap: .5rem; }
.rec__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 1rem; }
.rec__actions .btn { flex: 1 1 220px; }

/* ---------- Garantías ---------- */
.guarantees { margin-top: clamp(4rem, 8vw, 6rem); }
.guarantees__title { margin-bottom: 2rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.guarantees__grid { display: grid; gap: 1rem; }
.gua {
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
}
.gua__icon { width: 26px; height: 26px; margin-bottom: 1rem; color: var(--accent); }
.gua h4 { margin-bottom: .4rem; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.02em; }
.gua p { color: var(--mute); font-size: .93rem; }
.gua .gua__detail { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .72rem; color: var(--ink); }
@media (min-width: 640px) { .guarantees__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .guarantees__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Formulario: extras ---------- */
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .88rem; color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__status:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.form__actions .btn { flex: 1 1 200px; }
.form__actions .btn[disabled] { opacity: .6; cursor: progress; }
.form__legal { font-size: .78rem; color: var(--mute-2); }
.form__legal a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.form__legal a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a:hover { color: var(--ink); }

/* ---------- Páginas legales ---------- */
.header__tools .seg--always { display: inline-flex; }
.logo + .header__tools { margin-left: auto; }          /* páginas sin navegación */
@media (max-width: 559px) {
  .header__back { width: 42px; padding: 0; }
  .header__back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.legal { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(4rem, 8vw, 6rem); }
.legal__wrap { max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.legal__date { margin-top: 1rem; font-size: .75rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .1em; }
.legal__intro { margin-top: 1.5rem; font-size: 1.08rem; color: var(--mute); }
.legal h2 { margin: 2.6rem 0 .75rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--mute); }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .45rem; margin-top: .6rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal__note { margin-top: 3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--s1); font-size: .9rem; }
.footer--slim { padding-top: 0; }
.footer--slim .footer__bottom { padding-bottom: 1.5rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease), visibility 0s .6s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- Cursor personalizado (solo escritorio) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--cursor); border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s ease, border-color .35s ease;
}
.cursor.is-ready { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--hover); border-color: var(--line-3); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reveal al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .space__neb b { animation: none; }
  .space__neb { transition: none; }
  .rocket__flame, .rocket__core, .ship__light { animation: none; }
  .rocket-fly, .hero__trail { display: none; }
  .splash__l, .splash__spark { animation: none; opacity: 1; transform: none; }
  .splash__sub { animation: none; opacity: 1; }
  .splash__bar { display: none; }
  .splash { transition: opacity .3s ease; }
  .splash.is-out { clip-path: inset(0 0 0 0); opacity: 0; }
  .splash.is-out .splash__inner { transform: none; }
  .is-ready .hero__title .w__i, .is-ready .hero__lead, .is-ready .hero__actions > *,
  .is-ready .hero__meta > div, .is-ready .hero__visual, .is-ready .header__inner, .is-ready .scroll-cue { animation-name: heroFade; }
  .is-ready .hero__meta::before { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: .8rem; }
  .marquee__track [aria-hidden="true"].is-clone { display: none; }
  .hotspots li::after, .scroll-cue i { animation: none; }
  .drawer[open], .modal[open], .menu[open] { animation: none; }
  [data-tilt] { transform: none !important; }
  .cursor { display: none; }
  .project__media img, .btn, .btn svg { transition: none; }
}

/* ---------- Cotización imprimible ---------- */
.receipt { display: none; }

@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: #fff !important; color: #111 !important; }
  body > *:not(.receipt) { display: none !important; }
  .receipt { display: block !important; font-family: var(--f-body); color: #111; font-size: 11pt; line-height: 1.45; }
  .receipt * { color: #111; }
  .rc-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10mm; border-bottom: 1.5pt solid #111; }
  .rc-brand { display: flex; align-items: center; gap: 4mm; }
  .rc-brand svg { height: 8mm; width: auto; fill: #111; }
  .rc-brand strong { font-size: 15pt; letter-spacing: -0.02em; }
  .rc-brand small, .rc-muted { color: #555 !important; font-size: 9pt; }
  .rc-doc { text-align: right; }
  .rc-doc h1 { font-size: 18pt; letter-spacing: -0.02em; }
  .rc-mono { font-family: var(--f-mono); }
  .rc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin: 8mm 0; }
  .rc-cols h2, .rc-section h2 { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .12em; color: #555 !important; margin-bottom: 2mm; font-weight: 600; }
  .rc-table { width: 100%; border-collapse: collapse; margin-top: 4mm; }
  .rc-table th, .rc-table td { padding: 3mm 2mm; border-bottom: .5pt solid #ccc; text-align: left; }
  .rc-table th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .1em; color: #555 !important; }
  .rc-table td:last-child, .rc-table th:last-child { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
  .rc-table tfoot td { border-bottom: 0; font-weight: 700; font-size: 12pt; padding-top: 4mm; }
  .rc-section { margin-top: 8mm; padding-top: 5mm; border-top: .5pt solid #ccc; }
  .rc-foot { margin-top: 12mm; font-size: 9pt; color: #555 !important; }
}
