/* =========================================================
   Neogram · sitio web (neogram.site)
   Paleta: negro profundo + verde lima de marca, con acentos
   magenta y cian para el aire cyberpunk.
   ========================================================= */

:root {
  --lime: #8ace00;
  --lime-hi: #b6ff1a;
  --pink: #ff2bd6;
  --cyan: #00e5ff;
  --violet: #8b5cff;
  --bg: #040404;
  --panel: #0b0c0a;
  --panel-2: #10120d;
  --line: rgba(255, 255, 255, 0.09);
  --line-lime: rgba(138, 206, 0, 0.35);
  --text: #f2f4ee;
  --muted: #a0a698;
  --dim: #6d7267;
  --font-display: 'Unbounded', 'Outfit', system-ui, sans-serif;
  --font-tech: 'Chakra Petch', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --cut: 14px;
  color-scheme: dark;
}

/* Japonés, chino y coreano usan su propia familia (se carga solo en esas páginas). */
:lang(ja) {
  --font-display: 'Noto Sans JP', system-ui, sans-serif;
  --font-tech: 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Noto Sans JP', system-ui, sans-serif;
}

:lang(zh) {
  --font-display: 'Noto Sans SC', system-ui, sans-serif;
  --font-tech: 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
}

:lang(ko) {
  --font-display: 'Noto Sans KR', system-ui, sans-serif;
  --font-tech: 'Noto Sans KR', system-ui, sans-serif;
  --font-body: 'Noto Sans KR', system-ui, sans-serif;
}

/* El texto legal en español dentro de una página en otro idioma conserva la tipografía latina. */
:lang(es) {
  --font-display: 'Unbounded', 'Outfit', system-ui, sans-serif;
  --font-tech: 'Chakra Petch', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--lime-hi);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--lime);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--lime-hi);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

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

/* ---------- Capas de efecto globales ---------- */

.fx-scan,
.fx-noise,
.fx-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.fx-scan {
  z-index: 60;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.fx-noise {
  z-index: 59;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brillo que sigue al cursor: chico, intenso y siempre DEBAJO del contenido (z-index negativo),
   así no tiñe textos, botones ni tarjetas. */
.fx-cursor {
  z-index: -1;
  inset: auto;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 255, 26, 0.5) 0%, rgba(138, 206, 0, 0.26) 28%, rgba(138, 206, 0, 0.08) 52%, transparent 70%);
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}

/* ---------- Tipografía ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-hi);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.lime {
  color: var(--lime-hi);
  text-shadow: 0 0 28px rgba(138, 206, 0, 0.55);
}

.outline {
  /* el relleno oscuro se pinta sobre el trazo para tapar los cruces internos de la tipografía */
  color: var(--bg);
  -webkit-text-stroke: 3px var(--lime-hi);
  paint-order: stroke fill;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 56ch;
}

/* ---------- Botones (redondeados, igual que en la app) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--lime);
  color: #050505;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(138, 206, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--lime-hi);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(138, 206, 0, 0.6);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(138, 206, 0, 0.1);
  border-color: var(--lime);
  color: var(--lime-hi);
  box-shadow: none;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13.5px;
  border-radius: 12px;
}

/* Botones de tienda */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 20px 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 9, 7, 0.78);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.store:hover {
  text-decoration: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 30px rgba(138, 206, 0, 0.35);
  transform: translateY(-2px);
}

.store svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: currentColor;
}

.store small {
  display: block;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-hi);
  line-height: 1.2;
}

.store strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck,
.nav.is-open {
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.nav__logo img {
  height: 22px;
  width: auto;
  display: block;
}


.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  color: var(--text);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current='page'] {
  opacity: 1;
  color: var(--lime-hi);
  text-decoration: none;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover::after,
.nav__links a[aria-current='page']::after {
  transform: scaleX(1);
}

/* Selector de idioma */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 4, 4, 0.5);
  color: var(--text);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang__btn:hover,
.lang__btn[aria-expanded='true'] {
  border-color: var(--lime);
  color: var(--lime-hi);
  background: rgba(138, 206, 0, 0.08);
}

