/* ==========================================================================
   AxStudio · Landing home — hoja principal
   Fuente de verdad del diseño: planos/Home_AxStudio_standalone_v6.html
   Sin bundler, sin dependencias en runtime, fuentes autoalojadas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 · Fuentes autoalojadas (subconjuntos latin + latin-ext)
   Geist = cuerpo · Outfit = títulos · JetBrains Mono = etiquetas
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Métricas de respaldo: la fuente de sistema ocupa el mismo alto/ancho
   mientras carga la real, para que el texto no salte (CLS ≈ 0).
   Overrides derivados de las métricas reales de cada woff2. */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 102.2%;
  ascent-override: 98.34%;
  descent-override: 28.87%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 88.7%;
  ascent-override: 112.74%;
  descent-override: 29.31%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Courier New'), local('Liberation Mono');
  size-adjust: 106.05%;
  ascent-override: 96.18%;
  descent-override: 28.29%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   2 · Tokens
   Los tonos de texto son sólidos (no rgba) para garantizar el contraste
   medido sobre el fondo #F5F5F7. Ver landing/README.md §Contraste.
   -------------------------------------------------------------------------- */
:root {
  --ax-bg: #F5F5F7;
  --ax-ink: #1D1D1F;          /* 15.9:1 sobre --ax-bg */
  --ax-ink-2: #6F6F70;        /*  4.6:1 — texto secundario */
  --ax-ink-3: #626263;        /*  5.6:1 — etiquetas y pies */
  --ax-accent: #0071E3;       /* superficies: degradados, rellenos, bordes, foco */
  --ax-accent-ink: #0063C6;   /*  5.4:1 — el mismo azul, pero para TEXTO (AA) */
  --ax-accent-2: #0055B0;
  --ax-ok: #16a34a;
  --ax-ok-ink: #0A7D51;       /*  5.0:1 — texto "Disponible" */

  --ax-surface: rgba(255, 255, 255, .72);
  --ax-line: rgba(0, 0, 0, .06);
  --ax-line-strong: rgba(29, 29, 31, .22);

  --ax-dark: #0A0D14;
  --ax-dark-card: #12151F;
  --ax-dark-ink: #F1F5F9;
  --ax-dark-ink-2: rgba(241, 245, 249, .66);  /* 7.0:1 sobre --ax-dark-card */

  --ax-r-card: 24px;
  --ax-r-pill: 999px;
  --ax-shadow: 0 6px 24px rgba(0, 0, 0, .06);
  --ax-shadow-blue: 0 14px 40px rgba(0, 113, 227, .14);
  --ax-ease: cubic-bezier(.2, .7, .2, 1);

  --ax-pad-x: clamp(20px, 5vw, 48px);
  --ax-max: 1160px;

  --ax-font: 'Geist', 'Geist Fallback', system-ui, -apple-system, sans-serif;
  --ax-font-title: 'Outfit', 'Outfit Fallback', system-ui, -apple-system, sans-serif;
  --ax-font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;
}

/* --------------------------------------------------------------------------
   3 · Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ax-bg);
  color: var(--ax-ink);
  font-family: var(--ax-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Nada de overflow-x aquí: en <body> el navegador lo propaga al viewport y
     deja de recortar. El recorte vive en .ax-page. */
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--ax-accent-ink); text-decoration: none; }
a:hover { color: var(--ax-accent-2); }

button { font: inherit; }

::selection { background: rgba(0, 113, 227, .18); }

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

.ax-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Saltar al contenido — sólo visible con teclado */
.ax-skip {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 200;
  transform: translate(-50%, -160%);
  background: #FFFFFF;
  color: var(--ax-ink);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-pill);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--ax-shadow);
  transition: transform .18s var(--ax-ease);
}
.ax-skip:focus { transform: translate(-50%, 0); }

/* Fondo del sitio: profundidad estática. Sin bucles ambientales.
   `overflow-x: clip` va AQUÍ y no en <body>: puesto en body, el navegador lo
   propaga al viewport y deja de recortar, así que el halo del hero (que sobresale
   a propósito con inset negativo) provocaba scroll horizontal a 320 px. */
