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

:root {
  --bg-void: #c4d5cb;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-surface-solid: #f2f7f4;
  --bg-card: #ffffff;
  --bg-card-hover: #ecfdf5;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #059669;
  --emerald-600: #047857;
  --emerald-700: #036144;
  --emerald-800: #064e3b;
  --emerald-glow: rgba(5, 150, 101, 0.08);
  --emerald-glow-strong: rgba(5, 150, 101, 0.18);
  --amber-400: #d97706;
  --red-400: #dc2626;
  --text-100: #064e3b;
  --text-200: #1e293b;
  --text-300: #475569;
  --text-400: #94a3b8;
  --border-50: rgba(5, 150, 101, 0.08);
  --border-100: rgba(5, 150, 101, 0.12);
  --border-200: rgba(5, 150, 101, 0.2);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --t-fast: 0.2s ease;
  --t-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-300);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--emerald-500); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--emerald-400); border-radius: 3px; }

a { color: var(--emerald-400); text-decoration: none; transition: var(--t-fast); }
a:hover { color: var(--emerald-300); }

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

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

.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-surface-solid); }
.section-green {
  background: linear-gradient(180deg, var(--emerald-50) 0%, var(--bg-void) 100%);
  border-top: 1px solid var(--border-50);
  border-bottom: 1px solid var(--border-50);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--emerald-500);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-100);
  max-width: 600px;
  line-height: 1.7;
  opacity: 0.8;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--t-base);
  background: rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-100);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 12px 24px;
  max-width: 100%;
  left: 0;
  transform: none;
  border-radius: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.navbar.scrolled .nav-logo {
  color: var(--text-100);
}
.nav-logo-img {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--t-fast);
}
.nav-links a:hover { color: var(--emerald-300); }

.navbar.scrolled .nav-links a {
  color: var(--text-300);
}
.navbar.scrolled .nav-links a:hover { color: var(--emerald-500); }

.nav-cta {
  padding: 8px 20px;
  background: var(--emerald-500);
  color: #fff !important;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: var(--t-fast);
}
.nav-cta:hover { background: var(--emerald-600); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
.navbar.scrolled .mobile-toggle {
  color: var(--text-100);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-50);
    border-radius: var(--r-lg);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-ambient::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12), transparent 50%);
  border-radius: 50%;
  animation: heroAmbient 8s ease-in-out infinite alternate;
}
.hero-ambient::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.08), transparent 50%);
  border-radius: 50%;
  animation: heroAmbient 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroAmbient {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateX(-50%) translateY(-30px) scale(1.15); opacity: 1; }
}
.hero-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,20,10,0.65) 0%,
    rgba(0,40,20,0.35) 25%,
    rgba(0,40,20,0.18) 50%,
    rgba(0,40,20,0.35) 75%,
    rgba(196,213,203,0.92) 92%,
    var(--bg-void) 100%
  );
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero-video-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,10,5,0.7) 0%,
      rgba(0,30,15,0.45) 30%,
      rgba(0,30,15,0.25) 50%,
      rgba(0,30,15,0.45) 70%,
      rgba(196,213,203,0.9) 90%,
      var(--bg-void) 100%
    );
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: #f0fdf4;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s 0.3s both;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero h1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(16,185,129,0.1), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.hero-ia {
  display: inline-block;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  color: #022c22;
  -webkit-text-fill-color: #022c22;
  border-radius: 14px;
  padding: 0 16px 0 18px;
  margin-left: 6px;
  text-shadow: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
  box-shadow: 0 0 30px rgba(52,211,153,0.3), 0 4px 12px rgba(0,0,0,0.15);
  animation: iaPulse 3s ease-in-out infinite;
  position: relative;
}
@keyframes iaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(52,211,153,0.25), 0 4px 12px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 0 40px rgba(52,211,153,0.45), 0 4px 12px rgba(0,0,0,0.15); }
}

