:root {
  --navy: #1a365d;
  --navy-2: #14294a;
  --navy-3: #0e1f3a;
  --teal: #38b2ac;
  --teal-dark: #2b9a94;
  --teal-light: #e6fffa;
  --ink: #2d3748;
  --muted: #5a6b85;
  --bg-light: #f2f6fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(20, 41, 74, .14);
  --shadow-sm: 0 6px 18px rgba(20, 41, 74, .10);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

section { scroll-margin-top: 56px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 48px); }

/* ===== Barra superior ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(20, 41, 74, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo-img { height: 34px; width: auto; }
@media (max-width: 480px) { .logo-img { height: 28px; } }
.logo-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #2b9a94);
  border-radius: 9px;
  color: #fff;
}
.logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.logo-text strong { color: var(--teal); font-weight: 800; }
.topbar-cta {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(56, 178, 172, .4);
}
.topbar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(56, 178, 172, .55); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(56, 178, 172, .22), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(43, 108, 176, .25), transparent 60%),
              linear-gradient(155deg, var(--navy-3) 0%, var(--navy) 55%, #1c4174 100%);
  color: #fff;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -180px;
  background: radial-gradient(circle, rgba(56, 178, 172, .35), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  padding: 64px 0 84px;
  display: grid;
  gap: 48px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 178, 172, .12);
  border: 1px solid rgba(56, 178, 172, .4);
  color: #7fe3de;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #38d9d0;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #38d9d0;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(3.2); opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
  max-width: 620px;
}
.hero h1 .accent { color: #7fe3de; }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: #cbd7ea;
  max-width: 560px;
}
.hero-sub strong { color: #fff; }
.social-proof {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.social-proof p { font-size: .92rem; color: #aebdD4; }
.social-proof p strong { color: #fff; }
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border: 2px solid var(--navy);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar-lg { width: 44px; height: 44px; font-size: .85rem; border: none; margin: 0; flex: none; }
.stars { display: inline-flex; gap: 2px; }

/* ===== Form card ===== */
.hero-form-wrap { position: relative; }
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.form-card h2 { font-size: 1.28rem; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.form-intro { margin: 6px 0 20px; font-size: .92rem; color: var(--muted); }
.lead-form { display: grid; gap: 13px; }
.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: #f7fafc;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6b85' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 178, 172, .16);
}
.field.invalid input, .field.invalid select { border-color: #e53e3e; }
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 10px 24px rgba(56, 178, 172, .42);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(56, 178, 172, .5); filter: brightness(1.04); }
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { opacity: .75; cursor: wait; transform: none; }
.microcopy { text-align: center; font-size: .82rem; color: var(--muted); font-weight: 500; }
.privacy-note { text-align: center; font-size: .76rem; color: #94a3b8; }

.form-success {
  text-align: center;
  padding: 34px 10px 28px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.form-success .check-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: grid; place-items: center;
  color: var(--teal-dark);
  animation: pop .45s cubic-bezier(.18, 1.4, .4, 1);
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.form-success p { font-size: .94rem; color: var(--muted); max-width: 320px; }
.form-error { text-align: center; font-size: .85rem; color: #e53e3e; font-weight: 600; }

/* ===== Panel de demo (web call) ===== */
.demo-panel { padding: 30px 10px 26px; }
.demo-panel .demo-btn { margin-top: 10px; }
.demo-status {
  font-size: .85rem;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
}
.demo-status.error { background: #fff1f2; color: #c53030; }
.demo-note { font-size: .82rem; color: #94a3b8; }
.demo-note a { color: var(--teal-dark); font-weight: 700; }
.btn-hangup {
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
}
.btn-hangup:hover { color: #e53e3e; border-color: #e53e3e; }

/* ===== Secciones generales ===== */
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  text-align: center;
  margin-bottom: 44px;
}
.section-title.light { color: #fff; }
.pain { background: var(--bg-light); padding: 84px 0; }
.solution { background: #fff; padding: 84px 0; }
.sectors { background: var(--navy-3); padding: 84px 0; }
.results { background: var(--bg-light); padding: 84px 0; }
.faq { background: #fff; padding: 84px 0; }

.grid-3 {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

/* ===== Dolor ===== */
.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon-box {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #fef2f2;
  color: #e53e3e;
  display: grid; place-items: center;
}
.pain-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.pain-card p { font-size: .93rem; color: var(--muted); }
.pain-transition {
  margin-top: 46px;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink);
  font-weight: 500;
}
.pain-transition strong {
  color: var(--navy);
  display: inline-block;
  background: linear-gradient(transparent 62%, rgba(56, 178, 172, .35) 0);
  font-weight: 800;
}

/* ===== Solución ===== */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
.step {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
}
.step .icon-box {
  background: var(--teal-light);
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.step-no {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid; place-items: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ===== Sectores ===== */
.sector-card {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sector-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.sector-tag {
  align-self: flex-start;
  background: rgba(56, 178, 172, .92);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.sector-card p { font-size: 1.06rem; font-weight: 500; max-width: 300px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.sector-card p strong { color: #7fe3de; font-weight: 800; }

/* ===== Resultados ===== */
.metrics {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-bottom: 56px;
}
.metric {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  color: #7fe3de;
  letter-spacing: -.5px;
  line-height: 1;
}
.metric p { margin-top: 8px; font-size: .95rem; color: #cbd7ea; font-weight: 500; }
.testimonials { display: grid; gap: 22px; grid-template-columns: 1fr; }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-mark {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  opacity: .9;
}
.testimonial blockquote {
  margin: 4px 0 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption div { display: flex; flex-direction: column; }
.testimonial figcaption strong { color: var(--navy); font-size: .95rem; }
.testimonial figcaption small { color: var(--muted); font-size: .82rem; }

/* ===== FAQ ===== */
.accordeon { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--teal); background: #fff; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: .98rem;
  color: var(--navy);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .25s ease;
}
.chev::before, .chev::after {
  content: '';
  position: absolute;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform .25s ease;
}
.chev::before { width: 12px; height: 2px; top: 10px; left: 5px; }
.chev::after  { width: 2px; height: 12px; top: 5px; left: 10px; }
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: .93rem; color: var(--muted); max-width: 640px; }

/* ===== CTA final ===== */
.final-cta {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(56, 178, 172, .2), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(43, 108, 176, .28), transparent 60%),
    var(--navy-3);
  padding: 88px 0;
  text-align: center;
  color: #fff;
}
.final-cta h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; }
.final-sub { margin: 12px 0 36px; font-size: 1.05rem; color: #cbd7ea; }
.form-card-dark { text-align: left; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-3);
  color: #cbd7ea;
  padding: 56px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 34px;
}
.footer-brand p { margin-top: 14px; font-size: .9rem; max-width: 300px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; transition: color .2s ease; }
.footer-contact a:hover { color: #7fe3de; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; opacity: .85; transition: color .2s ease; }
.footer-links a:hover { color: #7fe3de; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  font-size: .8rem;
  color: #7a8aa6;
}

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  z-index: 90;
  animation: wa-wave 2.4s ease-in-out infinite;
}
@keyframes wa-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-float:hover { transform: scale(1.08); animation: none; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wa-ring 2s ease-out infinite;
}
@keyframes wa-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot::after, .wa-float, .wa-float::after { animation: none; }
}

/* ===== Mobile: compact hero para que el formulario entre en pantalla ===== */
@media (max-width: 639px) {
  .hero-inner { padding: 28px 0 48px; gap: 30px; }
  .hero-badge { font-size: .74rem; padding: 6px 13px; margin-bottom: 14px; }
  .hero h1 { font-size: 1.82rem; letter-spacing: -.3px; }
  .hero-sub { margin-top: 14px; font-size: 1rem; }
  .social-proof { margin-top: 16px; }
  .avatar { width: 28px; height: 28px; font-size: .62rem; }
  .social-proof p { font-size: .82rem; }
  .form-card { padding: 22px 18px; }
  .form-card h2 { font-size: 1.15rem; }
  .form-intro { margin: 4px 0 14px; font-size: .86rem; }
  .lead-form { gap: 11px; }
  .field input, .field select { padding: 12px 14px; font-size: .95rem; }
  .btn-cta { padding: 14px; font-size: .94rem; }
  .pain, .solution, .sectors, .results, .faq { padding: 64px 0; }
  .section-title { margin-bottom: 34px; }
}

/* ===== Desktop ===== */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sectors .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 940px) {
  .sectors .grid-3 { grid-template-columns: repeat(4, 1fr); }
  .hero-inner {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 56px;
    padding: 96px 0 116px;
  }
  .form-card { padding: 34px 30px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
  .pain, .solution, .sectors, .results, .faq { padding: 100px 0; }
}