.ax-page {
  overflow-x: clip;
  background-color: var(--ax-bg);
  background-image:
    radial-gradient(900px 620px at 12% -120px, rgba(0, 113, 227, .09), transparent 60%),
    radial-gradient(circle, rgba(29, 29, 31, .055) 1px, transparent 1.4px);
  background-size: auto, 24px 24px;
  min-height: 100vh;
}

.ax-wrap { max-width: var(--ax-max); margin: 0 auto; }
.ax-section { padding: 56px var(--ax-pad-x); }
.ax-section--tight { padding: 48px var(--ax-pad-x); }

/* --------------------------------------------------------------------------
   4 · Tipografía
   -------------------------------------------------------------------------- */
.ax-h1 {
  margin: 0 0 18px;
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: pretty;
  color: var(--ax-ink);
}
.ax-h2 {
  margin: 0 0 28px;
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: pretty;
  color: var(--ax-ink);
}
.ax-h3 {
  margin: 0 0 10px;
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.3;
  letter-spacing: -.02em;
}
/* Los tres renglones del titular se apilan sólo cuando hay ancho para ello;
   en móvil fluyen y se cortan solos, sin desbordar. */
.ax-h1__l, .ax-h1 .ax-grad { display: inline; }
@media (min-width: 760px) {
  .ax-h1__l, .ax-h1 .ax-grad { display: block; }
}

.ax-lead {
  margin: 0;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ax-ink-2);
}
.ax-grad {
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ax-mono {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ax-ink-3);
}
.ax-note { margin: 0; font-size: 13px; color: var(--ax-ink-3); }

/* --------------------------------------------------------------------------
   5 · Botones
   -------------------------------------------------------------------------- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: var(--ax-r-pill);
  font-weight: 600;
  font-size: 13.5px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s var(--ax-ease), box-shadow .15s ease, color .15s ease;
}
.ax-btn--primary {
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-accent-2));
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 30px rgba(0, 113, 227, .35);
}
.ax-btn--primary:hover {
  color: #FFFFFF;
  transform: scale(1.02);
  box-shadow: 0 6px 34px rgba(0, 113, 227, .5);
}
.ax-btn--primary:active { transform: scale(.98); }

.ax-btn--ghost {
  background: transparent;
  color: var(--ax-accent-ink);
  border: 1px solid var(--ax-line-strong);
}
.ax-btn--ghost:hover { color: var(--ax-ink); transform: scale(1.02); }
.ax-btn--ghost:active { transform: scale(.98); }

.ax-btn--quiet { color: var(--ax-ink-2); }
.ax-btn--quiet:hover { color: var(--ax-ink); }

.ax-btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   6 · Tarjeta base
   -------------------------------------------------------------------------- */
.ax-card {
  background: var(--ax-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-card);
  box-shadow: var(--ax-shadow);
  transition: border-color .15s ease, box-shadow .22s ease, transform .22s ease;
}
.ax-card--hover:hover {
  border-color: rgba(0, 113, 227, .4);
  box-shadow: 0 14px 36px rgba(0, 113, 227, .10);
  transform: translateY(-2px);
}
.ax-card--accent {
  border-color: rgba(0, 113, 227, .4);
  box-shadow: var(--ax-shadow-blue);
}

.ax-badge {
  align-self: flex-start;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--ax-r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
.ax-badge--on {
  color: var(--ax-ok-ink);
  border: 1px solid rgba(10, 125, 81, .35);
  background: rgba(10, 125, 81, .08);
}
.ax-badge--soon {
  color: var(--ax-ink-3);
  border: 1px solid rgba(29, 29, 31, .18);
  background: rgba(29, 29, 31, .05);
}
.ax-badge--blue {
  color: var(--ax-accent-ink);
  border: 1px solid rgba(0, 113, 227, .35);
  background: rgba(0, 113, 227, .08);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   7 · Navegación
   -------------------------------------------------------------------------- */
.ax-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ax-line);
}
.ax-nav__bar {
  max-width: var(--ax-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--ax-pad-x);
  min-height: 60px;
}
.ax-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.ax-brand:hover { color: inherit; }
.ax-brand:hover .ax-brand__name { color: var(--ax-accent-ink); }
.ax-brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ax-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ax-brand__mark svg { width: 16px; height: 16px; color: #FFFFFF; }
.ax-brand__name {
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ax-ink);
}

