/* ============================================================
   GROW LEVEL — Design System
   Dark, premium, minimal. Inspirado en Stripe/Linear/Vercel.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg: #07090c;
  --bg-elev: #0b0e13;
  --bg-elev-2: #10141b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f4f8;
  --text-2: #a3adbd;
  --text-3: #6b7585;

  --accent: #2fd980;
  --accent-2: #19b8a6;
  --accent-soft: rgba(47, 217, 128, 0.12);
  --accent-border: rgba(47, 217, 128, 0.35);
  --gradient: linear-gradient(120deg, #2fd980, #19b8a6 55%, #3b82f6);
  --gradient-text: linear-gradient(100deg, #7ef0b2, #2fd980 40%, #38bdf8);

  --violet: #8b7cf6;
  --blue: #3b82f6;
  --amber: #f5b14c;
  --rose: #f472b6;

  /* Type */
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px var(--accent-border), 0 8px 40px rgba(47, 217, 128, 0.18);

  /* Layout */
  --container: 1160px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(47, 217, 128, 0.3); }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fondo con textura sutil */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% -10%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% -10%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed;
  z-index: -1;
  width: 900px; height: 900px;
  top: -480px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,217,128,0.10) 0%, rgba(25,184,166,0.05) 40%, transparent 70%);
  pointer-events: none;
}

