/* Nómada · landing, páginas legales y 404 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
  --bg: #F2F3EF; --card: #FFFFFF; --ink: #141714; --ink-2: #3F4742; --muted: #5B645E; --line: #E3E6E0;
  --accent: #1F7A4D; --accent-ink: #1F7A4D; --accent-hover: #186640; --hero: #0F3D2A; --mint: #DCEFE4; --mint-ink: #135C37;
  --chip: #EEF0EB; --focus: #1F7A4D;
  --shadow: 0 1px 2px rgba(20, 23, 20, .04), 0 10px 28px -16px rgba(20, 23, 20, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1110; --card: #171B19; --ink: #EEF2EF; --ink-2: #C9D1CC; --muted: #9DA8A1; --line: #262C29;
    --accent-ink: #6FD3A0; --accent-hover: #1A6B43; --mint: #18291F; --mint-ink: #9BE0BA; --chip: #222826; --focus: #6FD3A0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.site-head { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 19px; }
.tag { font-size: 13px; font-weight: 700; color: var(--mint-ink); background: var(--mint); padding: 6px 12px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 18px; justify-items: start; animation: rise .7s var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--card); padding: 7px 14px 7px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--mint); }
.hero h1 { font-size: clamp(38px, 10.5vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.045em; max-width: 13ch; }
.hero__sub { font-size: clamp(18px, 4.6vw, 21px); color: var(--ink-2); max-width: 32ch; font-weight: 500; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 28px; margin-top: 6px;
  border-radius: 18px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 18px;
  box-shadow: 0 14px 28px -14px rgba(31, 122, 77, .8); transition: transform .2s var(--ease), background .2s;
}
.cta:hover { background: var(--accent-hover); transform: translateY(-2px); }
.cta:active { transform: scale(.98); }
.cta span { transition: transform .2s var(--ease); }
.cta:hover span { transform: translateX(3px); }
.hero__fine { font-size: 14px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Teléfono animado ---------- */
.phone {
  justify-self: center; width: min(330px, 86vw); aspect-ratio: 330 / 700; padding: 12px; border-radius: 48px;
  background: #141714; box-shadow: 0 40px 80px -40px rgba(15, 61, 42, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: rise .8s var(--ease) .15s both, float 6s ease-in-out 1.2s infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.phone__screen { position: relative; height: 100%; border-radius: 38px; background: #F2F3EF; color: #141714; padding: 18px 14px; overflow: hidden; display: grid; align-content: start; gap: 8px; font-size: 11px; }
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #1F7A4D; color: #fff; font-weight: 800; font-size: 13px; }
.m-lock { width: 24px; height: 24px; border-radius: 8px; background: #fff; }
.m-hello { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.m-month { color: #5B645E; font-weight: 600; margin-top: -6px; }
.m-hero { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: #0F3D2A; color: #fff; }
.m-label, .m-usd { color: #BFE3CD; font-weight: 600; }
.m-big { font-size: 30px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.m-ring { position: absolute; right: -40px; top: -50px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 122, 77, .7), transparent 70%); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-kpi { display: grid; gap: 2px; padding: 10px; border-radius: 16px; background: #fff; }
.m-kpi span { color: #3F4742; font-weight: 700; }
.m-kpi strong { font-size: 16px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.m-kpi em { justify-self: start; font-style: normal; font-weight: 700; font-size: 10px; padding: 2px 7px; border-radius: 99px; background: #DCEFE4; color: #135C37; }
.m-kpi em.is-flat { background: #EEF0EB; color: #3F4742; }
.m-chart { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; }
.m-chart > span { font-weight: 700; color: #3F4742; }
.m-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; height: 92px; }
.m-bars i { display: block; border-radius: 4px 4px 0 0; background: #A9B0AB; transform-origin: bottom; animation: bar 1s var(--ease) both; }
.m-bars i:nth-child(even) { background: #D8DCD7; }
.m-bars i.cur { background: #1F7A4D; }
.m-bars i.cur:nth-child(even) { background: #8FCDAA; }
.m-bars i:nth-child(1) { height: 60%; animation-delay: .5s; } .m-bars i:nth-child(2) { height: 32%; animation-delay: .55s; }
.m-bars i:nth-child(3) { height: 50%; animation-delay: .6s; } .m-bars i:nth-child(4) { height: 33%; animation-delay: .65s; }
.m-bars i:nth-child(5) { height: 80%; animation-delay: .7s; } .m-bars i:nth-child(6) { height: 34%; animation-delay: .75s; }
.m-bars i:nth-child(7) { height: 92%; animation-delay: .8s; } .m-bars i:nth-child(8) { height: 33%; animation-delay: .85s; }
.m-bars i:nth-child(9) { height: 66%; animation-delay: .9s; } .m-bars i:nth-child(10) { height: 34%; animation-delay: .95s; }
.m-bars i:nth-child(11) { height: 74%; animation-delay: 1s; } .m-bars i:nth-child(12) { height: 31%; animation-delay: 1.05s; }
@keyframes bar { from { transform: scaleY(0); } }
.m-list { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; }
.m-list__title { font-weight: 700; color: #3F4742; }
.m-inv { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
.m-inv span { font-weight: 800; font-variant-numeric: tabular-nums; }
.m-inv em { font-style: normal; font-weight: 700; font-size: 10px; padding: 2px 7px; border-radius: 99px; background: #DCEFE4; color: #135C37; }
.m-inv em.late { background: #FBE7E5; color: #B02A2A; }
.m-goal { display: flex; justify-content: space-between; }
.m-goal span { font-weight: 800; }
.m-bar { display: block; height: 8px; border-radius: 99px; background: #EEF0EB; overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 86%; border-radius: inherit; background: #1F7A4D; transform-origin: left; animation: grow-x 1.2s var(--ease) 1.2s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.m-toast {
  position: absolute; left: 14px; right: 14px; top: 12px; display: flex; align-items: center; gap: 10px; z-index: 2; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5);
  padding: 10px 12px; border-radius: 16px; background: #141714; color: #fff; font-weight: 600;
  animation: toast 7s var(--ease) 2.2s infinite both;
}
.m-toast b { color: #9BE0BA; font-size: 13px; }
.m-check { flex: none; width: 26px; height: 26px; border-radius: 9px; background: #1F7A4D; position: relative; }
.m-check::after { content: ''; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes toast { 0% { opacity: 0; transform: translateY(16px); } 8%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(10px); } }
.m-fab { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #1F7A4D; color: #fff; font-size: 26px; font-weight: 500; box-shadow: 0 10px 20px -8px rgba(31, 122, 77, .7); }

/* ---------- Beneficios ---------- */
.benefits { max-width: 1200px; margin: 0 auto; padding: 8px 16px 56px; display: grid; gap: 12px; }
.benefit { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease); }
.benefit:hover { transform: translateY(-3px); }
.benefit:first-of-type { background: var(--hero); color: #fff; }
.benefit:first-of-type p { color: #BFE3CD; }
.benefit:first-of-type .benefit__icon { background: rgba(255, 255, 255, .1); color: #BFE3CD; }
.benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--mint-ink); margin-bottom: 6px; }
.benefit h3 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.benefit p { color: var(--muted); font-size: 16px; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .25s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible:hover { transform: translateY(-3px); }
.js .reveal:nth-child(3) { transition-delay: .08s; }
.js .reveal:nth-child(4) { transition-delay: .16s; }

/* ---------- Pie ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.site-foot__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.wa svg { color: #1F7A4D; }
.wa:hover { color: var(--accent-ink); }
.fict { font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.foot-links a { display: inline-block; padding: 8px 0; font-weight: 600; }

/* ---------- Aviso de cookies ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; margin: 0 auto; max-width: 560px;
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 20px;
  background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  animation: rise .4s var(--ease) both;
}
.cookie a { color: inherit; font-weight: 700; }
.cookie button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* ---------- Páginas de texto ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 16px 64px; }
.doc h1 { font-size: clamp(32px, 8vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.doc section { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
.doc h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.simple { background: var(--mint) !important; }
.simple h2, .simple p, .simple li { color: var(--mint-ink); }
.back { display: inline-flex; gap: 6px; font-weight: 700; text-decoration: none; padding: 8px 0; margin-bottom: 8px; }

.notfound { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.notfound__card { display: grid; gap: 16px; justify-items: center; max-width: 440px; }
.notfound__code { font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.notfound h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.notfound p { color: var(--muted); }

@media (min-width: 720px) {
  .site-head { padding: 24px 32px; }
  .benefits { grid-template-columns: repeat(3, 1fr); padding: 8px 32px 72px; gap: 16px; }
  .hero { padding: 24px 32px 64px; }
  .site-foot { padding: 32px; }
  .site-foot__inner { grid-template-columns: auto 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 40px; }
  .phone { width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .m-list { display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; }
.m-list__title { font-weight: 700; color: #3F4742; }
.m-inv { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
.m-inv span { font-weight: 800; font-variant-numeric: tabular-nums; }
.m-inv em { font-style: normal; font-weight: 700; font-size: 10px; padding: 2px 7px; border-radius: 99px; background: #DCEFE4; color: #135C37; }
.m-inv em.late { background: #FBE7E5; color: #B02A2A; }
.m-toast { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}
