/* ══════════════════════════════════════════════════
   INDEX / HUB — Estilos para la pagina principal
   ══════════════════════════════════════════════════ */

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

:root {
  --bg:        #141414;
  --card:      #1e1e1e;
  --card2:     #252525;
  --green:     #3ecf6e;
  --green-dim: rgba(62,207,110,0.12);
  --green-bdr: rgba(62,207,110,0.35);
  --teal-start:#1a6b5a;
  --teal-end:  #1e4d6b;
  --white:     #ffffff;
  --gray1:     #e8e8e8;
  --gray2:     #a0a0a0;
  --gray3:     #555;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: #111;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.nav-logo .why {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo .crm-badge {
  background: var(--green);
  color: #0a1a0f;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  margin-left: 2px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray2);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 0 16px rgba(62,207,110,0.15);
}
.nav-cta:hover {
  background: var(--green);
  color: #0a1a0f;
}

/* HERO */
.hero {
  text-align: center;
  padding: 72px 40px 56px;
  max-width: 780px;
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--green-bdr);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--green); }
.hero p {
  font-size: 17px;
  color: var(--gray2);
  font-weight: 400;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* GRID */
.grid-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* FLOW CARD */
.flow-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.flow-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-bdr);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(62,207,110,0.12);
}
.flow-card.featured {
  background: linear-gradient(145deg, #1a4a38 0%, #1a3a4a 60%, #1e2d45 100%);
  border-color: rgba(62,207,110,0.25);
}
.flow-card.featured:hover {
  border-color: rgba(62,207,110,0.5);
  box-shadow: 0 12px 40px rgba(62,207,110,0.12), 0 0 0 1px rgba(62,207,110,0.2);
}

/* card top strip */
.card-strip {
  height: 4px;
  width: 100%;
}
.strip-green  { background: linear-gradient(90deg, #3ecf6e, #2ea85a); }
.strip-teal   { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.strip-amber  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.strip-purple { background: linear-gradient(90deg, #a855f7, #7c3aed); }

.card-body { padding: 28px 28px 24px; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.icon-green  { background: rgba(62,207,110,0.12); }
.icon-teal   { background: rgba(6,182,212,0.12); }
.icon-amber  { background: rgba(245,158,11,0.12); }
.icon-purple { background: rgba(168,85,247,0.12); }

.card-rubro {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rubro-green  { color: var(--green); }
.rubro-teal   { color: #06b6d4; }
.rubro-amber  { color: #f59e0b; }
.rubro-purple { color: #a855f7; }

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-desc {
  font-size: 14px;
  color: var(--gray2);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* nodes preview */
.nodes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.node-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--gray2);
}

/* card footer */
.card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray3);
}
.meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.card-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-bdr);
  border-radius: 24px;
  padding: 7px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.card-btn:hover {
  background: var(--green);
  color: #0a1a0f;
}
.card-btn svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}

/* BRIEF CARD */
.brief-card {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.brief-card:hover { border-color: rgba(255,255,255,0.2); }
.brief-left { display: flex; align-items: center; gap: 20px; }
.brief-icon {
  width: 56px; height: 56px;
  background: rgba(62,207,110,0.1);
  border: 1px solid var(--green-bdr);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.brief-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.brief-sub { font-size: 13px; color: var(--gray2); }
.brief-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--green);
  color: #0a1a0f;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.brief-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* HOW IT WORKS */
.how-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 72px;
}
.how-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.steps-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 22px;
  position: relative;
}
.step:first-child { border-radius: 12px 0 0 12px; }
.step:last-child  { border-radius: 0 12px 12px 0; }
.step:not(:last-child) { border-right: none; }
.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-bdr);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-desc  { font-size: 12px; color: var(--gray2); line-height: 1.55; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 2px; }
.footer-logo .why { font-size: 18px; font-weight: 800; color: var(--white); }
.footer-logo .crm-badge {
  background: var(--green);
  color: #0a1a0f;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 2px;
  margin-bottom: 8px;
}
.footer-text { font-size: 12px; color: var(--gray3); }
.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }
