/* ACCESOMIN Libreta — landing. Mismos tokens que accesomin.cl: Inter, fondo #F5F5F1, un acento verde. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F5F5F1;
  --surface: #FFFFFF;
  --surface-2: #EEEEE8;
  --ink: #191D1A;
  --ink-2: #464D48;
  --ink-3: #646C66;
  --line: #E2E2DA;
  --green: #0E7B43;
  --green-dark: #0A5F33;
  --green-soft: #E3F1E8;
  --warn-bg: #FBF3DF;
  --warn-ink: #7A5410;
  --crit-bg: #FCEEEC;
  --crit-ink: #8F1C13;
  --info-bg: #EEF3F9;
  --info-ink: #2B4A73;
  --red: #B42318;

  /* Las cuatro actividades de la libreta, con los colores de la app */
  --sc: #0E7B43;   /* conducción */
  --se: #A66F0B;   /* espera */
  --se-fill: #9A670A; /* espera como fondo de texto blanco: contraste AA */
  --st: #6B5B95;   /* tareas auxiliares */
  --sd: #3F6A8F;   /* descanso */
  --sc-soft: #EBF5EF;
  --se-soft: #FBF3DF;
  --st-soft: #F0EDF6;
  --sd-soft: #E9F0F6;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(25,29,26,.04), 0 8px 24px rgba(25,29,26,.06);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
.band :focus-visible { outline-color: #7FD3A4; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Cabecera ---------- */
header.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.top.scrolled, header.top.menu-open { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wm { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.wm b { color: var(--green); font-weight: 700; }
.tag {
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
  color: var(--green-dark); background: var(--green-soft);
  padding: 3px 9px; border-radius: 99px;
}
@media (max-width: 400px) {
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .top .wm { font-size: 17px; }
  .top .tag { font-size: 12px; padding: 2px 8px; }
  .top .btn-sm { padding: 8px 12px; }
  .top-actions { gap: 6px; }
}
@media (max-width: 339px) { .top .tag { display: none; } }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
nav.links {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  flex-direction: column; padding: 4px 16px 14px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(25,29,26,.25);
  font-size: 16px; color: var(--ink);
}
nav.links.open { display: flex; }
nav.links a { text-decoration: none; padding: 13px 4px; border-top: 1px solid var(--line); font-weight: 500; }
nav.links a:first-child { border-top: 0; }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  nav.links {
    display: flex; position: static; flex-direction: row; gap: 24px; padding: 0;
    background: none; border: 0; box-shadow: none; font-size: 14.5px; color: var(--ink-2);
  }
  nav.links a { padding: 6px 0; border: 0; font-weight: 400; transition: color .15s ease; }
  nav.links a:hover { color: var(--ink); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; min-height: 44px;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-dark); }
  .btn-ghost:hover { border-color: #cfcfc6; }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 42px; }
.btn svg { width: 16px; height: 16px; }
.arrow { transition: transform .2s var(--ease-out); }

/* ---------- Portada ---------- */
.hero { padding: 32px 0 56px; }
@media (min-width: 960px) { .hero { padding: 52px 0 84px; } }
.hero > .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero > .wrap { grid-template-columns: 1fr 1fr; gap: 40px; } }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: .01em; margin: 0 0 14px; }
h1 {
  font-size: clamp(34px, 6vw, 54px); line-height: 1.06; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 18px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.status-note {
  display: flex; gap: 10px; align-items: flex-start; max-width: 34em;
  margin: 22px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
}
.status-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info-ink); }
.status-note b { color: var(--ink); }

