:root {
  --green: #00E676;
  --green-hover: #00C865;
  --navy: #0A2342;
  --blue: #2E6BFF;
  --sky: #E3F2FF;
  --gray: #F5F7FA;
  --text: #0A2342;
  --muted: #4A5B75;
  --line: #DDE4EE;
  --radius: 18px;
  --font: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }

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

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: var(--green-hover); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn__icon { width: 22px; height: 22px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Cabecera */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.topbar__logo img { height: 44px; width: auto; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topbar__nav a:hover { color: var(--blue); }
.topbar__actions { display: flex; align-items: center; gap: 20px; }
.link-login { color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.link-login:hover { color: var(--blue); }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px;
  padding: 88px 0 96px;
}
.eyebrow {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  border-radius: 999px; background: rgba(0,230,118,.14); color: var(--green);
  font-size: .85rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
.hero__lead { margin-top: 20px; font-size: 1.15rem; color: #C9D5E8; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: .9rem; color: #9FB0CB; }

/* Chat de ejemplo */
.chat {
  background: #fff; color: var(--text); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); max-width: 420px; justify-self: end; width: 100%;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--gray); border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; font-size: .95rem; }
.chat__head span { font-size: .8rem; color: var(--muted); }
.chat__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 24px; background: var(--sky); }
.msg { max-width: 82%; padding: 10px 14px 8px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg time { display: block; text-align: right; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #D3FBE5; border-top-right-radius: 4px; }

/* Secciones */
.section { padding: 96px 0; }
.section--gray { background: var(--gray); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; text-align: center; }
.section__lead { margin: 14px auto 0; max-width: 36em; text-align: center; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px; background: var(--sky); color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--sky); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: var(--green); font-weight: 700; font-size: 1.1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--blue);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Llamado final */
.cta-band { background: var(--sky); padding: 72px 0; }
.cta-band__inner { display: flex; align-items: center; gap: 32px; }
.cta-band__inner > div { flex: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-band p { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }

/* Pie */
.footer { background: var(--navy); color: #C9D5E8; padding: 36px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; gap: 24px; }
.footer__inner img { height: 36px; width: auto; }
.footer__inner p { margin-left: auto; }
.footer a { color: #fff; font-weight: 500; }

/* Tablet */
@media (max-width: 960px) {
  .topbar__nav { display: none; }
  .topbar__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 48px; }
  .chat { justify-self: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

/* Celular */
@media (max-width: 600px) {
  .topbar__inner { gap: 12px; min-height: 64px; }
  .topbar__logo img { height: 36px; }
  .topbar__actions { gap: 14px; }
  .topbar .btn--small { display: none; }
  .hero__inner { padding: 48px 0 56px; }
  .hero__lead { font-size: 1.05rem; }
  .hero__ctas .btn { width: 100%; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; margin-top: 36px; }
  .cta-band__inner { flex-direction: column; text-align: center; gap: 20px; }
  .cta-band .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer__inner p { margin-left: 0; }
}