.ax-nav__links { display: flex; align-items: center; gap: 26px; }
.ax-nav__link {
  color: var(--ax-ink-2);
  font-weight: 500;
  font-size: 13.5px;
}
.ax-nav__link:hover { color: var(--ax-ink); }
.ax-nav__cta { padding: 10px 18px; font-size: 13px; }

/* Barra de progreso de lectura (sólo con JS) */
.ax-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--ax-accent), var(--ax-accent-2));
  box-shadow: 0 0 12px rgba(0, 113, 227, .5);
  transition: width .1s linear;
}

/* Menú móvil — <details> nativo: funciona sin JavaScript */
.ax-menu { display: none; }
.ax-menu > summary {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.ax-menu > summary::-webkit-details-marker { display: none; }
.ax-menu > summary::marker { content: ''; }
.ax-menu__icon-close, .ax-menu[open] .ax-menu__icon-open { display: none; }
.ax-menu[open] .ax-menu__icon-close { display: block; }
.ax-menu__panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  border-top: 1px solid var(--ax-line);
  background: #FFFFFF;
  padding: 8px var(--ax-pad-x) 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(29, 29, 31, .10);
}
.ax-menu__panel a {
  color: var(--ax-ink);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.ax-menu__panel a:last-child {
  border-bottom: none;
  margin-top: 10px;
  justify-content: center;
  padding: 13px 22px;
}

@media (max-width: 879px) {
  .ax-nav__links { display: none; }
  .ax-menu { display: block; }
}

/* --------------------------------------------------------------------------
   8 · Hero
   -------------------------------------------------------------------------- */
.ax-hero {
  position: relative;
  padding: clamp(48px, 7vw, 84px) var(--ax-pad-x) 64px;
}
/* Grano estático sobre el hero — imagen fija, nunca animada. */
.ax-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPSczJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzE4MCcgaGVpZ2h0PScxODAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC4wMzUnLz48L3N2Zz4=);
}
.ax-hero__grid {
  max-width: var(--ax-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}
.ax-hero__copy { flex: 1 1 460px; min-width: 0; }
.ax-hero__art { flex: 1 1 480px; display: flex; justify-content: center; min-width: 0; }
.ax-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
}

/* Escenario del mockup */
.ax-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 26px 0 54px;
}
.ax-stage__glow {
  position: absolute;
  inset: -18% -22% -22%;
  background:
    radial-gradient(50% 46% at 52% 46%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .45) 42%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(42% 40% at 20% 16%, rgba(0, 113, 227, .14), rgba(0, 113, 227, 0) 76%);
  filter: blur(18px);
  pointer-events: none;
}
.ax-demo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ax-ink-3);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(29, 29, 31, .14);
  border-radius: var(--ax-r-pill);
  padding: 5px 12px;
  box-shadow: 0 6px 18px rgba(29, 29, 31, .10);
  white-space: nowrap;
}

.ax-laptop { position: relative; transform: perspective(1600px) rotateX(5deg) rotateY(-7deg); }
.ax-laptop__screen {
  border-radius: 14px;
  border: 1px solid rgba(29, 29, 31, .14);
  background: var(--ax-ink);
  padding: 9px 9px 10px;
  box-shadow: 0 50px 90px rgba(29, 29, 31, .26), 0 16px 34px rgba(29, 29, 31, .14);
}
.ax-laptop__screen > div { border-radius: 7px; overflow: hidden; background: var(--ax-bg); }
.ax-laptop__base {
  width: 112%;
  margin-left: -6%;
  height: 13px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #D6D9DE, #A9AEB6);
  box-shadow: 0 18px 30px rgba(29, 29, 31, .18);
}
.ax-laptop__foot {
  width: 16%; height: 4px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: rgba(29, 29, 31, .22);
}
.ax-phone {
  position: absolute;
  left: -2%; bottom: 0;
  width: clamp(112px, 24%, 168px);
  border-radius: 26px;
  border: 7px solid var(--ax-ink);
  background: var(--ax-ink);
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 34px 64px rgba(29, 29, 31, .30), 0 8px 20px rgba(0, 113, 227, .12);
}

