/* ===== Variables ===== */
:root {
  --bg: #fff;
  --bg-dark: #0f1419;
  --bg-card-dark: #1a2332;
  --text: #0f1419;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent: #0f172a;
  --btn-bg: #0f172a;
  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
  --font: 'DM Sans', system-ui, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Evitar que el header fijo tape las secciones al hacer scroll desde el menú */
#problema, #solucion, #validacion {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  min-height: 120px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f1f5f9;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img-footer {
  height: 80px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  color: var(--text);
}

.nav a:hover { color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
}

.btn-header, .btn-primary {
  background: var(--btn-bg);
  color: #fff !important;
  font-size: 1rem;
  padding: .75rem 1.5rem;
}

.nav a.btn-header {
  color: #fff !important;
}

.btn-white {
  background: #fff;
  color: var(--accent);
}

.btn-white:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.hero-title-alt {
  color: var(--text-muted);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 480px;
}

.hero-validation {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
}

.validation-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  margin-left: -8px;
  border: 2px solid #fff;
}

.avatar:first-child { margin-left: 0; }

.validation-text {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* Mockup card (WF-AI ENGINE) ===== */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  max-width: 420px;
  width: 100%;
  border: 1px solid #f1f5f9;
}

.mockup-card-video {
  padding: 0;
  overflow: hidden;
  max-width: 560px;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  vertical-align: middle;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mockup-dots {
  color: var(--text-light);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.mockup-version {
  font-size: .75rem;
  color: var(--text-muted);
}

.mockup-incoming {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.mockup-whatsapp-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}

.mockup-whatsapp-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
}

.mockup-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.mockup-msg {
  font-size: .85rem;
  color: var(--text);
}

.mockup-action {
  background: var(--bg-card-dark);
  color: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
}

.mockup-action-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}

.mockup-w-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.1);
  padding: 4px;
}

.mockup-steps {
  font-size: .85rem;
  color: rgba(255,255,255,.9);
  margin: 0 0 1rem;
  padding: 0;
}

.mockup-steps li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check::after {
  content: '✓';
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.mockup-btn {
  background: #fff;
  color: var(--accent);
  border: none;
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
}

/* ===== Sección Problema ===== */
.section-problema {
  background: linear-gradient(165deg, #0f1419 0%, #131c24 50%, #0d1218 100%);
  color: #fff;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-problema::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.section-problema::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}

.section-problema-title,
.section-problema-tagline,
.section-problema .cards-row {
  position: relative;
  z-index: 1;
}

.section-problema-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
}

.section-problema-tagline {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 0 0 3rem;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card-problema {
  background: var(--bg-card-dark);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon-svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.card-icon-warning {
  background: rgba(239, 68, 68, .2);
}

.card-icon-warning .card-icon-svg {
  filter: brightness(0) saturate(100%) invert(39%) sepia(93%) saturate(1582%) hue-rotate(338deg) brightness(98%) contrast(101%);
}

.card-icon-clock {
  background: rgba(249, 115, 22, .2);
}

.card-icon-clock .card-icon-svg {
  filter: brightness(0) saturate(100%) invert(58%) sepia(98%) saturate(1471%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

.card-icon-shield {
  background: rgba(34, 197, 94, .2);
}

.card-icon-shield .card-icon-svg {
  filter: brightness(0) saturate(100%) invert(67%) sepia(52%) saturate(826%) hue-rotate(94deg) brightness(95%) contrast(91%);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.card p {
  margin: 0;
  color: var(--text-light);
  font-size: .95rem;
}

/* ===== Sección Solución ===== */
.section-solucion {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-solucion-badge {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.solucion-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.section-solucion-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.section-solucion-desc {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

.cards-solucion {
  grid-template-columns: repeat(2, 1fr);
}

.card-solucion {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid #f1f5f9;
}

.card-solucion-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-solucion-svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card-icon-whatsapp {
  background: rgba(34, 197, 94, .15);
}

.card-icon-whatsapp .card-solucion-svg {
  filter: brightness(0) saturate(100%) invert(67%) sepia(52%) saturate(826%) hue-rotate(94deg) brightness(95%) contrast(91%);
}

.card-icon-email {
  background: rgba(15, 23, 42, .08);
}

.card-icon-email .card-solucion-svg {
  filter: brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(500%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

.card-features {
  margin-top: 1.25rem;
  padding: 0;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .95rem;
  color: var(--text);
}

.card-features .check {
  flex-shrink: 0;
}

/* ===== Sección Validación / Precio ===== */
.section-validacion {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-validacion-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--text);
}

.section-validacion-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}

.pricing-card {
  background: var(--bg-card-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.1);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.pricing-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.pricing-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.pricing-info p {
  font-size: .95rem;
  color: var(--text-light);
  margin: 0 0 1.5rem;
  max-width: 400px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
}

.price-note {
  font-size: .9rem;
  color: var(--text-light);
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.pricing-benefits {
  text-align: right;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-light);
}

.pricing-benefits li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: .35rem;
}

.benefit-icon {
  color: #818cf8;
}

.section-validacion-footer {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-url {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .03em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .03em;
}

.footer-links a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-mockup {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .solucion-head {
    grid-template-columns: 1fr;
  }

  .pricing-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pricing-cta {
    align-items: center;
  }

  .pricing-benefits {
    text-align: center;
  }

  .pricing-benefits li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a:not(.btn) { display: none; }

  .hero, .section-problema, .section-solucion, .section-validacion {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .cards-solucion {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
}