.lang__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 2px;
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line-lime);
  border-radius: 16px;
  background: rgba(8, 9, 7, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(138, 206, 0, 0.12);
}

.lang__panel[hidden] {
  display: none;
}

.lang__panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.lang__panel a:hover {
  background: rgba(138, 206, 0, 0.12);
  color: var(--lime-hi);
  text-decoration: none;
}

.lang__panel a[aria-current='true'] {
  background: var(--lime);
  color: #050505;
}

.nav__login[hidden] {
  display: none;
}

.nav__in .nav__login {
  margin-right: -16px;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--lime-hi);
  transition: transform 0.25s, top 0.25s, background 0.25s;
}

.nav__burger span { top: 20px; }
.nav__burger span::before { left: 0; right: 0; top: -7px; }
.nav__burger span::after { left: 0; right: 0; top: 7px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Inicio ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(74px, 9vh, 92px);
  overflow: hidden;
  isolation: isolate;
}

/* El muro es el protagonista: solo se oscurece la franja de abajo, donde va el texto. */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 4, 4, 0.6) 0%,
    rgba(4, 4, 4, 0.08) 11%,
    rgba(4, 4, 4, 0) 26%,
    rgba(4, 4, 4, 0) 54%,
    rgba(4, 4, 4, 0.74) 74%,
    rgba(4, 4, 4, 0.95) 90%,
    var(--bg) 100%
  );
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title stores'
    'lead stores'
    'perks perks';
  column-gap: 40px;
  row-gap: 12px;
  align-items: end;
}

.hero__in > * {
  min-width: 0;
}

.hero h1 {
  grid-area: title;
  font-size: clamp(30px, 4.4vw, 56px);
  text-transform: uppercase;
}

.hero .lead {
  grid-area: lead;
  max-width: 60ch;
  margin: 0;
  color: #dadfd1;
  font-size: clamp(15px, 1.2vw, 17px);
}

.hero__stores {
  grid-area: stores;
}

/* Etiquetas con el punto de "en línea" de la app */
.perks {
  grid-area: perks;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 9, 7, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid #000;
  box-shadow: 0 0 8px var(--lime);
}

.dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  animation: online 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes online {
  0% { transform: scale(1); opacity: 0.65; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- Muro de retratos en movimiento ---------- */

.wall {
  position: absolute;
  z-index: -2;
  inset: -30% -12%;
  display: flex;
  justify-content: center;
  gap: 14px;
  transform: rotate(-9deg) scale(1.06);
  will-change: transform;
}

.wall__col {
  flex: 0 0 clamp(128px, 15.5vw, 226px);
}

.wall__track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: wallUp var(--dur, 60s) linear infinite;
  will-change: transform;
}

.wall__col:nth-child(even) .wall__track {
  animation-name: wallDown;
}

@keyframes wallUp {
  to { transform: translate3d(0, calc(-50% - 7px), 0); }
}

@keyframes wallDown {
  from { transform: translate3d(0, calc(-50% - 7px), 0); }
  to { transform: translate3d(0, 0, 0); }
}

.pcard {
  position: relative;
  flex: none;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcard svg,
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.82) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}

.pcard__tag {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.pcard__tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid #000;
  box-shadow: 0 0 8px var(--lime);
}

@keyframes blink {
  50% { opacity: 0.35; }
}

/* Tira horizontal de retratos */
.strip {
  display: grid;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: stripL var(--dur, 70s) linear infinite;
}

.strip__track--rev {
  animation-name: stripR;
}

.strip .pcard {
  width: clamp(150px, 17vw, 230px);
}

@keyframes stripL {
  to { transform: translate3d(calc(-50% - 7px), 0, 0); }
}

