:root {
  --bg: #0b1220;
  --bg-alt: #101a2c;
  --surface: #16223a;
  --surface-2: #1c2b47;
  --border: #263a5e;
  --text: #eef2f9;
  --text-dim: #a9b6cc;
  --brand: #2f8fd1;
  --brand-dark: #004f82;
  --accent: #6ea8fe;
  --wa: #25d366;
  --wa-dark: #128c4a;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

a { color: inherit; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #f4faff;
  box-shadow: 0 8px 24px -8px rgba(47, 143, 209, 0.6);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(47, 143, 209, 0.75); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(47, 143, 209, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 10%, rgba(110, 168, 254, 0.12), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 .accent { color: var(--brand); }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
}

.phone {
  margin-left: auto;
  width: min(320px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}

.phone-screen {
  background: var(--bg-alt);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--wa-dark);
  color: #eafff1;
}

.chat-head .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-head strong { display: block; font-size: 0.9rem; }
.chat-head small { color: rgba(255,255,255,0.75); font-size: 0.72rem; }

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
}

.bubble.in {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble.out {
  background: var(--wa);
  color: #04210f;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.bubble.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: blink 1.2s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow { margin-left: auto; margin-right: auto; }

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0;
}

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Features */

.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--accent); }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 143, 209, 0.14);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #f4faff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* Why us / trust */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-dim);
}

.why-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand);
  margin-top: 2px;
}

.why-list li strong { color: var(--text); }

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

.stat-card span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info p { color: var(--text-dim); margin-bottom: 28px; }

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.info-item strong { display: block; font-size: 0.95rem; }
.info-item span, .info-item a { color: var(--text-dim); font-size: 0.9rem; text-decoration: none; }
.info-item a:hover { color: var(--brand); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  min-height: 22px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-status.ok { color: var(--brand); }
.form-status.error { color: #ff8080; }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), #001f33);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { color: #eaf4ff; }
.cta-band p { color: rgba(234,244,255,0.85); max-width: 50ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #eaf4ff; color: var(--brand-dark); }

/* Footer */

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid p { color: var(--text-dim); font-size: 0.9rem; max-width: 34ch; }

.footer-logo {
  display: inline-block;
  background: #f4f8fc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.footer-logo img { height: 22px; width: auto; display: block; }

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone { margin: 0 auto; }
  .grid-features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid-features { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; margin: 0 16px; }
  .hero { padding: 56px 0 56px; }
  section { padding: 64px 0; }
}

/* Para clinicas */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.demo-cta {
  margin-top: 40px;
  text-align: center;
}

.demo-cta p { color: var(--text-dim); margin: 0 0 16px; }