/* ==========================================================================
   Capacitación Tecnológica · Manatel
   Escenario fijo de 1920×1080. Prefijos: dk- (presentación), cw- (maqueta
   de Chatwoot), ma- (maqueta de Manatel App).
   ========================================================================== */

/* ---------- Fuentes locales ---------- */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: block; src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: block; src: url("assets/fonts/Poppins-Bold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: block; src: url("assets/fonts/Poppins-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: block; src: url("assets/fonts/Lato-Regular.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: block; src: url("assets/fonts/Lato-Bold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: block; src: url("assets/fonts/Lato-Italic.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-style: normal; font-display: block; src: url("assets/fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-style: normal; font-display: block; src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2"); }

:root {
  --red: #C13636;
  --red-dark: #7A1E1E;
  --red-50: #FBEDED;
  --ink: #1E1E1F;
  --ink-2: #3F3F43;
  --muted: #5A5A5E;
  --line: #DCDCE0;
  --soft: #F4F4F5;
  --good: #2E6B32;
  --good-50: #EDF6EC;
  --focus: #1F5FD6;
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --t: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: #0f0f10;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }

.dk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { flex: none; fill: currentColor; }
img { display: block; }

/* ---------- Escenario y escalado ---------- */
.dk-viewport { position: fixed; inset: 0; overflow: hidden; background: #0f0f10; }
.dk-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  background: #fff;
  overflow: hidden;
}
.dk-slides { position: absolute; inset: 0; }

/* ---------- Diapositiva ---------- */
.dk-slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  padding: 112px 160px 96px 120px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) ease, visibility 0s linear var(--t);
}
.dk-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t) ease, visibility 0s;
}
.notes { display: none !important; }

/* Elementos fijos: logo, capítulo, contador y progreso */
.dk-chrome { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.dk-brand { position: absolute; top: 36px; left: 48px; display: flex; align-items: center; gap: 14px; }
.dk-brand span { font: 800 26px/1 var(--font-head); letter-spacing: .08em; color: var(--red); }
.dk-chapter {
  position: absolute;
  top: 54px;
  right: 72px;
  font: 600 20px/1 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dk-count { position: absolute; bottom: 38px; right: 72px; font: 600 20px/1 var(--font-head); color: var(--muted); }
.dk-frame-right { position: absolute; top: 0; right: 0; bottom: 0; width: 16px; background: var(--red); }
.dk-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--red); }
.dk-progress span { display: block; height: 100%; background: var(--red-dark); }
.dk-slide[data-chrome="minimal"] .dk-brand,
.dk-slide[data-chrome="minimal"] .dk-chapter { display: none; }

/* ---------- Jerarquía: etiqueta → título → apoyo ---------- */
.dk-head { flex: none; }
.dk-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 600 24px/1.2 var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.dk-title { margin: 8px 0 0; font: 700 72px/1.1 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.dk-sub { margin: 14px 0 0; max-width: 1450px; font: 400 32px/1.35 var(--font-body); color: var(--ink-2); }
.dk-body { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 44px; display: flex; flex-direction: column; justify-content: center; }
.dk-ico { color: var(--red); }

/* ---------- Pasos (builds) ---------- */
[data-step] {
  transition: opacity var(--t) ease, transform var(--t) ease, background-color var(--t) ease,
    border-color var(--t) ease, color var(--t) ease;
}
.dk-slide [data-step].is-future { opacity: .3; }
.dk-slide .dk-reveal.is-future { opacity: 0; transform: translateY(16px); }
.no-anim, .no-anim * { transition: none !important; }

/* Lista de pasos con número → check */
.dk-steplist { list-style: none; margin: 0; padding: 0; counter-reset: dk; display: flex; flex-direction: column; gap: 12px; }
.dk-steplist li {
  counter-increment: dk;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 24px;
  align-items: center;
  padding: 20px 28px;
  border: 3px solid transparent;
  border-radius: 20px;
}
.dk-steplist li::before {
  content: counter(dk);
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--ink);
  font: 700 26px/1 var(--font-head);
}
.dk-steplist strong { font: 700 32px/1.2 var(--font-head); }
.dk-steplist span { font: 400 26px/1.35 var(--font-body); color: var(--ink-2); }
.dk-steplist li.is-current { border-color: var(--red); background: var(--red-50); }
.dk-steplist li.is-current::before { background: var(--red); color: #fff; }
.dk-steplist li.is-done::before {
  content: "";
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='white' d='m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z'/%3E%3C/svg%3E") center / 34px no-repeat;
}
.dk-steplist--compact { gap: 8px; }
.dk-steplist--compact li { grid-template-columns: 48px 1fr; column-gap: 18px; padding: 14px 18px; }
.dk-steplist--compact li::before { width: 48px; height: 48px; font-size: 22px; }
.dk-steplist--compact strong { font-size: 27px; }
.dk-steplist--compact span { font-size: 24px; }
.dk-list-title { margin: 0 0 16px 28px; font: 600 24px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

/* Píldoras de paso (leyenda bajo el título) */
.dk-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 0; padding: 0; }
.dk-pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border: 3px solid var(--line);
  border-radius: 999px;
  font: 700 26px/1.2 var(--font-body);
}
.dk-pills svg { color: var(--red); }
.dk-pills li.is-current { border-color: var(--red); background: var(--red-50); }