@keyframes stripR {
  from { transform: translate3d(calc(-50% - 7px), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* ---------- Cinta de texto ---------- */

.ticker {
  position: relative;
  z-index: 2;
  margin: -34px -4vw 0;
  padding: 16px 0;
  background: var(--lime);
  color: #050505;
  transform: rotate(-2deg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(138, 206, 0, 0.45);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: stripL 34s linear infinite;
}

.ticker__track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2.1vw, 26px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-right: 14px;
}

/* Separador: la misma estrella de la marca, recortada con una máscara. */
.ticker__track span::after {
  content: '';
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 14px;
  vertical-align: -0.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C13.3 8.1 15.9 10.7 22 12C15.9 13.3 13.3 15.9 12 22C10.7 15.9 8.1 13.3 2 12C8.1 10.7 10.7 8.1 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C13.3 8.1 15.9 10.7 22 12C15.9 13.3 13.3 15.9 12 22C10.7 15.9 8.1 13.3 2 12C8.1 10.7 10.7 8.1 12 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Secciones ---------- */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0;
}

.section__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 820px;
}

.section__head h2 {
  font-size: clamp(32px, 5.4vw, 68px);
  text-transform: uppercase;
}

.gridline {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(138, 206, 0, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 206, 0, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(75% 60% at 50% 40%, #000, transparent);
}

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Tarjetas de funciones (bento) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(138, 206, 0, 0.12), transparent 60%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s ease-out;
}

.card:hover {
  border-color: var(--line-lime);
  box-shadow: 0 0 0 1px rgba(138, 206, 0, 0.18), 0 30px 70px -30px rgba(138, 206, 0, 0.4);
}

.card--7 { grid-column: span 7; }
.card--5 { grid-column: span 5; }

/* esquinas tipo HUD */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lime);
  opacity: 0.55;
  pointer-events: none;
}

.card::before { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.card::after { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }

.card__viz {
  position: relative;
  height: 230px;
  margin: -6px -6px 22px;
  border-radius: 16px;
  background: #060705;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card__tag {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-hi);
  margin-bottom: 10px;
}

.card h3 {
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pro {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #050505;
  background: var(--lime);
  border-radius: 5px;
  transform: translateY(-2px);
}

/* Visual: radar */
.viz-radar {
  display: grid;
  place-items: center;
}

.radar {
  position: relative;
  width: min(210px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(138, 206, 0, 0.28) 24.5% 25%, transparent 25.5% 49%, rgba(138, 206, 0, 0.24) 49.5% 50%, transparent 50.5% 74%, rgba(138, 206, 0, 0.2) 74.5% 75%, transparent 75.5%),
    radial-gradient(circle, rgba(138, 206, 0, 0.14), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(138, 206, 0, 0.5), 0 0 60px rgba(138, 206, 0, 0.22);
}

.radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(182, 255, 26, 0.6), rgba(138, 206, 0, 0) 28%);
  animation: spin 3.6s linear infinite;
}

.radar::after {
  content: '';
  position: absolute;
  inset: calc(50% - 5px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 18px #fff;
}

.radar i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-hi);
  box-shadow: 0 0 12px var(--lime-hi);
  animation: ping 3.6s ease-out infinite;
}

.radar i:nth-child(1) { top: 22%; left: 62%; animation-delay: 0.5s; }
.radar i:nth-child(2) { top: 58%; left: 78%; animation-delay: 1.3s; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.radar i:nth-child(3) { top: 74%; left: 36%; animation-delay: 2.2s; }
.radar i:nth-child(4) { top: 38%; left: 18%; animation-delay: 2.9s; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.radar i:nth-child(5) { top: 14%; left: 34%; animation-delay: 3.3s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ping {
  0% { transform: scale(0.4); opacity: 0; }
  12% { transform: scale(1.5); opacity: 1; }
  45% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.15; }
}

.viz-hud {
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(182, 255, 26, 0.75);
}

.viz-hud--r {
  left: auto;
  right: 14px;
  text-align: right;
}

/* Visual: mapa mundial (globo dibujado en site.js) */
.viz-globe {
  background:
    radial-gradient(60% 80% at 50% 55%, rgba(138, 206, 0, 0.1), transparent 70%),
    #050604;
}

.viz-globe canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Visual: chat */
.viz-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
}

.bub {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: #171a13;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.35;
  opacity: 0;
  animation: bubIn 9s ease infinite;
}

.bub--me {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--lime);
  border-color: transparent;
  color: #050505;
  font-weight: 600;
}

.bub--me small {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: -1px;
  opacity: 0.7;
}

.bub:nth-child(1) { animation-delay: 0s; }
.bub:nth-child(2) { animation-delay: 1.3s; }
.bub:nth-child(3) { animation-delay: 2.6s; }
.bub:nth-child(4) { animation-delay: 3.9s; }

@keyframes bubIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  5%, 78% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: translateY(-6px); }
}

