/* ══════════════════════════════════════════════════════════════════════════
   FactoNet — Landing (sobre ../assets/css/landing-base.css)
   Identidad: la de la app. Azul del encabezado (#1877e4) y del ícono
   (#319eff), dorado del borde del logo FN (#f4d061), sobre azul marino.
   La factura "sale de la impresora" y recorre su ciclo hasta PAGADA.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #061a38;
  --ink: #eef5ff;
  --muted: rgba(214, 230, 255, .72);
  --brand: #1877e4; --brand-d: #0f5cc0; --brand-l: #7fbcff;
  --accent: #f4d061; --accent-d: #a87a00;
  --light: #f3f7fd;
  --dtext: #0f2a4a;
  --dmuted: #4a5f7d;
}
.chip--blue { background: rgba(24, 119, 228, .14); color: #0f5cc0; }
/* El sello "Pagada" de la factura y la cinta de texto se salen del borde a
   propósito; sin recortarlos, en celular la página medía 480 px y el botón
   del menú quedaba fuera de la pantalla. clip no crea contenedor de scroll:
   la barra fija y las escenas fijadas siguen funcionando. */
html, body { overflow-x: clip; }

/* Logo real de la app (ícono FN) */
/* Logo real de la app (logo_factonet_v3): va sobre el azul del encabezado de
   FactoNet, como en la app; sobre el azul marino la F negra no se leería. */
