/* ==========================================================================
   Vendrix Rush — Landing page
   Paleta y tipografía extraídas del deck original (landing.pdf)
   ========================================================================== */

:root {
  --purple-300: #d8b9ff;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-glow: rgba(168, 85, 247, 0.45);

  --bg-dark: #0d0e0f;
  --bg-dark-soft: #131316;
  --surface-dark: #18181c;
  --surface-dark-border: #2a2a30;

  --bg-light: #ffffff;
  --text-dark: #16161a;
  --text-muted-dark: #55555f;
  --text-light: #f5f4f8;
  --text-muted-light: #a9a8b3;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-purple: 0 20px 60px -15px var(--purple-glow);
  --container-w: 1240px;

  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.text-purple { color: var(--purple-400); }

.gradient-text {
  background: linear-gradient(90deg, var(--purple-700), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-light {
  background: linear-gradient(90deg, #ffffff, var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.section-dark .eyebrow { color: var(--text-muted-light); }
.eyebrow .accent { color: var(--purple-400); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -15px var(--purple-glow); }
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid #d8d8de;
}
.section-dark .btn-outline { color: #fff; border-color: #3a3a42; }
.btn-outline:hover { border-color: var(--purple-400); color: var(--purple-400); }

/* ---------- Noise / glow decorations (recreación del textured purple noise) ---------- */
.noise-corner {
  position: absolute;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle at 30% 30%, rgba(168,85,247,0.55), transparent 60%);
  filter: blur(0px);
  pointer-events: none;
}
.noise-corner.tl { top: -120px; left: -120px; }
.noise-corner.br { bottom: -140px; right: -140px; }
.glow-arc {
  position: absolute;
  border-radius: 50%;
  border: 90px solid rgba(147, 51, 234, 0.35);
  pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ececf1;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
}
.brand img { height: 34px; width: auto; }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted-dark);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--purple-600); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 84px);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px 60px 0;
  margin-left: 64px;
}
.hero-content .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  color: var(--text-dark);
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted-dark);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-footnote {
  font-size: 13px;
  color: #8c8c96;
  border-top: 1px solid #ececf1;
  padding-top: 18px;
  margin-top: auto;
  max-width: 460px;
}
.hero-media {
  position: relative;
  background: linear-gradient(160deg, #4c3b8f, #8b7bd8 55%, #b9a8ec);
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Generic section spacing
   ========================================================================== */
.section { padding: 120px 0; }

/* Dos secciones oscuras seguidas comparten fondo: recorta el padding
   entre ellas para que no se vea como un espacio vacío enorme. */
.section.section-dark + .section.section-dark { padding-top: 48px; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); margin-top: 14px; }
.section-head p { font-size: 17px; color: var(--text-muted-light); margin-top: 18px; }
.section:not(.section-dark) .section-head p { color: var(--text-muted-dark); }

/* ==========================================================================
   Problema
   ========================================================================== */
.problema { padding: 120px 0; }
.problema .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.problema-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(168,85,247,0.5);
  box-shadow: var(--shadow-purple);
}
.problema h2 { font-size: clamp(34px, 4vw, 54px); margin-top: 6px; }
.problema-lead {
  font-size: 17px;
  color: #c9c8d4;
  margin: 22px 0 32px;
  max-width: 520px;
}
.feature-list { display: flex; flex-direction: column; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-dark-border);
  font-size: 16px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-400);
}
.feature-icon svg { width: 22px; height: 22px; }

.callout-box {
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid var(--surface-dark-border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--purple-500);
  font-size: 15px;
  color: #d5d4dd;
  background: var(--surface-dark);
}
.callout-box strong { color: #fff; }

/* ==========================================================================
   Transforma (light section w/ stacked images)
   ========================================================================== */
.transforma { position: relative; }
.transforma .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.transforma h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  color: var(--text-dark);
}
.transforma-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 22px;
}
.transforma-badge img { width: 64px; height: 64px; }
.transforma .callout-box {
  background: #1c1c20;
  border: none;
  border-left: 3px solid var(--purple-500);
  color: #e4e3ea;
  max-width: 460px;
}
.stack-images { display: flex; flex-direction: column; gap: 20px; }
.stack-images img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* ==========================================================================
   Por qué funciona
   ========================================================================== */
.porque .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.porque-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(168,85,247,0.5);
  box-shadow: var(--shadow-purple);
}
.porque h2 { font-size: clamp(34px, 4vw, 52px); }
.porque-list { margin-top: 40px; display: flex; flex-direction: column; }
.porque-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-dark-border);
  font-size: 17px;
}
.porque-list li:last-child { border-bottom: none; }
.icon-box {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.icon-box svg { width: 22px; height: 22px; }

/* ==========================================================================
   Cómo funciona
   ========================================================================== */
.como-funciona .section-head { display: flex; justify-content: space-between; gap: 60px; max-width: none; }
.como-funciona .head-left { max-width: 480px; }
.como-funciona .head-left .rule {
  width: 64px; height: 3px; background: var(--purple-500); margin-bottom: 18px; border-radius: 3px;
}
.como-funciona .head-left h2 { font-size: clamp(32px, 4vw, 52px); }
.como-funciona .head-right { max-width: 420px; padding-top: 6px; }
.como-funciona .head-right p { color: #c9c8d4; font-size: 16px; }
.como-funciona .head-right .steps-caption { color: var(--purple-400); font-weight: 600; margin-top: 14px; font-size: 15px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 56px 0 60px;
  position: relative;
}
.step-item { text-align: left; position: relative; padding-top: 28px; }
.step-item::before {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(38px);
  right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-500), transparent);
}
.step-item:last-child::before { display: none; }
.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--purple-400);
  font-size: 15px;
  display: inline-block;
  margin-bottom: 10px;
}
.step-item h4 { font-size: 19px; color: #fff; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: #a9a8b3; margin: 0; }

.phones-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.phone-card img {
  border-radius: 26px;
  width: 100%;
  margin-bottom: 22px;
}
.phone-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-400);
  background: rgba(168,85,247,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.phone-card h4 { font-size: 19px; color: #fff; margin-bottom: 8px; }
.phone-card p { font-size: 14px; color: #a9a8b3; }

/* ==========================================================================
   Misiones (5-step flow)
   ========================================================================== */
.misiones .section-head { max-width: 700px; }
.misiones .rule { width: 64px; height: 3px; background: var(--purple-500); margin-bottom: 18px; border-radius: 3px; }
.misiones .kicker { font-size: 13px; letter-spacing: 0.04em; color: #c9c8d4; margin-bottom: 14px; }
.misiones .kicker strong { color: var(--purple-400); }
.misiones h2 { font-size: clamp(32px, 4.2vw, 54px); }

.mission-flow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 64px 0 50px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.mission-step { flex: 1; min-width: 150px; text-align: center; }
.mission-step .circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(168,85,247,0.25), transparent 70%);
}
.mission-step .circle svg { width: 34px; height: 34px; }
.mission-step h4 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.mission-step p { font-size: 13.5px; color: #9d9ca7; padding: 0 6px; }
.mission-arrow {
  flex: none;
  color: var(--purple-500);
  font-size: 22px;
  padding-top: 32px;
  opacity: 0.7;
}

.mission-footnote {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--surface-dark-border);
  padding-top: 26px;
  font-size: 15px;
  color: #c9c8d4;
}
.mission-footnote svg { flex: none; width: 22px; height: 22px; color: var(--purple-400); }
.mission-footnote strong { color: var(--purple-400); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard-section .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.dashboard-section h2 { font-size: clamp(34px, 4.6vw, 56px); }
.dashboard-section ul { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.dashboard-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: #e4e3ea;
}
.dashboard-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}
.dashboard-section .more { color: var(--purple-400); font-weight: 600; margin-top: 18px; display: inline-block; }
.dashboard-media img { border-radius: var(--radius-lg); width: 100%; }

/* ==========================================================================
   CTA / Contacto
   ========================================================================== */
.cta-section .container {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.cta-section h2 { font-size: clamp(38px, 5vw, 62px); color: #fff; }
.cta-media img { border-radius: var(--radius-lg); width: 100%; border: 1px solid rgba(168,85,247,0.5); }
.cta-note {
  font-size: 16px;
  color: #dcdbe4;
  transform: rotate(-2deg);
  margin-bottom: 26px;
}
.contact-card {
  background: var(--surface-dark);
  border: 1px solid rgba(168,85,247,0.5);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.contact-card h3 { font-size: 24px; color: #fff; margin-bottom: 16px; }
.contact-card .name { font-weight: 600; font-size: 17px; color: #fff; }
.contact-card .role { color: #a9a8b3; font-size: 14px; margin: 2px 0 12px; }
.contact-card .phone { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #e4e3ea; }
.contact-card .phone svg { width: 20px; height: 20px; color: #25D366; }

/* ==========================================================================
   Formulario de solicitud de demo
   ========================================================================== */
.demo-form-section { padding: 110px 0; }
.demo-form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}
.demo-form-copy h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--text-dark); }
.demo-form-copy p { color: var(--text-muted-dark); font-size: 16px; margin-top: 16px; max-width: 420px; }
.demo-form-copy ul { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.demo-form-copy ul li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text-dark); }
.demo-form-copy ul li svg { width: 20px; height: 20px; color: var(--purple-600); flex: none; }

.demo-form {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-purple);
}
.demo-form h3 { color: #fff; font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: #c9c8d4;
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--purple-500); }
.form-group textarea { resize: vertical; min-height: 96px; }
.field-error { color: #ff8585; font-size: 12.5px; margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert {
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin-bottom: 22px;
}
.alert-success { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37,211,102,0.4); color: #8fe3af; }
.alert-error { background: rgba(255, 85, 85, 0.1); border: 1px solid rgba(255,85,85,0.35); color: #ffb3b3; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: #9d9ca7;
  padding: 46px 0;
  border-top: 1px solid var(--surface-dark-border);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-heading); font-weight: 600; }
.footer-brand img { height: 26px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 14px; color: #9d9ca7; }
.footer-links a:hover { color: var(--purple-400); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-content { margin-left: 0; padding: 60px 24px; min-width: 0; }
  .hero-media { min-height: 500px; min-width: 0; }
  .problema .container,
  .transforma .container,
  .porque .container,
  .dashboard-section .container,
  .demo-form-wrap { grid-template-columns: 1fr; }
  .cta-section .container { grid-template-columns: 1fr; }
  .steps-row, .phones-row { grid-template-columns: repeat(2, 1fr); }
  .step-item::before { display: none; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .mission-flow { flex-direction: column; }
  .mission-arrow { display: none; }
  .steps-row, .phones-row { grid-template-columns: 1fr; }
  .demo-form { padding: 28px; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; align-items: center; gap: 14px; }
  .site-footer span { font-size: 13px; }
}

.site-header.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 20px 24px 30px;
  border-bottom: 1px solid #ececf1;
}
.site-header.nav-open .main-nav ul { flex-direction: column; gap: 18px; }
.mobile-nav-actions { display: none; }
.site-header.nav-open .mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.site-header.nav-open .mobile-nav-actions .btn { width: 100%; }