.bub--wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.bub--wave b {
  width: 3px;
  border-radius: 2px;
  background: var(--lime-hi);
  animation: wave 0.9s ease-in-out infinite alternate;
}

.bub--wave b:nth-child(1) { height: 8px; animation-delay: 0s; }
.bub--wave b:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.bub--wave b:nth-child(3) { height: 11px; animation-delay: 0.2s; }
.bub--wave b:nth-child(4) { height: 19px; animation-delay: 0.3s; }
.bub--wave b:nth-child(5) { height: 9px; animation-delay: 0.4s; }
.bub--wave b:nth-child(6) { height: 14px; animation-delay: 0.5s; }
.bub--wave b:nth-child(7) { height: 7px; animation-delay: 0.6s; }
.bub--wave span { margin-left: 8px; font-family: var(--font-tech); font-size: 11px; color: var(--muted); }

@keyframes wave {
  to { transform: scaleY(0.35); }
}

/* Visual: álbum privado */
.viz-album {
  display: grid;
  place-items: center;
}

.album {
  position: relative;
  width: 124px;
  height: 156px;
}

.album span {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(150deg, rgba(255, 43, 214, 0.55), rgba(139, 92, 255, 0.5) 50%, rgba(0, 229, 255, 0.45));
  filter: blur(0.4px);
}

.album span:nth-child(1) { transform: rotate(-12deg) translate(-22px, 6px); opacity: 0.45; }
.album span:nth-child(2) { transform: rotate(9deg) translate(22px, 4px); opacity: 0.6; background: linear-gradient(150deg, rgba(138, 206, 0, 0.55), rgba(0, 229, 255, 0.4)); }
.album span:nth-child(3) { backdrop-filter: blur(6px); animation: albumPulse 4s ease-in-out infinite; }

@keyframes albumPulse {
  50% { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 50px -12px rgba(255, 43, 214, 0.7); }
}

.album svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  fill: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}

/* Visual: vistas */
.viz-views {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.viz-views span {
  width: 58px;
  height: 58px;
  margin-left: -14px;
  border-radius: 50%;
  border: 2px solid #060705;
  background: linear-gradient(140deg, var(--lime), #1c2b00);
  animation: bob 3s ease-in-out infinite;
}

.viz-views span:first-child { margin-left: 0; }
.viz-views span:nth-child(2) { background: linear-gradient(140deg, var(--pink), #2a0024); animation-delay: 0.2s; }
.viz-views span:nth-child(3) { background: linear-gradient(140deg, var(--cyan), #00232a); animation-delay: 0.4s; }
.viz-views span:nth-child(4) { background: linear-gradient(140deg, var(--violet), #14092e); animation-delay: 0.6s; }
.viz-views span:nth-child(5) {
  display: grid;
  place-items: center;
  background: #12140e;
  border-color: var(--lime);
  color: var(--lime-hi);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 15px;
  animation-delay: 0.8s;
}

@keyframes bob {
  50% { transform: translateY(-8px); }
}

/* Visual: TESA AI */
.viz-ai {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(139, 92, 255, 0.22), transparent),
    radial-gradient(50% 70% at 10% 90%, rgba(138, 206, 0, 0.16), transparent),
    #060705;
}

.ai-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-lime);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 34px rgba(138, 206, 0, 0.16);
  font-size: 15px;
  min-height: 54px;
}

/* Estrella de TESA AI: la marca de la IA, siempre con su forma y su verde originales. */
.ai-star {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.14em;
  fill: var(--lime);
}

.ai-prompt .ai-star {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  animation: twinkle 2.6s ease-in-out infinite;
}

/* Late sin girar ni deformarse. */
@keyframes twinkle {
  50% { transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(138, 206, 0, 0.9)); }
}

.ai-prompt .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--lime-hi);
  vertical-align: -3px;
  animation: blink 0.9s steps(1) infinite;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Visual: privacidad (PIN) */
.viz-pin {
  display: grid;
  place-items: center;
  gap: 0;
}

.pinrow {
  display: flex;
  gap: 14px;
}

.pinrow i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  animation: pinFill 4.4s steps(1) infinite;
}

.pinrow i:nth-child(1) { animation-delay: 0.2s; }
.pinrow i:nth-child(2) { animation-delay: 0.7s; }
.pinrow i:nth-child(3) { animation-delay: 1.2s; }
.pinrow i:nth-child(4) { animation-delay: 1.7s; }

@keyframes pinFill {
  0% { background: transparent; box-shadow: none; }
  6%, 70% { background: var(--lime-hi); box-shadow: 0 0 14px var(--lime-hi); }
  71%, 100% { background: transparent; box-shadow: none; }
}

.viz-pin .lock {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--lime-hi);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 12px rgba(138, 206, 0, 0.8));
}

