:root {
  --navy: #0f172a;
  --slate: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --cta: #0369a1;
  --cta-hover: #075985;
  --ok: #059669;
  --mint: #34d399;
  --err: #b91c1c;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cta); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
section { padding: 72px 0; scroll-margin-top: 72px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.sub { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.note { margin-top: 28px; font-size: 0.92rem; color: var(--muted); max-width: 70ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.brand strong { font-weight: 800; }
.brand__mark { width: 30px; height: 30px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--cta); color: #fff; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.25);
}
.btn:hover { background: var(--cta-hover); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; box-shadow: none; white-space: nowrap; }
.btn--full { width: 100%; }
.link { font-weight: 600; text-underline-offset: 4px; padding: 12px 4px; }

/* Hero */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, #eef6fb 0%, var(--bg) 100%); }
.hero__in { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
h1 { margin-top: 18px; font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.hl { color: var(--cta); }
.lead { margin-top: 18px; font-size: 1.15rem; color: var(--slate); max-width: 54ch; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

.ticks { margin-top: 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--slate); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%;
  background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks--light li { color: #e2e8f0; }

/* Teléfono */
.phone { width: 100%; max-width: 380px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.3); }
.phone__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.phone__bar strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.phone__bar small { color: #94a3b8; font-size: 0.78rem; }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--navy); display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; flex: none; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 20px; background: #f1f5f9; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.msg--in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #d1fae5; border-bottom-right-radius: 4px; }
.msg--sys { align-self: center; background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.msg__link { color: var(--cta); text-decoration: underline; word-break: break-all; }
.msg__file { display: block; margin-top: 6px; padding: 7px 10px; background: #fff; border-radius: 8px; font-size: 0.82rem; font-weight: 600; }

/* Tarjetas */
.band { background: #fff; border-block: 1px solid var(--line); }
.grid3, .grid2 { display: grid; gap: 18px; margin-top: 32px; }
.card, .fact, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.band .card { background: var(--bg); }
.card p, .fact p, .plan p { margin-top: 8px; color: var(--muted); }
.ico { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--cta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Pasos */
.flow { display: grid; gap: 18px; margin-top: 36px; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.flow p { margin-top: 6px; color: var(--muted); }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }

/* Fiscal */
.fiscal { background: #fff; border-block: 1px solid var(--line); }
.tag { display: inline-block; margin: 0 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cta); background: #e0f2fe; border-radius: 999px; padding: 4px 12px; }
.fact .tag, .plan .tag { margin-top: 0; color: var(--cta); }
.tag--on { background: var(--mint); color: var(--navy) !important; }

/* Planes */
.plan--hl { border: 2px solid var(--navy); }
.price { color: var(--navy) !important; font-size: 1.02rem; }
.price strong { font-size: 1.35rem; font-weight: 800; }
.price span { color: var(--muted); font-size: 0.92rem; }
.plan .ticks { margin-top: 18px; }

/* Equipo */
.person { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.person img, .person__mark { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.person img { object-fit: cover; border: 1px solid var(--line); }
.person__mark { display: grid; place-items: center; background: #e0f2fe; }
.person__mark svg { width: 32px; height: 32px; fill: none; stroke: var(--cta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.person p { margin-top: 6px; color: var(--muted); }
.person .role { margin-top: 2px; font-size: 0.9rem; font-weight: 600; color: var(--cta); }
.ts:empty { display: none; }

/* Registro */
.signup { background: var(--navy); color: #fff; }
.signup .sub { color: #cbd5e1; }
.signup__in { display: grid; gap: 36px; align-items: start; }
.form, .done { background: #fff; color: var(--navy); border-radius: 18px; padding: 26px; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--navy);
  background: #fff; border: 1.5px solid #cbd5e1; border-radius: 10px;
  transition: border-color 0.2s ease;
}
input:hover, select:hover { border-color: #94a3b8; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cta); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; font-size: 0.92rem; cursor: pointer; }
.field--check .err { grid-column: 2; }
.err { min-height: 0; margin-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--err); }
.err:empty { display: none; }
.err--form { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 44px 26px; }
.done svg { width: 56px; height: 56px; }
.done h3 { margin-top: 16px; font-size: 1.4rem; }
.done p { margin-top: 8px; color: var(--muted); }
[hidden] { display: none !important; }

/* Preguntas */
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--cta); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--muted); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.92rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* Aviso de privacidad */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 32px; letter-spacing: 0; }
.legal p, .legal ul { margin-top: 12px; color: var(--slate); }
.legal ul { list-style: disc; padding-left: 22px; }

@media (min-width: 720px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  section { padding: 96px 0; }
  .hero { padding: 80px 0 96px; }
  .hero__in { grid-template-columns: 1.15fr 0.85fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .signup__in { grid-template-columns: 1fr 1fr; gap: 64px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 0.92rem; }
  .btn--sm { padding: 0 12px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
