/* Stratos Libreta · sitio público. Tokens = los de la app (Syge.Libreta.App/src/styles.scss :root). */
:root {
  --app: #F2F7FE; --card: #FFFFFF; --ink: #1B2B45; --muted: #5B6B86; --line: #E1E9F5;
  --brand: #3D7BE0; --brand-2: #2A5CC0; --brand-deep: #1D4596; --brand-soft: #E5EFFD;
  --hero: #D9E8FC; --hero-2: #EAF2FE; --hero-ink: #16305C;
  --in: #1E9E6A; --in-soft: #E3F6EE; --out: #D9534A; --out-soft: #FDEEEC; --warn: #C27C12; --warn-soft: #FFF4E2;
  --sun: #F6B73C; --wa: #25D366;
  --shadow: 0 1px 2px rgba(40,80,150,.05), 0 6px 20px rgba(40,80,150,.08);
  --shadow-lg: 0 2px 4px rgba(40,80,150,.06), 0 18px 44px rgba(40,80,150,.14);
  --f: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --g: 16px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --g: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--app); color: var(--ink); font: 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-2); }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; letter-spacing: -.025em; margin: 0; color: var(--hero-ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--g); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ico { flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--f); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(61,123,224,.35); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: #fff; color: var(--brand-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.light { background: #fff; color: var(--brand-deep); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn.full, .btn-play.full { width: 100%; }
.stores { display: grid; gap: 10px; }
.btn-play { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 22px 6px 16px; border-radius: 14px; background: #0F1B33; color: #fff;
  text-decoration: none; border: 1.5px solid #0F1B33; transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 22px rgba(15,27,51,.25); }
.btn-play:hover { transform: translateY(-1px); }
.btn-play span:not(.sr) { display: grid; line-height: 1.1; text-align: left; }
.btn-play small { font-size: 11px; opacity: .8; letter-spacing: .02em; }
.btn-play b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.btn-play.full { justify-content: center; }
.btn-play.on-dark { border-color: rgba(255,255,255,.35); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.eyebrow.light { color: #CFE0FB; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
h2 em, h1 em { font: 700 1.22em/0.9 var(--hand); color: var(--brand); letter-spacing: 0; }
.sub { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 620px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ── barra superior ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(242,247,254,.82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(225,233,245,.8); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-ink); }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(37,86,189,.25); }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 419px) { .top .brand small { display: none; } .top .brand b { font-size: 17px; } }
/* Teléfonos chicos: el nombre no cabe junto al idioma y «Descargar»; queda solo el logo. */
@media (max-width: 400px) { .top .brand span { display: none; } }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.links { display: none; gap: 4px; margin-left: 12px; }
.links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.links a:hover { background: var(--brand-soft); color: var(--brand-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--hero-ink); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--brand-soft); }
.lang[open] summary .ico:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; display: grid; }
.lang-menu a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; }
.lang-menu a:hover { background: var(--brand-soft); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--brand-2); }
.hide-xs { display: none; }
@media (min-width: 520px) { .hide-xs { display: inline-flex; } }
@media (min-width: 1024px) { .links { display: flex; } }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(91,151,242,.22), transparent 60%); }
/* hojas rayadas de libreta, que se desvanecen */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(61,123,224,.09) 35px 36px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(42px, 7.2vw, 78px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.mark { position: relative; isolation: isolate; display: inline-block; color: var(--brand); white-space: nowrap; }
.mark svg { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .26em; color: var(--sun); z-index: -1; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #45567A; margin: 22px 0 28px; max-width: 540px; }
.pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--brand-2); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 24px; }
}