/* Piezas animadas del hero */
.ax-float {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 18px 44px rgba(29, 29, 31, .14);
}
.ax-bubble {
  position: absolute;
  right: 0; top: 6px;
  width: min(228px, 62%);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 14px;
  animation: axMsg 15s var(--ax-ease) infinite;
}
.ax-bubble__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.ax-dot {
  width: 7px; height: 7px;
  border-radius: var(--ax-r-pill);
  background: var(--ax-ok);
  flex-shrink: 0;
}
.ax-bubble__tag {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ax-ink-3);
  line-height: 1.3;
}
.ax-bubble__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ax-ink);
}

.ax-paid {
  position: absolute;
  right: 4%; bottom: 74px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--ax-r-pill);
  padding: 9px 15px;
  box-shadow: 0 16px 38px rgba(29, 29, 31, .13);
  animation: axPaid 15s var(--ax-ease) infinite;
}
.ax-paid__check {
  width: 18px; height: 18px;
  border-radius: var(--ax-r-pill);
  background: var(--ax-ok);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ax-paid__text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-ink);
  white-space: nowrap;
}

.ax-counter {
  position: absolute;
  left: 20%; bottom: 8px;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(29, 29, 31, .13);
}
.ax-counter__label {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ax-ink-3);
  margin-bottom: 4px;
}
.ax-counter__slot {
  position: relative;
  height: 28px;
  width: 84px;
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--ax-ok);
  font-variant-numeric: tabular-nums;
}
.ax-counter__slot span { position: absolute; inset: 0; }
.ax-num--1 { animation: axNum1 15s steps(1) infinite; }
.ax-num--2 { opacity: 0; animation: axNum2 15s steps(1) infinite; }
.ax-num--3 { opacity: 0; animation: axNum3 15s steps(1) infinite; }

/* Secuencia del hero: llega el recordatorio → se marca el pago → sube el
   contador. Bucle lento (15 s) y espaciado. Sólo transform y opacity. */
@keyframes axMsg {
  0%, 4%    { opacity: 0; transform: translateY(10px) scale(.97); }
  10%, 46%  { opacity: 1; transform: none; }
  52%, 100% { opacity: 0; transform: translateY(-6px) scale(.99); }
}
@keyframes axPaid {
  0%, 24%   { opacity: 0; transform: translateY(10px) scale(.97); }
  30%, 74%  { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(-6px) scale(.99); }
}
@keyframes axNum1 { 0%, 26% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes axNum2 { 0%, 26% { opacity: 0; } 27%, 63% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes axNum3 { 0%, 63% { opacity: 0; } 64%, 100% { opacity: 1; } }

@keyframes axFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.ax-in-1 { animation: axFadeUp .7s var(--ax-ease) both; }
.ax-in-2 { animation: axFadeUp .8s var(--ax-ease) .15s both; }

/* Aparición al hacer scroll, sección a sección.
   Las clases las pone site.js y SOLO si corre: sin JavaScript no existe
   .ax-reveal y todo se ve. La transición vive en el estado final para que
   el ocultado inicial no se anime. Sólo transform y opacity. */
.ax-reveal { opacity: 0; transform: translateY(32px); will-change: opacity, transform; }
.ax-reveal--visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ax-ease), transform .7s var(--ax-ease);
}

/* --------------------------------------------------------------------------
   9 · Rejillas de contenido
   -------------------------------------------------------------------------- */
.ax-grid { display: grid; gap: 16px; }
.ax-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ax-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ax-grid--mods { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ax-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }

.ax-step-num {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ax-ink-3);
  margin-bottom: 14px;
}
.ax-card__title {
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ax-ink);
}
.ax-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ax-ink-2);
}
.ax-pad { padding: 26px; }

