/* ==========================================================================
   STT Software — Sistema de diseño
   Basado en el Manual de Marca v1.0
   Paleta: Tinta #0F172A · Pizarra #475569 · Bruma #CBD5E1 · Niebla #F7F8FA
   Tipografía: Space Grotesk (display) · IBM Plex Sans (texto) · IBM Plex Mono (etiquetas)
   ========================================================================== */

:root {
  /* Color — proporción 60 / 25 / 10 / 5 */
  --tinta: #0F172A;
  --tinta-soft: #1E293B;
  --pizarra: #475569;
  --bruma: #CBD5E1;
  --niebla: #F7F8FA;
  --blanco: #FFFFFF;

  --texto-dark-secundario: #A9B4C6; /* texto de apoyo sobre Tinta */
  --linea: rgba(15, 23, 42, 0.10);
  --linea-dark: rgba(247, 248, 250, 0.12);

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* Escala tipográfica (manual: H1 48 · H2 32 · Body 17 · Label 12) */
  --fs-hero: clamp(2.75rem, 6.5vw, 4.75rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1.0625rem;      /* 17px */
  --fs-body-lg: 1.1875rem;   /* 19px */
  --fs-label: 0.75rem;       /* 12px */

  /* Espaciado (base 8) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Forma */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1200px;
  --header-h: 76px;

  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-deep: 0 8px 24px rgba(15, 23, 42, 0.16), 0 32px 80px rgba(15, 23, 42, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset y base
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--niebla);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* clip no crea contenedor de scroll (evita bugs de scroll en móvil) */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

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

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection { background: var(--tinta); color: var(--niebla); }

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

.section--dark :focus-visible,
.section--tint :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible,
.mobile-menu :focus-visible {
  outline-color: var(--niebla);
}

/* Utilidades */
.font-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.font-mono { font-family: var(--font-mono); }

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pizarra);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow { max-width: 860px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }

/* ==========================================================================
   Logo
   ========================================================================== */

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 28%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
}

.logo-mark--sm { width: 28px; height: 28px; font-size: 0.875rem; border-radius: 30%; }
.logo-mark--lg { width: 72px; height: 72px; font-size: 2.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__name {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__name--light { color: var(--niebla); }

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--niebla);
}

html:not(.anim) .preloader { display: none; }

.preloader__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.preloader__word {
  font-size: 1.5rem;
  color: var(--tinta);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(247, 248, 250, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--linea);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 100%;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav__link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pizarra);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--tinta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--tinta); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Selector de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.lang__btn {
  padding: 0.375rem 0.25rem;
  color: var(--pizarra);
  letter-spacing: 0.06em;
  transition: color 0.2s;
  min-height: 32px;
}

.lang__btn:hover { color: var(--tinta); }
.lang__btn.is-active { color: var(--tinta); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.lang__sep { color: var(--bruma); }

/* Hamburguesa */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--tinta);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }

.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Menú móvil
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + var(--sp-6)) clamp(1.5rem, 6vw, 3rem) var(--sp-6);
  background: var(--tinta);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-menu__link {
  font-size: clamp(2rem, 8vw, 2.75rem);
  color: var(--niebla);
  padding: 0.375rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__cta { transition-delay: 0.34s; }

.mobile-menu__cta {
  margin-top: var(--sp-4);
  align-self: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__cta { opacity: 1; transform: none; }

.mobile-menu__meta .mono-label { color: var(--texto-dark-secundario); }

body.menu-open { overflow: hidden; }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn--primary {
  background: var(--tinta);
  color: var(--blanco);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.btn--primary:hover {
  background: var(--tinta-soft);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--tinta);
  border: 1px solid var(--bruma);
}

.btn--ghost:hover { border-color: var(--pizarra); background: rgba(203, 213, 225, 0.15); }

.btn--light {
  background: var(--niebla);
  color: var(--tinta);
}

.btn--light:hover { background: var(--blanco); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); }

.btn--outline-light {
  background: transparent;
  color: var(--niebla);
  border: 1px solid var(--linea-dark);
}

.btn--outline-light:hover { border-color: var(--niebla); background: rgba(247, 248, 250, 0.06); }

.btn--sm { min-height: 42px; padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* Enlaces con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tinta);
  margin-top: auto;
  padding-top: var(--sp-3);
  min-height: 44px;
}

.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow--light { color: var(--niebla); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 6.5rem)) 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--bruma) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, black 30%, transparent 75%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero__eyebrow { margin-bottom: var(--sp-3); }

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
}

.line { display: block; overflow: hidden; padding-block: 0.06em; }
.line__inner { display: inline-block; }

html.anim .line__inner,
html.anim [data-anim] { opacity: 0; }

.hero__sub {
  font-size: var(--fs-body-lg);
  color: var(--pizarra);
  max-width: 34rem;
  margin-bottom: var(--sp-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pizarra);
}

.badge-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bruma);
}

.badge-dot--on {
  background: var(--tinta);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

/* --- Mockup del producto --- */

.hero__visual {
  position: relative;
  perspective: 1200px;
}

.mockup {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--tinta);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  border: 1px solid rgba(247, 248, 250, 0.08);
}

.mockup__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  border-right: 1px solid var(--linea-dark);
}

.mockup__sidebar .logo-mark--sm {
  background: var(--niebla);
  color: var(--tinta);
  margin-bottom: 0.5rem;
}

.mockup__nav-item {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(247, 248, 250, 0.10);
}

.mockup__nav-item.is-active { background: rgba(247, 248, 250, 0.32); }

.mockup__body {
  padding: 1.25rem 1.375rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  min-width: 0;
}

.mockup__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup__title { color: var(--texto-dark-secundario); }

.mockup__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pizarra), var(--bruma));
}

.mockup__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.kpi {
  background: rgba(247, 248, 250, 0.05);
  border: 1px solid var(--linea-dark);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.875rem;
  min-width: 0;
}

.kpi__label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--texto-dark-secundario);
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi__value {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--niebla);
  font-variant-numeric: tabular-nums;
}

.mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  padding: 0.75rem 0.875rem;
  background: rgba(247, 248, 250, 0.05);
  border: 1px solid var(--linea-dark);
  border-radius: var(--radius-sm);
}

.mockup__chart span {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--pizarra), var(--bruma));
  transform-origin: bottom;
}

html.anim .mockup__chart span { transform: scaleY(0); }

.mockup__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem;
  background: rgba(247, 248, 250, 0.04);
  border: 1px solid var(--linea-dark);
  border-radius: var(--radius-sm);
}

.mockup__cell--avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.16);
  color: var(--bruma);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
}

.mockup__cell--bar {
  height: 7px;
  width: var(--w);
  border-radius: 4px;
  background: rgba(203, 213, 225, 0.22);
}

.mockup__cell--tag {
  margin-left: auto;
  width: 34px;
  height: 12px;
  border-radius: 6px;
  background: rgba(203, 213, 225, 0.14);
}

/* Tarjetas flotantes */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.float-chip strong { display: block; font-weight: 600; }
.float-chip .mono-label { font-size: 0.625rem; }

.float-chip svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--tinta);
}

.float-chip--access { top: -1.375rem; right: 1.75rem; }
.float-chip--payment { bottom: -1.375rem; left: 1.25rem; }

.float-chip--payment svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  background: var(--tinta);
  color: var(--niebla);
  border-radius: 50%;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--linea);
  background: var(--blanco);
  padding: 1.125rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.marquee__group span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pizarra);
  white-space: nowrap;
}

.marquee__group i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bruma);
  margin-inline: 1.75rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.section { padding: clamp(4.5rem, 10vh, 8rem) 0; }

.section--dark {
  background: var(--tinta);
  color: var(--niebla);
}

.section--tint {
  background: linear-gradient(180deg, var(--niebla), #EEF1F6);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__index {
  display: inline-block;
  margin-bottom: var(--sp-2);
}

.section--dark .section__index { color: var(--texto-dark-secundario); }

.section__title {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-2);
}

.section__sub {
  font-size: var(--fs-body-lg);
  color: var(--pizarra);
}

.section--dark .section__sub { color: var(--texto-dark-secundario); }

html.anim [data-reveal] { opacity: 0; }

/* ==========================================================================
   Productos
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--bruma);
}

.product-card--featured {
  background: var(--tinta);
  color: var(--niebla);
  border-color: var(--tinta);
}

.product-card--featured:hover { box-shadow: var(--shadow-deep); }

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

/* Logo de producto — teja del manual de marcas.
   Fondo claro (tarjeta blanca) usa la teja oscura; la tarjeta destacada
   invierte la teja, como indica el manual. */
.product-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pizarra);
  white-space: nowrap;
}

.status--live {
  border-color: rgba(247, 248, 250, 0.25);
  color: var(--niebla);
}

.product-card:not(.product-card--featured) .status--live {
  border-color: var(--bruma);
  color: var(--tinta);
}

.status--live .badge-dot--on {
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.25);
}

.product-card__name {
  font-size: var(--fs-h3);
  margin-bottom: 0.25rem;
}

.product-card__tag {
  font-size: 0.6875rem;
  margin-bottom: var(--sp-2);
}

.product-card--featured .product-card__tag { color: var(--texto-dark-secundario); }

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--pizarra);
  margin-bottom: var(--sp-2);
}

.product-card--featured .product-card__desc { color: var(--texto-dark-secundario); }

/* ==========================================================================
   Plataforma (features)
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linea-dark);
  border: 1px solid var(--linea-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  padding: var(--sp-4);
  background: var(--tinta);
  transition: background-color 0.3s;
}

.feature:hover { background: var(--tinta-soft); }

.feature__icon {
  width: 28px;
  height: 28px;
  color: var(--bruma);
  margin-bottom: var(--sp-3);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.9375rem;
  color: var(--texto-dark-secundario);
}

/* ==========================================================================
   Cómo funciona
   ========================================================================== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--sp-3);
  border-top: 2px solid var(--tinta);
}

.step__num {
  position: absolute;
  top: calc(-0.5em - 1px);
  left: 0;
  padding-right: 0.75rem;
  background: var(--niebla);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--pizarra);
}

.step__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--pizarra);
}

/* ==========================================================================
   Precios
   ========================================================================== */

