*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background-app, #fff);
  color: var(--text-default, #0b0f19);
  font: 400 var(--text-base, 16px) / 1.55 var(--font-ui, "Inter", system-ui, sans-serif);
}
h1,
h2,
h3 {
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: var(--text-link, #1d4ed8);
}
img {
  max-width: 100%;
  display: block;
}
.muted {
  color: var(--text-muted, #4b5563);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.wrap--narrow {
  max-width: 760px;
}

/* ---- cabecera ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border-default, #e5e7eb);
}
.brand img {
  height: 28px;
  width: auto;
}
.site-nav {
  display: none;
  gap: 20px;
}
.site-nav a {
  color: var(--text-default, #0b0f19);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--text-link, #1d4ed8);
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}
@media (max-width: 480px) {
  .site-actions .btn--ghost {
    display: none;
  }
}

/* ---- botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: 700 0.95rem / 1 var(--font-ui, "Inter", system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 1.02rem;
}
.btn--cta {
  background: var(--color-orange-500, #f97316);
  color: #0b0f19;
}
.btn--cta:hover {
  filter: brightness(0.95);
}
.btn--ghost {
  background: transparent;
  color: var(--text-link, #1d4ed8);
  border-color: var(--color-brand-300, #93c5fd);
}
.btn--outline-on-brand {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0b0f19;
  outline-offset: 2px;
}

/* ---- hero ---- */
.hero {
  background: var(--background-brand, #1d4ed8);
  color: #fff;
  padding: 56px 0 64px;
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 20px;
}
.lead {
  font-size: 1.15rem;
  max-width: 54ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__note {
  font-size: 0.9rem;
  opacity: 0.9;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.mock {
  background: #fff;
  color: #0b0f19;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(11, 15, 25, 0.35);
}
.mock__label {
  color: var(--text-muted, #4b5563);
  font-size: 0.85rem;
}
.mock__amount {
  font: 700 2rem / 1.1 var(--font-mono, "JetBrains Mono", monospace);
  color: var(--text-money, #15803d);
}
.mock__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-default, #e5e7eb);
  font-size: 0.9rem;
}

.chip {
  display: inline-block;
  align-self: start;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.chip--on-brand {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.chip--ok {
  background: #dcfce7;
  color: #15803d;
}
.chip--soon {
  background: #fff7ed;
  color: #9a3412;
}

/* ---- confianza ---- */
.trust {
  background: #0b0f19;
  color: #fff;
  padding: 24px 0;
}
.trust__grid {
  display: grid;
  gap: 16px;
}
.trust__grid div {
  display: grid;
  gap: 2px;
}
.trust__grid span {
  color: #cbd5e1;
  font-size: 0.9rem;
}
@media (min-width: 800px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ---- secciones ---- */
.section {
  padding: 64px 0;
}
.section > .wrap {
  display: grid;
  gap: 20px;
}
.section--alt {
  background: var(--background-subtle, #f1f5f9);
}
.section--brand {
  background: var(--background-brand, #1d4ed8);
  color: #fff;
}
.section__lead {
  color: inherit;
  opacity: 0.85;
  max-width: 62ch;
}
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .cards:not(.cards--3) {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  background: #fff;
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 8px;
}
.steps__n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--background-brand, #1d4ed8);
  color: #fff;
  font: 700 1rem var(--font-mono, monospace);
}
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 800px) {
  .ladder {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ladder li {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 4px;
  border-left: 6px solid var(--color-orange-500, #f97316);
}
.ladder span {
  font: 700 0.85rem var(--font-mono, monospace);
  color: var(--text-muted, #4b5563);
}
.ladder em {
  font-style: normal;
  color: var(--text-muted, #4b5563);
  font-size: 0.9rem;
}
.credo {
  text-align: center;
}
.credo__line {
  font: 800 clamp(1.4rem, 3vw, 2rem) / 1.2 var(--font-display, sans-serif);
  color: var(--text-link, #1d4ed8);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  padding-left: 32px;
  position: relative;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}
details {
  border-bottom: 1px solid var(--border-default, #e5e7eb);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  margin-top: 10px;
  color: var(--text-muted, #4b5563);
}

/* ---- formulario ---- */
.form {
  display: grid;
  gap: 16px;
  background: #fff;
  color: #0b0f19;
  border-radius: 16px;
  padding: 20px;
}
.form__row {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form input:not([type="checkbox"]),
.form select {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--border-strong, #94a3b8);
  border-radius: 10px;
  background: #fff;
}
.form .check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 400;
}
.form .check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  min-height: 1.5em;
  font-weight: 600;
}
.form__status--ok {
  color: #15803d;
}
.form__status--error {
  color: #b91c1c;
}
.contact {
  margin-top: 12px;
}

/* ---- pie ---- */
.site-footer {
  background: #0b0f19;
  color: #e2e8f0;
  padding: 40px 0;
}
.site-footer a {
  color: #e2e8f0;
}
.site-footer .muted {
  color: #94a3b8;
}
.footer__grid {
  display: grid;
  gap: 24px;
}
.footer__grid nav {
  display: grid;
  gap: 8px;
}
.legal {
  font-size: 0.82rem;
  color: #94a3b8;
  max-width: 70ch;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 2fr;
  }
}

/* ---- páginas legales ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  display: grid;
  gap: 16px;
}
.doc h2 {
  font-size: 1.3rem;
  margin-top: 12px;
}
.doc ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.draft {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.section--brand .contact a {
  color: #fff;
  font-weight: 700;
}

/* ---- botón flotante de WhatsApp ---- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #0b0f19;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 15, 25, 0.3);
}
.wa-float[hidden] {
  display: none;
}
.wa-float:hover {
  filter: brightness(0.95);
}
@media (max-width: 480px) {
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 14px;
  }
}