/* escenario con el teléfono */
.stage { position: relative; height: 560px; display: grid; place-items: center; width: 100%; max-width: 540px; margin-inline: auto; }
.blob { position: absolute; width: 440px; height: 440px; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, #5B97F2, #2556BD); opacity: .95; box-shadow: 0 40px 80px rgba(37,86,189,.3); }
.phone { --k: .86; position: relative; width: calc(300px * var(--k)); height: calc(612px * var(--k)); border-radius: calc(46px * var(--k)); padding: calc(10px * var(--k));
  background: linear-gradient(145deg, #2A3A58, #0F1B33); box-shadow: 0 40px 70px rgba(10,25,60,.38), inset 0 0 0 2px rgba(255,255,255,.08);
  font-size: calc(13px * var(--k)); transform: rotate(-4deg); animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.screen { position: relative; height: 100%; border-radius: calc(37px * var(--k)); background: var(--app); overflow: hidden; display: flex; flex-direction: column; gap: .8em; padding: .7em 1.1em 0; }
.sbar { display: flex; justify-content: space-between; align-items: center; font-size: .82em; font-weight: 600; color: var(--hero-ink); padding: .2em .4em 0; }
.sbar i { width: 5.6em; height: 1.5em; border-radius: 1em; background: #0F1B33; }
.sbar .sig { width: 1.9em; height: .8em; border-radius: .25em; border: 1.5px solid var(--hero-ink); }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head small { display: block; color: var(--muted); font-size: .85em; }
.app-head b { font-size: 1.25em; letter-spacing: -.02em; color: var(--hero-ink); }
.av { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.bal { background: linear-gradient(160deg, var(--hero), var(--hero-2)); border-radius: 1.4em; padding: 1em 1.1em .9em; color: var(--hero-ink); display: grid; gap: .25em; }
.bal small { font-size: .85em; color: #4A6390; }
.bal > b { font-size: 2.3em; letter-spacing: -.03em; line-height: 1.05; }
.bal-row { display: flex; gap: .45em; font-size: .8em; font-weight: 700; }
.bal-row span { display: inline-flex; align-items: center; gap: .2em; padding: .3em .55em; border-radius: .6em; }
.bal-row .in { color: var(--in); background: var(--in-soft); }
.bal-row .out { color: var(--out); background: var(--out-soft); }
.bars { display: flex; align-items: flex-end; gap: .4em; height: 3.4em; margin-top: .4em; }
.bars i { flex: 1; height: var(--h); border-radius: .3em .3em .15em .15em; background: #fff; transform-origin: bottom; animation: bar .7s cubic-bezier(.2,.7,.2,1) both; }
.bars i:last-child { background: var(--brand); }
.bars i:nth-child(2) { animation-delay: .05s } .bars i:nth-child(3) { animation-delay: .1s } .bars i:nth-child(4) { animation-delay: .15s }
.bars i:nth-child(5) { animation-delay: .2s } .bars i:nth-child(6) { animation-delay: .25s } .bars i:nth-child(7) { animation-delay: .3s }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.quick .q { background: var(--tbg); border-radius: 1em; padding: .55em .2em .45em; display: grid; justify-items: center; gap: .15em; }
.quick .q svg { width: 2.4em; height: 2.4em; }
.quick em { font-style: normal; font-size: .72em; font-weight: 600; color: var(--hero-ink); }
.rows { background: #fff; border-radius: 1.2em; padding: .7em .9em; display: grid; gap: .5em; box-shadow: var(--shadow); }
.rows small { color: var(--muted); font-size: .78em; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.row { display: flex; align-items: center; gap: .6em; font-size: .88em; }
.row span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri { width: 2.1em; height: 2.1em; border-radius: .7em; display: grid; place-items: center; }
.ri .ico { width: 1.1em; height: 1.1em; }
.in { color: var(--in); } .ri.in { background: var(--in-soft); }
.ri.warn { background: var(--warn-soft); color: var(--warn); } .ri.out { background: var(--out-soft); color: var(--out); }
.pos { color: var(--in); } .neg { color: var(--out); }
.tabs { margin-top: auto; display: flex; justify-content: space-around; background: #fff; margin-inline: -1.1em; padding: .6em .4em 1.1em; border-top: 1px solid var(--line); }
.tabs span { display: grid; justify-items: center; gap: .1em; color: #8A99B3; }
.tabs .ico { width: 1.4em; height: 1.4em; }
.tabs em { font-style: normal; font-size: .62em; font-weight: 600; }
.tabs .on { color: var(--brand); }

.chip { position: absolute; display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 16px; padding: 8px 14px 8px 8px; box-shadow: 0 16px 34px rgba(10,30,80,.2);
  font-size: 13px; line-height: 1.2; white-space: nowrap; animation: rise .6s cubic-bezier(.2,.7,.2,1) both, float 5s ease-in-out infinite; z-index: 2; }
.chip b { display: block; color: var(--hero-ink); }
.chip small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.chip small .ico { color: var(--wa); }
.ci { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.ci.in { background: var(--in-soft); color: var(--in); } .ci.warn { background: var(--warn-soft); color: var(--warn); } .ci.out { background: var(--out-soft); color: var(--out); }
.c1 { left: 2%; top: 14%; animation-delay: .3s, 0s; }
.c2 { right: 0; top: 44%; animation-delay: .45s, 1.2s; }
.c3 { left: 4%; bottom: 12%; animation-delay: .6s, 2.2s; }
.hand { display: none; position: absolute; font: 700 25px/1 var(--hand); color: var(--brand-deep); z-index: 3; background: #FFF4D6; padding: 6px 12px 8px; border-radius: 6px; box-shadow: 0 8px 18px rgba(10,30,80,.14); }
.hand svg { width: 54px; height: 36px; color: var(--sun); position: absolute; }
.hand.h1 { left: -7%; bottom: 2%; transform: rotate(-5deg); }
.hand.h2 { right: -4%; top: 61%; width: 130px; text-align: center; transform: rotate(4deg); }
.hand svg { left: 18px; top: -40px; color: #E09A12; }
@media (min-width: 480px) { .phone { --k: .95; } .stage { height: 620px; } .c2 { right: 4%; } }
@media (min-width: 960px) { .phone { --k: 1; } .stage { height: 660px; } .blob { width: 500px; height: 500px; } .c1 { left: 0; } .c3 { left: 2%; } .c2 { right: -2%; } }
@media (min-width: 1180px) { .hand { display: block; } }
@media (max-width: 400px) { .blob { width: 340px; height: 340px; } .stage { height: 540px; } .chip { font-size: 12px; } }

@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes bar { from { transform: scaleY(0); } }
@keyframes float { 50% { translate: 0 -7px; } }

/* ── franja de rubros ── */
.types { background: #fff; border-block: 1px solid var(--line); }
.types-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.types-lbl { flex: none; font: 700 24px/1 var(--hand); color: var(--brand); }
.marquee { flex: 1; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: 0; animation: slide 36s linear infinite; }
.marquee li { white-space: nowrap; font-weight: 600; color: var(--hero-ink); padding: 0 18px; position: relative; }
.marquee li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); translate: 0 -50%; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ── secciones ── */
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 104px 0; } }
.sec-head { text-align: center; display: grid; justify-items: center; margin-bottom: 44px; }
.sec-head.left { text-align: left; justify-items: start; }

/* tonos de las ilustraciones (igual que styles/_home.scss de la app) */
.t-brand { --t: var(--brand); --t2: #9CC0F5; --tbg: var(--brand-soft); }
.t-in { --t: var(--in); --t2: #8FD9B8; --tbg: var(--in-soft); }
.t-out { --t: var(--out); --t2: #F2A9A3; --tbg: var(--out-soft); }
.t-warn { --t: var(--warn); --t2: #F5CD85; --tbg: var(--warn-soft); }
.t-deep { --t: var(--brand-deep); --t2: #8DB0EC; --tbg: var(--hero); }
.illus .a { fill: var(--t); } .illus .b { fill: var(--t2); } .illus .w { fill: #fff; }
.illus .l, .illus .s { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illus .l { stroke: #fff; } .illus .s { stroke: var(--t); }

/* bento de funciones */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .w2 { grid-column: span 2; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat-top { width: 72px; height: 72px; border-radius: 22px; background: var(--tbg); display: grid; place-items: center; margin-bottom: 6px; }
.feat h3 { font-size: 21px; font-weight: 700; }
.feat p { color: var(--muted); font-size: 15.5px; }
.demo { margin-top: auto; padding-top: 12px; }
.pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tbg); color: var(--t); }
.pay .to { background: none; width: 24px; color: var(--muted); }
.pay .wa { background: var(--wa); color: #fff; }
.bubble { display: flex; gap: 10px; align-items: flex-end; }
.bubble p { background: #DCF8C6; color: #1B2B45; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.wa-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.stock { display: flex; align-items: center; gap: 12px; background: var(--app); border-radius: 14px; padding: 10px 12px; }
.stock b { display: block; font-size: 14px; } .stock small { color: var(--warn); font-weight: 600; font-size: 12px; }
.meter { flex: 1; height: 8px; border-radius: 9px; background: #E7ECF4; overflow: hidden; }
.meter i { display: block; width: 14%; height: 100%; border-radius: 9px; background: var(--warn); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--t2); }
.mini-bars i:last-child { background: var(--t); }
.pin { display: flex; align-items: center; gap: 14px; }
.pin small { font-weight: 700; color: var(--t); letter-spacing: .1em; }
.dots { display: flex; gap: 10px; } .dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--t); } .dots i.off { background: none; border: 2px solid var(--t2); }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--tbg); color: var(--t); font-weight: 700; font-size: 14px; margin-top: auto; }

/* sin internet */
.offline { position: relative; overflow: hidden; color: #fff; padding: 80px 0; background: linear-gradient(155deg, #1D4596, #2A5CC0 60%, #3D7BE0); }
.offline::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(255,255,255,.07) 35px 36px); pointer-events: none; }
.offline h2 { color: #fff; } .offline h2 em { color: var(--sun); }
.offline .sub { color: #D6E4FB; }
.off-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .offline { padding: 112px 0; } .off-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 16px 18px; backdrop-filter: blur(4px); }
@media (min-width: 768px) { .steps li:nth-child(2) { margin-left: 5%; } .steps li:nth-child(3) { margin-left: 10%; } }
.sn { width: 48px; height: 48px; border-radius: 16px; background: #fff; color: var(--brand-2); display: grid; place-items: center; flex: none; }
.steps li:last-child .sn { background: var(--sun); color: var(--hero-ink); }
.steps b { display: block; font-size: 17px; } .steps span { color: #D6E4FB; font-size: 15px; }

/* también en la computadora */
.web-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .web-in { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--in); margin-top: 3px; }
.laptop { max-width: 620px; width: 100%; margin-inline: auto; padding-inline: 4%; }
.lt-screen { aspect-ratio: 16 / 10; background: #0F1B33; border-radius: 18px 18px 6px 6px; padding: 12px; display: flex; gap: 0; box-shadow: var(--shadow-lg); }
.lt-side { width: 17%; background: var(--brand-deep); border-radius: 10px 0 0 10px; padding: 12px 10px; display: grid; align-content: start; gap: 9px; }
.lt-side i { height: 9px; border-radius: 5px; background: rgba(255,255,255,.25); } .lt-side i.on { background: #fff; }
.lt-logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(150deg, #5B97F2, #2556BD); margin-bottom: 6px; border: 2px solid rgba(255,255,255,.4); }
.lt-main { flex: 1; background: var(--app); border-radius: 0 10px 10px 0; padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.lt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k { background: #fff; border-radius: 10px; padding: 9px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.k small { width: 50%; height: 6px; border-radius: 4px; background: var(--line); } .k b { width: 75%; height: 12px; border-radius: 4px; }
.k.in b { background: var(--in); } .k.out b { background: var(--out); } .k.warn b { background: var(--warn); }
.lt-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; min-height: 0; }
.lt-chart { background: #fff; border-radius: 10px; padding: 12px; display: flex; align-items: flex-end; gap: 7px; box-shadow: var(--shadow); }
.lt-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--hero); } .lt-chart i:last-child { background: var(--brand); }
.lt-list { background: #fff; border-radius: 10px; padding: 12px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.lt-list i { height: 10px; border-radius: 5px; background: var(--line); } .lt-list i:nth-child(odd) { width: 80%; }
.lt-base { height: 16px; margin: 0 -4%; background: linear-gradient(#D5DEEB, #AEBBD0); border-radius: 0 0 18px 18px; position: relative; }
.lt-base::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 18%; height: 6px; border-radius: 0 0 8px 8px; background: #9AA8BF; }

/* planes */
.plans-sec { background: linear-gradient(#fff, var(--app)); }
.country { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; font-weight: 600; color: var(--hero-ink); box-shadow: var(--shadow); }
.country .ico { color: var(--brand); }
.country select { font: 600 15px var(--f); color: var(--brand-2); border: 0; background: var(--brand-soft); border-radius: 999px; padding: 9px 14px; cursor: pointer; max-width: 200px; }
.plans { display: grid; gap: 20px; max-width: 900px; margin-inline: auto; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan h3 { font-size: 26px; font-weight: 800; }
.plan-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-2); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 50px; font-weight: 800; letter-spacing: -.04em; color: var(--hero-ink); line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); font-size: 14px; min-height: 22px; margin-top: 6px; }
.plan .checks { flex: 1; }
.plan.pro { background: linear-gradient(160deg, #1D4596, #2A5CC0 70%, #3D7BE0); color: #fff; border: 0; box-shadow: 0 24px 60px rgba(29,69,150,.35); position: relative; overflow: hidden; }
.plan.pro::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.plan.pro h3, .plan.pro .price b { color: #fff; }
.plan.pro .price span, .plan.pro .price-sub { color: #D6E4FB; }
.plan.pro .price-sub b { color: #fff; }
.plan.pro .plan-tag { background: var(--sun); color: var(--hero-ink); }
.plan.pro .checks .ico { color: var(--sun); }
.notes { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* factura electrónica */
.einv-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .einv-in { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cdetail { margin-top: 28px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cd-head b { font-size: 20px; color: var(--hero-ink); }
.badge { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--in-soft); color: var(--in); } .badge.soon { background: var(--warn-soft); color: var(--warn); }
.cdetail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.cdetail dl div { background: var(--app); border-radius: 14px; padding: 10px 14px; }
.cdetail dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cdetail dd { margin: 0; font-weight: 700; font-size: 18px; color: var(--hero-ink); }
.cdetail p { color: var(--ink); }
.cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cchip { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; font: 500 14px/1.25 var(--f);
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer; transition: border-color .2s, background .2s; min-height: 56px; }
.cchip:hover { border-color: #B9D0F5; }
.cchip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.cc { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--app); font-weight: 700; font-size: 13px; color: var(--hero-ink); }
.cchip.on .cc { background: var(--in); color: #fff; }
.cn { font-weight: 600; overflow-wrap: anywhere; }
.st { font-size: 12px; color: var(--warn); }
.cchip.on .st { color: var(--in); font-weight: 700; }

/* preguntas */
.faq-in { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; } .faq-in .sec-head { position: sticky; top: 100px; } }
.faq-in .sec-head { margin-bottom: 0; }
.faq-in .sub a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; margin-top: 6px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 17px; color: var(--hero-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--brand); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* descargar */
.dl { padding: 24px 0 88px; }
.dl-card { position: relative; overflow: hidden; border-radius: 36px; padding: 40px 24px; color: #fff; display: grid; gap: 32px; align-items: center;
  background: radial-gradient(500px 300px at 90% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(150deg, #2A5CC0, #1D4596); box-shadow: 0 30px 70px rgba(29,69,150,.35); }
.dl-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(255,255,255,.06) 35px 36px); pointer-events: none; }
.dl-copy { position: relative; }
.dl-copy img { border-radius: 18px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.dl h2 { color: #fff; } .dl h2 em { color: var(--sun); }
.dl-copy p { color: #D6E4FB; font-size: 18px; margin: 14px 0 26px; max-width: 520px; }
.qr { display: none; position: relative; margin: 0; background: #fff; border-radius: 24px; padding: 18px 18px 14px; text-align: center; color: var(--muted); font-size: 13px; width: 208px; }
.qr img { width: 168px; height: 168px; margin: 0 auto 8px; }
@media (min-width: 768px) { .dl-card { grid-template-columns: 1fr auto; padding: 56px; } .qr { display: block; } }

/* pie */
.foot { background: #0F1F3D; color: #AFC0DC; padding: 56px 0 28px; font-size: 15px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot .brand { color: #fff; } .foot .brand small { color: #8EA3C6; }
.foot-brand p { margin-top: 14px; max-width: 360px; }
.foot nav { display: grid; align-content: start; gap: 8px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 6px; font-weight: 700; }
.foot a { color: #AFC0DC; text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a[aria-current] { color: #fff; font-weight: 600; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #7F93B6; }

/* ── páginas legales (privacidad, borrar cuenta) ── */
.legal { max-width: 800px; margin: 0 auto; padding: 40px var(--g) 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -.035em; margin: 8px 0 10px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; letter-spacing: -.015em; }
.legal p, .legal li { color: #34445F; }
.legal p { margin: 10px 0; }
.legal ul, .legal ol { padding-left: 22px; } .legal li { margin: 6px 0; }
.legal .muted { color: var(--muted); }
.legal .card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; margin: 18px 0; box-shadow: var(--shadow); }
.legal .card h2 { margin-top: 0; }
.legal code { background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.legal-hero { background: linear-gradient(180deg, var(--hero-2), var(--app)); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
