/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:          #95BF47;
  --green-dark:     #6b9932;
  --green-light:    #c5e08a;
  --green-glow:     rgba(149,191,71,.25);
  --bg:             #080c10;
  --bg-2:           #0d1117;
  --bg-3:           #111827;
  --surface:        #161d2b;
  --surface-2:      #1e2840;
  --border:         rgba(149,191,71,.12);
  --border-strong:  rgba(149,191,71,.3);
  --text:           #f0f4fc;
  --text-muted:     #8a96aa;
  --text-dim:       #404858;
  --white:          #ffffff;
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --shadow:         0 8px 40px rgba(0,0,0,.6);
  --shadow-green:   0 8px 40px rgba(149,191,71,.2);
  --shadow-card:    0 2px 12px rgba(0,0,0,.4);
  --transition:     .3s cubic-bezier(.4,0,.2,1);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:          1200px;
  --nav-h:          68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }

/* ============================================================
   ANIMATED BACKGROUND — más dramático
   ============================================================ */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float-shape 24s ease-in-out infinite alternate;
}

.bg-shape--1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(149,191,71,.18) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-duration: 26s;
}
.bg-shape--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(71,160,191,.12) 0%, transparent 70%);
  top: 30%; right: -150px;
  animation-duration: 20s;
  animation-delay: -8s;
}
.bg-shape--3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(149,191,71,.1) 0%, transparent 70%);
  bottom: -150px; left: 25%;
  animation-duration: 30s;
  animation-delay: -14s;
}
.bg-shape--4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,71,191,.08) 0%, transparent 70%);
  top: 15%; left: 55%;
  animation-duration: 22s;
  animation-delay: -4s;
}

/* Grid lines decorativas */
.bg-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(149,191,71,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149,191,71,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float-shape {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(50px,-40px) scale(1.08); }
  66%  { transform: translate(-30px,60px) scale(.93); }
  100% { transform: translate(40px,25px) scale(1.04); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
main, header, footer, section { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,12,16,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .4;
}

.nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  position: relative;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color var(--transition);
  z-index: 201;
}
.nav__logo:hover { color: var(--green); }
.nav__logo strong { color: var(--green); font-weight: 800; }

/* Links — desktop */
.nav__links {
  display: flex;
  list-style: none;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}

.nav__link {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link--active { color: var(--green); background: rgba(149,191,71,.08); }
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* Ocultar iconos en desktop */
.nav__link-icon { display: none; }

/* Botón hamburguesa — oculto en desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
  flex-shrink: 0;
  z-index: 201;
  width: 44px;
  height: 44px;
}
.nav__toggle:hover { border-color: var(--border-strong); background: var(--surface-2); }

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}

/* Hamburguesa → X */
.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--green);
}
.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--green);
}

/* ── Menú móvil ── */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__link-icon { display: inline; font-size: 1rem; }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,12,16,.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 80px 24px 40px;

    /* Estado cerrado */
    opacity: 0;
    pointer-events: none;
    transform: scale(.97);
    transition:
      opacity .3s ease,
      transform .3s cubic-bezier(.4,0,.2,1);
  }

  .nav__links--open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav__link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 14px;
    width: 100%;
    max-width: 320px;
    justify-content: flex-start;
    border: 1px solid transparent;
    color: var(--text-muted);
  }
  .nav__link:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }
  .nav__link--active {
    background: rgba(149,191,71,.1);
    border-color: rgba(149,191,71,.25);
    color: var(--green);
  }
  .nav__link--active::after { display: none; }

  .nav__link-icon { font-size: 1.2rem; width: 28px; text-align: center; }
}

/* ============================================================
   HERO — impacto máximo
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Orbe central brillante detrás del título */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(149,191,71,.12) 0%,
    rgba(149,191,71,.04) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__inner { max-width: 820px; position: relative; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(149,191,71,.1);
  border: 1px solid rgba(149,191,71,.25);
  padding: 6px 16px;
  border-radius: 100px;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}

.hero__title-line { display: block; }

.text-green {
  color: var(--green);
  position: relative;
}

/* Subrayado animado bajo el texto verde */
.text-green::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--green));
  border-radius: 2px;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200%;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