/* entrada única */
.rise { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.rise-phone { animation: risePhone .9s var(--ease-out) both; animation-delay: 260ms; }
@keyframes risePhone { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.hero-visual { display: grid; justify-items: center; gap: 14px; }
.hero-stage { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
@media (min-width: 960px) { .hero-visual { justify-items: end; } }
.hint { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 10px; font-size: 13px; color: var(--ink-3); margin: 0; }
.hint svg { width: 16px; height: 16px; flex: none; }
.hint span { display: inline-flex; align-items: center; gap: 8px; }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer;
}
.demo-toggle svg { width: 12px; height: 12px; }

/* ---------- Teléfono de la demo ---------- */
.phone {
  position: relative; width: 300px; height: 624px; flex: none;
  border-radius: 50px; background: #121513; padding: 10px;
  box-shadow:
    inset 0 0 0 1.5px #2C312D,
    0 40px 80px -30px rgba(25,29,26,.45),
    0 16px 32px -16px rgba(25,29,26,.25);
}
@media (max-width: 359px) { .hero .phone { zoom: .9; } }
.screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background: #F6F6F2; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.4; color: var(--ink);
  isolation: isolate;
}
.island { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 8; }
.statusbar { height: 44px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 28px 0 30px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.statusbar svg { height: 11px; width: auto; }
.app { flex: 1; min-height: 0; padding: 4px 16px 10px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tabbar { flex: none; height: 64px; border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 12px; }
.tabbar span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--ink-3); }
.tabbar span.on { color: var(--green); }
.tabbar svg { width: 20px; height: 20px; }

.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head small { display: block; color: var(--ink-3); font-size: 11.5px; }
.app-head b { font-size: 17px; letter-spacing: -.02em; }
.plate { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 6px; background: #fff; }

.state-card {
  --s: var(--sc);
  background: var(--s); color: #fff; border-radius: 20px; padding: 12px 15px 11px;
  transition: background-color .35s ease;
}
.state-card[data-state="e"] { --s: var(--se-fill); }
.state-card[data-state="t"] { --s: var(--st); }
.state-card[data-state="d"] { --s: var(--sd); }
.state-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 99px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.state-time { font-size: 42px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.state-time small { font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .85; margin-left: 5px; }
.state-sub { font-size: 12px; opacity: .92; }

.cont-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.cont-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: #E4E5DF; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform .12s linear, background-color .3s ease; }
.bar i.warn { background: #C98A12; }
.bar i.over { background: var(--red); }

/* aviso dentro de la app (no es una notificación del teléfono) */
.aviso { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; background: var(--info-bg); color: var(--info-ink); }
.aviso svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.aviso.alerta { background: var(--warn-bg); color: var(--warn-ink); }
.aviso.critico { background: var(--crit-bg); color: var(--crit-ink); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 7px; min-height: 50px; min-width: 0;
  padding: 7px 6px 7px 7px; border-radius: 15px; border: 1.5px solid #D9DAD2;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 650; text-align: left; line-height: 1.2; cursor: pointer;
  transition: transform .14s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.act small { display: block; font-size: 9px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .2s ease; }
.act[data-act="c"] { --k: var(--sc); --ks: var(--sc-soft); }
.act[data-act="e"] { --k: var(--se); --ks: var(--se-soft); }
.act[data-act="t"] { --k: var(--st); --ks: var(--st-soft); }
.act[data-act="d"] { --k: var(--sd); --ks: var(--sd-soft); }
.act .ai { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ks); color: var(--k); transition: background-color .2s ease, color .2s ease; }
.act svg { width: 16px; height: 16px; }
.act.on { background: var(--k); border-color: var(--k); color: #fff; }
.act.on[data-act="e"] { background: var(--se-fill); border-color: var(--se-fill); }
.act.on small { color: rgba(255,255,255,.85); }
.act.on .ai { background: rgba(255,255,255,.2); color: #fff; }
button.act:active { transform: scale(.96); }
.act:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; border-radius: 15px; }
.ripple { position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.45); left: 50%; top: 50%; margin: -40px 0 0 -40px; pointer-events: none; }

.today { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.today-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; }
.today-row b { color: var(--ink); }
.timeline { display: flex; height: 14px; border-radius: 5px; overflow: hidden; background: #EDEEE8; gap: 1px; }
.timeline span { height: 100%; flex: none; }
.timeline .c, .seg.c { background: var(--sc); }
.timeline .e, .seg.e { background: var(--se); }
.timeline .t, .seg.t { background: var(--st); }
.timeline .d, .seg.d { background: var(--sd); }
.tl-hours { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.today-legend { display: flex; justify-content: space-between; gap: 2px; margin-top: 6px; font-size: 9.5px; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.today-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 2px; }
.today-legend b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.trip { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; font-size: 11.5px; color: var(--ink-2); }
.trip b { color: var(--green); font-weight: 600; }

/* confirmación de cada marca, como en la app */
.toast {
  position: absolute; z-index: 9; left: 10px; right: 10px; bottom: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 13px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 11.5px; line-height: 1.3; box-shadow: 0 10px 26px rgba(0,0,0,.25);
  transform: translateY(14px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .25s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast span:last-child { flex: none; background: rgba(255,255,255,.16); font-weight: 650; padding: 6px 10px; border-radius: 9px; }

/* avisos del panel junto al teléfono */
.feed { display: none; flex-direction: column; gap: 8px; width: 206px; padding-bottom: 96px; }
@media (min-width: 1180px) { .feed { display: flex; } }
.feed-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding-left: 2px; }
.feed-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.feed-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.35;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.feed-card.enter { opacity: 0; transform: translateY(10px) scale(.97); }
.feed-card.leave { opacity: 0; transform: translateY(-8px) scale(.97); transition-duration: .2s; }
.feed-card .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; flex: none; }
.feed-card small { display: block; color: var(--ink-3); font-size: 11px; }

/* ---------- Secciones ---------- */
section { padding: 56px 0; }
@media (min-width: 960px) { section { padding: 84px 0; } }
section.tight { padding-top: 0; }
.sec-head { max-width: 700px; margin-bottom: 34px; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
h3 { text-wrap: balance; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17px; }
.sec-head .eyebrow, .contact-side .eyebrow { color: var(--green); font-size: 13px; margin: 0 0 14px; }
.source { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); }

/* Franja del problema */
.band { background: var(--ink); color: #EDEFEC; }
.band h2 { color: #fff; }
.band .sec-head p { color: #C2C8C3; }
.stats { display: grid; gap: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border: 1px solid #2F3530; border-radius: var(--radius-lg); padding: 22px; }
.stat h3 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; margin: 0 0 8px; }
.stat p { margin: 0; color: #C2C8C3; font-size: 15px; }
.stat cite { display: block; margin-top: 10px; font-style: normal; font-size: 12.5px; color: #A9B0AB; }
.stat cite a { color: #C2C8C3; }

/* Las cuatro actividades */
.rules { display: grid; gap: 14px; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rule { --k: var(--sc); --ks: var(--sc-soft); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; border-top: 4px solid var(--k); }
.rule.e { --k: var(--se); --ks: var(--se-soft); }
.rule.t { --k: var(--st); --ks: var(--st-soft); }
.rule.d { --k: var(--sd); --ks: var(--sd-soft); }
.rule .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ks); color: var(--k); margin-bottom: 12px; }
.rule .ic svg { width: 22px; height: 22px; }
.rule h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.rule p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.rule p.limit { margin-bottom: 0; }
.rule .limit { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 600; }

/* Recorrido de la app */
.story { display: grid; gap: 0 64px; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 320px; } }
.story-phone {
  position: sticky; top: 64px; z-index: 2;
  display: flex; justify-content: center; padding: 10px 0 14px;
  background: var(--bg);
}
.story-phone::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none; }
@media (max-width: 959px) {
  .story-phone { margin: 0 -16px; }
  .story-phone .phone { zoom: .62; }
}
@media (max-width: 959px) and (max-height: 760px) { .story-phone .phone { zoom: .54; } }
@media (min-width: 960px) {
  .story-phone { order: 2; top: 96px; align-self: start; background: none; padding: 0; }
  .story-phone::after { display: none; }
}
/* el teléfono fijo se ve completo en pantallas de notebook bajas */
@media (min-width: 960px) and (max-height: 800px) { .story-phone { top: 80px; } .story-phone .phone { zoom: .82; } }
@media (min-width: 960px) and (max-height: 660px) { .story-phone .phone { zoom: .7; } }
.story-step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 26px 0; transition: opacity .4s ease; }
.js .story-step { opacity: .35; }
.js .story-step.active { opacity: 1; }
@media (min-width: 960px) { .story-step { min-height: 70vh; padding: 20px 0; } .story-steps { padding: 6vh 0; } }
.story-step .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.story-step h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; }
.story-step p { color: var(--ink-2); font-size: 16.5px; margin: 0; max-width: 30em; }
.story-step ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.story-step li { display: flex; gap: 8px; }
.story-step li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

.screens { position: relative; flex: 1; min-height: 0; }
.scr {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: scale(.97); filter: blur(6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), filter .4s var(--ease-out);
  pointer-events: none;
}
.scr.on { opacity: 1; transform: none; filter: none; }
.scr .toast { transition-delay: .35s; }
.scr.on .toast { transform: none; opacity: 1; }

/* pantalla de resumen */
.wcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 9px; }
.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; align-items: end; height: 108px; }
.day { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; height: 100%; }
.stack {
  display: flex; flex-direction: column-reverse; border-radius: 5px; overflow: hidden; gap: 2px;
  transform-origin: bottom; transform: scaleY(.15); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .3s ease;
  transition-delay: calc(var(--i) * 55ms);
}
.scr.on .stack { transform: none; opacity: 1; }
.day small { text-align: center; font-size: 10px; color: var(--ink-3); font-weight: 500; }
.wlegend { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 10px; font-size: 10px; color: var(--ink-2); margin-top: 8px; }
.wlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.totals4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.totals4 div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.totals4 b { display: block; font-size: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals4 span { font-size: 10.5px; color: var(--ink-3); }
.scr .bar i { transition: transform 1.1s var(--ease-out) .25s; }

/* pantalla de fiscalización */
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; }
.qr { width: 126px; height: 126px; margin: 0 auto 8px; shape-rendering: crispEdges; fill: var(--ink); }
.qr-card p { margin: 0; font-size: 12px; color: var(--ink-2); }
.kv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; }
.kv div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.kv div:first-child { border-top: 0; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; }
.verified { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; padding: 9px; }
.verified svg { width: 15px; height: 15px; }

/* Panel de la empresa */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(25,29,26,.25), var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5D5CD; }
.url { flex: 1; max-width: 340px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--ink-3); padding: 5px 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel { padding: 16px; }
@media (min-width: 720px) { .panel { padding: 24px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.panel-head small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.panel-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.fake-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.fake-btn svg { width: 15px; height: 15px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpis .kpi:last-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(5, 1fr); } .kpis .kpi:last-child { grid-column: auto; } }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.kpi span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(0,1fr) auto 64px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
@media (min-width: 720px) { .tr { gap: 20px; grid-template-columns: minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.5fr) minmax(0,.9fr); } }
.tr.th { background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); border-top: 0; }
.tr .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .who small { color: var(--ink-3); font-size: 11.5px; letter-spacing: .04em; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: block; } .show-sm { display: none; } }
@media (max-width: 719px) {
  .mini .bar { display: none; }
  .mini small { width: auto; flex: 1; }
}
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip[data-s="c"] { color: var(--green-dark); background: var(--sc-soft); }
.chip[data-s="e"] { color: var(--warn-ink); background: var(--se-soft); }
.chip[data-s="t"] { color: #55477B; background: var(--st-soft); }
.chip[data-s="d"] { color: #335877; background: var(--sd-soft); }
.mini { display: flex; align-items: center; gap: 8px; }
.mini .bar { flex: 1; height: 6px; }
.mini .bar i { transition: transform .6s var(--ease-out), background-color .3s ease; }
.mini small { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); width: 50px; text-align: right; flex: none; }
.mini small.warn, .tnum.warn { color: var(--warn-ink); font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.panel-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px 28px; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 760px) { .panel-points { grid-template-columns: repeat(2, 1fr); } }
.panel-points li { display: flex; gap: 10px; }
.panel-points svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

/* Tarjetas de beneficios */
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .features.four { grid-template-columns: repeat(4, 1fr); } }
.feat { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .feat:hover { border-color: #d3d3ca; transform: translateY(-2px); box-shadow: var(--shadow); }
}
.feat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 14px; }
@media (max-width: 639px) {
  .feat { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 14px; padding: 16px; }
  .feat .ic { grid-row: 1 / span 2; margin: 2px 0 0; }
  .feat h3, .feat p { grid-column: 2; }
}
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Comparación */
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr); border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; background: var(--surface-2); font-weight: 700; }
.row > div { padding: 16px 22px; font-size: 15px; }
.row > div:first-child { color: var(--ink-2); font-weight: 500; }
.row:first-child > div:first-child { color: var(--ink); }
.row .yes { color: var(--green-dark); font-weight: 600; }
.row .no { color: var(--ink-3); }
.row .plain { color: var(--ink); font-weight: 600; }
.row .col-us { background: color-mix(in srgb, var(--green-soft) 45%, transparent); }
@media (max-width: 639px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row:first-child { display: none; }
  .row:nth-child(2) { border-top: 0; }
  .row > div { padding: 0 14px 14px; font-size: 14.5px; }
  .row > div:first-child { grid-column: 1 / -1; padding: 14px 14px 8px; color: var(--ink); font-weight: 700; }
  .row > div[data-col]::before { content: attr(data-col); display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .row .col-us { background: none; }
}

/* Estado ante la DT */
.stage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .stage-card { padding: 34px; } }
.stage-card > p { margin: 0 0 22px; color: var(--ink-2); font-size: 16.5px; max-width: 46em; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: etapa; }
@media (min-width: 860px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stages li { counter-increment: etapa; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--bg); }
.stages li::before { content: counter(etapa); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.stages li.now { border-color: var(--green); background: color-mix(in srgb, var(--green-soft) 55%, var(--surface)); }
.stages li.now::before { background: var(--green); color: #fff; }
.stages h3 { margin: 0 0 4px; font-size: 16px; }
.stages p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.stages .badge { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--green-dark); vertical-align: middle; }

/* Precios */
.price-card { display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .price-card { grid-template-columns: 1fr 1fr; padding: 36px; align-items: center; } }
.price-card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.price-card > div > p { color: var(--ink-2); margin: 0 0 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; }
.checks svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* Preguntas */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-radius: var(--radius); }
summary h3 { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.4; text-wrap: pretty; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details .ans { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
details .ans p { margin: 0 0 10px; }
details .ans p:last-child { margin-bottom: 0; }
details .ans a { color: var(--green-dark); }
details[open] .ans { animation: ansIn .25s var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-4px); } }