/* ---------- Portada y preguntas ---------- */
.dk-cover { align-items: center; justify-content: center; text-align: center; padding: 96px 160px 96px 120px; }
.dk-cover-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dk-cover-brand { display: flex; align-items: center; gap: 28px; margin-bottom: 36px; }
.dk-cover-brand p { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.dk-cover-word { font: 800 76px/1 var(--font-head); letter-spacing: .06em; color: var(--red); }
.dk-cover-claim { margin-top: 6px; font: 700 28px/1 var(--font-body); letter-spacing: .05em; color: var(--red); }
.dk-cover-title { margin: 0; font: 800 120px/1.05 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.dk-cover-sub { margin: 0; font: 400 40px/1.3 var(--font-body); color: var(--ink-2); }
.dk-cover-tag {
  margin: 24px 0 0;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 26px/1.2 var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dk-qa .dk-cover-title { font-size: 140px; margin-top: 24px; }

/* ---------- Agenda ---------- */
.dk-agenda { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; height: 100%; max-height: 560px; }
.dk-agenda-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 30px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--t) ease, background-color var(--t) ease;
}
.dk-agenda-card:hover { border-color: var(--red); background: var(--red-50); }
.dk-agenda-card:focus-visible { outline: 6px solid var(--focus); outline-offset: 4px; }
.dk-agenda-num { font: 800 64px/1 var(--font-head); color: var(--red); }
.dk-agenda-card strong { font: 700 34px/1.15 var(--font-head); }
.dk-agenda-card > span:not(.dk-agenda-num) { font: 400 26px/1.35 var(--font-body); color: var(--ink-2); }
.dk-agenda-card em { margin-top: auto; display: flex; align-items: center; gap: 4px; font: 600 24px/1 var(--font-head); font-style: normal; color: var(--red); }

/* ---------- Flujo (diagrama en serpentina) ---------- */
.dk-flow { display: flex; flex-direction: column; --arrow: 56px; }
.dk-flow-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.dk-flow-row--back { flex-direction: row-reverse; }
.dk-node {
  position: relative;
  flex: 1 1 0;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 26px 22px;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.dk-node img, .dk-node svg { height: 52px; width: auto; }
.dk-node .dk-ico { width: 52px; }
.dk-node p { margin: 0; font: 700 27px/1.25 var(--font-body); }
.dk-node-n {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font: 700 20px/1 var(--font-head);
}
.dk-node.is-current { border-color: var(--red); background: var(--red-50); }
.dk-node.is-current .dk-node-n { background: var(--red); }
.dk-arrow { position: relative; flex: 0 0 var(--arrow, 56px); align-self: center; height: 24px; }
.dk-arrow::before { content: ""; position: absolute; left: 8px; right: 16px; top: 10px; height: 4px; background: var(--ink-2); }
.dk-arrow::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 2px;
  border-left: 16px solid var(--ink-2);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.dk-flow-row--back .dk-arrow { transform: scaleX(-1); }
.dk-flow-turn { position: relative; height: 96px; --col: calc((100% - 3 * var(--arrow)) / 4); }
.dk-flow-turn::before { content: ""; position: absolute; right: calc(var(--col) / 2 - 2px); top: 4px; bottom: 18px; width: 4px; background: var(--ink-2); }
.dk-flow-turn::after {
  content: "";
  position: absolute;
  right: calc(var(--col) / 2 - 10px);
  bottom: 4px;
  border-top: 16px solid var(--ink-2);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}
.dk-flow-turn-label {
  position: absolute;
  top: 50%;
  right: calc(var(--col) / 2 + 24px);
  transform: translateY(-50%);
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 24px/1.2 var(--font-head);
  white-space: nowrap;
}
.dk-teams { display: flex; align-items: center; gap: 24px; margin-top: 44px; }
.dk-teams p { margin: 0; font: 600 24px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dk-teams ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.dk-teams li { display: flex; align-items: center; gap: 12px; padding: 12px 26px; border: 3px solid var(--line); border-radius: 999px; font: 700 26px/1 var(--font-body); }
.dk-teams svg { color: var(--red); }
.dk-teams.is-current li { border-color: var(--red); background: var(--red-50); }

/* ---------- Bloques de horarios ---------- */
.dk-day { padding-top: 40px; }
.dk-day-track { position: relative; height: 240px; }
.dk-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) / 24 * 100%);
  width: calc((var(--to) - var(--from)) / 24 * 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border: 4px solid #fff;
  border-radius: 20px;
  background: var(--soft);
  transition: background-color var(--t) ease, color var(--t) ease;
}
.dk-band:nth-child(even) { background: #E9E9EC; }
.dk-band strong { font: 700 32px/1 var(--font-head); }
.dk-band span { font: 400 28px/1 var(--font-body); }
.dk-slide[data-state~="ejemplo"] .dk-band--example { background: var(--red); color: #fff; }
.dk-day-pin { position: absolute; top: -40px; height: 34px; left: calc(var(--at) / 24 * 100%); width: 4px; margin-left: -2px; background: var(--ink); z-index: 2; }
.dk-day-pin::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top: 14px solid var(--ink);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
}
.dk-day-pin.is-future { opacity: 0; }
.dk-day-pin-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 24px/1 var(--font-head);
  white-space: nowrap;
}
.dk-day-ticks { position: relative; list-style: none; height: 36px; margin: 16px 0 0; padding: 0; }
.dk-day-ticks li { position: absolute; left: calc(var(--at) / 24 * 100%); transform: translateX(-50%); font: 700 24px/1 var(--font-body); color: var(--muted); }
.dk-day-ticks li:first-child { transform: none; }
.dk-day-ticks li:last-child { transform: translateX(-100%); }
.dk-day-note { display: flex; align-items: center; gap: 18px; margin: 56px 0 0; padding: 24px 32px; border-radius: 20px; background: var(--soft); font: 400 30px/1.35 var(--font-body); }
.dk-day-note svg { color: var(--red); }
.dk-day-note.is-future { opacity: 0; }

/* ---------- Asignación justa ---------- */
.dk-fair { display: flex; flex-direction: column; gap: 48px; }
.dk-fair-diagram { display: flex; align-items: center; justify-content: center; }
.dk-fair-diagram .dk-arrow { flex-basis: 96px; }
.dk-fair-in, .dk-fair-algo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 36px; border: 3px solid var(--line); border-radius: 20px; font: 600 26px/1.2 var(--font-head); }
.dk-fair-algo { background: var(--ink); border-color: var(--ink); color: #fff; }
.dk-fair-algo strong { font: 700 30px/1 var(--font-head); }
.dk-fair-algo span { font: 400 26px/1 var(--font-body); }
.dk-fair-out { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.dk-fair-out li { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border: 3px solid var(--line); border-radius: 14px; font: 700 24px/1 var(--font-body); }
.dk-fair-out svg { color: var(--muted); }

/* ---------- Tarjetas ---------- */
.dk-cards { list-style: none; display: grid; gap: 28px; margin: 0; padding: 0; }
.dk-cards--3 { grid-template-columns: repeat(3, 1fr); }
.dk-card { display: flex; flex-direction: column; gap: 14px; padding: 34px 36px; border: 3px solid var(--line); border-radius: 24px; background: #fff; }
.dk-card strong { font: 700 34px/1.2 var(--font-head); }
.dk-card > span { font: 400 28px/1.35 var(--font-body); color: var(--ink-2); }
.dk-card.is-current { border-color: var(--red); background: var(--red-50); }
.dk-reassign .dk-card { min-height: 330px; }
.dk-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin: 0 0 40px; padding: 12px 30px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 26px/1 var(--font-head); }

/* ---------- Dos columnas + cita ---------- */
.dk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.dk-split--wide { grid-template-columns: 720px 1fr; gap: 64px; }
.dk-quote { margin: 0; padding-left: 44px; border-left: 12px solid var(--red); }
.dk-quote blockquote { margin: 0; font: 700 58px/1.2 var(--font-head); color: var(--red); }
.dk-quote figcaption { margin-top: 28px; font: 400 30px/1.35 var(--font-body); color: var(--ink-2); }

/* ---------- Comparaciones (Calidad y velocidad) ---------- */
.dk-compare { position: relative; height: 100%; }
.dk-compare-set { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; opacity: 0; transform: translateY(12px); transition: opacity var(--t) ease, transform var(--t) ease; }
.dk-slide:not([data-state~="simple"]):not([data-state~="deuda"]) .dk-compare--orto,
.dk-slide[data-state~="simple"] .dk-compare--simple,
.dk-slide[data-state~="deuda"] .dk-compare--deuda { opacity: 1; transform: none; }
.dk-bubble { padding: 22px 32px 26px; border: 3px solid; border-radius: 24px; }
.dk-bubble p { margin: 0; font: 400 30px/1.4 var(--font-body); }
.dk-bubble--bad { border-color: #D3D3D8; background: var(--soft); color: var(--ink-2); }
.dk-bubble--good { border-color: var(--good); background: var(--good-50); }
.dk-bubble .dk-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 22px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.dk-bubble--bad .dk-tag { color: var(--red); }
.dk-bubble--good .dk-tag { color: var(--good); }
.dk-timeline { list-style: none; margin: 0; padding: 0; }
.dk-timeline li { position: relative; display: grid; grid-template-columns: 110px 72px 1fr; column-gap: 24px; align-items: center; padding: 22px 0; font: 400 30px/1.3 var(--font-body); }
.dk-timeline li::before { content: ""; position: absolute; left: calc(110px + 24px + 34px); top: 0; bottom: 0; width: 4px; background: var(--line); }
.dk-timeline li:first-child::before { top: 50%; }
.dk-timeline li:last-child::before { bottom: 50%; }
.dk-timeline time { font: 600 28px/1 var(--font-head); color: var(--muted); }
.dk-timeline svg { position: relative; z-index: 1; width: 72px; height: 72px; padding: 18px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.dk-timeline .is-key svg { background: var(--red); color: #fff; }
.dk-timeline .is-key span { font-weight: 700; }

/* ---------- Chat de ejemplo (Seguimiento) ---------- */
.dk-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 26px 22px; border: 3px solid var(--line); border-radius: 28px; background: #F7F5F2; }
.dk-chat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font: 600 26px/1 var(--font-head); }
.dk-chat .cw-msg { max-width: 86%; padding: 10px 16px; font-size: 24px; line-height: 1.3; }
.dk-chat .cw-msg time { margin-left: 12px; font-size: 16px; opacity: .75; white-space: nowrap; }
.dk-chat-gap { align-self: center; margin: 2px 0; padding: 6px 18px; border-radius: 999px; background: #E6E3DE; font: 600 20px/1.2 var(--font-head); color: var(--ink-2); }
.dk-chat-call { align-self: flex-end; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 20px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; font: 700 24px/1 var(--font-body); }
.dk-chat-call svg { color: var(--red); }

/* ---------- Ecosistema ---------- */
.dk-eco .dk-card { min-height: 420px; gap: 18px; padding: 40px; }
.dk-eco img { width: 80px; height: 80px; }
.dk-eco-icon { width: 80px; height: 80px; border-radius: 18px; display: grid; place-items: center; background: var(--red); color: #fff; }
.dk-eco a { margin-top: auto; font: 600 26px/1.3 var(--font-head); color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.dk-eco a:focus-visible { outline: 5px solid var(--focus); outline-offset: 4px; }

/* ---------- Estados ---------- */
.dk-states { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; margin: 0; padding: 0; }
.dk-state { padding: 20px 22px 22px; border: 3px solid var(--line); border-radius: 22px; background: #fff; transition: opacity var(--t) ease, border-color var(--t) ease; }
.dk-state > p { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 700 30px/1.1 var(--font-head); }
.dk-state-ico { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--fg); }
.dk-state ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.dk-state li { padding: 6px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 24px/1.2 var(--font-body); letter-spacing: .01em; }
.dk-state[style*="#F4F4F4"] li { background: #EBEBEC; }
.dk-slide[data-state~="curso"] .dk-state[data-group="neg"],
.dk-slide[data-state~="neg"] .dk-state[data-group="curso"],
.dk-slide[data-state~="meta"] .dk-state:not(.dk-state--goal) { opacity: .28; }
.dk-slide[data-state~="neg"] .dk-state--neg,
.dk-slide[data-state~="meta"] .dk-state--goal { border-color: var(--fg); }

/* ---------- Resumen ---------- */
.dk-summary { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
.dk-summary li { display: flex; align-items: center; gap: 28px; padding: 22px 32px; border: 3px solid var(--line); border-radius: 20px; font: 400 32px/1.3 var(--font-body); }
.dk-summary svg { color: var(--red); }
.dk-summary li.is-current { border-color: var(--red); background: var(--red-50); }

/* ---------- Resaltados sobre maquetas ---------- */
.dk-hl { position: relative; }
.dk-slide[data-state~="mias"] [data-hl="mias"],
.dk-slide[data-state~="responder"] [data-hl="responder"],
.dk-slide[data-state~="nota"] [data-hl="nota"],
.dk-slide[data-state~="slash"] [data-hl="slash"],
.dk-slide[data-state~="contacto"] [data-hl="contacto"],
.dk-slide[data-state~="movil"] [data-hl="movil"],
.dk-slide[data-state~="web"] [data-hl="web"],
.dk-slide[data-state~="nuevo"] [data-hl="nuevo"] {
  outline: 5px solid var(--red);
  outline-offset: 4px;
  z-index: 5;
}
.dk-tap {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  translate: -50% -50%;
  border: 4px solid var(--red);
  border-radius: 50%;
  background: rgba(193, 54, 54, .16);
  pointer-events: none;
  z-index: 6;
  animation: dk-pulse 1.6s ease-in-out infinite;
}
.dk-slide[data-state~="mias"] [data-hl="mias"] > .dk-tap,
.dk-slide[data-state~="nota"] [data-hl="nota"] > .dk-tap,
.dk-slide[data-state~="slash"] .cw-typed--slash > .dk-tap,
.dk-slide[data-state~="nuevo"] [data-hl="nuevo"] > .dk-tap { display: block; }
@keyframes dk-pulse { 50% { scale: 1.15; } }

/* ==========================================================================
   Maqueta de Chatwoot (recreación aproximada, datos ficticios)
   ========================================================================== */
.dk-cw-layout { display: grid; grid-template-columns: 1fr 440px; gap: 40px; }
.cw-app {
  height: 100%;
  display: grid;
  grid-template-columns: 72px 330px 1fr 290px;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  background: #fff;
  font: 400 18px/1.35 var(--font-body);
  color: #1F2D3D;
}
.cw-nav { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 0; border-right: 1px solid #E2E8F0; border-radius: 18px 0 0 18px; background: #F8FAFC; }
.cw-nav img { margin-bottom: 8px; }
.cw-nav-i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #64748B; }
.cw-nav-i.is-on { background: #E0EDFF; color: #1F93FF; }
.cw-list { display: flex; flex-direction: column; border-right: 1px solid #E2E8F0; }
.cw-list-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.cw-list-head strong { font: 700 22px/1 var(--font-head); }
.cw-list-head span { padding: 4px 12px; border-radius: 999px; background: #F1F5F9; font-size: 15px; color: #475569; }
.cw-tabs { display: flex; gap: 2px; padding: 14px 12px 0; border-bottom: 1px solid #E2E8F0; }
.cw-tab { position: relative; padding: 10px 8px; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; font-weight: 700; font-size: 17px; color: #64748B; white-space: nowrap; }
.cw-tab b { margin-left: 3px; padding: 1px 7px; border-radius: 999px; background: #E2E8F0; font-size: 14px; }
.cw-tab.is-on { border-color: #1F93FF; color: #1F93FF; }
.cw-tab.is-on b { background: #E0EDFF; }
.cw-convs { list-style: none; margin: 0; padding: 0; }
.cw-convs li { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #F1F5F9; border-left: 4px solid transparent; }
.cw-convs li.is-on { background: #F0F7FF; border-left-color: #1F93FF; }
.cw-convs strong { display: block; font-size: 18px; }
.cw-convs div span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; color: #64748B; }
.cw-convs div { min-width: 0; }
.cw-convs time { align-self: start; font-size: 14px; color: #94A3B8; }
.cw-unread { position: absolute; right: 18px; bottom: 14px; padding: 1px 7px; border-radius: 999px; background: #1F93FF; color: #fff; font-size: 13px; }
.cw-av { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 60% 88%); color: hsl(var(--h) 50% 28%); font: 700 16px/1 var(--font-body); }
.cw-av--lg { width: 72px; height: 72px; font-size: 24px; }
.cw-chat { display: flex; flex-direction: column; min-width: 0; }
.cw-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #E2E8F0; }
.cw-chat-head strong { display: block; font-size: 20px; }
.cw-chat-head div span { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #64748B; }
.cw-resolve { margin-left: auto; padding: 8px 16px; border-radius: 8px; background: #1F93FF; color: #fff; font-weight: 700; font-size: 16px; }
.cw-msgs { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #F8FAFC; }
.cw-msg { max-width: 85%; margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 18px; line-height: 1.35; }
.cw-msg--in { align-self: flex-start; border: 1px solid #E2E8F0; background: #fff; }
.cw-msg--out { align-self: flex-end; background: #1F93FF; color: #fff; }
.cw-composer { position: relative; padding: 12px 18px 16px; border-top: 1px solid #E2E8F0; border-radius: 0 0 4px 4px; background: #fff; }
.cw-ctabs { display: flex; gap: 6px; }
.cw-ctab { position: relative; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 16px; color: #64748B; }
.cw-ctab--reply { background: #E0EDFF; color: #1F93FF; }
.dk-slide[data-state~="nota"] .cw-ctab--reply { background: transparent; color: #64748B; }
.dk-slide[data-state~="nota"] .cw-ctab--note { background: #FFF1C2; color: #7A5D00; }
.cw-input { position: relative; min-height: 64px; margin-top: 10px; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 18px; }
.dk-slide[data-state~="nota"] .cw-input { border-color: #F5D565; background: #FFF8DB; }
.cw-typed { position: relative; display: none; }
.cw-typed--reply { display: inline; }
.dk-slide[data-state~="nota"] .cw-typed--reply,
.dk-slide[data-state~="slash"] .cw-typed--reply { display: none; }
.dk-slide[data-state~="nota"] .cw-typed--note,
.dk-slide[data-state~="slash"] .cw-typed--slash { display: inline-block; }
.cw-caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; vertical-align: middle; background: #1F2D3D; }
.cw-tools { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 15px; color: #64748B; }
.cw-send { margin-left: auto; padding: 8px 16px; border-radius: 8px; background: #1F93FF; color: #fff; font-weight: 700; }
.cw-canned { position: absolute; left: 18px; right: 18px; bottom: calc(100% - 6px); display: none; margin: 0; padding: 8px; list-style: none; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
.dk-slide[data-state~="slash"] .cw-canned { display: block; }
.cw-canned li { padding: 10px 14px; border-radius: 8px; }
.cw-canned li.is-on { background: #F0F7FF; }
.cw-canned b { display: block; font-size: 18px; color: #1F93FF; }
.cw-canned span { font-size: 16px; color: #475569; }
.cw-contact { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 20px; border-left: 1px solid #E2E8F0; border-radius: 0 18px 18px 0; text-align: center; }
.cw-contact strong { font-size: 20px; }
.cw-muted { font-size: 16px; color: #64748B; }
.cw-contact dl { width: 100%; margin: 14px 0 0; text-align: left; }
.cw-contact dt { margin-top: 14px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #64748B; }
.cw-contact dd { margin: 4px 0 0; font-size: 17px; }
.cw-label { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border: 1px solid #E2E8F0; border-radius: 6px; background: #F1F5F9; font-size: 14px; }

/* ==========================================================================
   Maqueta de Manatel App (móvil y web, datos ficticios)
   ========================================================================== */
.dk-devices { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 56px; }
.dk-device-slot { flex: none; }
.dk-device-slot--phone { zoom: .77; }
.dk-device-slot--web { zoom: .83; }

.ma-phone { width: 414px; height: 824px; padding: 12px; border-radius: 56px; background: #1E1E1F; }
.ma-screen { position: relative; width: 390px; height: 800px; display: flex; flex-direction: column; overflow: hidden; border-radius: 44px; background: #F4F4F4; font-family: "Montserrat", var(--font-body); color: #282829; }
.ma-status { display: flex; justify-content: space-between; padding: 14px 30px 6px; background: #fff; font-weight: 600; font-size: 14px; }
.ma-header { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; border-bottom: 1px solid #E6E6E6; background: #fff; }
.ma-header strong { display: block; font-weight: 800; font-size: 17px; }
.ma-code { font: 400 48px/1 "Bebas Neue", var(--font-head); color: #DC2B2D; }
.ma-role { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 10px; letter-spacing: .04em; color: #6A6A6A; }
.ma-bell { position: relative; margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #E6E6E6; border-radius: 50%; color: #282829; }
.ma-bell::after { content: ""; position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #DC2B2D; }
.ma-page { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden; }
.ma-titlerow { display: flex; align-items: center; gap: 10px; }
.ma-titlerow strong { font-weight: 800; font-size: 22px; }
.ma-back { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #DC2B2D; color: #fff; }
.ma-month { margin-left: auto; font-weight: 600; font-size: 13px; color: #6A6A6A; }
.ma-search { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #8A8A8A; border-radius: 999px; background: #FDFDFD; font-size: 13px; color: #8A8A8A; }
.ma-chips { display: flex; gap: 6px; overflow: hidden; }
.ma-chip { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 12px; white-space: nowrap; }
.ma-chip--all { background: #FDEAEA; color: #DC2B2D; }
.ma-chip--all.is-on { background: #DC2B2D; color: #fff; }
.ma-list { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: #FDFDFD; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ma-list li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #F4F4F4; }
.ma-list li:last-child { border-bottom: 0; }
.ma-st { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--fg); }
.ma-list div strong { display: block; margin-bottom: 4px; font-weight: 700; font-size: 15px; }
.ma-list div span { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: 12px; color: #6A6A6A; }
.ma-list em { grid-column: 2; justify-self: end; font-style: normal; font-weight: 700; font-size: 13px; color: #DC2B2D; }
.ma-tabbar { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0 18px; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -4px 16px rgba(40, 40, 41, .08); }
.ma-tabbar > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 600; font-size: 11px; color: #6A6A6A; }
.ma-tabbar > span.is-on { color: #DC2B2D; }
.ma-fab { color: #282829 !important; border-radius: 12px; }
.ma-fab b { width: 56px; height: 56px; margin-top: -30px; display: grid; place-items: center; border-radius: 50%; background: #DC2B2D; color: #fff; box-shadow: 0 6px 16px rgba(220, 43, 45, .35); }
.ma-fab .dk-tap { top: -2px; width: 72px; height: 72px; }

.ma-browser { width: 1180px; height: 760px; display: flex; flex-direction: column; border: 2px solid #D4D4D8; border-radius: 18px; background: #fff; font-family: "Montserrat", var(--font-body); color: #282829; }
.ma-browser-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #E4E4E7; border-radius: 16px 16px 0 0; background: #F1F1F3; }
.ma-browser-bar i { width: 12px; height: 12px; border-radius: 50%; background: #D4D4D8; }
.ma-browser-bar span { width: 420px; margin-left: 24px; padding: 4px 18px; border: 1px solid #E4E4E7; border-radius: 999px; background: #fff; font-size: 14px; color: #52525B; }
.ma-web { flex: 1; display: flex; flex-direction: column; border-radius: 0 0 16px 16px; background: #F4F4F4; }
.ma-header--web { padding: 10px 32px; }
.ma-topnav { display: flex; justify-content: center; gap: 40px; padding: 10px 0; border-bottom: 1px solid #E6E6E6; background: #fff; }
.ma-topnav > span { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #6A6A6A; }
.ma-topnav > span.is-on { color: #DC2B2D; }
.ma-web-body { width: 100%; max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; }
.ma-resumen { display: flex; align-items: center; justify-content: space-between; }
.ma-resumen strong { font-weight: 800; font-size: 20px; }
.ma-resumen span { font-weight: 600; font-size: 13px; color: #6A6A6A; }
.ma-resumen .ma-link { color: #DC2B2D; }
.ma-goal { padding: 14px 20px; border-radius: 16px; background: #FDFDFD; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ma-goal > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.ma-goal > div:first-child span { font-weight: 700; font-size: 15px; }
.ma-goal > div:first-child strong { font-weight: 800; font-size: 28px; color: #DC2B2D; }
.ma-goal-bar { display: flex; height: 12px; margin: 8px 0; overflow: hidden; border-radius: 999px; background: #F4F4F4; }
.ma-goal-bar i { background: #DC2B2D; }
.ma-goal-bar b { background: #F3A5A6; }
.ma-goal-meta { font-size: 12px; color: #6A6A6A; }
.ma-tiles { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 0; padding: 0; }
.ma-tiles li { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 18px; background: var(--bg); color: var(--fg); text-align: center; }
.ma-tiles span { font-weight: 700; font-size: 10px; line-height: 1.2; }
.ma-tiles b { font-weight: 800; font-size: 20px; }
.ma-list--web li { grid-template-columns: 44px 1fr auto; align-items: center; }
.ma-list--web em { grid-column: auto; }

/* ==========================================================================
   Controles, vista general, ayuda, negro y presentador
   ========================================================================== */
.dk-controls {
  position: fixed;
  left: 14px;
  bottom: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20, 20, 22, .6);
  opacity: .35;
  transition: opacity 200ms ease;
}
.dk-controls:hover, .dk-controls:focus-within { opacity: 1; }
.dk-controls button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.dk-controls button:hover { background: rgba(255, 255, 255, .15); }
.dk-controls-count { min-width: 64px; padding: 0 6px; font: 600 14px/1 var(--font-head); text-align: center; color: #fff; }
button:focus-visible { outline: 3px solid #8AB4FF; outline-offset: 2px; }

.dk-overview { position: fixed; inset: 0; z-index: 60; overflow: auto; padding: 28px 48px 48px; background: rgba(15, 15, 17, .97); color: #fff; }
.dk-overview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dk-overview-head h2 { margin: 0; font: 700 26px/1 var(--font-head); }
.dk-overview-head button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.dk-overview-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; margin: 0; padding: 0; }
.dk-thumb { width: 100%; display: block; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.dk-thumb-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid transparent; border-radius: 10px; background: #fff; }
.dk-thumb-frame .dk-slide { position: absolute; top: 0; left: 0; transform: scale(var(--ts, .17)); transform-origin: 0 0; opacity: 1; visibility: visible; transition: none; }
.dk-thumb:hover .dk-thumb-frame { border-color: rgba(255, 255, 255, .6); }
.dk-thumb[aria-current="true"] .dk-thumb-frame { border-color: #FF6B6B; }
.dk-thumb:focus-visible { outline: none; }
.dk-thumb:focus-visible .dk-thumb-frame { border-color: #8AB4FF; box-shadow: 0 0 0 3px #8AB4FF; }
.dk-thumb-label { display: block; margin-top: 8px; font: 600 16px/1.3 var(--font-head); }

.dk-help { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(0, 0, 0, .6); }
.dk-help-box { width: min(680px, 92vw); padding: 32px 40px; border-radius: 20px; background: #fff; font-size: 18px; }
.dk-help-box h2 { margin: 0 0 18px; font: 700 28px/1.2 var(--font-head); }
.dk-help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; }
.dk-help-box dt { white-space: nowrap; }
.dk-help-box dd { margin: 0; }
.dk-help-box p { margin: 18px 0; color: var(--ink-2); }
.dk-help-box button { padding: 10px 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 700 16px/1 var(--font-body); cursor: pointer; }
kbd { display: inline-block; min-width: 28px; padding: 3px 8px; border: 1px solid #C8C8CC; border-bottom-width: 3px; border-radius: 6px; background: #F7F7F8; font: 700 15px/1.2 var(--font-body); text-align: center; }

.dk-blank { position: fixed; inset: 0; z-index: 80; background: #000; cursor: none; }

body.is-presenter .dk-viewport,
body.is-presenter .dk-controls { display: none; }
body.is-presenter { overflow: auto; background: #111214; }
.dk-presenter { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: #111214; color: #F3F3F3; font-family: var(--font-body); }
.dk-p-head { display: flex; align-items: center; gap: 24px; padding: 14px 24px; border-bottom: 1px solid #2A2A2E; font-size: 18px; }
.dk-p-head strong { font: 700 20px/1.2 var(--font-head); }
.dk-p-clock { margin-left: auto; font: 600 28px/1 var(--font-head); }
.dk-p-timer { display: flex; align-items: center; gap: 10px; font: 600 28px/1 var(--font-head); color: #FFD27A; }
.dk-p-timer button { padding: 6px 14px; border: 1px solid #3A3A40; border-radius: 999px; background: #1E1F24; color: #F3F3F3; font: 600 14px/1 var(--font-body); cursor: pointer; }
.dk-p-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; min-height: 0; padding: 20px; }
.dk-p-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.dk-p-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #fff; }
.dk-p-frame .dk-slide { position: absolute; top: 0; left: 0; transform: scale(var(--ts, .3)); transform-origin: 0 0; opacity: 1; visibility: visible; transition: none; }
.dk-p-frame .dk-p-end { display: grid; place-items: center; height: 100%; background: #1B1C20; color: #9A9AA2; font: 600 20px/1 var(--font-head); }
.dk-p-label { margin: 0 0 6px; font: 700 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #9A9AA2; }
.dk-p-notes { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; border-radius: 8px; background: #1B1C20; }
.dk-p-notes #dk-p-notes { font-size: 22px; line-height: 1.5; }
.dk-p-notes p { margin: 0 0 12px; }
.dk-p-status { margin: 0; padding: 8px 24px 12px; font-size: 14px; color: #9A9AA2; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ==========================================================================
   Impresión / PDF: una diapositiva por página, en su último paso
   ========================================================================== */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { width: 1920px; height: auto; overflow: visible; background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; transition: none !important; animation: none !important; }
  .dk-viewport, .dk-stage, .dk-slides { position: static; width: 1920px; height: auto; overflow: visible; transform: none !important; background: #fff; }
  .dk-slide { position: relative; inset: auto; opacity: 1 !important; visibility: visible !important; break-after: page; page-break-after: always; overflow: hidden; }
  .dk-slide:last-child { break-after: auto; page-break-after: auto; }
  .dk-controls, .dk-overview, .dk-help, .dk-blank, .dk-presenter, .notes, .dk-tap { display: none !important; }
  .dk-slide [data-step].is-future { opacity: 1; transform: none; }
  .dk-slide .dk-state { opacity: 1 !important; }
  .cw-canned { border-width: 2px; }
  .ma-list, .ma-goal { border: 1px solid #E6E6E6; }
}
