/* Manatel training deck. app.css (Tailwind, layered) provides the app screens; these rules are unlayered and win over it. */

:root {
  --red: #dc2b2d;
  --red-soft: #fbe4e4;
  --ink: #232325;
  --muted: #5f5f63;
  --line: #e7e5e2;
  --paper: #f6f5f3;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #121213;
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

button {
  font: inherit;
}

/* ---------- Stage ---------- */

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(0.5);
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(1000px 700px at 88% 12%, rgba(220, 43, 45, 0.1), transparent 62%),
    radial-gradient(800px 600px at 4% 100%, rgba(220, 43, 45, 0.06), transparent 60%),
    radial-gradient(rgba(35, 35, 37, 0.07) 1.6px, transparent 1.7px) 0 0 / 30px 30px,
    var(--paper);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0s linear 0.4s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

.notes {
  display: none;
}

/* Brand bar and footer, injected by deck.js. */
.topbar {
  position: absolute;
  left: 120px;
  top: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  font-weight: 700;
}

.topbar img {
  width: 48px;
  height: 48px;
}

.topbar .brand {
  letter-spacing: 0.02em;
}

.topbar .chapter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 14px;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .chapter::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.foot {
  position: absolute;
  left: 120px;
  right: 120px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

.foot .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(35, 35, 37, 0.1);
  overflow: hidden;
}

.foot .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.foot .count {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------- Text column ---------- */

.copy {
  position: absolute;
  left: 120px;
  top: 176px;
  width: 940px;
}

.kicker {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.copy h2,
.title-xl {
  margin: 14px 0 0;
  font-size: 66px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 20px 0 0;
  max-width: 880px;
  font-size: 27px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps > li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 22px;
  padding: 16px 26px 16px 18px;
  border-radius: 24px;
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.steps .num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e9e7e4;
  color: var(--muted);
  font-size: 26px;
  font-weight: 800;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.steps .num svg {
  display: none;
  width: 30px;
  height: 30px;
}

.steps .t {
  display: block;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 700;
}

.steps .d {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
}

.steps > li.is-active {
  background: #fff;
  box-shadow:
    0 0 0 3px var(--red),
    0 22px 44px rgba(35, 35, 37, 0.12);
}

.steps > li.is-active .num {
  background: var(--red);
  color: #fff;
}

.steps > li.is-done .num {
  background: var(--red-soft);
  color: var(--red);
}

.steps > li.is-done .num b {
  display: none;
}

.steps > li.is-done .num svg {
  display: block;
}

.steps > li.is-next {
  opacity: 0.42;
}

/* ---------- Cover, agenda and closing ---------- */

.cover .copy {
  top: 250px;
}

.cover .logo {
  width: 120px;
  height: 120px;
}

.cover .title-xl {
  margin-top: 36px;
  font-size: 88px;
}

.cover .lead {
  font-size: 32px;
}

.key {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    inset 0 -3px 0 #dcdad6,
    0 0 0 1.5px #dcdad6;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.agenda {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 270px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agenda > * {
  position: relative;
  display: block;
  min-height: 250px;
  padding: 30px 30px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(35, 35, 37, 0.08);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.agenda a:hover,
.agenda a:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px var(--red),
    0 22px 44px rgba(35, 35, 37, 0.14);
  outline: none;
}

.agenda .n {
  position: absolute;
  right: 26px;
  top: 18px;
  font-family: "Bebas Neue", Montserrat, sans-serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(220, 43, 45, 0.16);
}

.agenda .ic {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--red-soft);
  color: var(--red);
}

.agenda .ic svg {
  width: 38px;
  height: 38px;
}

.agenda .at {
  display: block;
  margin-top: 26px;
  font-size: 30px;
  font-weight: 800;
}

.agenda .ad {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}

.slide-tips .copy {
  width: auto;
}

.tips {
  position: absolute;
  left: 120px;
  right: 120px;
  top: 380px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tips li {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 26px;
  align-items: start;
  align-content: start;
  padding: 34px 40px 36px 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(35, 35, 37, 0.08);
}

.tips .n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.tips .at {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.tips .ad {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
}

.recap {
  position: absolute;
  left: 120px;
  top: 330px;
  width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.recap li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 30px;
  font-weight: 700;
}

.recap li svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.questions {
  position: absolute;
  right: 120px;
  top: 260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--red);
  color: #fff;
  text-align: center;
  box-shadow: 0 40px 80px rgba(220, 43, 45, 0.3);
}

.questions .q {
  font-size: 70px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.questions .qs {
  max-width: 400px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Phone ---------- */

.phone {
  position: absolute;
  left: 1262px;
  top: 92px;
  width: 446px;
  height: 888px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 66px;
  background: #1c1c1e;
  box-shadow:
    inset 0 0 0 2px #3a3a3c,
    0 44px 90px rgba(35, 35, 37, 0.28),
    0 14px 28px rgba(35, 35, 37, 0.16);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -4px;
  width: 5px;
  border-radius: 0 3px 3px 0;
  background: #2c2c2e;
}

.phone::before {
  top: 210px;
  height: 90px;
}

.phone::after {
  top: 330px;
  height: 58px;
}

.phone .screen {
  position: relative;
  width: 418px;
  height: 860px;
  border-radius: 52px;
  overflow: hidden;
  background: #fff;
}

.phone .scaler {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 741px;
  transform: scale(1.16111);
  transform-origin: 0 0;
}

.sbar {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 25px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sbar .cam {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #121213;
}

.sbar .icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sbar .wifi-off {
  display: none;
}

.phone[data-state~="offline"] .sbar .wifi-on {
  display: none;
}

.phone[data-state~="offline"] .sbar .wifi-off {
  display: block;
}

.vp {
  position: absolute;
  left: 0;
  top: 25px;
  width: 360px;
  height: 716px;
  overflow: hidden;
  background: var(--color-neutral-100);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-900);
  -webkit-font-smoothing: antialiased;
}

/* Guide highlight and tap marker, positioned by deck.js in viewport pixels. */
.hl {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 12px;
  box-shadow:
    0 0 0 2.5px var(--red),
    0 0 0 1600px rgba(28, 28, 30, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition:
    left 0.5s var(--ease),
    top 0.5s var(--ease),
    width 0.5s var(--ease),
    height 0.5s var(--ease),
    border-radius 0.5s var(--ease),
    opacity 0.3s var(--ease);
}

.hl.on {
  opacity: 1;
}

.hl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2.5px solid var(--red);
  animation: hl-pulse 1.8s ease-out infinite;
}

@keyframes hl-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.tapdot {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 201;
}

.tapdot span {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
}

.tapdot.on {
  animation: tap 2.6s var(--ease) 0.5s infinite;
}

.tapdot.on span {
  animation: tap-rip 2.6s ease-out 0.5s infinite;
}

@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  12% {
    opacity: 1;
    transform: scale(1);
  }
  20% {
    transform: scale(0.78);
  }
  28% {
    transform: scale(1);
  }
  60% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes tap-rip {
  0%,
  18% {
    opacity: 0;
    transform: scale(1);
  }
  22% {
    opacity: 0.9;
  }
  45%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Final-state measurement: deck.js briefly disables every transition in the phone. */
.phone.measuring *,
.phone.measuring *::before,
.phone.measuring *::after {
  transition: none !important;
}

/* ---------- App screens (shared) ---------- */

.pg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.cam {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.fold {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.ov {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  transition:
    opacity 0.3s var(--ease),
    visibility 0s linear 0.3s;
}

.hu {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 344px;
  box-sizing: border-box;
  padding: 10px 14px 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #1f1f1f;
  z-index: 30;
  transform: translateY(-150px);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.hu .row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  line-height: 14px;
  color: #444746;
}

.hu .row img {
  width: 16px;
  height: 16px;
}

.hu .wa {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
}

.hu .ttl {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 700;
}

.hu .body {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 17px;
  color: #444746;
}

.hu .body b {
  color: #1f1f1f;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.caret {
  display: none;
  width: 2px;
  height: 22px;
  margin-left: 2px;
  background: var(--color-neutral-900);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.field {
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.st {
  position: relative;
  height: 20px;
}

.st > span {
  display: none;
}

.st .st-idle {
  display: inline;
}

.st .st-done {
  color: var(--color-neutral-900);
  font-weight: 700;
}

[data-state*="st-"] .st .st-idle {
  display: none;
}

[data-state~="st-sent"] .st .st-sent,
[data-state~="st-verifying"] .st .st-verifying,
[data-state~="st-preparing"] .st .st-preparing,
[data-state~="st-done"] .st .st-done {
  display: inline;
}

/* Android passkey sheets (create and sign in). */
.pk-scrim {
  background: rgba(0, 0, 0, 0.36);
  z-index: 45;
}

.pk-sheet {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 352px;
  border-radius: 26px 26px 0 0;
  background: #f3f5f9;
  color: #1f1f1f;
  overflow: hidden;
  z-index: 50;
  transform: translateY(380px);
  transition: transform 0.5s var(--ease-out);
}

.pk-sheet.signin {
  height: 320px;
}

[data-state~="sheet"] .pk-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

[data-state~="sheet"] .pk-sheet {
  transform: none;
}

.pk-sheet .brand {
  position: absolute;
  left: 0;
  top: 16px;
  width: 360px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #444746;
}

.pk-sheet .title {
  position: absolute;
  left: 22px;
  top: 42px;
  width: 316px;
  text-align: center;
  font-size: 16.5px;
  line-height: 21px;
  font-weight: 500;
}

.pk-sheet .account {
  position: absolute;
  left: 0;
  top: 90px;
  width: 360px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #444746;
}

.pk-sheet .desc {
  position: absolute;
  left: 22px;
  top: 112px;
  width: 316px;
  font-size: 10px;
  line-height: 14.5px;
  color: #444746;
}

.pk-sheet .link {
  position: absolute;
  left: 22px;
  font-size: 11px;
  font-weight: 600;
  color: #0b57d0;
}

.pk-sheet .fp {
  position: absolute;
  left: 150px;
  top: 198px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e1e3e1;
  color: #444746;
}

.pk-sheet .fp svg {
  width: 36px;
  height: 36px;
}

.pk-sheet.signin .fp {
  top: 170px;
}

.pk-sheet .hint {
  position: absolute;
  left: 0;
  top: 278px;
  width: 360px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #444746;
}

.pk-sheet.signin .hint {
  top: 248px;
}

.pk-account {
  position: absolute;
  left: 22px;
  top: 98px;
  width: 316px;
  height: 50px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.pk-account .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.pk-account .who {
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.pk-account .kind {
  font-size: 10.5px;
  line-height: 14px;
  color: #444746;
}

/* ---------- Tablero ---------- */

.tb {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.tb-header {
  position: relative;
  flex: none;
}

.tb-main {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.tb-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

[data-state~="tb-scroll"] .tb .cam {
  transform: translateY(-130px);
}

.tb-id-box {
  position: absolute;
  left: 10px;
  right: 102px;
  top: 6px;
  bottom: 6px;
  pointer-events: none;
}

[data-state~="install"] .tb-install,
[data-state~="offline"] .tb-offline {
  max-height: 90px;
}

.tb-sync-warn {
  display: none;
}

[data-state~="offline"] .tb-sync-ok {
  display: none;
}

[data-state~="offline"] .tb-sync-warn {
  display: grid;
  place-items: center;
}

.tb-chev {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
}

.tb-vals {
  align-items: baseline;
  padding-right: 20px;
}

.tb-proj-fill,
.tb-proj-dot {
  background: rgba(220, 43, 45, 0.35);
}

.tb-proj-dot {
  margin-top: 3px;
}

.tb-arpu-off,
[data-state~="offline"] .tb-arpu-on {
  display: none;
}

[data-state~="offline"] .tb-arpu-off {
  display: block;
}

.tb-bell {
  transition: color 0.25s var(--ease);
}

.tb-badge {
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s cubic-bezier(0.34, 1.8, 0.64, 1);
}

[data-state~="push"] .tb-bell {
  color: var(--red);
}

[data-state~="push"] .tb-badge {
  opacity: 1;
  transform: none;
}

[data-state~="push"] .tb-hu,
[data-state~="wa"] .rg-hu {
  transform: none;
}

[data-state~="tray"] .tb-tray,
[data-state~="modal"] .tb-modal,
[data-state~="isheet"] .tb-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

.tb-tray-box {
  transform: translateY(-16px);
  transition: transform 0.35s var(--ease-out);
}

[data-state~="tray"] .tb-tray-box {
  transform: none;
}

.tb-dialog {
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-state~="modal"] .tb-dialog {
  transform: none;
}

.tb-scrim {
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.isheet {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 192px;
  border-radius: 26px 26px 0 0;
  background: #f3f5f9;
  color: #1f1f1f;
  z-index: 41;
  transform: translateY(210px);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

[data-state~="isheet"] .isheet {
  transform: none;
}

.isheet .grab {
  position: absolute;
  left: 162px;
  top: 9px;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #c4c7c5;
}

.isheet .title {
  position: absolute;
  left: 22px;
  top: 28px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.isheet .app {
  position: absolute;
  left: 22px;
  top: 66px;
  width: 316px;
  height: 58px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

.isheet .app img {
  width: 36px;
  height: 36px;
}

.isheet .name {
  font-size: 13.5px;
  line-height: 17px;
  font-weight: 700;
}

.isheet .origin {
  font-size: 10.5px;
  line-height: 14px;
  color: #444746;
}

.isheet .btns {
  position: absolute;
  right: 22px;
  top: 138px;
  display: flex;
  gap: 8px;
}

.isheet .btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}

.isheet .cancel {
  color: #0b57d0;
}

.isheet .ok {
  background: #0b57d0;
  color: #fff;
}

/* ---------- Registro and acceso ---------- */

.rg,
.ac {
  background: var(--color-neutral-100);
}

[data-state~="otp"] .rg .cam {
  transform: translateY(-196px);
}

.rg-otp {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s var(--ease);
}

[data-state~="otp"] .rg-otp {
  max-height: 260px;
  opacity: 1;
}

[data-state~="focus-code"] .rg-code,
[data-state~="focus-code"] .ac-code,
[data-state~="focus-otp"] .rg-otp-field {
  border-color: var(--red);
  background: #fff;
}

[data-state~="focus-code"] .rg-code .caret,
[data-state~="focus-code"] .ac-code .caret,
[data-state~="focus-otp"] .rg-otp-field .caret {
  display: inline-block;
}

[data-state~="done"] .pk-sheet .fp {
  background: #d3e3fd;
  color: #0b57d0;
}

/* ---------- Ingresos and detalle ---------- */

.ig {
  background: var(--color-neutral-100);
}

.ig-chips {
  transform: translateX(-118px);
}

.ig-nav,
.dt-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.dt {
  background: #fff;
}

[data-state~="dt-scroll"] .dt .cam {
  transform: translateY(-240px);
}

.dt-wrap {
  overflow-wrap: anywhere;
}

.dt-svc {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dt-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dt-obs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 66px;
  z-index: 3;
  box-shadow: 0 4px 18px rgba(40, 40, 41, 0.18);
}

.dt-obs .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Credencial ---------- */

.cc {
  background: #1b1b1c;
  color: #fff;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.3);
  transform: translateX(105%);
  transition: transform 0.55s var(--ease-out);
}

[data-state~="cred"] .cc {
  transform: none;
}

.cc .credential-card-viewport {
  max-height: none;
}

.cc-qr {
  width: 90px;
  height: 90px;
}

.cc-status {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

[data-state~="shared"] .cc-status {
  opacity: 1;
}

[data-state~="cc-scroll"] .cc .cam {
  transform: translateY(-96px);
}

/* ---------- Window chrome: controls, overview, help, blackout ---------- */

#controls {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
  pointer-events: none;
}

body.ui-active #controls,
#controls:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

#controls button:hover,
#controls button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

#controls svg {
  width: 20px;
  height: 20px;
}

#controls .count {
  min-width: 92px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body.overview #stage {
  background: #1b1b1c;
}

body.overview .slide {
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  transform-origin: 0 0;
  transform: translate(var(--ox), var(--oy)) scale(0.17);
  border-radius: 28px;
  box-shadow: 0 0 0 8px transparent;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.2s var(--ease);
}

body.overview .slide:hover {
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
}

body.overview .slide.is-active {
  box-shadow: 0 0 0 14px var(--red);
}

body.overview .slide * {
  pointer-events: none;
}

.layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

#blackout {
  background: #000;
  cursor: none;
}

body.blackout #blackout {
  display: block;
}

#help {
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
}

body.help #help {
  display: grid;
}

#help .box {
  width: min(560px, 90vw);
  padding: 28px 32px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

#help h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

#help dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 15px;
}

#help dt {
  display: flex;
  gap: 6px;
}

#help dd {
  margin: 0;
  align-self: center;
  color: var(--muted);
}

#help .key {
  min-width: 30px;
  height: 30px;
  font-size: 13px;
  border-radius: 7px;
}

/* ---------- Presenter view ---------- */

#presenter-panel {
  display: none;
}

body.presenter #viewport {
  inset: 24px auto 24px 24px;
  width: calc(64% - 36px);
}

body.presenter #controls {
  display: none;
}

body.presenter #presenter-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: calc(36% - 12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #f2f2f2;
}

.pp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pp-clock,
.pp-timer {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pp-timer {
  color: #ff8a8b;
}

.pp-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9f;
}

.pp-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #1f1f21;
}

.pp-now {
  font-size: 22px;
  font-weight: 700;
}

.pp-pos {
  margin-top: 4px;
  font-size: 14px;
  color: #b4b4b8;
}

.pp-notes {
  flex: 1;
  overflow: auto;
  font-size: 20px;
  line-height: 1.5;
}

.pp-notes p {
  margin: 0 0 12px;
}

.pp-next {
  font-size: 17px;
  color: #d6d6da;
}

#presenter-panel button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #2c2c2e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#presenter-panel button:hover,
#presenter-panel button:focus-visible {
  background: #3a3a3c;
}

#presenter-panel .primary {
  flex: 1;
  background: var(--red);
}

#presenter-panel .primary:hover,
#presenter-panel .primary:focus-visible {
  background: #c12426;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tapdot.on {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Print / PDF: one slide per page ---------- */

@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }

  html,
  body {
    height: auto;
    overflow: visible;
    background: #fff;
  }

  #viewport {
    position: static;
    overflow: visible;
  }

  #stage {
    position: static;
    transform: none !important;
    height: auto;
  }

  .slide,
  body.overview .slide {
    position: relative;
    width: 1920px;
    height: 1080px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #controls,
  .layer,
  #presenter-panel {
    display: none !important;
  }

  /* PDF engines rasterize blurred shadows into opaque boxes; keep only spread-only (vector) ones. */
  .phone {
    box-shadow: inset 0 0 0 2px #3a3a3c;
  }

  .vp *:not(.hl),
  .agenda > *,
  .tips li,
  .questions {
    box-shadow: none !important;
  }

  .steps > li.is-active {
    box-shadow: 0 0 0 3px var(--red);
  }

  .hl::after,
  .tapdot {
    animation: none !important;
  }
}