/* Floating decorative leaves */
.hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-leaf {
  position: absolute;
  width: 24px;
  height: 24px;
  color: rgba(16,185,129,0.25);
  opacity: 0;
}
.hero-leaf--1 {
  top: 18%;
  left: 8%;
  animation: leafFloat1 12s ease-in-out infinite;
}
.hero-leaf--2 {
  bottom: 25%;
  right: 10%;
  width: 20px;
  height: 20px;
  animation: leafFloat2 15s ease-in-out infinite 2s;
}
.hero-leaf--3 {
  top: 50%;
  left: 85%;
  width: 16px;
  height: 16px;
  animation: leafFloat3 10s ease-in-out infinite 4s;
}
@keyframes leafFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translate(30px, -40px) rotate(15deg) scale(1.1); opacity: 0.4; }
  90% { opacity: 0.3; }
  100% { transform: translate(60px, -80px) rotate(30deg) scale(0.9); opacity: 0; }
}
@keyframes leafFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  50% { transform: translate(-25px, -30px) rotate(-10deg) scale(1.15); opacity: 0.35; }
  90% { opacity: 0.2; }
  100% { transform: translate(-50px, -60px) rotate(-20deg) scale(0.85); opacity: 0; }
}
@keyframes leafFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  50% { transform: translate(-15px, -50px) rotate(20deg) scale(1.05); opacity: 0.3; }
  90% { opacity: 0.15; }
  100% { transform: translate(-30px, -100px) rotate(40deg) scale(0.8); opacity: 0; }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.5s both;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 16px rgba(0,0,0,0.25);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.7s both;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald-500);
  color: #fff;
  box-shadow: 0 4px 20px var(--emerald-glow-strong);
}
.hero .btn-secondary {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0fdf4;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: var(--text-200);
  border: 1px solid var(--border-100);
}
.btn-secondary:hover { background: rgba(0,0,0,0.05); border-color: var(--border-200); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--emerald-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  animation: float 2.5s ease-in-out infinite;
  z-index: 2;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.hero-scroll-line {
  width: 1.5px;
  height: 36px;
  background: var(--emerald-600);
  border-radius: 2px;
}

/* ===== ROOT SYSTEM ===== */
.root-system {
  position: relative;
  padding: 0 0 80px;
}

.root-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--emerald-500), var(--emerald-700), transparent);
  z-index: 1;
  transition: height 0.1s linear;
}
.root-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 12px var(--emerald-glow-strong);
}

.root-node {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.root-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.root-node-marker {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  position: relative;
}
.root-branch {
  position: absolute;
  top: 15px;
  height: 2px;
  opacity: 0;
  transition: opacity 0.7s ease 0.3s;
  z-index: 1;
  pointer-events: none;
}
.root-node:nth-child(odd) .root-branch {
  right: calc(100% - 17px);
  width: 28px;
  background: linear-gradient(to left, var(--emerald-500), transparent);
}
.root-node:nth-child(even) .root-branch {
  left: calc(100% - 17px);
  width: 28px;
  background: linear-gradient(to right, var(--emerald-500), transparent);
}
.root-node.visible .root-branch { opacity: 0.5; }
.root-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald-500);
  border: 3px solid var(--bg-void);
  box-shadow: 0 0 0 2px var(--emerald-500), 0 0 20px var(--emerald-glow);
  z-index: 2;
}

.root-node-content {
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: var(--t-base);
}
.root-node:nth-child(odd) .root-node-content { grid-column: 1; }
.root-node:nth-child(even) .root-node-content { grid-column: 3; }
.root-node-content:hover {
  border-color: var(--border-100);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.root-node-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--emerald-glow);
  border: 1px solid var(--border-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.root-node-icon i { width: 20px; height: 20px; color: var(--emerald-500); }
.root-node-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.root-node-content p {
  font-size: 0.9rem;
  color: var(--text-300);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .root-node {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .root-node-marker { grid-column: 1; flex-direction: row; gap: 8px; }
  .root-node:nth-child(odd) .root-node-content { grid-column: 1; }
  .root-node:nth-child(even) .root-node-content { grid-column: 1; }
  .root-node-content { max-width: 100%; }
  .root-branch { display: none; }
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--t-base);
}
.feature-card:hover {
  border-color: var(--border-100);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--emerald-glow);
  border: 1px solid var(--border-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon i { width: 22px; height: 22px; color: var(--emerald-500); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-300);
  line-height: 1.65;
}

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }



/* ===== WAITLIST ===== */
.waitlist-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.05), transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}

.waitlist-form {
  max-width: 460px;
  margin: 32px auto 0;
  display: flex;
  gap: 12px;
}
.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-void);
  border: 1px solid var(--border-100);
  border-radius: var(--r-md);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--t-fast);
}
.waitlist-form input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}
.waitlist-form input::placeholder { color: var(--text-300); }