/* Formulario */
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
@media (min-width: 560px) { form { padding: 28px; grid-template-columns: 1fr 1fr; } form .full { grid-column: 1 / -1; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid #8F958E; border-radius: var(--radius); padding: 11px 12px; width: 100%; min-height: 46px; transition: border-color .15s ease; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--green) 35%, transparent); outline-offset: 0; border-color: var(--green); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.form-note.error { color: var(--red); font-weight: 600; }
.form-ok { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: var(--ink); }
.form-ok p { margin: 0 0 10px; }
.form-ok a { color: var(--green-dark); font-weight: 600; }
.form-ok .btn { width: auto; }
.contact-side p { color: var(--ink-2); }
.contact-side ul, .contact-side ol { padding-left: 20px; color: var(--ink-2); }
.contact-side li { margin-bottom: 4px; }
.contact-side h3 { margin: 22px 0 8px; font-size: 17px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: grid; gap: 18px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { border-radius: 6px; }
.foot-brand .wm { font-size: 16px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { padding: 6px 0; }
.foot-note { margin: 0; font-size: 13px; max-width: 70em; }

/* Aparición al bajar (solo si hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-phone { animation: fadeOnly .4s ease both; }
  @keyframes fadeOnly { from { opacity: 0; } }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .scr { transform: none; filter: none; transition: opacity .3s ease; }
  .stack { transform: none; opacity: 1; transition: none; }
  .toast, .toast.show { transform: none; transition: opacity .25s ease; }
  .feed-card.enter, .feed-card.leave { transform: none; }
  .feed-head i, .panel-head small i { animation: none; }
  .btn, .act, .feat { transition: none; }
}
