/* ═══════════════════════════════════════════════════════════════
   LIMAS — Libertad al Máximo
   Tema oscuro premium · Colores oficiales del manual de marca:
   Lima #A8FF00 · Verdes #00D11B / #009803 / #005F08 · Negro
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colores de marca */
  --lime: #A8FF00;
  --green-bright: #00D11B;
  --green-mid: #009803;
  --green-deep: #005F08;

  /* Superficies */
  --bg: #060906;
  --bg-alt: #090D08;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(168, 255, 0, 0.22);

  /* Texto */
  --text: #F2F7EF;
  --text-dim: #A9B8A5;
  --text-faint: #7E8F7B;
  --on-lime: #04140A;

  /* Tipografía */
  --font-display: "Sora", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* Ritmo */
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--lime); color: var(--on-lime); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: 820px; }

.text-gradient {
  background: linear-gradient(96deg, var(--lime) 10%, var(--green-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ Botones ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(120deg, var(--lime), #8BE000);
  color: var(--on-lime);
  box-shadow: 0 0 0 rgba(168, 255, 0, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -8px rgba(168, 255, 0, 0.55);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border-lime);
  background: var(--surface-2);
}
.btn--dark {
  background: #04140A;
  color: var(--lime);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.6); }
.btn--outline-dark {
  border-color: rgba(4, 20, 10, 0.4);
  color: var(--on-lime);
}
.btn--outline-dark:hover { background: rgba(4, 20, 10, 0.12); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.35rem; font-size: 0.9rem; }

/* ═══════════ Chip ═══════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(168, 255, 0, 0.07);
  border: 1px solid var(--border-lime);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.chip svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ═══════════ Header ═══════════ */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.35s var(--ease), padding 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  padding: 0.6rem 0;
  background: rgba(6, 9, 6, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header__logo img { width: 132px; height: auto; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.header__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header__link:hover { color: var(--text); }
.header__link:hover::after { transform: scaleX(1); }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative;
  padding: clamp(8rem, 14vh, 11rem) 0 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 560px; height: 560px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(168, 255, 0, 0.16), transparent 65%);
}
.hero__glow--2 {
  width: 480px; height: 480px;
  bottom: -180px; left: -160px;
  background: radial-gradient(circle, rgba(0, 152, 3, 0.18), transparent 65%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  margin: 1.4rem 0 1.2rem;
}
.hero__sub {
  font-size: 1.13rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 33rem;
  margin-bottom: 2rem;
}
.hero__sub strong { color: var(--text); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.hero__trust li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(168, 255, 0, 0.8);
}

/* Red del hero */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__net {
  width: min(100%, 480px);
  filter: drop-shadow(0 0 40px rgba(168, 255, 0, 0.08));
}
.net__pulse { opacity: 0; transform-origin: 260px 260px; }
.hero__visual.in-view .net__pulse { animation: pulse 2.6s var(--ease) 1s infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.net__ring--outer { animation: spin 90s linear infinite; transform-origin: 260px 260px; stroke-dasharray: 4 10; }
.net__ring--mid { animation: spin-rev 60s linear infinite; transform-origin: 260px 260px; stroke-dasharray: 3 8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
.net__nodes-l1 circle { animation: node-glow 3.4s ease-in-out infinite; }
.net__nodes-l1 circle:nth-child(2) { animation-delay: 0.5s; }
.net__nodes-l1 circle:nth-child(3) { animation-delay: 1s; }
.net__nodes-l1 circle:nth-child(4) { animation-delay: 1.5s; }
.net__nodes-l1 circle:nth-child(5) { animation-delay: 2s; }
.net__nodes-l1 circle:nth-child(6) { animation-delay: 2.5s; }
@keyframes node-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* ── Entrada de la red: TÚ → expansión → recompensas ── */
.net__center, .net__center-label {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.hero__visual.in-view .net__center,
.hero__visual.in-view .net__center-label { transform: scale(1); }

.hero__net .net__ring { opacity: 0; transition: opacity 0.9s ease 1.15s; }
.hero__visual.in-view .net__ring { opacity: 1; }

.hero__net .net__lines line {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  transition: stroke-dashoffset 0.8s var(--ease);
}
.hero__visual.in-view .net__lines line { stroke-dashoffset: 0; }
.hero__visual.in-view .net__lines--c line { transition-delay: 0.35s; }
.hero__visual.in-view .net__lines--o line { transition-delay: 0.95s; }

.net__nodes-l1 circle, .net__nodes-l2 circle {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero__visual.in-view .net__nodes-l1 circle,
.hero__visual.in-view .net__nodes-l2 circle { transform: scale(1); }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(1) { transition-delay: 0.75s; }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(2) { transition-delay: 0.83s; }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(3) { transition-delay: 0.91s; }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(4) { transition-delay: 0.99s; }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(5) { transition-delay: 1.07s; }
.hero__visual.in-view .net__nodes-l1 circle:nth-child(6) { transition-delay: 1.15s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(1) { transition-delay: 1.4s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(2) { transition-delay: 1.47s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(3) { transition-delay: 1.54s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(4) { transition-delay: 1.61s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(5) { transition-delay: 1.68s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(6) { transition-delay: 1.75s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(7) { transition-delay: 1.82s; }
.hero__visual.in-view .net__nodes-l2 circle:nth-child(8) { transition-delay: 1.89s; }

/* Al final aparecen los chips de reembolso y comisiones */
.hero__visual .float-chip { opacity: 0; transition: opacity 0.6s ease; }
.hero__visual.in-view .float-chip--1 { opacity: 1; transition-delay: 2.05s; }
.hero__visual.in-view .float-chip--2 { opacity: 1; transition-delay: 2.35s; }
.hero__visual.in-view .float-chip--3 { opacity: 1; transition-delay: 2.65s; }

/* Chips flotantes */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text);
  background: rgba(11, 17, 11, 0.85);
  border: 1px solid var(--border-lime);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip strong { color: var(--lime); font-weight: 700; }
.float-chip__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(168, 255, 0, 0.12);
  color: var(--lime);
}
.float-chip__icon svg { width: 16px; height: 16px; }
.float-chip--1 { top: 8%; right: 2%; animation-delay: 0s; }
.float-chip--2 { bottom: 20%; left: -2%; animation-delay: 1.6s; }
.float-chip--3 { bottom: -1%; right: 12%; animation-delay: 3.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* Stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding: 1.8rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* ═══════════ Marquee ═══════════ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(168, 255, 0, 0.03);
  padding: 0.95rem 0;
  margin-top: 3rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee__track .marquee__dot { color: var(--lime); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ═══════════ Secciones ═══════════ */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; position: relative; }
.section--alt {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 152, 3, 0.06), transparent 70%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section__head h2 { margin: 1.2rem 0 1rem; }
.section__sub { color: var(--text-dim); font-size: 1.06rem; font-weight: 300; }
.section__note {
  text-align: center;
  color: var(--text-faint);
  margin-top: 2.5rem;
  font-size: 0.95rem;
}
.section__note a {
  color: var(--lime);
  font-weight: 500;
  border-bottom: 1px solid rgba(168, 255, 0, 0.35);
  transition: border-color 0.2s ease;
}
.section__note a:hover { border-color: var(--lime); }

/* ═══════════ Cards ecosistema ═══════════ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 50% -20%, rgba(168, 255, 0, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-lime);
}
.card:hover::before { opacity: 1; }
.card__num {
  position: absolute;
  top: 1.3rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(168, 255, 0, 0.14), rgba(0, 152, 3, 0.1));
  border: 1px solid var(--border-lime);
  color: var(--lime);
  margin-bottom: 1.5rem;
  transition: transform 0.35s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 0.7rem; font-size: 1.25rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card p strong { color: var(--text); }

/* ═══════════ Video (carga diferida) ═══════════ */
.video__lead {
  text-align: center;
  margin-top: 3.5rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-weight: 300;
}
.video {
  position: relative;
  max-width: 860px;
  margin: 1.4rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.8);
}
.video__facade,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__facade {
  padding: 0;
  cursor: pointer;
  background: #000;
  display: block;
}
.video__facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta el letterbox 4:3 → 16:9 exacto */
  transition: transform 0.6s var(--ease);
}
.video__facade:hover img,
.video__facade:focus-visible img { transform: scale(1.04); }
.video__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
  transition: background 0.3s ease;
}
.video__facade:hover .video__scrim { background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42)); }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(62px, 9vw, 82px);
  height: clamp(62px, 9vw, 82px);
  border-radius: 50%;
  background: linear-gradient(120deg, var(--lime), #8BE000);
  color: var(--on-lime);
  box-shadow: 0 12px 44px -8px rgba(168, 255, 0, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video__facade:hover .video__play,
.video__facade:focus-visible .video__play {
  transform: scale(1.09);
  box-shadow: 0 16px 54px -8px rgba(168, 255, 0, 0.8);
}
.video__play svg { width: 42%; height: 42%; margin-left: 8%; }
.video__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.15rem;
  padding: 2.6rem 1.5rem 1.15rem;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.video__caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.video__caption-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.video__pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(62px, 9vw, 82px);
  height: clamp(62px, 9vw, 82px);
  border-radius: 50%;
  border: 2px solid rgba(168, 255, 0, 0.5);
  animation: video-pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes video-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { opacity: 0; }
}

/* ═══════════ Marketplace ═══════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.cat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              background-color 0.3s var(--ease);
  cursor: default;
}
.cat__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cat:hover .cat__img img { transform: scale(1.06); }
.cat__label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.2rem;
}
.cat svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green-bright);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}
.cat:hover {
  transform: translateY(-4px);
  border-color: var(--border-lime);
  background: var(--surface-2);
}
.cat:hover svg { color: var(--lime); transform: scale(1.12); }

/* ═══════════ Plan ═══════════ */
.plan__wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.plan__tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.plan__tree svg { width: 100%; height: auto; }

.tree__lines path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.tree__node { opacity: 0; transform: scale(0.6); transform-origin: center; transform-box: fill-box; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.tree__more { opacity: 0; transition: opacity 0.6s ease 1.6s; }
.plan__tree.in-view .tree__lines path { stroke-dashoffset: 0; }
.plan__tree.in-view .tree__node { opacity: 1; transform: scale(1); }
.plan__tree.in-view .tree__node--root { transition-delay: 0.1s; }
.plan__tree.in-view .tree__node[data-level="1"] { transition-delay: 0.45s; }
.plan__tree.in-view .tree__node[data-level="2"] { transition-delay: 0.85s; }
.plan__tree.in-view .tree__node[data-level="3"] { transition-delay: 1.25s; }
.plan__tree.in-view .tree__more { opacity: 1; }

.plan__levels { display: grid; gap: 1rem; }
.level {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.level:hover { transform: translateX(6px); border-color: var(--border-lime); }
.level__badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-bright);
  background: rgba(0, 209, 27, 0.08);
  border: 2px solid rgba(0, 209, 27, 0.35);
}
.level__badge--you {
  color: var(--on-lime);
  background: linear-gradient(130deg, var(--lime), #7BD400);
  border-color: transparent;
  box-shadow: 0 0 26px -4px rgba(168, 255, 0, 0.5);
}
.level h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.level p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.45; }
.level__note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ═══════════ Calculadora ═══════════ */
.calc {
  margin-top: 3.5rem;
  background:
    radial-gradient(ellipse 60% 90% at 85% 10%, rgba(168, 255, 0, 0.06), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.calc__head { text-align: center; margin-bottom: 2.2rem; }
.calc__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 0.5rem; }
.calc__head p { color: var(--text-dim); font-weight: 300; }
.calc__body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
.calc__field { margin-bottom: 1.7rem; }
.calc__field:last-child { margin-bottom: 0; }
.calc__field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.calc__slider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.calc__slider output {
  flex-shrink: 0;
  min-width: 4.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lime);
  background: rgba(168, 255, 0, 0.08);
  border: 1px solid var(--border-lime);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--lime) var(--fill, 25%), rgba(255, 255, 255, 0.12) var(--fill, 25%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid #0B110B;
  box-shadow: 0 0 14px rgba(168, 255, 0, 0.6);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid #0B110B;
  box-shadow: 0 0 14px rgba(168, 255, 0, 0.6);
  cursor: pointer;
}
.calc__result {
  background: rgba(4, 20, 10, 0.55);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.calc__result-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.calc__total {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--lime);
  line-height: 1.1;
  margin: 0.4rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(168, 255, 0, 0.35);
}
.calc__total::after {
  content: " /mes";
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-faint);
  text-shadow: none;
}
.calc__breakdown {
  margin-top: 1.4rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}
.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.93rem;
  color: var(--text-dim);
}
.calc__breakdown em { font-style: normal; color: var(--text); font-weight: 500; }
.calc__breakdown strong {
  font-family: var(--font-display);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc__disclaimer {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ═══════════ Negocios ═══════════ */
.biz {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.biz__content h2 { margin: 1.2rem 0 1rem; }
.biz__content .section__sub { margin-bottom: 2rem; }
.biz__list { display: grid; gap: 1.3rem; margin-bottom: 2.3rem; }
.biz__list li { display: flex; gap: 1rem; align-items: flex-start; }
.biz__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: rgba(168, 255, 0, 0.1);
  border: 1px solid var(--border-lime);
  color: var(--lime);
}
.biz__check svg { width: 15px; height: 15px; }
.biz__list h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.biz__list p { color: var(--text-dim); font-size: 0.94rem; }

.biz__visual { position: relative; }
.biz__photo {
  width: min(82%, 420px);
  margin: 0 0.4rem -3.6rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: rotate(2deg);
  box-shadow: 0 26px 70px -28px rgba(0, 0, 0, 0.85);
}
.biz__photo img { width: 100%; height: auto; display: block; }
.biz-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.biz-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.biz-card__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(168, 255, 0, 0.16), rgba(0, 152, 3, 0.12));
  border: 1px solid var(--border-lime);
  color: var(--lime);
}
.biz-card__avatar svg { width: 24px; height: 24px; }
.biz-card__name { font-family: var(--font-display); font-weight: 600; }
.biz-card__tag { font-size: 0.82rem; color: var(--text-faint); }
.biz-card__badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(0, 209, 27, 0.1);
  border: 1px solid rgba(0, 209, 27, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.biz-card__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  height: 150px;
  padding: 0 0.4rem;
  margin-bottom: 1.6rem;
}
.bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.bar i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 8px;
  background: linear-gradient(to top, var(--green-deep), var(--green-bright));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
}
.bar--hl i { background: linear-gradient(to top, var(--green-mid), var(--lime)); }
.biz__visual.in-view .bar i { transform: scaleY(1); }
.biz__visual.in-view .bar:nth-child(2) i { transition-delay: 0.1s; }
.biz__visual.in-view .bar:nth-child(3) i { transition-delay: 0.2s; }
.biz__visual.in-view .bar:nth-child(4) i { transition-delay: 0.3s; }
.biz__visual.in-view .bar:nth-child(5) i { transition-delay: 0.4s; }
.biz__visual.in-view .bar:nth-child(6) i { transition-delay: 0.5s; }
.biz-card__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  text-align: center;
}
.biz-card__metric {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--lime);
}
.biz-card__mlabel { font-size: 0.8rem; color: var(--text-faint); }
.float-chip--biz {
  top: -1.4rem;
  right: 1.2rem;
  animation-delay: 0.8s;
}

/* ═══════════ Testimonios ═══════════ */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); border-color: var(--border-lime); }
.testimonial__stars { color: var(--lime); letter-spacing: 0.2em; font-size: 0.95rem; }
.testimonial blockquote {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.testimonial figcaption { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--on-lime);
  background: linear-gradient(135deg, var(--lime), var(--green-bright));
}
.testimonial figcaption strong { display: block; font-size: 0.96rem; }
.testimonial figcaption span:last-child { font-size: 0.84rem; color: var(--text-faint); }

/* ═══════════ Recursos ═══════════ */
.resource {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.resource:hover { transform: translateY(-4px); border-color: var(--border-lime); }
.resource__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(168, 255, 0, 0.14), rgba(0, 152, 3, 0.1));
  border: 1px solid var(--border-lime);
  color: var(--green-bright);
}
.resource__icon svg { width: 26px; height: 26px; }
.resource__info { display: grid; gap: 0.15rem; min-width: 0; }
.resource__info strong { font-family: var(--font-display); font-size: 1.05rem; }
.resource__info span { color: var(--text-faint); font-size: 0.88rem; }
.resource__btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--on-lime);
  background: linear-gradient(120deg, var(--lime), #8BE000);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
}
.resource__btn svg { width: 17px; height: 17px; }
html[data-theme="light"] .resource__icon { color: #00790A; }

/* ═══════════ FAQ ═══════════ */
.faq { display: grid; gap: 0.9rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq__item[open] { border-color: var(--border-lime); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lime); }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-lime);
  background: rgba(168, 255, 0, 0.06);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  translate: -50% -50%;
  transition: rotate 0.3s var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon::after { rotate: 0deg; }
