/* Expend — web. Sobria y minimalista: fondo claro, una sola tipografía,
   bordes finos y el verde de la app solo para lo importante. */

:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #69766f;
  --line: #e2e8e4;
  --accent: #1da33f;
  --accent-soft: #e6f4ea;
  --radius: 22px;
  --wrap: 1080px;
  /* La letra del teléfono (San Francisco, Roboto…): no se descarga nada de afuera. */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); }

.skip-link { position: absolute; left: -999px; top: 12px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { left: 12px; }

/* Encabezado */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 22px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 10px 2px; }
.site-nav a.cancel { font-size: 13px; }
.site-nav a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--text); color: #fff; }

/* Portada: un scroll que cuenta la app en 6 pasos, con el teléfono fijo.
   Primero el celular (por ahí entra la gente), después la compu. */
.story { position: relative; }
.js .story { height: calc(var(--n) * 72svh + 100svh); }
.stage { position: relative; display: grid; grid-template-rows: auto 1fr; align-items: start; justify-items: center; gap: 2svh; padding: 3svh 0 2svh; }
.js .stage { position: sticky; top: 0; height: 100svh; height: 100dvh; }
.copy { position: relative; width: 100%; height: 30svh; min-height: 196px; text-align: center; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; will-change: opacity, transform; }
.step.on, .no-js .step:first-child { opacity: 1; }
.step h1, .step h2 { font-size: clamp(34px, 9.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 10px; }
.step h2 { font-size: clamp(30px, 8.4vw, 60px); }
.step p { color: var(--muted); font-size: clamp(16px, 4.2vw, 20px); margin: 0 auto 14px; max-width: 28ch; }
.soon { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 9px 16px; border-radius: 999px; }

.device { position: relative; display: grid; justify-items: center; }
.dots { position: absolute; right: -22px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.dots li.on { background: var(--accent); transform: scale(1.3); }

/* El teléfono simulado: todo en "em" del ancho, así escala en cualquier pantalla. */
.phone { --w: min(64vw, 300px); --w: min(64vw, 300px, calc((100svh - 30svh - 110px) * 0.47)); width: var(--w); aspect-ratio: 9 / 19.2; padding: calc(var(--w) * 0.028); border-radius: calc(var(--w) * 0.16); background: #121614; box-shadow: 0 40px 70px -40px rgba(23, 32, 27, .55), inset 0 0 0 1.5px #2a312d; will-change: transform; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.135); background: linear-gradient(#e6f2eb, #dcebe3); font-size: calc(var(--w) * 0.047); color: #2f3d35; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 2.6em; display: flex; align-items: center; justify-content: space-between; padding: 0 1.6em; font-size: .78em; font-weight: 600; z-index: 3; }
.sbar i { width: 4.6em; height: 1.35em; border-radius: 1em; background: #121614; position: absolute; left: 50%; transform: translateX(-50%); }
.sc { position: absolute; inset: 3.4em 0.9em 4.2em; display: flex; flex-direction: column; gap: 0.8em; opacity: 0; will-change: opacity, transform; }
.sc.on, .no-js .sc:first-of-type { opacity: 1; }
.pills { display: flex; gap: .45em; }
.pills b { font-size: .7em; font-weight: 600; padding: .55em 1em; border-radius: 2em; background: #f3f9f5; box-shadow: 0 .3em .8em -.4em rgba(47, 61, 53, .35); }
.pills b.act { background: var(--accent); color: #fff; }
.big { background: #f6fbf8; border-radius: 1.2em; padding: 1em 1em .9em; box-shadow: 0 .6em 1.4em -.9em rgba(47, 61, 53, .4), inset 0 0 0 1px rgba(255, 255, 255, .7); display: grid; gap: .35em; }
.big small { font-size: .62em; color: #7b8a82; }
.big strong { font-size: 1.65em; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big em { font-style: normal; font-size: .58em; color: #6e7d75; }
.big.plain { background: none; box-shadow: none; padding: .4em .2em; }
.meter { height: .38em; border-radius: 1em; background: #dfece4; overflow: hidden; }
.meter i { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.days { display: flex; gap: .3em; }
.days i { flex: 1; height: .38em; border-radius: 1em; background: #dfece4; transition: background .25s; }
.days i.on { background: var(--accent); }
.rows { list-style: none; margin: 0; padding: .3em .2em; display: grid; gap: .55em; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6em; font-size: .66em; background: #f3f9f5; border-radius: .9em; padding: .65em .8em; }
.rows b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ic { width: 1.6em; height: 1.6em; border-radius: .55em; }
.ic.g { background: #c9ecd4; } .ic.o { background: #fde0c4; } .ic.b { background: #d3e2fb; } .ic.p { background: #e3d9fb; }
.fan { position: relative; height: 11.5em; margin-top: .4em; }
.cc { position: absolute; left: 0; right: 0; height: 6.4em; border-radius: 1.1em; padding: .9em 1em; color: #fff; display: grid; align-content: space-between; transform-origin: 50% 120%; box-shadow: 0 .8em 1.6em -1em rgba(0, 0, 0, .5); will-change: transform; }
.cc i { width: 1.8em; height: 1.3em; border-radius: .3em; background: linear-gradient(135deg, #f3d98a, #c9a54b); }
.cc span { font-size: .6em; opacity: .85; }
.cc b { font-size: .95em; font-weight: 700; font-variant-numeric: tabular-nums; }
.c1 { background: linear-gradient(135deg, #3e5f92, #22386a); z-index: 3; }
.c2 { background: linear-gradient(135deg, #d6404a, #a3111c); z-index: 2; }
.c3 { background: linear-gradient(135deg, #8b6ff0, #5636d0); z-index: 1; }
.chip { align-self: center; font-size: .62em; font-weight: 600; padding: .6em 1em; border-radius: 2em; background: #f6fbf8; box-shadow: 0 .4em 1em -.6em rgba(47, 61, 53, .45); margin-top: .6em; }
.chip.good { color: var(--accent); }
.receipt { position: relative; align-self: center; width: 74%; margin-top: .4em; background: #fff; border-radius: .6em .6em 0 0; padding: 1em .9em 1.4em; display: grid; gap: .55em; box-shadow: 0 .8em 1.6em -1em rgba(47, 61, 53, .45); overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - .5em) no-repeat, radial-gradient(circle .5em at 50% 0, transparent 98%, #000) bottom / 1em .5em repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - .5em) no-repeat, radial-gradient(circle .5em at 50% 0, transparent 98%, #000) bottom / 1em .5em repeat-x; }
.receipt i { height: .42em; border-radius: 1em; background: #e7ece9; }
.receipt i.short { width: 55%; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 .9em .25em rgba(29, 163, 63, .45); }
.items li { opacity: 0; transform: translateY(.6em); transition: opacity .3s, transform .3s; }
.items li.on { opacity: 1; transform: none; }
.chart { width: 100%; height: 9em; overflow: visible; margin-top: .4em; }
.chart .area { fill: rgba(29, 163, 63, .1); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dock { position: absolute; left: .8em; right: .8em; bottom: .9em; height: 3em; border-radius: 1.5em; background: #f3f9f5; box-shadow: 0 .5em 1.2em -.8em rgba(47, 61, 53, .5); display: flex; align-items: center; justify-content: space-around; z-index: 2; }
.dock i { width: 1.3em; height: 1.3em; border-radius: .45em; background: #dbe7e0; }
.dock i.plus { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--accent); box-shadow: 0 .4em .9em -.3em rgba(29, 163, 63, .6); }

/* Secciones cortas */
section.block { padding-top: 64px; }
.block h2 { font-size: clamp(26px, 7vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 20px; font-weight: 700; }
.features, .plans { list-style: none; margin: 0; padding: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; }
.features svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.features h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

#planes, .get { text-align: center; }
.plans { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; max-width: 620px; margin: 0 auto; text-align: left; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--line); }
.plan:first-child { border-top: 0; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plan p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.price { text-align: right; white-space: nowrap; flex: none; }
.price strong { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.price small { color: var(--muted); font-size: 13px; margin-left: 2px; }
.price s { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.fineprint { color: var(--muted); font-size: 13px; margin: 12px auto 0; max-width: 620px; text-align: center; }

/* Descargar */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--text); color: #fff; text-decoration: none; text-align: left; }
.store:hover { color: #fff; background: #000; }
.store svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.store span { display: grid; font-size: 17px; font-weight: 600; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .75; }
.store.off { background: #e9eeeb; color: var(--muted); }

/* Aparecer al bajar */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .stage { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr; align-items: center; gap: 40px; padding: 0; }
  .copy { height: 340px; text-align: left; }
  .step { align-items: flex-start; }
  .step p { margin-left: 0; }
  .phone { --w: min(300px, calc((100vh - 120px) * 0.47)); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .s, .demo-cap { transition: none; }
}

/* Pie */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: var(--muted); padding: 6px 0; display: inline-block; }
.site-footer a:hover { color: var(--text); }

/* Páginas de texto (privacidad, términos, soporte, eliminar cuenta) */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.page-head p, .updated { color: var(--muted); margin: 0; }
.doc { display: grid; gap: 0; margin-top: 28px; }
.doc .card, .doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.doc p, .doc li { color: #38453e; }
.doc ul, .doc ol { padding-left: 20px; margin: 8px 0 0; }
.doc li + li { margin-top: 6px; }
.path { font-weight: 600; color: var(--text); white-space: nowrap; }
.btn { display: inline-block; background: var(--text); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.btn:hover { color: #fff; background: #000; }
.warning h2 { color: #b3261e; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: #38453e; }
.faq h2 { font-size: 19px; margin: 32px 0 8px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 340px) {
  .features { grid-template-columns: 1fr; }
  .plan { padding: 14px 14px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav a.hide-sm { display: none; }
  .site-header .wrap { height: 64px; }
}

/* Página de invitación (unirse.html): el código grande y fácil de copiar. */
.invite-code { font-size: 1.3em; font-weight: 700; letter-spacing: 0.18em; user-select: all; }
.stores-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stores-row [hidden] { display: none; }
