:root {
  --green-900: #04342c;
  --green-700: #085041;
  --green-600: #0f6e56;
  --green-500: #1d9e75;
  --green-100: #9fe1cb;
  --green-50: #e1f5ee;
  --ink: #16201d;
  --muted: #5c6b66;
  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  --border: #e3eae7;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(4, 52, 44, 0.08);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; letter-spacing: -0.01em; text-align: center; }
h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 12px auto 40px;
}
.center { text-align: center; margin-top: 36px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn .ti { font-size: 19px; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-700); }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--green-50); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo svg { display: block; }
.logo-text { font-family: var(--font-display); }
.logo-text span { color: var(--green-600); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 80% at 50% 30%, #07473b 0%, var(--green-900) 55%, #02211b 100%);
  padding: 116px 0 110px;
}
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 58% at 50% 46%,
    rgba(2, 33, 27, 0.78) 0%,
    rgba(2, 33, 27, 0.42) 48%,
    transparent 78%
  );
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 {
  color: #fff;
  text-shadow: 0 1px 18px rgba(2, 33, 27, 0.85);
}
.hero-sub { text-shadow: 0 1px 14px rgba(2, 33, 27, 0.85); }
.badge {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-sub {
  color: #e9f8f1;
  font-size: 18px;
  max-width: 540px;
  margin: 18px auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: var(--green-500); }
.hero .btn-primary:hover { background: var(--green-600); }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn-outline:hover { color: var(--green-100); border-color: var(--green-100); }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.cards-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
}
.card > .ti { font-size: 28px; color: var(--green-600); }
.card h3 { margin: 12px 0 6px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Rubros (selector de ideas) ---------- */
.rubros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}
.rubro {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.rubro:hover { border-color: var(--green-500); color: var(--green-700); }
.rubro.active {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
#ideas-grid .card { animation: fadeUp 0.35s ease both; }
#ideas-grid .card:nth-child(2) { animation-delay: 0.07s; }
#ideas-grid .card:nth-child(3) { animation-delay: 0.14s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Manifiesto ---------- */
.manifesto {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  padding: 96px 0;
}
.manifesto-w {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.06;
  pointer-events: none;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}
.manifesto-kicker {
  display: inline-block;
  color: var(--green-100);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.manifesto-big {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}
.manifesto-big span { color: #fff; }
.manifesto-big span::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-500);
  margin: 14px auto 0;
}
.manifesto-sub {
  color: #c7ebdc;
  font-size: 16.5px;
  max-width: 580px;
  margin: 0 auto 16px;
}
.manifesto-sub strong { color: #fff; font-weight: 700; }
.manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--green-100);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 2px solid var(--green-500);
  padding-bottom: 3px;
  transition: color 0.15s ease, gap 0.2s ease;
}
.manifesto-cta:hover { color: #fff; gap: 12px; }

/* ---------- Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Escalable ---------- */
.growth {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.growth-stage {
  display: flex;
  flex-direction: column;
  width: 200px;
}
.growth-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}
.growth-label-now { color: var(--green-600); }
.growth-box {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.module {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.growth.on .module { opacity: 1; transform: none; }
.module .ti { font-size: 16px; }
.growth-arrow {
  display: flex;
  align-items: center;
  color: var(--green-500);
  font-size: 22px;
  padding-top: 26px;
}
.growth-note {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 28px;
}

/* ---------- Caso (texto + mini-app demo) ---------- */
.case-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.case-text h3 { font-size: 22px; margin-bottom: 10px; }
.case-text p { font-size: 15.5px; color: var(--muted); }
.case-points {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}
.case-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
}
.case-points .ti { color: var(--green-500); font-size: 17px; }

.app-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 52, 44, 0.16);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.app-window:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.app-dot { width: 9px; height: 9px; border-radius: 50%; background: #d4dfda; }
.app-dot:first-child { background: var(--green-500); }
.app-url {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 12px;
}
.app-body { display: flex; }
.app-side {
  width: 48px;
  background: var(--green-900);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.app-side svg { margin-bottom: 10px; }
.app-side-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #7fbfa9;
  font-size: 16px;
}
.app-side-item.active { color: #fff; background: rgba(255, 255, 255, 0.13); }
.app-main {
  flex: 1;
  padding: 16px;
  display: grid;
  gap: 10px;
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.app-stat {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 12px;
}
.app-stat span { display: block; font-size: 11px; color: var(--muted); }
.app-stat b { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}
.app-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-row-name { flex: 1; font-size: 13px; font-weight: 600; }
.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-won { background: var(--green-50); color: var(--green-700); }
.pill-sent { background: #eaf6f0; color: var(--green-600); }
.pill-talk { background: #eef1f0; color: var(--muted); }

/* ---------- Contacto ---------- */
.section-dark {
  background: var(--green-900);
  color: #fff;
}
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: var(--green-100); }
.contact-inner { max-width: 560px; }
.contact-form { display: grid; gap: 14px; }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--green-700);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--green-100); opacity: 0.75; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green-500);
  background: rgba(255, 255, 255, 0.1);
}
.contact-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: var(--green-100); color: var(--green-100); }
.contact-form .hidden-field { display: none; }
.contact-hint {
  text-align: center;
  font-size: 13px;
  color: var(--green-100);
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  border-top: 1px solid var(--green-700);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--green-100);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-window { transform: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .growth-arrow { display: none; }
  .growth-stage { width: 100%; max-width: 320px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .module { opacity: 1; transform: none; transition: none; }
  .app-window { transform: none; transition: none; }
}