.viz-pin > div {
  display: grid;
  justify-items: center;
}

/* ---------- Pasos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  border-top: 1px solid var(--line-lime);
  background: linear-gradient(180deg, rgba(138, 206, 0, 0.07), transparent 70%);
  counter-increment: step;
}

.step::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--bg);
  -webkit-text-stroke: 3px var(--lime);
  paint-order: stroke fill;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Privacidad ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.split__sticky {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

.split__sticky h2 {
  font-size: clamp(26px, 3.5vw, 46px);
  text-transform: uppercase;
}

.shield {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shield li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.shield li:hover {
  border-color: var(--line-lime);
  background: var(--panel-2);
  transform: translateX(6px);
}

.shield svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(138, 206, 0, 0.1);
  fill: none;
  stroke: var(--lime-hi);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shield strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.shield span {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Comunidad ---------- */

.community {
  overflow: hidden;
  padding-inline: 0;
}

.community h2 {
  font-size: clamp(34px, 6.4vw, 88px);
  text-transform: uppercase;
}

/* ---------- Planes ---------- */

.cycle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.cycle button {
  position: relative;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.cycle button[aria-pressed='true'] {
  background: var(--lime);
  color: #050505;
}

.cycle em {
  font-style: normal;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #050505;
  color: var(--lime-hi);
  font-size: 11px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.plan--pro {
  border-color: var(--lime);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(138, 206, 0, 0.2), transparent 60%),
    var(--panel-2);
  box-shadow: 0 0 0 1px rgba(138, 206, 0, 0.3), 0 40px 100px -40px rgba(138, 206, 0, 0.55);
}

.plan__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan__desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 22px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__price small {
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.plan__sub {
  min-height: 22px;
  margin: 8px 0 24px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--lime-hi);
}

.plan ul {
  display: grid;
  gap: 11px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.plan li::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23050505' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan li.is-off {
  color: var(--dim);
}

.plan li.is-off::before {
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 9h6' stroke='%236d7267' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan .btn {
  margin-top: auto;
}

.plan__flag {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 12px;
  background: var(--lime);
  color: #050505;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
}

.plan--max {
  border-color: rgba(139, 92, 255, 0.55);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(139, 92, 255, 0.22), transparent 60%),
    var(--panel-2);
  box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.22), 0 40px 100px -40px rgba(139, 92, 255, 0.5);
}

