/* ============================================================
   Flow AI — tema oscuro azulado, formal.
   Estándares aplicados: contraste AA, escala 8pt, motion 150-400ms,
   prefers-reduced-motion, focus-visible, sin emojis como íconos.
   ============================================================ */
:root {
  --bg: #060912;
  --bg-2: #090e1b;
  --bg-3: #0b1120;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .045);
  --ink: #eaf0fb;
  --ink-soft: #c2cce0;     /* >4.5:1 sobre --bg */
  --ink-mut: #8893ad;      /* >3:1, para labels/secundario */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-3: #2563eb;
  --blue-bright: #84b6ff;
  --grad: linear-gradient(100deg, #84b6ff 0%, #3b82f6 55%, #2563eb 110%);
  --radius: 16px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --glow-blue: 0 0 0 1px rgba(96, 165, 250, .35), 0 16px 50px -16px rgba(59, 130, 246, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-weight: 600; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap; min-height: 44px;
}
.btn-sm { padding: 10px 20px; font-size: 14px; min-height: 40px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-primary { background: var(--grad); color: #04122e; box-shadow: 0 14px 34px -12px rgba(59, 130, 246, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(59, 130, 246, .85); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue-bright); transform: translateY(-2px); }
.wa-icon { font-size: 20px; font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 18, .72); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-color: var(--line); background: rgba(6, 9, 18, .9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { color: var(--blue-2); display: grid; place-items: center; }
.brand-ai { color: var(--blue-2); }
.footer-brand .brand-ai { color: var(--blue-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #04122e; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 56px; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 72%);
}
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(37, 99, 235, .42), transparent 70%),
    radial-gradient(closest-side at 30% 55%, rgba(96, 165, 250, .26), transparent 70%),
    radial-gradient(closest-side at 72% 60%, rgba(59, 130, 246, .28), transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-bright);
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin-bottom: 22px; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 2.05vw, 20px); color: var(--ink-soft); max-width: 660px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

/* social proof band */
.proof-band { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.proof-label { display: block; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mut); margin-bottom: 16px; }
.proof-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 38px; }
.logo-img { height: 28px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .68; transition: opacity .2s ease; }
.logo-img-mark { height: 34px; } /* el monograma RC necesita un poco más para igualar peso visual */
.logo-img:hover { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-panel { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-problem { padding: 78px 0; }
.section-problem h2 { font-size: clamp(27px, 3.8vw, 40px); margin-bottom: 20px; }
.section-problem p { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; letter-spacing: -.03em; }
.section-sub { font-size: 18px; color: var(--ink-soft); }
.kicker { font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 14px; }
h2 { font-size: clamp(27px, 3.8vw, 42px); }

/* cards-3 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.card-num { display: block; font-size: 14px; font-weight: 700; color: var(--blue-bright); letter-spacing: .12em; margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 11px; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* product cards (soluciones) */
.cards-3 { gap: 26px; }
.prod-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 32px 30px 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 46px -30px rgba(0, 0, 0, .8);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
/* barra de acento superior */
.prod-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: .95;
}
.prod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, var(--glow-blue), 0 28px 60px -30px rgba(0, 0, 0, .85);
}
/* número de agua */
.prod-num {
  position: absolute; top: 16px; right: 22px;
  font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  color: rgba(132, 182, 255, .11); pointer-events: none;
}
.prod-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  color: var(--blue-bright);
  background: radial-gradient(120% 120% at 30% 20%, rgba(96, 165, 250, .28), rgba(96, 165, 250, .10));
  border: 1px solid rgba(96, 165, 250, .32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.prod-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue-bright); background: rgba(96, 165, 250, .12);
  border: 1px solid rgba(96, 165, 250, .28); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.prod-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--ink); letter-spacing: -.025em; }
.prod-lead { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin-bottom: 24px; }
.prod-body { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 24px; }
.prod-incluye {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mut); margin-bottom: 15px;
}
.prod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.prod-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.prod-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(96, 165, 250, .16); border: 1px solid rgba(96, 165, 250, .4);
}
.prod-list li::after {
  content: ""; position: absolute; left: 7px; top: 5px;
  width: 4.5px; height: 8.5px; border: solid var(--blue-bright); border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.prod-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue-bright); font-weight: 600; font-size: 15px;
}
.prod-link span { transition: transform .2s ease; }
.prod-link:hover span { transform: translateX(4px); }

/* flow steps */
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.flow-step:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.flow-num { font-weight: 800; font-size: 26px; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flow-step h4 { font-size: 17px; margin: 12px 0 9px; color: var(--ink); }
.flow-step p { font-size: 14.5px; color: var(--ink-soft); }

.callout { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 14px; padding: 26px 30px; max-width: 980px; }
.callout p { font-size: 18px; color: var(--ink); line-height: 1.6; }

/* founder */
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.founder-photo { display: flex; justify-content: center; }
.founder-frame {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 22px;
  overflow: hidden; border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(59, 130, 246, .35), transparent 60%),
    linear-gradient(160deg, #0f1933, #070b16);
  box-shadow: var(--shadow);
}
.founder-frame img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.founder-fallback {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-size: 76px; font-weight: 800; letter-spacing: .04em;
  color: rgba(132, 182, 255, .45);
}
.founder-copy .kicker { margin-bottom: 12px; }
.founder-copy h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.founder-role { color: var(--blue-bright); font-weight: 600; font-size: 16px; margin-bottom: 20px; }
.founder-copy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 15px; }
.founder-copy strong { color: var(--ink); font-weight: 600; }
.founder-link { display: inline-block; margin-top: 8px; color: var(--blue-bright); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.founder-link:hover { border-color: var(--blue-bright); }

/* proof cards */
.proof-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px; transition: transform .25s, border-color .25s; }
.proof-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.proof-card { padding: 26px 26px; }
.proof-card-name { display: block; font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.proof-card-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* steps row */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-n { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--blue-bright); display: grid; place-items: center; font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.step h4 { font-size: 19px; margin-bottom: 9px; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* CTA */
.section-cta { text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(37, 99, 235, .18), transparent 60%), var(--bg); }
.section-cta h2 { font-size: clamp(29px, 4.4vw, 48px); margin-bottom: 18px; }
.section-cta .lead { margin: 0 auto; }
.contact-alt { margin-top: 24px; color: var(--ink-mut); font-size: 15px; }
.contact-alt a { color: var(--blue-bright); border-bottom: 1px solid rgba(132, 182, 255, .4); }

/* footer */
.footer { background: #04060d; border-top: 1px solid var(--line); padding: 30px 0; font-size: 14px; color: var(--ink-mut); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-brand { font-weight: 800; font-size: 17px; color: var(--ink); }
.footer-tag { color: var(--blue-bright); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animaciones (.anim) ---------- */
.has-js .anim { opacity: 0; transform: translateY(22px); will-change: transform, opacity; }
.no-anim .anim { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-3 { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .proof-cards { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo { order: 1; }
  .founder-copy { order: 2; }
  .founder-frame { max-width: 320px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-2);
    padding: 24px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
  .hero { padding: 72px 0 48px; }
  .section { padding: 64px 0; }
  .flow-steps { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .proof-cards { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .proof-band { margin-top: 44px; }
}