/* Calculadora */
.ax-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: stretch; }
.ax-calc__inputs { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.ax-field { display: flex; flex-direction: column; gap: 8px; }
.ax-field > span { font-family: var(--ax-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-ink-3); }
.ax-field input[type="number"] {
  width: 100%;
  background: rgba(29, 29, 31, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--ax-font);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ax-ink);
  min-height: 44px;
}
.ax-field input[type="number"]:focus {
  outline: none;
  border-color: rgba(0, 113, 227, .5);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .1);
}
.ax-field input[type="range"] { width: 100%; accent-color: var(--ax-accent); min-height: 44px; }
.ax-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ax-field__val { font-size: 14px; letter-spacing: 0; color: var(--ax-accent-ink); font-variant-numeric: tabular-nums; }
.ax-calc__out { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ax-calc__cap { font-family: var(--ax-font-title); font-weight: 500; font-size: clamp(17px, 2vw, 20px); line-height: 1.35; letter-spacing: -.01em; color: var(--ax-ink-3); }
.ax-calc__cap--ink { color: var(--ax-ink); }
.ax-calc__big {
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: clamp(46px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.ax-calc__foot { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ax-ink-3); }

/* Separador con los colores de los módulos */
.ax-rule {
  height: 2px;
  max-width: var(--ax-max);
  margin: 0 auto;
  border-radius: var(--ax-r-pill);
  background: linear-gradient(90deg, rgba(22,163,74,0), #16a34a, #059669, #0369a1, #2563eb, #7c3aed, #4f46e5, #0891b2, #0d9488, #d97706, #ea580c, rgba(71,85,105,0));
}

/* Tarjetas de módulo — un color por módulo */
.ax-mod {
  position: relative;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color .15s ease, box-shadow .22s ease, transform .22s ease;
}
.ax-mod::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--m), color-mix(in srgb, var(--m) 25%, transparent));
}
.ax-mod:hover {
  border-color: color-mix(in srgb, var(--m) 35%, transparent);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--m) 28%, transparent);
  transform: translateY(-3px);
}
.ax-mod__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ax-mod__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--m);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--m) 35%, transparent);
}
.ax-mod__icon svg { width: 20px; height: 20px; color: #FFFFFF; }
.ax-mod__name { font-family: var(--ax-font-title); font-weight: 600; font-size: 17px; color: var(--ax-ink); }
.ax-mod__text { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ax-ink-2); }

.ax-center-note {
  margin: 24px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ax-ink-3);
  text-wrap: pretty;
}

/* Círculo de icono (sección "Tus datos son tuyos") */
.ax-ico-round {
  width: 40px; height: 40px;
  border-radius: var(--ax-r-pill);
  background: rgba(0, 113, 227, .12);
  border: 1px solid rgba(0, 113, 227, .20);
  box-shadow: 0 0 16px rgba(0, 113, 227, .15);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.ax-ico-round svg { width: 18px; height: 18px; color: var(--ax-accent); }

/* --------------------------------------------------------------------------
   10 · Sección oscura "Tu negocio, con tu cara"
   -------------------------------------------------------------------------- */
.ax-dark-sec {
  padding: 80px var(--ax-pad-x);
  background: var(--ax-dark);
  background-image:
    radial-gradient(900px 520px at 15% -10%, rgba(0, 113, 227, .18), transparent 62%),
    radial-gradient(700px 480px at 92% 108%, rgba(124, 58, 237, .13), transparent 62%);
}
.ax-dark-sec .ax-h2, .ax-dark-sec .ax-h3 { color: var(--ax-dark-ink); }
.ax-dark-sec__lead {
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ax-dark-ink-2);
  text-wrap: pretty;
}
.ax-shot {
  background: var(--ax-dark-card);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--ax-r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--m) 18%, transparent);
  transition: border-color .15s ease, transform .22s ease, box-shadow .22s ease;
}
.ax-shot:hover {
  border-color: color-mix(in srgb, var(--m) 55%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 32px 72px color-mix(in srgb, var(--m) 32%, transparent);
}
.ax-shot__view {
  position: relative;
  height: 360px;
  overflow: hidden;
  padding: 52px 26px 0;
  display: flex;
  justify-content: center;
}
.ax-shot__view::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(18, 21, 31, 0), var(--ax-dark-card));
  pointer-events: none;
}
.ax-shot__frame {
  width: min(300px, 100%);
  flex-shrink: 0;
  border: 8px solid #26262B;
  border-bottom: none;
  border-radius: 34px 34px 0 0;
  background: #26262B;
  overflow: hidden;
}
.ax-chip {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--ax-r-pill);
  padding: 6px 12px;
}
.ax-chip--l { left: 14px; font-size: 12px; font-weight: 600; color: var(--ax-dark-ink); }
.ax-chip--r {
  right: 14px;
  font-family: var(--ax-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, .72);
}
.ax-chip--on {
  background: rgba(52, 199, 89, .16);
  border-color: rgba(52, 199, 89, .35);
  color: #4ADE80;
}
.ax-shot__meta { padding: 2px 22px 24px; }
.ax-shot__title { font-family: var(--ax-font-title); font-weight: 600; font-size: 17px; color: var(--ax-dark-ink); margin-bottom: 6px; }
.ax-shot__text { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(241, 245, 249, .66); }