.faq__body { padding: 0 1.5rem 1.4rem; }
.faq__body p { color: var(--text-dim); font-size: 0.97rem; }
.faq__body a { color: var(--lime); border-bottom: 1px solid rgba(168, 255, 0, 0.35); }

/* ═══════════ CTA final ═══════════ */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(130deg, var(--lime) 0%, #7BE000 45%, var(--green-bright) 100%);
  border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  color: var(--on-lime);
}
.cta__glow {
  position: absolute;
  width: 480px;
  height: 480px;
  top: -240px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  pointer-events: none;
}
.cta h2 {
  position: relative;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta__accent { display: inline-block; }
.cta p {
  position: relative;
  max-width: 33rem;
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.85;
}
.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta__note {
  position: relative;
  margin-top: 1.6rem !important;
  margin-bottom: 0 !important;
  font-size: 0.86rem !important;
  opacity: 0.7 !important;
}

/* ═══════════ Footer ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand img { width: 150px; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--text-faint); font-size: 0.94rem; max-width: 22rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer__col a {
  color: var(--text-faint);
  font-size: 0.94rem;
  width: fit-content;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  padding-block: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer__slogan {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ═══════════ WhatsApp FAB ═══════════ */
.wa-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 12px 34px -8px rgba(18, 140, 126, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 44px -8px rgba(18, 140, 126, 0.8);
}

/* ═══════════ Páginas legales ═══════════ */
.header--solid {
  background: rgba(6, 9, 6, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.legal-page { padding: clamp(7.5rem, 13vh, 9.5rem) 0 4.5rem; }
.legal-head { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.legal-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 1.2rem 0 0.7rem; }
.legal-date { color: var(--text-faint); font-size: 0.9rem; }
.legal-fade { animation: legal-in 0.7s var(--ease) both; }
@keyframes legal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.legal-body { display: grid; gap: 2.4rem; }
.legal-body > * { min-width: 0; } /* permite que las tablas hagan scroll interno en vez de desbordar */
.legal-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.9rem;
}
.legal-intro p { color: var(--text-dim); }
.legal-block h2 {
  font-size: 1.28rem;
  margin-bottom: 0.9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--lime);
}
.legal-block h3 { font-size: 1.02rem; color: var(--green-bright); margin: 1.3rem 0 0.6rem; }
.legal-block p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 0.85rem; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { display: grid; gap: 0.6rem; margin: 0.4rem 0 0.9rem; }
.legal-block li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.legal-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}
.legal-block a { color: var(--lime); border-bottom: 1px solid rgba(168, 255, 0, 0.35); transition: border-color 0.2s ease; }
.legal-block a:hover { border-color: var(--lime); }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 0.6rem;
}
.legal-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.legal-table th, .legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.legal-table tbody tr:last-child th, .legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table thead th {
  font-family: var(--font-display);
  color: var(--lime);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-lime);
}
.legal-table tbody th,
.legal-table thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #0B110B;
}
.legal-table tbody th { font-weight: 600; color: var(--text); }
.legal-table td { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.table-note { font-size: 0.85rem; color: var(--text-faint); }

/* ═══════════ Intro de carga (logo → menú) ═══════════ */
html.intro-active { overflow: hidden; }
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  transition: background-color 0.55s ease;
}
.intro__glow {
  position: absolute;
  width: min(70vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 255, 0, 0.18), transparent 62%);
  filter: blur(58px);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.intro__logo {
  position: relative;
  width: min(64vw, 340px);
  height: auto;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.65s var(--ease), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}