/* Stats bajo el CTA */
.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-indicator span {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-dot {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.page-hero__inner { max-width: 700px; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 16px 0 20px;
  line-height: 1.08;
}
.page-hero p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }

.section--dark {
  background: var(--bg-2);
  border-top: 1px solid rgba(149,191,71,.06);
  border-bottom: 1px solid rgba(149,191,71,.06);
  position: relative;
}

/* Línea decorativa izquierda en secciones oscuras */
.section--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--green), transparent);
  opacity: .3;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section__header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.section__tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  position: relative;
  padding-left: 16px;
}
.section__tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn--primary {
  background: var(--green);
  color: #080c10;
  border-color: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: #080c10;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(149,191,71,.35), 0 0 0 4px var(--green-glow);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  background: var(--surface);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px);
}
.btn--full { width: 100%; }

/* ============================================================
   CARDS — con efecto glassmorphism
   ============================================================ */
.card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(22,29,43,.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

/* Brillo en esquina superior */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(149,191,71,.4), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-green), 0 0 0 1px rgba(149,191,71,.1);
}
.card:hover::before { opacity: 1; }

.card__icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(149,191,71,.3));
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card--link:hover { color: inherit; }
.card__arrow {
  display: inline-block;
  margin-top: 20px;
  color: var(--green);
  font-size: 1.3rem;
  transition: transform var(--transition);
  opacity: 0;
}
.card--link:hover .card__arrow {
  transform: translateX(8px);
  opacity: 1;
}

.card--tip {
  border-left: 3px solid var(--green);
  background: linear-gradient(135deg, rgba(149,191,71,.06) 0%, var(--surface) 60%);
}

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.feature-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .4s ease;
}
.feature-block:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature-block:hover::after { width: 100%; }

.feature-block__num {
  font-size: .68rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 10px;
}
.feature-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-block p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.feature-block--icon { display: flex; gap: 20px; align-items: flex-start; }
.feature-block__icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   CODE CARDS
   ============================================================ */
.code-card {
  background: #060a0f;
  border: 1px solid rgba(149,191,71,.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-card);
}
.code-card:hover { border-color: rgba(149,191,71,.35); }