.ax-brandgal { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ax-brandgal figure {
  flex: 1 1 300px;
  max-width: 400px;
  margin: 0;
  border-radius: var(--ax-r-card);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(12, 12, 15, .18);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ax-brandgal figure:hover { transform: translateY(-3px); box-shadow: 0 30px 64px rgba(12, 12, 15, .28); }
.ax-brandgal img { border-radius: var(--ax-r-card); }

/* --------------------------------------------------------------------------
   11 · Precios
   -------------------------------------------------------------------------- */
.ax-price-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.ax-price-head .ax-h2 { margin: 0; }
.ax-toggle {
  display: inline-flex;
  background: rgba(29, 29, 31, .05);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-pill);
  padding: 4px;
  gap: 4px;
}
.ax-toggle button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ax-ink-2);
  cursor: pointer;
  border-radius: var(--ax-r-pill);
  padding: 10px 18px;
  min-height: 40px;
  font-family: var(--ax-font);
  font-weight: 600;
  font-size: 13px;
}
.ax-toggle button[aria-pressed="true"] {
  background: #FFFFFF;
  color: var(--ax-accent-ink);
  border-color: rgba(0, 0, 0, .08);
}
.ax-price-lead {
  margin: -10px 0 22px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ax-ink-2);
  text-wrap: pretty;
}
.ax-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; align-items: stretch; }
.ax-plan { padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.ax-plan--star { position: relative; overflow: hidden; }
.ax-plan--star::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 113, 227, .7), transparent);
}
.ax-plan__name { font-family: var(--ax-font-title); font-weight: 600; font-size: 19px; color: var(--ax-ink); }
.ax-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ax-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.ax-plan__amount {
  font-family: var(--ax-font-title);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ax-ink);
}
.ax-plan--star .ax-plan__amount { font-size: clamp(42px, 5.4vw, 56px); }
.ax-plan__per { font-size: 14px; color: var(--ax-ink-3); }
/* Línea de facturación anual y desglose mensual */
.ax-plan__billed { font-size: 12.5px; line-height: 1.6; color: var(--ax-ink-3); font-variant-numeric: tabular-nums; }
.ax-plan__break { font-size: 12.5px; color: var(--ax-ink-3); font-variant-numeric: tabular-nums; }
.ax-plan__list { margin: 8px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ax-plan__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.6; color: rgba(29, 29, 31, .82); }
.ax-plan__list svg { flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }
.ax-plan .ax-btn { margin-top: auto; padding: 13px 22px; }

/* Sólo se muestra el bloque del modo activo.
   Es una EXCLUSIÓN MUTUA: las dos variantes del beneficio del 3º módulo viven
   en el HTML a la vez y el modo decide cuál se ve. Lleva !important a
   propósito: si mañana alguien añade una regla de display sobre .ax-plan__list
   li o sobre .ax-badge, no puede hacer que se vean las dos. */
[data-billing="mes"] .ax-only-anual,
[data-billing="anio"] .ax-only-mes { display: none !important; }
/* El atributo vive en #precios-zona, que envuelve botones Y tarjetas. */

.ax-price-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ax-ink-2);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12 · FAQ — <details> nativo, funciona sin JavaScript
   -------------------------------------------------------------------------- */
.ax-faq { display: flex; flex-direction: column; gap: 10px; }
.ax-faq details {
  background: var(--ax-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  box-shadow: var(--ax-shadow);
  overflow: hidden;
}
.ax-faq summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 20px;
  min-height: 52px;
  font-family: var(--ax-font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--ax-ink);
  list-style: none;
}
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::marker { content: ''; }
.ax-faq summary svg { flex-shrink: 0; width: 16px; height: 16px; transition: transform .2s ease; color: var(--ax-ink-3); }
.ax-faq details[open] summary svg { transform: rotate(180deg); }
.ax-faq__a { padding: 0 20px 18px; font-size: 14px; line-height: 1.8; color: var(--ax-ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   13 · Cierre, aviso y pie
   -------------------------------------------------------------------------- */
.ax-close { padding: 72px var(--ax-pad-x) 88px; }
.ax-close__box { max-width: 640px; margin: 0 auto; text-align: center; }
.ax-close .ax-h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 40px); line-height: 1.2; }
.ax-close__lead { margin: 0 0 26px; font-size: 15.5px; line-height: 1.8; color: var(--ax-ink-2); }