.intro--in .intro__logo { opacity: 1; transform: scale(1); }
.intro--in .intro__glow { opacity: 1; }
.intro--fly { background-color: transparent; }
.intro--fly .intro__glow { opacity: 0; transition: opacity 0.4s ease; }

/* Mientras dura el intro, el header espera oculto */
.header__logo img, .header__nav, .header__burger { transition: opacity 0.45s ease; }
html.intro-active .header__logo img,
html.intro-active .header__nav,
html.intro-active .header__burger { opacity: 0; }

/* ═══════════ Animaciones de entrada ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { max-width: 38rem; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .plan__wrap { grid-template-columns: 1fr; }
  .calc__body { grid-template-columns: 1fr; }
  .biz { grid-template-columns: 1fr; }
  .biz__visual { max-width: 520px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(21rem, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 6.5rem 2rem 2rem;
    background: rgba(6, 9, 6, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }
  .header__nav.open { transform: translateX(0); }
  .header__link { font-size: 1.15rem; padding: 0.7rem 0; width: 100%; }
  .header__cta { margin-top: 1rem; width: 100%; }
  .header__burger { display: flex; position: relative; z-index: 101; }
}

@media (max-width: 640px) {
  .hero { padding-top: 7rem; }
  .chip svg { width: 21px; height: 21px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; padding: 1.6rem 1.2rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .resource { flex-wrap: wrap; }
  .resource__btn { margin-left: 0; width: 100%; justify-content: center; }
  /* Diagrama del plan más amplio: la tarjeta se extiende casi al borde y reduce su padding */
  .plan__tree {
    padding: 0.9rem 0.35rem;
    margin-inline: -0.7rem;
    border-radius: var(--radius);
  }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .cat { font-size: 0.85rem; }
  /* En móvil: icono arriba y texto centrado para que las etiquetas largas no se corten */
  .cat__label {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.8rem 0.5rem;
    line-height: 1.3;
  }
  .cat__label span { min-width: 0; overflow-wrap: break-word; }
  .cat svg { width: 22px; height: 22px; }
  .biz__photo { margin-bottom: -2.6rem; }
  .float-chip--2 { left: -4%; bottom: 14%; }
  .float-chip--3 { display: none; }
  .btn { width: 100%; }
  .hero__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: auto; min-width: 240px; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
  .level:hover { transform: none; }
}