.plan__flag--max {
  background: linear-gradient(90deg, #8b5cff, #ff2bd6);
  color: #fff;
}

.plan--max .plan__sub {
  color: #cdbcff;
}

.btn--max {
  background: linear-gradient(90deg, #8b5cff, #ff2bd6);
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 255, 0.4);
}

.btn--max:hover {
  background: linear-gradient(90deg, #9d75ff, #ff55e0);
  box-shadow: 0 0 36px rgba(139, 92, 255, 0.7);
}

.fine {
  max-width: 940px;
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- Preguntas frecuentes ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.25s, background 0.25s;
}

.faq details[open] {
  border-color: var(--line-lime);
  background: var(--panel-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-lime);
  color: var(--lime-hi);
  font-family: var(--font-tech);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--lime);
  color: #050505;
}

.faq p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}

/* ---------- Cierre ---------- */

.final {
  position: relative;
  padding: clamp(96px, 12vw, 160px) 0 clamp(90px, 10vw, 140px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Piso en perspectiva del cierre. Se dibuja en un <canvas> (site.js): cada línea se calcula y se
   suaviza en cada cuadro, así avanza fluida y sin parpadeos. */
.final__floor {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(86px, 9.4vw, 136px);
  display: block;
  pointer-events: none;
}

.final__in {
  display: grid;
  justify-items: center;
  gap: 28px;
}

/* El logotipo se muestra tal cual, sin sombras ni efectos, y nunca más grande que su resolución. */
.final__mark {
  display: block;
  width: min(600px, 82vw);
  height: auto;
}

.final h2 {
  font-size: clamp(22px, 3.4vw, 42px);
  text-transform: uppercase;
}

.final .stores {
  justify-content: center;
}

.final .store {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(138, 206, 0, 0.45), 0 0 34px rgba(138, 206, 0, 0.4);
}

.final .store:hover {
  box-shadow: 0 0 0 1px var(--lime), 0 0 56px rgba(138, 206, 0, 0.65);
}

.notify {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 6px;
}

.notify input[type='email'] {
  flex: 1 1 230px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.notify input[type='email']::placeholder {
  color: var(--dim);
}

.notify input[type='email']:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(138, 206, 0, 0.22);
}

.notify__lead,
.notify__fine {
  flex-basis: 100%;
  margin: 0;
}

.notify__lead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 4px;
}

.notify__fine {
  color: var(--dim);
  font-size: 12.5px;
}

/* ---------- Pie ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: #030303;
  padding: 56px 0 36px;
  font-size: 14px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.foot__brand img {
  height: 24px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}

.foot__brand p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
}

.foot h4 {
  margin: 0 0 14px;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-hi);
}

.foot ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot ul a {
  color: var(--muted);
  transition: color 0.2s;
}

.foot ul a:hover {
  color: var(--text);
  text-decoration: none;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

/* ---------- Páginas de documentos (legales, soporte) ---------- */

.dochero {
  position: relative;
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.dochero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(50% 120% at 85% 0%, rgba(138, 206, 0, 0.2), transparent 70%),
    radial-gradient(40% 100% at 0% 100%, rgba(255, 43, 214, 0.1), transparent 70%);
}

.dochero h1 {
  font-size: clamp(34px, 6vw, 72px);
  text-transform: uppercase;
  margin: 16px 0 14px;
}

.dochero p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.dochero .meta {
  margin-top: 16px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(28px, 5vw, 72px);
  padding: 56px 0 110px;
  align-items: start;
}

.doc--single {
  grid-template-columns: minmax(0, 820px);
}

.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 2px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 6px;
  font-size: 13.5px;
}

.toc strong {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime-hi);
  margin-bottom: 10px;
}

.toc a {
  padding: 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover,
.toc a.is-active {
  color: var(--text);
  border-left-color: var(--lime);
  text-decoration: none;
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 54px 0 14px;
  text-transform: none;
  line-height: 1.15;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--lime-hi);
  margin: 34px 0 8px;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: #d3d7cb;
  font-size: 15.5px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose strong {
  color: #fff;
}

.prose code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #171a13;
  font-size: 13.5px;
}

.note {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14.5px;
}

.note p:last-child {
  margin-bottom: 0;
}

.note--lang {
  border-left-color: var(--cyan);
  margin-top: 0;
  margin-bottom: 34px;
}