.ax-espera {
  margin: 26px auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.ax-espera__campo { display: flex; flex-direction: column; gap: 7px; }
.ax-espera__campo > span {
  font-family: var(--ax-font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ax-ink-3);
}
.ax-espera input {
  width: 100%;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--ax-font);
  font-size: 15px;
  color: var(--ax-ink);
  min-height: 46px;
}
.ax-espera input::placeholder { color: #8A8A8B; }
.ax-espera input:focus {
  outline: none;
  border-color: rgba(0, 113, 227, .5);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}
.ax-espera input[aria-invalid="true"] {
  border-color: rgba(200, 38, 38, .55);
  box-shadow: 0 0 0 3px rgba(200, 38, 38, .10);
}
.ax-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ax-espera__estado {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  min-height: 1.2em;
}
.ax-espera__estado[data-tipo="error"] { color: #A32020; }
.ax-espera__estado[data-tipo="ok"] { color: var(--ax-ok-ink); font-weight: 600; }

.ax-disclaimer {
  max-width: var(--ax-max);
  margin: 0 auto;
  padding: 0 var(--ax-pad-x) 20px;
}
.ax-disclaimer p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ax-ink-3);
  text-align: center;
  text-wrap: pretty;
}

.ax-footer { border-top: 1px solid var(--ax-line); padding: 22px var(--ax-pad-x) 30px; }
.ax-footer__row {
  max-width: var(--ax-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--ax-ink-3);
}
.ax-footer__brand { display: flex; align-items: center; gap: 8px; }
.ax-footer__brand .ax-brand__mark { width: 22px; height: 22px; border-radius: 7px; }
.ax-footer__brand .ax-brand__mark svg { width: 12px; height: 12px; }
.ax-footer__brand span { font-family: var(--ax-font-title); font-weight: 600; font-size: 14px; color: var(--ax-ink); }
.ax-footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ax-footer__links a { color: var(--ax-ink-3); text-decoration: none; }
.ax-footer__links a:hover { color: var(--ax-ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   14 · Banner de cookies (lo muestra JS sólo si no hay aceptación guardada)
   -------------------------------------------------------------------------- */
.ax-cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0 clamp(14px, 4vw, 28px) clamp(14px, 3vw, 24px);
  pointer-events: none;
}
.ax-cookies[hidden] { display: none; }
.ax-cookies__box {
  max-width: 720px;
  margin: 0 auto;
  pointer-events: auto;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(29, 29, 31, .16);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ax-cookies__text {
  margin: 0;
  flex: 1 1 340px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(29, 29, 31, .82);
  text-wrap: pretty;
}
.ax-cookies .ax-btn { flex-shrink: 0; padding: 12px 28px; font-size: 13px; }

/* --------------------------------------------------------------------------
   15 · Movimiento reducido — se ve el estado FINAL, sin bucles
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ax-bubble, .ax-paid, .ax-in-1, .ax-in-2 { opacity: 1 !important; transform: none !important; }
  .ax-reveal, .ax-reveal--visible { opacity: 1 !important; transform: none !important; }
  .ax-num--1, .ax-num--2 { opacity: 0 !important; }
  .ax-num--3 { opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   16 · Ajustes finos por ancho
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .ax-stage { padding: 18px 0 44px; }
  .ax-bubble { width: min(200px, 66%); }
  .ax-demo { font-size: 11px; padding: 4px 10px; }
  .ax-paid { bottom: 62px; padding: 8px 12px; }
  .ax-counter { left: 12%; padding: 10px 13px; }
  .ax-counter__slot { height: 24px; width: 74px; font-size: 21px; }
  .ax-price-head { flex-direction: column; align-items: flex-start; }
  .ax-toggle { width: 100%; }
  .ax-toggle button { flex: 1; padding: 10px 8px; }
  .ax-shot__view { height: 320px; padding-top: 56px; }
}

@media (max-width: 380px) {
  .ax-hero__actions .ax-btn { width: 100%; }
  .ax-bubble { width: min(180px, 70%); padding: 10px 12px; }
  .ax-paid__text, .ax-bubble__text { font-size: 12px; }
}