/* ═══════════ Conmutador de tema ═══════════ */
.header__right { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  position: relative;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-lime); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }

/* ═══════════ Tema claro ═══════════ */
:root { color-scheme: dark; }
body { transition: background-color 0.35s ease, color 0.35s ease; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F6FAF3;
  --bg-alt: #FFFFFF;
  --surface: rgba(8, 34, 12, 0.035);
  --surface-2: rgba(8, 34, 12, 0.06);
  --border: rgba(8, 34, 12, 0.12);
  --border-lime: rgba(0, 138, 5, 0.3);
  --text: #0E1F0D;
  --text-dim: #3F5540;
  --text-faint: #5F735F;
}

/* En claro, los acentos de TEXTO pasan de lima a verde profundo (contraste AA);
   los fondos lima (botones, badges, CTA) se conservan porque llevan texto oscuro */
html[data-theme="light"] .chip { color: #00790A; background: rgba(0, 152, 3, 0.08); }
html[data-theme="light"] .text-gradient {
  background: linear-gradient(96deg, #00A312 10%, #006E04 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .header__link::after { background: #009803; }
html[data-theme="light"] .header--scrolled { background: rgba(246, 250, 243, 0.85); }
html[data-theme="light"] .header--solid { background: rgba(246, 250, 243, 0.92); }
/* En claro los botones secundarios necesitan más definición para leerse como botón */
html[data-theme="light"] .btn--ghost {
  background: #FFFFFF;
  border-color: rgba(8, 34, 12, 0.22);
  box-shadow: 0 2px 8px -3px rgba(15, 45, 18, 0.18);
}
html[data-theme="light"] .btn--ghost:hover { background: #FFFFFF; border-color: rgba(0, 138, 5, 0.5); }
html[data-theme="light"] .theme-toggle { background: #FFFFFF; border-color: rgba(8, 34, 12, 0.18); }
html[data-theme="light"] .hero__trust li::before { background: #00A312; box-shadow: none; }
html[data-theme="light"] .hero__glow--1 { background: radial-gradient(circle, rgba(0, 163, 18, 0.1), transparent 65%); }
html[data-theme="light"] .hero__glow--2 { background: radial-gradient(circle, rgba(0, 152, 3, 0.1), transparent 65%); }
html[data-theme="light"] .net__lines { stroke: rgba(0, 122, 10, 0.35); }
html[data-theme="light"] .net__ring--outer { stroke: rgba(0, 122, 10, 0.14); }
html[data-theme="light"] .net__ring--mid { stroke: rgba(0, 122, 10, 0.22); }
html[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px -12px rgba(15, 45, 18, 0.25);
}
html[data-theme="light"] .float-chip strong { color: #00790A; }
html[data-theme="light"] .float-chip__icon { background: rgba(0, 152, 3, 0.1); color: #00790A; }
html[data-theme="light"] .stat__num { color: #00790A; }
html[data-theme="light"] .marquee { background: rgba(0, 152, 3, 0.05); }
html[data-theme="light"] .marquee__track .marquee__dot { color: #00A312; }
html[data-theme="light"] .card__icon { color: #00790A; }
html[data-theme="light"] .cat svg { color: #008A05; }
html[data-theme="light"] .cat:hover svg { color: #00790A; }
html[data-theme="light"] .tree__lines { stroke: rgba(0, 122, 10, 0.45); }
html[data-theme="light"] .tree__lines--l2 { stroke: rgba(0, 122, 10, 0.35); }
html[data-theme="light"] .tree__lines--l3 { stroke: rgba(0, 122, 10, 0.28); }
html[data-theme="light"] .level__badge {
  color: #007A04;
  border-color: rgba(0, 152, 3, 0.4);
  background: rgba(0, 152, 3, 0.07);
}
html[data-theme="light"] .calc__slider output { color: #00790A; background: rgba(0, 152, 3, 0.07); }
html[data-theme="light"] input[type="range"] {
  background: linear-gradient(to right, #7BD400 var(--fill, 25%), rgba(8, 34, 12, 0.15) var(--fill, 25%));
}
html[data-theme="light"] .calc__result { background: rgba(255, 255, 255, 0.78); }
html[data-theme="light"] .calc__total { color: #00790A; text-shadow: none; }
html[data-theme="light"] .biz__check { color: #00790A; }
html[data-theme="light"] .biz-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 80px -30px rgba(15, 45, 18, 0.3);
}
html[data-theme="light"] .biz__photo { box-shadow: 0 26px 70px -28px rgba(15, 45, 18, 0.35); }
html[data-theme="light"] .biz-card__avatar { color: #00790A; }
html[data-theme="light"] .biz-card__badge { color: #007A04; background: rgba(0, 152, 3, 0.08); }
html[data-theme="light"] .biz-card__metric { color: #00790A; }
html[data-theme="light"] .faq__item summary:hover { color: #00790A; }
html[data-theme="light"] .faq__icon::before,
html[data-theme="light"] .faq__icon::after { background: #00790A; }
html[data-theme="light"] .section__note a,
html[data-theme="light"] .faq__body a,
html[data-theme="light"] .legal-block a { color: #00790A; border-color: rgba(0, 138, 5, 0.4); }
html[data-theme="light"] .footer__col a:hover { color: #00790A; }
html[data-theme="light"] .footer__slogan { color: #00790A; }
html[data-theme="light"] .legal-table thead th { color: #00790A; }
html[data-theme="light"] .legal-table tbody th,
html[data-theme="light"] .legal-table thead th:first-child { background: #EDF3E8; }

@media (max-width: 860px) {
  html[data-theme="light"] .header__nav {
    background: rgba(246, 250, 243, 0.97);
  }
}

/* ═══════════ Reduced motion ═══════════ */
@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;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tree__lines path { stroke-dashoffset: 0; }
  .tree__node { opacity: 1; transform: none; }
  .tree__more { opacity: 1; }
  .bar i { transform: scaleY(1); }
  .marquee__track { animation: none; }
}