.note--warn {
  border-left-color: #ffb300;
  background: #141003;
  color: #f1e3b4;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14.5px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.tile {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

a.tile:hover {
  text-decoration: none;
  border-color: var(--lime);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -30px rgba(138, 206, 0, 0.6);
}

.tile strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.tile span {
  color: var(--muted);
  font-size: 14px;
}

.tile em {
  font-style: normal;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-hi);
}

.center-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 80px;
}

.center-page h1 {
  font-size: clamp(64px, 18vw, 200px);
}

.center-page p {
  color: var(--muted);
  margin: 12px auto 28px;
  max-width: 46ch;
}

/* ---------- Botón bajo las funciones + comparación de planes ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.compare-block {
  margin-top: clamp(64px, 8vw, 104px);
  scroll-margin-top: 96px;
}

.compare-tabs {
  display: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  margin-bottom: 16px;
}

.compare-tabs button {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.compare-tabs button[aria-pressed='true'] {
  background: var(--lime);
  color: #050505;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14.5px;
  font-weight: 500;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  padding-top: 22px;
  padding-bottom: 20px;
  background: #0d0f0a;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compare thead th:first-child {
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare thead em,
.soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-lime);
  color: var(--lime-hi);
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 3px;
}

.compare tbody th {
  width: 34%;
}

.compare tbody th strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.compare tbody th span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
}

.compare td {
  width: 22%;
  color: var(--text);
}

.compare .c-pro {
  background: rgba(138, 206, 0, 0.07);
  box-shadow: inset 1px 0 0 var(--line-lime), inset -1px 0 0 var(--line-lime);
}

.compare thead .c-pro {
  background: rgba(138, 206, 0, 0.16);
  color: var(--lime-hi);
}

.compare tbody tr {
  transition: background 0.2s;
}

.compare tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.yes::before,
.no::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.yes::before {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23050505' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.no {
  color: var(--dim);
}

.no::before {
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 9h6' stroke='%236d7267' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Acceso al Centro de ayuda desde las preguntas del inicio */
.helpcta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  max-width: 880px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line-lime);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(138, 206, 0, 0.14), transparent 60%),
    var(--panel-2);
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.helpcta:hover {
  text-decoration: none;
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -30px rgba(138, 206, 0, 0.6);
}

.helpcta > svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(138, 206, 0, 0.12);
  fill: none;
  stroke: var(--lime-hi);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.helpcta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.helpcta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Centro de ayuda ---------- */

.helphero {
  position: relative;
  padding: 150px 0 0;
  text-align: center;
  isolation: isolate;
}

.helphero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 -120px;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(138, 206, 0, 0.18), transparent 70%),
    radial-gradient(30% 60% at 0% 30%, rgba(255, 43, 214, 0.07), transparent 70%);
  pointer-events: none;
}

.helphero h1 {
  font-size: clamp(32px, 6vw, 72px);
  text-transform: uppercase;
  margin: 16px 0 14px;
}

.helphero p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 60ch;
}

.search {
  position: relative;
  width: min(640px, 100%);
  margin: 30px auto 0;
}

.search input {
  width: 100%;
  padding: 18px 20px 18px 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search input::placeholder {
  color: var(--dim);
}

.search input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(138, 206, 0, 0.22);
}

.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--lime-hi);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
  text-align: left;
}

.portal {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.portal:hover {
  text-decoration: none;
  border-color: var(--lime);
  background: var(--panel-2);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -30px rgba(138, 206, 0, 0.6);
}

.portal svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(138, 206, 0, 0.1);
  fill: none;
  stroke: var(--lime-hi);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.portal span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.help {
  display: grid;
  grid-template-columns: 230px minmax(0, 840px);
  gap: clamp(28px, 5vw, 72px);
  padding: 72px 0 110px;
  align-items: start;
}

.helpgroup {
  margin-bottom: 60px;
  scroll-margin-top: 96px;
}

.helpgroup > h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.helpgroup > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.help .faq {
  max-width: none;
}

.faq details {
  scroll-margin-top: 96px;
}

.faq .ans {
  padding: 0 22px 22px;
  color: #c9cec0;
  font-size: 15px;
  max-width: 74ch;
}

.faq .ans p {
  padding: 0;
  margin: 0 0 10px;
  color: inherit;
}

.faq .ans ul,
.faq .ans ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.faq .ans li {
  margin-bottom: 5px;
}

.faq .ans strong {
  color: #fff;
}

.faq .ans > :last-child {
  margin-bottom: 0;
}

.noresults {
  display: none;
  padding: 26px;
  border: 1px dashed var(--line-lime);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.is-searching .noresults.is-on {
  display: block;
}

.is-hidden {
  display: none !important;
}

/* Formulario de contacto */
.contact {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-lime);
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(138, 206, 0, 0.14), transparent 60%),
    var(--panel-2);
}