.logo-app { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 14px; background: #1877e4; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 10px 26px -12px rgba(24, 119, 228, .8); }
.logo-app img { display: block; height: 44px; width: auto; }
/* La base oculta ".nav__logo span" (el texto) en pantallas angostas: el logo sí se ve */
.nav__logo .logo-app { display: inline-flex !important; }
@media (max-width: 400px) { .nav__logo .logo-app img { height: 38px; } }
.hub__core .logo-app img { height: 50px; }
.final__logo.logo-app { width: auto; padding: 10px 18px; border-radius: 20px; }
.final__logo.logo-app img { height: 80px; }
/* Solo el recuadro FN, para tamaños pequeños */
.logo-fn { display: block; height: auto; padding: 3px; border-radius: 9px; background: #1877e4; box-sizing: content-box; }

/* ─── Hero: impresora y factura ──────────────────────────────────────── */
.printer { position: relative; width: min(400px, 100%); margin-inline: auto; padding-top: 18px; }
.printer__slot { position: relative; z-index: 3; height: 34px; border-radius: 18px; background: linear-gradient(180deg, #123766, #0a2650); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35), 0 20px 40px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(127, 188, 255, .2); }
.printer__slot::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 7px; height: 5px; border-radius: 4px; background: #05061a; }
.printer__led { position: absolute; right: 18px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: led 1.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: .3; } }
.receipt { position: relative; z-index: 2; margin: -10px 22px 0; padding: 26px 22px 34px; color: var(--dtext); background: #fff; border-radius: 0 0 6px 6px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform-origin: 50% 0; }
.receipt__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed #d7dbea; }
.receipt__head b { display: block; font: 700 15px var(--font-d); }
.receipt__head small { color: var(--dmuted); font-size: 12px; }
.receipt__rows { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px dashed #d7dbea; font-size: 13.5px; }
.receipt__rows div { display: flex; justify-content: space-between; gap: 10px; }
.receipt__rows .muted { color: #9aa1bd; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.receipt__total span { font-size: 13px; color: var(--dmuted); }
.receipt__total b { font: 700 28px var(--font-d); font-variant-numeric: tabular-nums; }
.receipt__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--dmuted); }
.receipt__zig { position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 12px 12px repeat-x, linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 12px 12px repeat-x; }
.stamp { position: absolute; right: 18px; top: 92px; padding: 6px 14px; border: 3px solid #16a34a; border-radius: 10px; font: 700 22px var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: #16a34a; transform: rotate(-14deg) scale(2.4); opacity: 0; pointer-events: none; }
.stamp.is-on { animation: stampIn .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stampIn { to { transform: rotate(-14deg) scale(1); opacity: .9; } }
.pop { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; color: var(--dtext); background: #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); font-size: 13px; white-space: nowrap; }
.pop i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font-size: 15px; }
.pop--b i { background: var(--accent-d); }
.pop b { display: block; font-size: 13px; } .pop small { color: var(--dmuted); }
.pop--a { left: -40px; top: 46%; }
.pop--b { right: -36px; bottom: 16%; }
@media (max-width: 560px) { .pop--a { left: -6px; } .pop--b { right: -6px; } .receipt { margin-inline: 10px; } }

/* ─── Antes / después ────────────────────────────────────────────────── */
.vs { padding: clamp(90px, 11vw, 140px) 0 clamp(70px, 9vw, 110px); }
.vs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs__col { padding: 28px; border-radius: var(--radius); }
.vs__col h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.vs__col ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.vs__col li { position: relative; padding-left: 28px; color: var(--muted); }
.vs__col--bad { background: rgba(239, 68, 68, .06); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .2); }
.vs__col--bad h3 i { color: #f87171; }
.vs__col--bad li::before { content: "✕"; position: absolute; left: 0; color: #f87171; font-weight: 800; }
.vs__col--good { background: linear-gradient(150deg, rgba(24, 119, 228, .16), rgba(244, 208, 97, .1)); box-shadow: inset 0 0 0 1px rgba(244, 208, 97, .3); }
.vs__col--good h3 i { color: var(--accent); }
.vs__col--good li { color: var(--ink); }
.vs__col--good li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 760px) { .vs__grid { grid-template-columns: 1fr; } }

/* ─── El ciclo (escena fijada) ───────────────────────────────────────── */
.cycle { position: relative; background: radial-gradient(900px 600px at 80% 30%, rgba(24, 119, 228, .16), transparent 60%), var(--bg); }
.cycle__pin { min-height: 100vh; display: flex; align-items: center; padding: 90px 0 60px; }
.cycle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; border-radius: 16px; color: var(--muted); transition: background .35s, color .35s; }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 700 14px var(--font-d); color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15); transition: all .35s var(--ease); }
.steps li b { display: block; font: 600 16.5px var(--font-d); color: inherit; }
.steps li span { display: block; max-height: 0; overflow: hidden; font-size: 14px; opacity: 0; transition: max-height .45s var(--ease), opacity .35s; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "✓"; color: #fff; background: var(--accent-d); box-shadow: none; }
.steps li.is-now { color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(127, 188, 255, .25); }
.steps li.is-now::before { color: #fff; background: var(--brand); box-shadow: 0 0 0 6px rgba(24, 119, 228, .25); }
.steps li.is-now span { max-height: 80px; opacity: 1; margin-top: 4px; }
.cycle__stage { position: relative; display: flex; justify-content: center; }
.inv { position: relative; width: min(400px, 100%); padding: 22px; border-radius: 26px; color: var(--dtext); background: #fff; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 10px rgba(255, 255, 255, .04); }
.inv__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inv__top small { display: block; font-size: 12px; color: var(--dmuted); }
.inv__top b { font: 700 17px var(--font-d); }
.inv__doc { margin-top: 16px; padding: 16px; border-radius: 16px; background: #f5f6fb; display: grid; gap: 9px; transition: opacity .4s, filter .4s; }
.inv__doc.is-ghost { opacity: .35; filter: blur(1.5px); }
.inv__line { display: flex; justify-content: space-between; font-size: 14px; color: var(--dmuted); }
.inv__line b { color: var(--dtext); font-variant-numeric: tabular-nums; }
.inv__line--total { padding-top: 9px; border-top: 1px dashed #d7dbea; }
.inv__line--total b { font: 700 20px var(--font-d); }
.inv__event { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; background: #eaf3ff; color: var(--brand-d); }
.inv__event i { font-size: 18px; }
.inv__track { margin-top: 14px; height: 6px; border-radius: 99px; background: #e7e9f4; overflow: hidden; }
.inv__track i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.inv__stamp { position: absolute; right: 20px; top: 110px; padding: 8px 16px; border: 4px solid #16a34a; border-radius: 12px; font: 700 30px var(--font-d); letter-spacing: .1em; color: #16a34a; transform: rotate(-12deg) scale(2.6); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .3s; pointer-events: none; }
.inv__stamp.is-on { transform: rotate(-12deg) scale(1); opacity: .92; }
.flying { position: absolute; left: 50%; bottom: -40px; width: 52px; height: 52px; margin-left: -26px; display: grid; place-items: center; border-radius: 16px; font-size: 24px; color: #fff; background: var(--accent-d); box-shadow: 0 14px 30px -10px rgba(244, 208, 97, .7); opacity: 0; transform: translateY(40px); transition: opacity .4s, transform .6s var(--ease); }
.flying.is-on { opacity: 1; transform: translateY(-60px); }
@media (max-width: 900px) {
  .cycle__pin { padding: 80px 0 40px; }
  .cycle__grid { grid-template-columns: 1fr; gap: 18px; }
  .cycle .h2 { font-size: clamp(28px, 7vw, 40px); }
  .steps { margin-top: 14px; gap: 2px; }
  .steps li { padding: 8px 10px 8px 46px; }
  .steps li::before { left: 8px; top: 8px; width: 26px; height: 26px; font-size: 12px; }
  .steps li:not(.is-now) b { font-size: 14.5px; }
  .inv { padding: 16px; }
  .inv__doc { margin-top: 10px; padding: 12px; gap: 6px; }
  .inv__line { font-size: 13px; }
  .inv__stamp { top: 80px; font-size: 24px; }
  .flying { display: none; }
}

/* ─── Contratos con firma ────────────────────────────────────────────── */
.sign { padding: clamp(80px, 10vw, 130px) 0; }
.sign__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.paper { --rx: 0deg; --ry: 0deg; position: relative; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -40px rgba(8, 30, 62, .45), inset 0 0 0 1px rgba(8, 30, 62, .06); transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s ease-out; }
.paper__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eceef6; }
.paper__head b { display: block; font: 700 18px var(--font-d); }
.paper__head small { color: var(--dmuted); font-size: 12.5px; }
.paper__lines { display: grid; gap: 10px; margin: 20px 0 26px; }
.paper__lines i { display: block; height: 8px; border-radius: 4px; background: #eceef6; width: 100%; }
.paper__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sig svg { width: 100%; height: 64px; border-bottom: 1.5px solid #c9cde0; }
.sig__path { fill: none; stroke: var(--brand-d); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.sig:last-child .sig__path { stroke: var(--accent-d); }
.sig span { display: block; margin-top: 6px; font-size: 12px; color: var(--dmuted); }
.paper__seal { position: absolute; right: -14px; top: -16px; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #16a34a, var(--accent-d)); box-shadow: 0 16px 34px -14px rgba(22, 163, 74, .8); transform: scale(0); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.paper__seal.is-on { transform: scale(1); }
.motion .paper:not(.is-in) .sig__path { stroke-dashoffset: 600; }
.paper.is-in .sig__path { transition: stroke-dashoffset 1.6s ease-in-out; stroke-dashoffset: 0; }
.paper.is-in .sig:last-child .sig__path { transition-delay: 1.2s; }
:root:not(.motion) .sig__path { stroke-dashoffset: 0; }
:root:not(.motion) .paper__seal { transform: scale(1); }
@media (max-width: 900px) { .sign__grid { grid-template-columns: 1fr; } .paper__seal { right: 6px; } }

/* ─── Portal del cliente ─────────────────────────────────────────────── */
.portal { padding: clamp(110px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); background: radial-gradient(800px 500px at 15% 60%, rgba(244, 208, 97, .14), transparent 60%), var(--bg); }
.portal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.portal__visual { display: flex; justify-content: center; }
.phone { --rx: 0deg; --ry: 0deg; position: relative; width: 290px; padding: 12px; border-radius: 40px; background: #0b2a55; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(255, 255, 255, .08); transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s ease-out; }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 20px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 2; }
.app { border-radius: 30px; padding: 48px 16px 18px; background: #f5f6fb; color: var(--dtext); min-height: 520px; }
.app__hi { font: 700 18px var(--font-d); }
.app__card { margin-top: 12px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-d) 60%, #312e81); box-shadow: 0 16px 30px -16px rgba(15, 92, 192, .8); }
.app__card small { opacity: .75; font-size: 12px; }
.app__card > b { display: block; font: 700 20px var(--font-d); margin: 2px 0 8px; }
.app__row { display: flex; justify-content: space-between; font-size: 13px; opacity: .92; padding: 3px 0; }
.app__btns { display: flex; gap: 8px; margin-top: 10px; }
.app__btns span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .16); }
.app__btns .ok { background: rgba(244, 208, 97, .3); }
.app__sub { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dmuted); }
.app__inv { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 11px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 30, 62, .06); }
.app__inv b { display: block; font-size: 14px; } .app__inv small { font-size: 11.5px; color: var(--dmuted); }
.app__pay { width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 14px; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent-d), #0d7a70); display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 24px -12px rgba(15, 148, 136, .9); transition: transform .2s; }
.app__pay:active { transform: scale(.97); }
.app__upload { display: none; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 30, 62, .06); font-size: 13px; }
.app__upload.is-on { display: flex; }
.app__upload > i { font-size: 20px; color: var(--accent-d); }
.app__upload > div { flex: 1; }
.app__bar { margin-top: 5px; height: 5px; border-radius: 99px; background: #e7e9f4; overflow: hidden; }
.app__bar i { display: block; height: 100%; width: 0; background: var(--accent-d); border-radius: inherit; }
.app__upload.is-on .app__bar i { animation: up 1.4s var(--ease) forwards; }
@keyframes up { to { width: 100%; } }
.hint { margin-top: 22px; font-size: 14px; color: var(--accent); }
@media (max-width: 900px) { .portal__grid { grid-template-columns: 1fr; } .portal__visual { order: 2; } }

/* ─── Mora (interactivo) ─────────────────────────────────────────────── */
.late { padding: clamp(80px, 10vw, 130px) 0; }
.late__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.slider { display: grid; gap: 10px; margin-top: 30px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 30, 62, .08); font-weight: 600; }
.slider b { font: 700 22px var(--font-d); color: var(--brand-d); }
.slider input { width: 100%; accent-color: var(--brand); height: 28px; }
.note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--dmuted); }
.late__card { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: 0 40px 80px -40px rgba(8, 30, 62, .45), inset 0 0 0 1px rgba(8, 30, 62, .06); transition: box-shadow .4s; }
.late__card.is-bad { box-shadow: 0 40px 80px -40px rgba(239, 68, 68, .45), inset 0 0 0 1.5px rgba(239, 68, 68, .35); }
.late__state { display: flex; align-items: center; gap: 12px; }
.late__state b { font: 700 24px var(--font-d); }
.late__rows { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: 16px; background: #f5f6fb; }
.late__rows div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--dmuted); }
.late__rows b { color: var(--dtext); font-variant-numeric: tabular-nums; }
.late__rows .total { padding-top: 10px; border-top: 1px dashed #d7dbea; }
.late__rows .total b { font: 700 22px var(--font-d); }
.late__timeline { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.late__timeline li { position: relative; padding-top: 18px; font-size: 11px; text-align: center; color: #9aa1bd; line-height: 1.2; }
.late__timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: 4px; background: #e7e9f4; transition: background .3s; }
.late__timeline li.is-on { color: var(--dtext); font-weight: 600; }
.late__timeline li.is-on::before { background: var(--brand); }
.late__timeline li.is-bad::before { background: var(--red); }
.late__timeline li.is-warn::before { background: var(--amber); }
.late__msg { margin-top: 16px; font-size: 14px; color: var(--dmuted); min-height: 2.8em; }
@media (max-width: 900px) { .late__grid { grid-template-columns: 1fr; } }

/* ─── Panel ──────────────────────────────────────────────────────────── */
.panel { padding: clamp(110px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); }
.tile--hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(24, 119, 228, .28), rgba(244, 208, 97, .1)); box-shadow: inset 0 0 0 1px rgba(127, 188, 255, .25); }
.tile--hero b { font-size: clamp(32px, 4vw, 48px); }
.tile__foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.tile--donut { grid-column: span 2; }
.donut { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.donut svg { width: 120px; height: 120px; flex-shrink: 0; transform: rotate(-90deg); }
.d { fill: none; stroke-width: 5.5; transition: stroke-dasharray 1.4s var(--ease); }
.d--a { stroke: var(--accent); } .d--b { stroke: var(--brand-l); } .d--c { stroke: var(--amber); }
.motion [data-board]:not(.is-in) .d { stroke-dasharray: 0 100; }
.donut ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.donut li i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.donut .a { background: var(--accent); } .donut .b { background: var(--brand-l); } .donut .c { background: var(--amber); }
.tile--alert { display: flex; align-items: center; gap: 12px; background: rgba(245, 158, 11, .1); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .3); }
.tile--alert > i { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; font-size: 20px; color: #fff; background: var(--amber); }
.tile--alert b { font: 600 15px var(--font-b); margin: 0; white-space: normal; }
.tile--rank { grid-column: span 3; }
.tile--rank ol { list-style: none; counter-reset: r; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.tile--rank li { counter-increment: r; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; }
.tile--rank li span::before { content: counter(r); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); }
.tile--rank li b { font: 600 15px var(--font-b); margin: 0; }
@media (max-width: 900px) { .tile--hero, .tile--donut, .tile--rank { grid-column: span 2; } .tile--hero { grid-row: auto; } .tile--rank ol { grid-template-columns: 1fr; } .tile--alert { grid-column: span 2; } }
@media (max-width: 460px) { .donut { flex-direction: column; align-items: flex-start; } }

/* ─── Reportes y parámetros ──────────────────────────────────────────── */
.tools { padding: clamp(80px, 10vw, 130px) 0; }
.tools__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool { padding: 26px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(8, 30, 62, .06), 0 24px 50px -36px rgba(8, 30, 62, .45); }
.tool > i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-d)); }
.tool:nth-child(even) > i { background: linear-gradient(135deg, var(--accent), var(--accent-d)); }
.tool h3 { margin-top: 16px; font-size: 19px; }
.tool p { margin-top: 8px; font-size: 14.5px; color: var(--dmuted); }
.tool__kpis { display: flex; gap: 10px; margin-top: 16px; }
.tool__kpis div { flex: 1; padding: 10px 12px; border-radius: 14px; background: #f5f6fb; }
.tool__kpis small { font-size: 11.5px; color: var(--dmuted); }
.tool__kpis b { display: block; font: 700 22px var(--font-d); color: var(--brand-d); }
.tool__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tool__tags span { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand-d); background: #eaf3ff; }
@media (max-width: 1000px) { .tools__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tools__grid { grid-template-columns: 1fr; } }

/* ─── Ecosistema ─────────────────────────────────────────────────────── */
.eco { padding: clamp(110px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); overflow: hidden; }
.eco__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.eco__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.eco__list li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.eco__list li > i { font-size: 22px; color: var(--accent); }
.eco__list b { display: block; font: 600 16px var(--font-d); }
.eco__list span { font-size: 14px; color: var(--muted); }
.hub { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines path { stroke: rgba(127, 188, 255, .35); stroke-width: 2; stroke-dasharray: 6 8; fill: none; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.hub__core { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 36px; background: radial-gradient(circle, rgba(24, 119, 228, .45), rgba(6, 26, 56, .95) 75%); box-shadow: 0 0 80px rgba(24, 119, 228, .5), inset 0 0 0 1px rgba(127, 188, 255, .3); animation: bob 4s ease-in-out infinite; }
.hub__core { width: 150px; margin-left: -75px; }
.hub__node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--dtext); background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); white-space: nowrap; }
.hub__node i { color: var(--brand-d); }
.hub__dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: travel 2.4s ease-in-out infinite; animation-delay: calc(var(--p) * .6s); }
.hub__dot:nth-of-type(1) { --tx: -130px; --ty: -120px; } .hub__dot:nth-of-type(2) { --tx: 130px; --ty: -120px; } .hub__dot:nth-of-type(3) { --tx: -130px; --ty: 120px; } .hub__dot:nth-of-type(4) { --tx: 130px; --ty: 120px; }
@keyframes travel { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; } }
@media (max-width: 900px) { .eco__grid { grid-template-columns: 1fr; } .hub { width: min(340px, 90%); } .hub__dot { display: none; } }

/* ─── Capturas reales de la app (cuenta de ejemplo) ─────────────────────── */
.shots { display: grid; gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 70px); }
.shots--pair { grid-template-columns: 1fr minmax(200px, 260px); align-items: end; }
.shots--duo { grid-template-columns: 1fr 1fr; align-items: start; }
.shots--mail { grid-template-columns: 1fr minmax(280px, 420px); align-items: center; max-width: 980px; margin-inline: auto; }
.shots__note { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.sheet .shots__note { color: var(--dmuted); background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 21, 48, .08); }
.shots__note i { color: var(--accent); }
.sheet .shots__note i { color: var(--accent-d); }
.shots__side { display: grid; gap: 14px; align-content: center; }
.shots__side .shots__note { grid-column: auto; }
.shots__side p:not(.shots__note) { color: var(--muted); font-size: 16px; line-height: 1.6; }
.sheet .shots__side p:not(.shots__note) { color: var(--dmuted); }
.shot { margin: 0; display: grid; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .7); }
.sheet .shot { box-shadow: 0 0 0 1px rgba(11, 21, 48, .08), 0 40px 70px -45px rgba(11, 21, 48, .55); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9edf5; }
.shot__bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.shot__bar span:nth-child(2) { background: #fbbf24; } .shot__bar span:nth-child(3) { background: #34d399; }
.shot__bar em { margin-left: 10px; flex: 1; max-width: 360px; padding: 4px 12px; border-radius: 8px; font: 500 12px/1.2 var(--font-b); font-style: normal; color: #64748b; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot__zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot__zoom img { display: block; width: 100%; height: auto; }
.shot__zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.shot figcaption { padding: 12px 16px 14px; font-size: 13.5px; color: #4b5878; background: #fff; border-top: 1px solid #eef1f6; }
.shot--phone { border-radius: 34px; padding: 10px 10px 0; background: #0b2a55; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -35px rgba(0, 0, 0, .75); }
.shot--phone .shot__zoom img { border-radius: 26px 26px 0 0; }
.shot--phone figcaption { margin: 0 -10px; border-radius: 0 0 34px 34px; text-align: center; }
@media (max-width: 860px) {
  .shots--pair, .shots--duo, .shots--mail { grid-template-columns: 1fr; }
  .shots--pair .shot--phone { max-width: 280px; justify-self: center; }
}

/* Visor de capturas */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3vmin; background: rgba(3, 7, 18, .86); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 22px; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
