/* ═══════════════════════════════════════════════════
   Gestor-IA — Página "Cómo funciona"
   Paleta VINZAS AI
═══════════════════════════════════════════════════ */

:root {
  --navy:     #0f1729;
  --navy-2:   #161f38;
  --navy-3:   #1e2d50;
  --navy-4:   #243359;
  --violet:   #9D00FF;
  --cyan:     #00C6FF;
  --grad:     linear-gradient(135deg, #00C6FF, #9D00FF);
  --white:    #ffffff;
  --gray-300: #c8d0e0;
  --gray-400: #8896b0;
  --green:    #00c48c;
  --orange:   #ffa040;
  --blue:     #3a9bdc;
  --radius:   14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilidades ─────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--gray-400);
  font-size: 15px;
  margin-bottom: 48px;
}

/* ── NAV ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,41,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.logo-mark span { opacity: .75; }

.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.logo-sub {
  font-size: 11px;
  color: var(--gray-400);
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-nav:hover { opacity: .88; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,198,255,.07) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,198,255,.1);
  border: 1px solid rgba(0,198,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0,198,255,.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,198,255,.35);
}

/* ── SEPARADOR VISUAL ──────────────────────────── */
section { padding: 72px 0; }
section + section { border-top: 1px solid rgba(255,255,255,.05); }

/* ── FLUJO PRINCIPAL ─────────────────────────────── */
.flujo-section { background: var(--navy-2); }

.flujo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.paso {
  flex: 1;
  min-width: 180px;
  background: var(--navy-3);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,.06);
}

.paso:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,198,255,.12);
  border-color: rgba(0,198,255,.2);
}

.paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.paso-icono {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--navy-4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paso-icono svg {
  width: 24px;
  height: 24px;
  fill: var(--cyan);
}

.paso-titulo {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.paso-desc {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Flecha entre pasos */
.flecha {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 55px; /* centrado vertical aprox con el icono */
  flex-shrink: 0;
}

.flecha svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  opacity: .5;
}

/* Canales debajo del flujo */
.canales-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.canal-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
}

.canal-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.canal-chip.email   svg { fill: var(--blue); }
.canal-chip.whatsapp svg { fill: var(--green); }
.canal-chip.telegram svg { fill: #0088cc; }
.canal-chip.portal  svg { fill: var(--violet); }

/* ── TIPOS DE DOCUMENTO ───────────────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.doc-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}
.doc-card:hover {
  border-color: rgba(0,198,255,.2);
  transform: translateY(-2px);
}

.doc-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { width: 20px; height: 20px; }

.doc-icon.blue   { background: rgba(58,155,220,.15); }
.doc-icon.blue   svg { fill: var(--blue); }
.doc-icon.green  { background: rgba(0,196,140,.12); }
.doc-icon.green  svg { fill: var(--green); }
.doc-icon.violet { background: rgba(157,0,255,.12); }
.doc-icon.violet svg { fill: var(--violet); }
.doc-icon.cyan   { background: rgba(0,198,255,.12); }
.doc-icon.cyan   svg { fill: var(--cyan); }
.doc-icon.orange { background: rgba(255,160,64,.12); }
.doc-icon.orange svg { fill: var(--orange); }
.doc-icon.gray   { background: rgba(136,150,176,.12); }
.doc-icon.gray   svg { fill: var(--gray-400); }

.doc-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.doc-info p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ── KPIs IMPACTO ─────────────────────────────────── */
.impacto-section { background: var(--navy-2); }

.kpis-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.kpi-big {
  text-align: center;
  padding: 32px 24px;
  background: var(--navy-3);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}

.kpi-numero {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-label {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ── INTEGRACIONES ──────────────────────────────── */
.integ-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.integ-chip {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  transition: border-color .2s, color .2s;
}
.integ-chip:hover {
  border-color: rgba(0,198,255,.25);
  color: var(--white);
}

/* ── CÓMO FUNCIONA — PASOS DETALLE ──────────────── */
.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detalle-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 28px;
}

.detalle-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.detalle-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.detalle-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.detalle-body {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.7;
}

.detalle-body ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detalle-body li::before {
  content: '→ ';
  color: var(--cyan);
  font-weight: 700;
}

/* ── CTA FINAL ───────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.cta-section p {
  color: var(--gray-400);
  font-size: 16px;
  margin-bottom: 36px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(0,198,255,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,198,255,.4);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 28px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .docs-grid  { grid-template-columns: repeat(2, 1fr); }
  .kpis-row   { grid-template-columns: 1fr; gap: 16px; }
  .detalle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links  { display: none; }

  .flujo-wrap {
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }

  .paso { width: 100%; max-width: 320px; }

  .flecha {
    padding: 0;
    padding-left: 0;
    transform: rotate(90deg);
  }

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

  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
}