.contact h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.contact > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23b6ff1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(138, 206, 0, 0.22);
}

.field small,
.contact__fine {
  color: var(--dim);
  font-size: 12.5px;
}

.contact__fine {
  margin: 14px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .portals {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan--max {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'title'
      'lead'
      'stores'
      'perks';
    row-gap: 14px;
  }
}

@media (max-width: 980px) {
  .split__sticky h2 {
    font-size: clamp(26px, 7.2vw, 64px);
  }

  .card,
  .card--7,
  .card--5 {
    grid-column: span 6;
  }

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

  .split__sticky {
    position: static;
  }

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

  .doc,
  .help {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
  }
}

@media (max-width: 820px) {
  .nav__burger {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 22px;
    background: rgba(4, 4, 4, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    display: block;
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__in .nav__login {
    margin-right: 0;
  }

  .nav__in {
    gap: 10px;
  }

  .lang__panel {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-bottom: 84px;
  }

  .hero h1 {
    font-size: clamp(26px, 7.9vw, 46px);
  }

  .hero__shade {
    background: linear-gradient(
      180deg,
      rgba(4, 4, 4, 0.6) 0%,
      rgba(4, 4, 4, 0.08) 10%,
      rgba(4, 4, 4, 0) 22%,
      rgba(4, 4, 4, 0) 40%,
      rgba(4, 4, 4, 0.8) 62%,
      rgba(4, 4, 4, 0.96) 84%,
      var(--bg) 100%
    );
  }

  .wall {
    inset: -18% -40%;
    gap: 10px;
  }

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

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

  .plan--max {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .compare-tabs {
    display: inline-flex;
  }

  .compare thead {
    display: none;
  }

  .compare tbody th {
    width: 56%;
  }

  .compare td {
    width: 44%;
  }

  .compare th,
  .compare td {
    padding: 14px;
  }

  .compare[data-plan='free'] .c-pro,
  .compare[data-plan='free'] .c-max,
  .compare[data-plan='pro'] .c-free,
  .compare[data-plan='pro'] .c-max,
  .compare[data-plan='max'] .c-free,
  .compare[data-plan='max'] .c-pro {
    display: none;
  }

  .compare .c-pro {
    box-shadow: none;
  }

  .fieldrow {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 640px) {
  .card,
  .card--7,
  .card--5 {
    grid-column: span 12;
  }

  .card__viz {
    height: 200px;
  }

  /* Los dos botones de tienda comparten una fila para dejar más muro a la vista */
  .stores {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .store {
    flex: 1 1 0;
    min-width: 0;
    gap: 9px;
    padding: 10px 12px;
  }

  .store svg {
    width: 24px;
    height: 24px;
  }

  .store small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .store strong {
    font-size: 13.5px;
    white-space: nowrap;
  }

  .hero .lead {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .perks {
    gap: 8px;
  }

  .perks li {
    font-size: 12.5px;
    padding: 7px 12px 7px 10px;
    gap: 8px;
  }

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

  .helpcta {
    grid-template-columns: auto 1fr;
  }

  .helpcta .btn {
    grid-column: 1 / -1;
  }

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

  .fx-cursor {
    display: none;
  }
}

@media (hover: none) {
  .fx-cursor {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bub {
    opacity: 1;
  }

  .fx-cursor {
    display: none;
  }
}
