/* =========================================================
   IMPULSA MI NEGOCIO — Design System
   Paleta: marino profundo, gris niebla, azul eléctrico, verde tecnológico
   Tipografía: Space Grotesk (display) + Inter (cuerpo) + JetBrains Mono (data/labels)
   ========================================================= */

:root {
  /* Color */
  --navy-950: #0B1B2B;
  --navy-800: #122842;
  --navy-700: #1C2B3A;
  --fog-100: #F7F8FA;
  --fog-200: #ECEFF3;
  --white: #FFFFFF;
  --blue-500: #0050FF;
  --blue-400: #2D6BFF;
  --teal-400: #00D9A3;
  --teal-200: #BFF7E6;
  --line: rgba(11, 27, 43, 0.10);
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 20px 50px -20px rgba(11, 27, 43, 0.18);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Scale */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--fog-100);
  color: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-950);
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--blue-500);
}

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(0, 80, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(0, 80, 255, 0.55); }

.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost-dark:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line);
}
.btn-ghost-light:hover { border-color: var(--navy-950); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-700);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--navy-950); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  margin: 5px 0;
  transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  padding-bottom: 70px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  color: var(--white);
  font-weight: 600;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--teal-400);
}
.hero-sub {
  margin-top: 22px;
  font-size: 17.5px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 46px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--teal-400);
}
.hero-meta .label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* Signature visual: trayectoria de impulso */
.hero-visual {
  position: relative;
  height: 420px;
}
.trajectory-svg { width: 100%; height: 100%; }
.trajectory-path {
  fill: none;
  stroke: var(--teal-400);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 900;
  stroke-dashoffset: 0;
  animation: draw-path 2.8s ease-out forwards;
}
@keyframes draw-path {
  from { stroke-dasharray: 0 1400; }
  to { stroke-dasharray: 1400 0; }
}
.trajectory-node {
  fill: var(--navy-950);
  stroke: var(--teal-400);
  stroke-width: 2;
  opacity: 0;
  animation: node-in 0.5s ease forwards;
}
.trajectory-node.n1 { animation-delay: 0.4s; }
.trajectory-node.n2 { animation-delay: 1.1s; }
.trajectory-node.n3 { animation-delay: 1.8s; }
.trajectory-node.n4 { animation-delay: 2.5s; }
@keyframes node-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
.trajectory-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(255,255,255,0.62);
  letter-spacing: 0.04em;
}
.trajectory-label.accent { fill: var(--teal-400); }

@media (prefers-reduced-motion: reduce) {
  .trajectory-path { stroke-dasharray: 1400 0 !important; animation: none !important; }
  .trajectory-node { opacity: 1 !important; animation: none !important; }
}

.hero-strip {
  background: var(--navy-800);
  border-top: 1px solid var(--line-dark);
}
.hero-strip .wrap {
  display: flex;
  gap: 0;
  padding: 0;
}
.strip-item {
  flex: 1;
  padding: 22px 28px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-right: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip-item:last-child { border-right: none; }
.strip-item svg { flex-shrink: 0; color: var(--teal-400); }

/* ---------- Section shells ---------- */
.section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 16px;
  line-height: 1.18;
}
.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--navy-700);
  opacity: 0.85;
}
.section-light { background: var(--fog-100); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-950); color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,0.68); }

/* ---------- Trust strip ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-cell {
  background: var(--white);
  padding: 32px 26px;
}
.trust-cell .icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--fog-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.trust-cell h3 { font-size: 16.5px; font-weight: 600; }
.trust-cell p { margin-top: 8px; font-size: 14.5px; color: var(--navy-700); opacity: 0.85; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0,80,255,0.25);
}
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal-400);
  background: var(--navy-950);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.04em;
}
.service-card h3 {
  font-size: 19px;
  margin-top: 18px;
  font-weight: 600;
}
.service-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--navy-700);
  opacity: 0.85;
}
.service-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-card li {
  font-size: 13.8px;
  color: var(--navy-700);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.service-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-500); }
.service-card.wide { grid-column: span 1; }

/* ---------- Process: línea vertical de trayectoria ---------- */
.process-rail {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.process-rail::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-500), var(--teal-400));
}
.process-step {
  position: relative;
  padding-left: 76px;
  margin-bottom: 44px;
}
.process-step:last-child { margin-bottom: 0; }
.process-step .step-dot {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-500);
  font-weight: 600;
}
.process-step:nth-child(even) .step-dot { border-color: var(--teal-400); color: var(--teal-400); }
.process-step h3 { font-size: 18.5px; font-weight: 600; padding-top: 10px; }
.process-step p { margin-top: 8px; font-size: 14.8px; color: var(--navy-700); opacity: 0.85; max-width: 540px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-copy p { font-size: 16px; color: var(--navy-700); line-height: 1.75; }
.about-copy p + p { margin-top: 16px; }
.about-badges {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.about-badges span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--navy-950);
}
.about-panel {
  background: var(--navy-950);
  border-radius: var(--radius);
  padding: 38px;
  color: var(--white);
}
.about-panel h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.about-stat .num {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--teal-400);
}
.about-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  display: flex;
  gap: 18px;
}
.usecase-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--fog-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
  flex-shrink: 0;
}
.usecase-card h3 { font-size: 16px; font-weight: 600; }
.usecase-card p { margin-top: 8px; font-size: 14.3px; color: var(--navy-700); opacity: 0.85; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(26px, 2.8vw, 34px); color: var(--white); }
.contact-info > p { margin-top: 16px; color: rgba(255,255,255,0.68); font-size: 16px; max-width: 380px; }
.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.channel { display: flex; gap: 14px; align-items: flex-start; }
.channel .icon-box {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-400);
  flex-shrink: 0;
}
.channel .label { font-size: 13px; color: rgba(255,255,255,0.5); }
.channel .value { font-size: 15px; color: var(--white); margin-top: 2px; font-weight: 500; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--fog-100);
  color: var(--navy-950);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 12.5px;
  color: var(--navy-700);
  opacity: 0.7;
  margin-top: 14px;
}
.form-success {
  display: none;
  background: var(--teal-200);
  color: var(--navy-950);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--blue-500);
  border-radius: 20px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
}
.final-cta h2 { color: var(--white); font-size: clamp(24px, 2.6vw, 30px); max-width: 520px; }
.final-cta .btn-primary { background: var(--white); color: var(--blue-500); box-shadow: none; }
.final-cta .btn-primary:hover { background: var(--navy-950); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */
.legal-page { background: var(--white); }
.legal-page .wrap { max-width: 760px; padding: 70px 28px 100px; }
.legal-page h1 { font-size: 32px; }
.legal-page .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-500); margin-top: 12px; display: block; }
.legal-page h2 { font-size: 19px; margin-top: 40px; margin-bottom: 14px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--navy-700); line-height: 1.75; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .back-link { margin-top: 50px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-500); font-weight: 600; font-size: 14.5px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-visual { height: 280px; order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-strip .wrap { flex-direction: column; padding: 0; }
  .strip-item { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .strip-item:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .final-cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .hero { padding-top: 70px; }
  .contact-form-card { padding: 26px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-close { background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; line-height: 1; }
.mobile-nav-links { margin-top: 50px; display: flex; flex-direction: column; gap: 28px; }
.mobile-nav-links a { color: var(--white); font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.mobile-nav .btn { margin-top: 40px; }
