/* Integrator layer for the assembled site. Loaded after kit.css, shell.css and every part. */

/* ---------- scrolling ---------- */
html { scroll-behavior: auto; scroll-snap-type: y proximity; }
html.is-stepping, html.shot { scroll-snap-type: none; }
[data-scene] { scroll-snap-align: start; scroll-margin-top: 0; }
[data-scene]:focus, [data-scene]:focus-visible { outline: none; }
.shot *, .shot *::before, .shot *::after { transition: none !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }

/* ---------- chapters sit flush ----------
   The kit pulls every following chapter up by the seam radius (-48px). With keyboard stepping that left a 48px band of
   the next ground at the bottom of each chapter's last scene and covered its bottom content, so chapters are flush now;
   the gold hairline on the lona chapter marks the change of ground. */
.chapter + .chapter { margin-top: 0; border-radius: 0; }

/* ---------- header: brand, chapter navigator, counter ---------- */
.top__in { gap: 20px; }
.brand { flex: none; }
.brand__7am { display: inline-flex; align-items: center; }
.brand__7am svg { width: auto; height: 20px; color: var(--tx-on-dark); }
.top.on-lona .brand__7am svg { color: var(--tx-on-light); }
.brand__for { font-size: 15px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.steps a { padding: 0 14px; white-space: nowrap; }
.steps a[aria-current="true"] { color: var(--tx-on-dark); }
.count { display: flex; align-items: baseline; gap: 10px; margin: 0; min-width: 0; font-size: 14px; line-height: 1; color: var(--tx-on-dark-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count__n b { font-weight: 600; color: var(--accent-text-dark); }
.count__t { max-width: 11em; overflow: hidden; text-overflow: ellipsis; color: var(--tx-on-dark-2); }
.top.on-lona .count { color: var(--tx-on-light-2); }
.top.on-lona .count__n b { color: var(--accent-text-light); }
.top.on-lona .count__t { color: var(--tx-on-light); }
@media (max-width: 1360px) { .count__t { display: none; } }
@media (max-width: 1180px) { .brand__for { display: none; } }
@media (max-width: 820px) { .steps { display: none; } }

/* ---------- unification across the three builders ---------- */
/* Measured before unifying (1280 / 1920): scene titles ran from 44.8 to 56px / 58 to 72px, body copy 18 to 23px /
   22 to 32px, chips 13 to 14px. One scale now: titles 54 / 72, body 22 / 27, chips 14 / 16. The three statement
   scenes (inicio, idea, comienzo, cierre) keep their larger display size. Demo and app use the same 54 / 72 title as
   every content scene (v5): they carry the two points the founder shows live, so they must not read smaller. */
[data-scene]:not(#inicio):not(#idea):not(#comienzo):not(#cierre) .h2 { font-size: clamp(44px, calc(2.8vw + 18px), 80px) !important; letter-spacing: -0.03em; line-height: 1.04; }
[data-scene] .say { font-size: clamp(20px, calc(0.78vw + 12px), 28px) !important; }
[data-scene] .kicker { font-size: clamp(16px, calc(0.31vw + 13px), 19px) !important; }
[data-scene] .chip { font-size: clamp(13.5px, calc(0.31vw + 10px), 16px) !important; font-weight: 550; }

/* ---------- claims: exactly two markers, each followed by plain text (v5) ----------
   green check "Ya existe" and gold plus "Lo construimos con ustedes"; the sentence after the chip carries the detail. */
.claim { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; font-size: clamp(17px, calc(0.45vw + 11.5px), 22px); line-height: 1.35; color: var(--tx-on-light-2); }
[data-surface="ink"] .claim { color: var(--tx-on-dark-2); }
.claim .chip { flex: none; }

/* ---------- one accent system across the panel mocks ----------
   Campeonato: gold for ownership, AAA red only inside AAA's own UI. The 7am product blue was the loudest colour on the
   cream scenes, so panel primaries render in ink with cream text, links in ink with an underline. The scanner's
   "Entregar" is AAA's own flow and takes AAA red. The mocks still read as the real panel through layout, not hue. */
:is(#control, #marketing, #noche, #equipo, #dinero, #datos) { --ui-brand: #1a1613; --ui-brand-fg: #f6efe2; --ui-brand-soft: rgb(26 22 19 / 0.06); }
#control .control__add, #marketing .mk__link { color: #1a1613; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#noche .nc__btn { background: var(--org-accent-strong); color: #fff; }

/* ---------- presenter: main path counter, appendix, key toast, index overlay ---------- */
.count.is-apx .count__n b { font-weight: 550; letter-spacing: 0.01em; }
.count.is-apx .count__t { display: inline; max-width: 9em; }
.count__mode { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: var(--r-pill); color: var(--tx-on-dark-2); box-shadow: inset 0 0 0 1px var(--ln-on-dark); }
.top.on-lona .count__mode { color: var(--tx-on-light-2); box-shadow: inset 0 0 0 1px var(--ln-on-light); }

.kbd-toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 15px; line-height: 1.2; color: var(--tx-on-dark);
  background: rgb(var(--sf-dark-rgb) / 0.92); box-shadow: 0 0 0 1px var(--ln-on-dark), 0 12px 32px rgb(0 0 0 / 0.35);
  transition: opacity 0.24s var(--ease-out, ease), transform 0.24s var(--ease-out, ease); pointer-events: none; }
.kbd-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(6px); }
.shot .kbd-toast { display: none; }

.idx { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgb(14 11 9 / 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.idx__panel { width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px 32px 24px; border-radius: 22px;
  background: var(--sf-light); color: var(--tx-on-light); box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06); }
.idx__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.idx__title { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }
.idx__mode { margin: 0; font-size: 14px; color: var(--tx-on-light-2); }
.idx__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.idx__lbl { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text-light); }
.idx ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.idx button { width: 100%; display: grid; grid-template-columns: 30px 26px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px;
  border: 0; border-radius: 10px; background: none; font: inherit; font-size: 17px; line-height: 1.25; text-align: left; color: inherit; cursor: pointer; }
.idx button:hover, .idx button:focus-visible { background: rgb(var(--shade) / 0.06); outline: none; }
.idx kbd, .idx__keys kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px;
  font: 600 13px/1 var(--font); color: var(--tx-on-light); background: var(--sf-light-card, #fff); box-shadow: inset 0 0 0 1px var(--ln-on-light-strong, var(--ln-on-light)), 0 1px 0 rgb(var(--shade) / 0.12); }
.idx__n { font-size: 13px; color: var(--tx-on-light-2); font-variant-numeric: tabular-nums; }
.idx__apx .idx__t { color: var(--tx-on-light-2); }
.idx__here { visibility: hidden; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); color: var(--accent-text-light); background: var(--accent-soft-light, rgb(var(--shade) / 0.06)); }
.idx button.is-here { background: rgb(var(--shade) / 0.06); }
.idx button.is-here .idx__here { visibility: visible; }
.idx__keys { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--ln-on-light); font-size: 14px; color: var(--tx-on-light-2); }
.idx__keys span { display: inline-flex; align-items: center; gap: 8px; }
.idx__keys kbd { min-width: 0; height: 24px; font-size: 12px; }
@media (max-width: 720px) { .idx__cols { grid-template-columns: 1fr; } .idx__panel { padding: 22px 18px; } }
@media (min-width: 1700px) { .idx__panel { width: 1080px; padding: 36px 40px 30px; } .idx button { font-size: 21px; padding: 8px 12px; grid-template-columns: 36px 30px 1fr auto; } .idx kbd { height: 30px; min-width: 30px; font-size: 15px; } .idx__title { font-size: 34px; } }
/* the counter keeps one width, so the chapter navigator does not shift between main path and appendix scenes */
.count { justify-content: flex-end; min-width: 150px; }
@media (min-width: 1361px) { .count { min-width: 230px; } .count__t { max-width: 10em; } }
