/* Tokens, tipografía y componentes compartidos por la landing y la aplicación. */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --ink: #0b1220;
  --ink-soft: #475069;
  --ink-muted: #6b7490;
  --line: #e6e8ef;
  --brand: #2f5bff;
  --brand-dark: #1f3fd6;
  --brand-soft: #eef2ff;
  --accent: #00c48c;
  --danger: #d92d20;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 16px rgba(11, 18, 32, .05);
  --shadow-md: 0 10px 40px rgba(11, 18, 32, .08);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 10px 10px; z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); font-size: .93rem; }
.lead { font-size: 1.15rem; color: var(--ink); font-weight: 550; }
.grad {
  background: linear-gradient(100deg, var(--brand), #7b5bff 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 91, 255, .34); }
.btn--soft { background: var(--brand-soft); color: var(--brand-dark); border-color: #dfe5ff; }
.btn--soft:hover { background: #e3e9ff; color: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f3f9; color: var(--ink); transform: translateY(-1px); }
.btn--danger { background: transparent; color: var(--danger); border-color: #f2c7c3; }
.btn--danger:hover { background: #fdf2f1; color: #b42318; }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }

.pill {
  display: inline-block; margin: 0 0 1.1rem; padding: .35rem .8rem;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; font-size: .84rem; font-weight: 600;
}

.eyebrow {
  margin: 0 0 .5rem; color: var(--brand); font-weight: 650;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
}

.checks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.checks li { color: var(--ink-soft); font-size: .94rem; display: flex; align-items: center; gap: .45rem; }
.checks li::before {
  content: "✓"; display: grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 196, 140, .14); color: #059669; font-size: .75rem; font-weight: 700;
}
.checks--col { flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}

/* Marca */
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 8px;
  object-fit: contain; flex: none;
}
.brand__name { font-size: 1.12rem; }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 18, 32, .04); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__links > a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav__links > a:hover { color: var(--ink); }
.nav__links > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 11px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__legal { margin: .8rem 0 0; max-width: 34ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: flex-start; }
.footer__links a { color: var(--ink-soft); font-size: .93rem; }
.footer__links a:hover { color: var(--brand-dark); }
.footer__copy { margin: 2rem auto 0; color: var(--ink-muted); font-size: .85rem; }

/* Aparición progresiva */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 70px;
    display: none; flex-direction: column; align-items: stretch; gap: .3rem;
    padding: 1rem 20px 1.4rem; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: .8rem; }
  .nav__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