.code-card__header {
  background: rgba(22,29,43,.9);
  border-bottom: 1px solid rgba(149,191,71,.1);
  padding: 14px 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dots de terminal */
.code-card__header::before {
  content: '';
  display: flex;
  width: 52px; height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 4px, transparent 4px),
    radial-gradient(circle at 22px 6px, #febc2e 4px, transparent 4px),
    radial-gradient(circle at 38px 6px, #28c840 4px, transparent 4px);
  flex-shrink: 0;
}

.code-card__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.code-card__dot--output { background: #95BF47; box-shadow: 0 0 6px #95BF47; }
.code-card__dot--tag    { background: #e06c75; box-shadow: 0 0 6px #e06c75; }
.code-card__dot--loop   { background: #61afef; box-shadow: 0 0 6px #61afef; }
.code-card__dot--filter { background: #e5c07b; box-shadow: 0 0 6px #e5c07b; }

.code-block {
  padding: 24px 28px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: .82rem;
  line-height: 1.9;
  color: #abb2bf;
  tab-size: 2;
  white-space: pre;
}
.code-block--inline { margin-top: 14px; border-radius: var(--radius); }

.code-card__desc {
  padding: 14px 20px;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.code-inline {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: .85em;
  background: rgba(149,191,71,.1);
  color: var(--green-light);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(149,191,71,.15);
}
.code-inline--sm { font-size: .78em; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  background: var(--surface-2);
  padding: 14px 20px;
  text-align: left;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(149,191,71,.04); color: var(--text); }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(149,191,71,.08);
  align-items: flex-start;
  position: relative;
}
.step:last-child { border-bottom: none; }

/* Línea vertical conectora */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px; top: 72px;
  width: 1px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--green-dark), transparent);
  opacity: .3;
}

.step__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(149,191,71,.1);
  border: 2px solid rgba(149,191,71,.25);
  color: var(--green);
  font-weight: 900;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.step__content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step__content p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   FILE TREE
   ============================================================ */
.file-tree {
  background: #060a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: .83rem;
  line-height: 2.1;
  box-shadow: var(--shadow-card);
}
.tree-folder { color: var(--text); font-weight: 700; }
.tree-file   { color: var(--text-muted); padding-left: 1.2em; }
.tree-icon   { margin-right: 8px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: linear-gradient(160deg, var(--surface) 0%, rgba(13,17,23,.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.pricing-card--featured {
  border-color: rgba(149,191,71,.4);
  background: linear-gradient(160deg, rgba(30,40,53,1) 0%, rgba(20,35,15,.9) 100%);
  box-shadow: var(--shadow-green);
}

.pricing-card__promo {
  background: var(--green);
  color: #080c10;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  padding: 9px 16px;
  margin: -32px -24px 24px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  letter-spacing: .02em;
}
.pricing-card__promo--blue { background: #4361ee; color: #fff; }

.pricing-card__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pricing-card__name-row h3 { font-size: 1.4rem; font-weight: 800; }

.pricing-card__badge {
  background: var(--green);
  color: #080c10;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.pricing-card__desc { font-size: .83rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-card__desde { font-size: .72rem; color: var(--text-dim); margin-bottom: 4px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pricing-card__price-wrap { margin-bottom: 28px; }

.pricing-card__price { display: flex; align-items: center; gap: 8px; }
.pricing-card__amount { font-size: 3.2rem; font-weight: 900; line-height: 1; color: var(--text); letter-spacing: -.02em; }
.pricing-card__currency-wrap { display: flex; flex-direction: column; gap: 2px; }
.pricing-card__currency { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); line-height: 1; }
.pricing-card__period { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }
.pricing-card__period small { font-size: .7rem; color: var(--green); font-weight: 600; }

.pricing-card__features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-card__feature { font-size: .83rem; display: flex; gap: 10px; line-height: 1.4; align-items: flex-start; }
.pricing-card__feature--ok { color: var(--text); }
.pricing-card__feature--ok .pricing-card__check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-card__feature--no { color: var(--text-dim); text-decoration: line-through; }
.pricing-card__feature--no .pricing-card__check { color: var(--text-dim); flex-shrink: 0; }

.pricing-note { text-align: center; font-size: .78rem; color: var(--text-dim); margin-top: 36px; }

/* ============================================================
   BILLING TOGGLE
   ============================================================ */
.billing-toggle { display: flex; justify-content: center; margin-bottom: 52px; }
.billing-toggle__checkbox { display: none; }

.billing-toggle__track {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  user-select: none;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.3);
}

.billing-toggle__option {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color var(--transition);
  white-space: nowrap;
}

.billing-toggle__thumb {
  position: absolute;
  left: 4px; top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.billing-toggle__checkbox:checked ~ .billing-toggle__track .billing-toggle__thumb {
  transform: translateX(100%);
}
.billing-toggle__option--monthly { color: var(--text); }
.billing-toggle__checkbox:checked ~ .billing-toggle__track .billing-toggle__option--monthly { color: var(--text-muted); }
.billing-toggle__checkbox:checked ~ .billing-toggle__track .billing-toggle__option--yearly { color: var(--text); }

/* ============================================================
   SCROLL ANIMATION STRIP
   ============================================================ */
.section--shapes {
  padding: 56px 0;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.shapes-track {
  display: flex;
  gap: 48px;
  animation: marquee 35s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.shape-item { flex-shrink: 0; }

.shape-item--1 {
  width: 52px; height: 52px;
  border: 2px solid rgba(149,191,71,.4);
  border-radius: 12px;
  transform: rotate(15deg);
  animation: spin-slow 14s linear infinite;
  box-shadow: 0 0 20px rgba(149,191,71,.1);
}
.shape-item--2 {
  width: 40px; height: 40px;
  background: rgba(149,191,71,.15);
  border-radius: 50%;
  border: 1px solid rgba(149,191,71,.3);
  animation: pulse-shape 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(149,191,71,.15);
}
.shape-item--3 {
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 44px solid rgba(149,191,71,.2);
  animation: spin-slow 18s linear infinite reverse;
  filter: drop-shadow(0 0 8px rgba(149,191,71,.2));
}
.shape-item--4 {
  width: 48px; height: 48px;
  border: 2px solid rgba(149,191,71,.3);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(149,191,71,.1);
}
.shape-item--4::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--green);
  opacity: .5;
  animation: pulse-shape 2.5s ease-in-out infinite alternate;
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-shape {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.2); }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  animation: reveal-in .8s cubic-bezier(.4,0,.2,1) forwards;
}
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-in .7s cubic-bezier(.4,0,.2,1) forwards;
}
.reveal-group > *:nth-child(1) { animation-delay: .05s; }
.reveal-group > *:nth-child(2) { animation-delay: .15s; }
.reveal-group > *:nth-child(3) { animation-delay: .25s; }
.reveal-group > *:nth-child(4) { animation-delay: .35s; }
.reveal-group > *:nth-child(5) { animation-delay: .45s; }
.reveal-group > *:nth-child(6) { animation-delay: .55s; }
.reveal-group > *:nth-child(7) { animation-delay: .65s; }
.reveal-group > *:nth-child(8) { animation-delay: .75s; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 64px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .4;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer__brand p { font-size: .85rem; color: var(--text-muted); margin-top: 14px; line-height: 1.8; }
.footer__nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer__nav a { font-size: .85rem; color: var(--text-muted); transition: color var(--transition); }
.footer__nav a:hover { color: var(--green); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 20px 28px;
  font-size: .78rem;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav ul { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   RESPONSIVE — Tablet y móvil
   ============================================================ */

/* ── Tablet grande (max 1024px) ── */
@media (max-width: 1024px) {
  :root { --nav-h: 64px; }

  .hero { padding: 60px 0 100px; }
  .hero__title { font-size: clamp(2.8rem, 6vw, 4.5rem); }
  .hero__stats { gap: 32px; }
  .hero__stat-number { font-size: 1.7rem; }

  .section { padding: 80px 0; }
  .section__header { margin-bottom: 48px; }

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

  .stat-block__number { font-size: 2.2rem; }
}

/* ── Tablet (max 860px) ── */
@media (max-width: 860px) {

  /* Nav ya gestionado arriba con el toggle */

  .hero {
    min-height: auto;
    padding: 60px 0 80px;
    text-align: center;
  }
  .hero__inner { max-width: 100%; }
  .hero__eyebrow { justify-content: center; }
  .hero__subtitle { margin: 0 auto 40px; }
  .hero__cta { justify-content: center; }
  .hero__stats {
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero__stat { text-align: center; }
  .hero__scroll-indicator { display: none; }

  .page-hero { padding: 60px 0 48px; text-align: center; }
  .page-hero__inner { max-width: 100%; }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; }

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

  .feature-block--icon { flex-direction: row; }

  .steps { gap: 0; }
  .step { gap: 20px; padding: 28px 0; }
  .step:not(:last-child)::after { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  .billing-toggle__option { padding: 9px 16px; font-size: .8rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__nav ul { grid-template-columns: repeat(2, 1fr); }

  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: 12px 14px; }
}

/* ── Móvil grande (max 640px) ── */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .hero { padding: 48px 0 64px; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: -.02em; }
  .hero__subtitle { font-size: 1rem; }
  /* Dentro de @media (max-width: 640px) */
  .hero__cta { 
    flex-direction: column; 
    align-items: center; 
    gap: 12px;
  }
  .hero__cta .btn { 
    width: 100%; 
    max-width: 280px;
    justify-content: center; 
  }
  .hero__stats { gap: 20px; }
  .hero__stat-number { font-size: 1.5rem; }
  .hero__stat-label { font-size: .72rem; }

  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }

  .section { padding: 56px 0; }
  .section__header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section__header p { font-size: .95rem; }
  .section__header { margin-bottom: 36px; }

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

  .card { padding: 24px 20px; }
  .card__icon { font-size: 1.8rem; margin-bottom: 14px; }

  .feature-block { padding: 22px 20px; }
  .feature-block--icon { gap: 14px; }
  .feature-block__icon { font-size: 1.5rem; }

  .code-block { font-size: .76rem; padding: 18px 16px; }
  .code-card__header { padding: 12px 16px; font-size: .75rem; }

  .pricing-card { padding: 28px 20px; }
  .pricing-card__promo { margin: -28px -20px 20px; }
  .pricing-card__amount { font-size: 2.6rem; }

  .billing-toggle__track { flex-direction: column; border-radius: 16px; padding: 4px; gap: 2px; }
  .billing-toggle__option { padding: 10px 20px; text-align: center; width: 100%; }
  .billing-toggle__thumb {
    width: calc(100% - 8px);
    height: calc(50% - 4px);
    left: 4px;
  }
  .billing-toggle__checkbox:checked ~ .billing-toggle__track .billing-toggle__thumb {
    transform: translateY(100%);
  }

  .step { gap: 16px; padding: 24px 0; }
  .step__num { width: 38px; height: 38px; font-size: .8rem; flex-shrink: 0; }
  .step__content h3 { font-size: .95rem; }
  .step__content p { font-size: .85rem; }

  .file-tree { padding: 20px; font-size: .78rem; line-height: 1.9; }

  .table-wrapper { border-radius: var(--radius); }
  .data-table th { font-size: .65rem; padding: 10px 12px; }
  .data-table td { padding: 10px 12px; font-size: .78rem; }

  .stat-block { padding: 28px 16px; }
  .stat-block__number { font-size: 2rem; }
  .stat-block__label { font-size: .78rem; }

  .footer__inner { gap: 28px; padding-bottom: 36px; }
  .footer__nav ul { grid-template-columns: 1fr; gap: 8px; }
  .footer__bottom { padding: 16px 18px; font-size: .75rem; }

  .btn { padding: 12px 24px; font-size: .875rem; }

  .shapes-track { gap: 32px; }
  .shape-item--1 { width: 36px; height: 36px; }
  .shape-item--2 { width: 28px; height: 28px; }
  .shape-item--4 { width: 34px; height: 34px; }

  .section--shapes { padding: 36px 0; }
}

/* ── Móvil pequeño (max 380px) ── */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 1.9rem; }
  .nav__logo-text { font-size: .95rem; }
  .hero__stats { flex-direction: column; align-items: center; gap: 16px; }
  .pricing-card__amount { font-size: 2.2rem; }
  .btn { padding: 11px 20px; }
}

/* ── Landscape móvil ── */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }
  .hero__title { font-size: 2.2rem; }
  .hero__stats { gap: 20px; }
}

/* ============================================================
   DRAWER — menú lateral móvil
   ============================================================ */

/* Ocultar hamburguesa en desktop */
.nav__toggle { display: none; }

@media (max-width: 900px) {
  /* Ocultar links desktop */
  .nav__links { display: none !important; }

  /* Mostrar hamburguesa */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
  }
  .nav__toggle:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
  }

  .nav__toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
  }
  .nav__toggle--open .nav__toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--green);
  }
  .nav__toggle--open .nav__toggle-bar:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .nav__toggle--open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--green);
  }
}

/* Overlay oscuro */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.drawer-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.drawer--open {
  transform: translateX(0);
}

/* Header del drawer */
.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.drawer__close:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-2);
}

/* Nav del drawer */
.drawer__nav {
  flex: 1;
  padding: 24px 16px;
}

.drawer__section-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 8px;
}

.drawer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .2s ease;
  color: var(--text-muted);
  gap: 12px;
}
.drawer__link:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.drawer__link:hover .drawer__link-arrow {
  color: var(--green);
  transform: translateX(3px);
}
.drawer__link--active {
  background: rgba(149,191,71,.08);
  border-color: rgba(149,191,71,.2);
  color: var(--text);
}
.drawer__link--active .drawer__link-title { color: var(--green); }
.drawer__link--active .drawer__link-arrow { color: var(--green); }

.drawer__link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.drawer__link-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}
.drawer__link-sub {
  font-size: .75rem;
  color: var(--text-dim);
  line-height: 1.2;
}

.drawer__link-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all .2s ease;
}

/* Footer del drawer */
.drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer__external {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
  margin-bottom: 12px;
}
.drawer__external:hover {
  color: var(--green);
  border-color: var(--border-strong);
}

.drawer__footer-note {
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
}