/* ---------- Tipografía utilitaria ---------- */
.display {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.35rem; }
.lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.65; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, #2fd980, #1fc98f);
  color: #05130b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px rgba(47,217,128,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 32px rgba(47,217,128,0.35); }
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.25); }
.btn-ghost { color: var(--text-2); padding: 12px 14px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Badges y tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.badge-accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.tag-green { color: #7ef0b2; background: rgba(47,217,128,0.1); border-color: rgba(47,217,128,0.25); }
.tag-blue  { color: #93c5fd; background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); }
.tag-violet{ color: #c4b5fd; background: rgba(139,124,246,0.12); border-color: rgba(139,124,246,0.3); }
.tag-amber { color: #fcd34d; background: rgba(245,177,76,0.1); border-color: rgba(245,177,76,0.3); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #05130b;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(47,217,128,0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
}
.nav-links > li { position: relative; }
.nav-links a.nav-item, .nav-links button.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a.nav-item:hover, .nav-links button.nav-item:hover,
.nav-links li.open > .nav-item, .nav-links a.nav-item.active {
  color: var(--text);
  background: var(--surface-hover);
}
.nav-item .chev { transition: transform 0.2s; opacity: 0.55; }
li.open .nav-item .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mega menú */
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 540px;
  padding: 10px;
  background: rgba(13, 16, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.mega.wide { min-width: 700px; grid-template-columns: 1fr 1fr 1fr; }
li.open > .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.15s;
  align-items: flex-start;
}
.mega a:hover { background: var(--surface-hover); }
.mega .mi-icon {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(47,217,128,0.2);
  font-size: 1rem;
}
.mega .mi-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.mega .mi-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.4; margin-top: 1px; }

/* Móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 1.3rem;
  margin-left: auto;
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 40px;
    background: rgba(7,9,12,0.98);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-item, .nav-links button.nav-item {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .mega {
    position: static;
    transform: none;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 8px 12px;
    display: none;
  }
  li.open > .mega { display: grid; opacity: 1; visibility: visible; transform: none; }
  .nav-cta { display: none; }
}

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin: 14px 0 16px; }

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 88px) 0 96px;
  position: relative;
}
.hero .lead { max-width: 620px; margin: 22px 0 36px; }
.hero-center { text-align: center; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-center .hero-actions { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-3); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.card-lift:hover { transform: translateY(-4px); }

.feature-card .fc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(47,217,128,0.22);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-2); font-size: 0.92rem; }
.fc-icon.blue  { background: rgba(59,130,246,0.12); color: #7db6fb; border-color: rgba(59,130,246,0.25); }
.fc-icon.violet{ background: rgba(139,124,246,0.12); color: #b3a5fb; border-color: rgba(139,124,246,0.25); }
.fc-icon.amber { background: rgba(245,177,76,0.1); color: #f7c675; border-color: rgba(245,177,76,0.25); }
.fc-icon.rose  { background: rgba(244,114,182,0.1); color: #f8a1cd; border-color: rgba(244,114,182,0.25); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link .arrow { transition: transform 0.2s; }
.card:hover .card-link .arrow { transform: translateX(3px); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat .num {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Logos strip ---------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 48px;
  opacity: 0.55;
}
.logos span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(47,217,128,0.08), rgba(255,255,255,0.02) 40%);
  border-color: var(--accent-border);
  box-shadow: var(--glow);
}
.pricing-card .plan { font-size: 1rem; font-weight: 650; }
.pricing-card .price { font-size: 2.7rem; font-weight: 700; letter-spacing: -0.04em; margin: 14px 0 2px; }
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.pricing-card .desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }
.pricing-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; }
.pricing-card li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.pricing-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #05130b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Comparativa (tabla) ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 0.92rem;
}
.compare-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--bg-elev-2); font-weight: 650; font-size: 0.85rem; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td { color: var(--text-2); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no { color: var(--text-3); }
.compare .hl { background: rgba(47,217,128,0.05); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
}
.faq-q .icon { transition: transform 0.25s; color: var(--text-3); flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .quote { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; flex: 1; }
.testimonial .quote::before { content: "“"; color: var(--accent); font-size: 1.6rem; font-weight: 700; display: block; line-height: 0.8; margin-bottom: 8px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #05130b;
  background: var(--gradient);
  flex-shrink: 0;
}
.t-name { font-size: 0.9rem; font-weight: 650; }
.t-role { font-size: 0.78rem; color: var(--text-3); }

/* ---------- Timeline / Proceso ---------- */
.timeline { display: grid; gap: 0; position: relative; max-width: 760px; }
.tl-item {
  position: relative;
  padding: 0 0 40px 52px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 15px; top: 34px; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.tl-item:last-child::before { display: none; }
.tl-num {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.tl-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-item p { color: var(--text-2); font-size: 0.92rem; max-width: 560px; }

/* ---------- Code block ---------- */
.code-block {
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code-head .dot-r, .code-head .dot-y, .code-head .dot-g {
  width: 11px; height: 11px; border-radius: 50%;
}
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #34d399; }
.code-head .file { margin-left: 10px; color: var(--text-3); font-size: 0.75rem; }
.code-block pre { margin: 0; padding: 20px; overflow-x: auto; line-height: 1.7; color: #c9d4e3; }
.tok-k { color: #7ef0b2; } .tok-s { color: #93c5fd; } .tok-c { color: #5b6472; } .tok-f { color: #c4b5fd; } .tok-n { color: #f7c675; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(47,217,128,0.16), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner .lead { max-width: 540px; margin: 0 auto 32px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(47,217,128,0.03));
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer h4 { font-size: 0.85rem; font-weight: 650; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 0.87rem; color: var(--text-2); transition: color 0.15s; }
.footer ul a:hover { color: var(--accent); }
.footer-brand p { font-size: 0.87rem; color: var(--text-2); margin: 14px 0 20px; max-width: 280px; }
.newsletter { display: flex; gap: 8px; max-width: 320px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.87rem;
}
.newsletter input:focus { outline: none; border-color: var(--accent-border); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent-border); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(47,217,128,0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--bg-elev-2); }

/* ---------- Tabs / filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { color: #05130b; background: var(--accent); border-color: var(--accent); font-weight: 650; }

/* ---------- Recursos: resource card ---------- */
.resource-card { display: flex; flex-direction: column; gap: 14px; }
.resource-card .rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.resource-card .rc-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
}
.resource-card h3 { font-size: 1.02rem; }
.resource-card p { color: var(--text-2); font-size: 0.88rem; flex: 1; }
.resource-card .rc-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Blog card ---------- */
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-cover {
  height: 170px;
  background: linear-gradient(135deg, rgba(47,217,128,0.18), rgba(59,130,246,0.14));
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.post-cover.v2 { background: linear-gradient(135deg, rgba(139,124,246,0.18), rgba(244,114,182,0.12)); }
.post-cover.v3 { background: linear-gradient(135deg, rgba(245,177,76,0.15), rgba(47,217,128,0.12)); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-size: 1.05rem; line-height: 1.35; }
.post-body p { color: var(--text-2); font-size: 0.88rem; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--text-3); }

/* ---------- Breadcrumb / page header ---------- */
.page-hero { padding: calc(var(--nav-h) + 72px) 0 64px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.83rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); font-size: 0.95rem; align-items: flex-start; }
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47,217,128,0.25);
  margin-top: 2px;
}

/* ---------- Split (texto + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > *:first-child { order: 0; }
}

/* Panel visual glass (mock UI) */
.glass-panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  padding: 24px;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  margin-bottom: 10px;
}
.mock-row:last-child { margin-bottom: 0; }
.mock-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(47,217,128,0.2);
  flex-shrink: 0;
}
.mock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.mock-line.sm { width: 40%; opacity: 0.55; margin-top: 6px; }
.mock-fill { flex: 1; }
.mock-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Animaciones scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Util */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.center { text-align: center; }
.flex-center { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