.waitlist-form .btn { flex-shrink: 0; }

@media (max-width: 500px) { .waitlist-form { flex-direction: column; } }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-50);
  padding: 60px 24px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-100);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.7;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 0.875rem;
  color: var(--text-100);
}
.footer ul a:hover { color: var(--emerald-500); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-100);
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== SUBPAGES (legal/about) ===== */
.page-header {
  padding: 140px 24px 40px;
  text-align: center;
  position: relative;
}
.page-header-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-header-ambient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(16,185,129,0.05), transparent 50%);
  border-radius: 50%;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}
.page-header p {
  font-size: 1rem;
  color: var(--text-300);
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 48px 0 16px;
}
.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-200);
  margin: 32px 0 12px;
}
.page-content p {
  font-size: 0.95rem;
  color: var(--text-300);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}
.page-content li {
  font-size: 0.95rem;
  color: var(--text-300);
  line-height: 1.7;
  margin-bottom: 8px;
}
.page-content strong { color: var(--text-200); }
.page-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--emerald-500);
  margin-bottom: 24px;
}

/* ===== ABOUT PAGE ENHANCEMENTS ===== */
/* Estilo limpio y seguro para móviles (sin efectos de desenfoque pesados) */
.about-section {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-100);
  border-radius: var(--r-xl);
  padding: 32px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  
  /* --- AISLAMIENTO DE CAPA COMPLETO --- */
  contain: paint;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* .audience-card,
.audience-card:hover,
.audience-card *,
.audience-icon {
  transition: none !important;
  animation: none !important;
  transform: none !important;
} */

.about-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.about-heading-icon {
  width: 28px;
  height: 28px;
  color: var(--emerald-500);
  flex-shrink: 0;
}
.about-heading h2 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 28px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-md);
  padding: 20px;
  
  /* --- COMIENZO DE LA SOLUCIÓN ULTRA OPTIMIZADA PARA MÓVIL --- */
  contain: paint; /* Fuerza al navegador a no calcular nada fuera de los límites de la tarjeta */
  overflow: hidden; /* Evita que sombras o textos invisibles desborden la GPU */
  transform: translate3d(0, 0, 0); /* Activa la aceleración de hardware limpia de forma nativa */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* ----------------------------------------------------------- */
}
.audience-card:hover {
  border-color: var(--border-100);
}
.audience-icon {
  width: 22px;
  height: 22px;
  color: var(--emerald-500);
  margin-bottom: 10px;
  display: block;
}
.audience-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-100);
  margin-bottom: 4px;
}
.audience-card p {
  font-size: 0.85rem !important;
  color: var(--text-300) !important;
  margin-bottom: 0 !important;
}