.pricing { max-width: 880px; margin-inline: auto; }

.pricing__card {
  background: var(--tinta);
  color: var(--niebla);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-deep);
}

.pricing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--linea-dark);
  margin-bottom: var(--sp-4);
}

.pricing__head .mono-label { color: var(--texto-dark-secundario); }

.pricing__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing__logo { width: 34px; height: 34px; flex: 0 0 auto; }

.pricing__tiers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  margin-bottom: var(--sp-4);
}

.pricing__tier-label {
  display: block;
  color: var(--texto-dark-secundario);
  margin-bottom: var(--sp-2);
}

.pricing__amount {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}

.pricing__cur {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--texto-dark-secundario);
}

.pricing__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.pricing__divider span {
  font-size: 1.5rem;
  color: var(--pizarra);
}

.pricing__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--bruma);
}

.pricing__list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--niebla);
}

.pricing__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-2);
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-3);
  border-top: 1px solid var(--linea-dark);
}

.pricing__total-label { color: var(--texto-dark-secundario); }

.pricing__total-amount {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pricing__cta { width: 100%; }

.pricing__note {
  margin-top: var(--sp-2);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--texto-dark-secundario);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--linea);
}

.faq__item { border-bottom: 1px solid var(--linea); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 1.375rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  touch-action: manipulation;
  transition: color 0.2s;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--pizarra); }

.faq__q svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--pizarra);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] .faq__q svg { transform: rotate(180deg); }

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 2.5rem 1.375rem 0.25rem;
  color: var(--pizarra);
  font-size: 0.9375rem;
  max-width: 60ch;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-band {
  position: relative;
  background: var(--tinta);
  color: var(--niebla);
  padding: clamp(5rem, 14vh, 9rem) 0;
  overflow: hidden;
}

.cta-band__watermark {
  position: absolute;
  right: -0.08em;
  bottom: -0.34em;
  font-size: clamp(18rem, 38vw, 34rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 248, 250, 0.07);
  user-select: none;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  text-align: center;
}

.cta-band__eyebrow {
  color: var(--texto-dark-secundario);
  margin-bottom: var(--sp-3);
}

.cta-band__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
}

.cta-band__sub {
  font-size: var(--fs-body-lg);
  color: var(--texto-dark-secundario);
  margin-bottom: var(--sp-6);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--tinta);
  color: var(--niebla);
  border-top: 1px solid var(--linea-dark);
  padding: var(--sp-8) 0 var(--sp-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--linea-dark);
}

.footer__tagline {
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--bruma);
}

.footer__tagline-alt { color: var(--pizarra); }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--bruma);
  transition: color 0.2s;
  width: fit-content;
  padding: 0.125rem 0;
}

.footer__col a:hover { color: var(--niebla); }

.footer__col-title {
  color: var(--texto-dark-secundario);
  margin-bottom: 0.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
}

.footer__bottom .mono-label {
  color: var(--pizarra);
  font-size: 0.6875rem;
}

/* ==========================================================================
   Páginas legales
   ========================================================================== */

.header--solid { border-bottom-color: var(--linea); }

.legal {
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 5rem)) 0 clamp(4rem, 10vh, 7rem);
}

.legal__eyebrow { display: inline-block; margin-bottom: var(--sp-2); }

.legal__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-2);
}

.legal__updated {
  display: block;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--linea);
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin: var(--sp-6) 0 var(--sp-2);
}

.legal h2 .font-mono {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pizarra);
  margin-right: 0.5rem;
}

.legal p, .legal li {
  color: var(--pizarra);
  margin-bottom: var(--sp-2);
  max-width: 70ch;
}

.legal ul {
  padding-left: 1.375rem;
  margin-bottom: var(--sp-2);
}

.legal li { margin-bottom: 0.5rem; }
.legal li::marker { color: var(--bruma); }

.legal strong { color: var(--tinta); font-weight: 600; }

.legal a {
  color: var(--tinta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover { color: var(--pizarra); }

.footer--compact { padding: var(--sp-4) 0; }

.footer--compact .footer__bottom {
  padding-top: 0;
  align-items: center;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}

.footer__legal-links a {
  font-size: 0.8125rem;
  color: var(--bruma);
  transition: color 0.2s;
}

.footer__legal-links a:hover { color: var(--niebla); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hero__visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .products { grid-template-columns: 1fr 1fr; }
  .product-card--featured { grid-column: 1 / -1; }

  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: block; }

  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }

  .pricing__tiers { grid-template-columns: 1fr; gap: var(--sp-3); }
  .pricing__divider { display: none; }
  .pricing__tier:last-child {
    padding-top: var(--sp-3);
    border-top: 1px solid var(--linea-dark);
  }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }

  .float-chip--access { right: 0.5rem; }
  .float-chip--payment { left: 0.5rem; }
}

@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
  .product-card--featured { grid-column: auto; }

  .features { grid-template-columns: 1fr; }

  .hero__actions .btn { flex: 1 1 auto; }

  .mockup__kpis { gap: 0.5rem; }
  .kpi { padding: 0.625rem; }

  .cta-band__actions { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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