.about-highlight {
  background: linear-gradient(135deg, var(--emerald-50), var(--bg-card));
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 16px 0 28px;
}
.about-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--emerald-glow);
  border: 1px solid var(--border-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-highlight-icon i {
  width: 22px;
  height: 22px;
  color: var(--emerald-500);
}
.about-highlight p {
  margin-bottom: 0 !important;
}

.about-cta {
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  margin-top: 32px;
}
.about-cta-icon {
  width: 28px;
  height: 28px;
  color: var(--emerald-500);
  margin-bottom: 12px;
}
.about-cta p {
  font-size: 1rem !important;
  color: var(--text-200) !important;
  margin-bottom: 16px !important;
}
/* El efecto blur premium se activa únicamente en PC y laptops */
@media (min-width: 768px) {
  .about-section {
    background: var(--bg-surface); /* Regresa al fondo translúcido original */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .audience-grid { grid-template-columns: 1fr; }
  .about-highlight { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== STEPS FLOW ===== */
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px 0 20px;
  flex-wrap: wrap;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  padding: 28px 22px 24px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  transition: var(--t-base);
  position: relative;
}
.step-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--emerald-glow);
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin: 0 auto 14px;
}
.step-icon {
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon i { width: 30px; height: 30px; color: var(--emerald-500); }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.8rem;
  color: var(--text-400);
  line-height: 1.6;
}
.step-arrow-glide {
  color: var(--emerald-500);
  padding: 0 6px;
  flex-shrink: 0;
  opacity: 0.6;
  display: flex;
  align-items: center;
}
.step-arrow-glide i { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .steps-flow {
    flex-direction: column;
    gap: 12px;
  }
  .step-arrow-glide {
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .step-card {
    max-width: 100%;
    min-width: 100%;
  }
}

/* ===== HOW IT FLOWS (home) ===== */
.how-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-50);
  border-radius: var(--r-lg);
  min-width: 110px;
  transition: var(--t-fast);
}
.how-step:hover {
  border-color: var(--border-100);
  transform: translateY(-2px);
}
.how-icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-icon i { width: 30px; height: 30px; color: var(--emerald-500); }
.how-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-300);
  white-space: nowrap;
}
.how-arrow {
  color: var(--emerald-600);
  padding: 0 10px;
  opacity: 0.3;
  display: flex;
  align-items: center;
}
.how-arrow i { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .how-flow {
    flex-direction: column;
    gap: 10px;
  }
  .how-arrow { transform: rotate(90deg); padding: 2px 0; }
  .how-step { min-width: 100%; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes heroGlow { 0%, 100% { box-shadow: 0 0 20px rgba(5,150,105,0.15); } 50% { box-shadow: 0 0 40px rgba(5,150,105,0.35); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.6; } }
@keyframes breatheBtn { 0%, 100% { box-shadow: 0 4px 14px rgba(5,150,105,0.25); } 50% { box-shadow: 0 4px 24px rgba(5,150,105,0.45); } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* .page-content .reveal,
.page-content .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
} */

/* .page-content .audience-card,
.page-content .audience-card:hover,
.page-content .audience-card *,
.page-content .audience-icon {
  transform: none !important;
  transition: none !important;
  animation: none !important;
} */

/* Hero entrance stagger */
.hero > :not(.hero-video-wrap):not(.hero-ambient) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero > :nth-child(3) { animation-delay: 0.1s; }
.hero > :nth-child(4) { animation-delay: 0.3s; }
.hero > :nth-child(5) { animation-delay: 0.5s; }
.hero > :nth-child(6) { animation-delay: 0.7s; }

/* Stagger children on scroll */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Nav link hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a { position: relative; }

/* Button hover effects */
.btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}
.btn:active { transform: translateY(0); }
.btn-primary {
  animation: breatheBtn 3s ease-in-out infinite;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* Feature card hover */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: var(--emerald-300);
}

/* Root dot pulse */
.root-node.visible .root-node-dot {
  animation: pulseDot 2s ease-in-out infinite;
}
.root-node-dot {
  transition: transform 0.3s ease;
}
.root-node-content:hover ~ .root-node-dot,
.root-node-marker:hover .root-node-dot {
  transform: scale(1.3);
}

/* How-step card hover */
.how-step {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.how-step:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

/* Waitlist input focus */
.waitlist-form input {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.waitlist-form input:focus {
  transform: scale(1.02);
}

/* Image hover zoom */
.footer-brand .logo-img {
  transition: transform 0.4s ease;
}
.footer-brand:hover .logo-img {
  transform: rotate(-5deg) scale(1.1);
}

/* Smooth section transitions */
.section, .section-dark {
  transition: background 0.5s ease;
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 640px) {
  .hero { padding: 100px 20px 50px; min-height: 100dvh; }
  .hero h1 { font-size: 2rem; line-height: 1.2; }
  .hero p { font-size: 0.9375rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll { margin-top: 20px; }
  .hero-scroll span { font-size: 0.75rem; }
  .hero-ia { padding: 0 12px 0 14px; margin-left: 4px; line-height: 1.3; }
  .hero-leaf { width: 18px; height: 18px; }
  .hero-leaf--2 { width: 15px; height: 15px; }
  .hero-leaf--3 { width: 12px; height: 12px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.9375rem; }

  .feature-card { padding: 24px; text-align: center; }
  .feature-icon { margin-left: auto; margin-right: auto; }

  .how-step { padding: 16px 20px; min-width: 100%; }
  .how-label { font-size: 0.75rem; }
  .how-icon i { width: 24px; height: 24px; }

  .waitlist-form { gap: 10px; }
  .waitlist-form input { padding: 12px 16px; font-size: 0.875rem; }

  .footer { padding: 50px 24px 30px; }
  .footer-grid { gap: 24px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.65rem; }
  .hero { padding: 90px 16px 40px; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-img { width: 26px; height: 26px; }
}

/* ===== LOADING/THANK YOU ===== */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--emerald-glow);
  border: 1px solid var(--border-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thankyou-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 12px;
}
.thankyou-page p {
  color: var(--text-300);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 28px;
}
