:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --blue: #1e40af;
  --blue-soft: #eff6ff;
  --crimson: #be123c;
  --crimson-soft: #fff1f2;
  --ok: #166534;
  --ok-soft: #f0fdf4;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

.mono { font-family: var(--font-mono); }

.deck-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* Top bar */
.topbar {
  height: 46px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-utp-logo {
  height: 22px;
  width: auto;
  display: block;
}

.topbar-sep {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
}

.topbar-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.source-pill {
  font-size: 12px;
  color: var(--body);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Stage & Fade Transitions */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.slide {
  position: absolute;
  width: 100%;
  max-width: 1240px;
  height: calc(100% - 16px);
  max-height: 575px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              visibility 320ms ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fade-panel {
  transition: opacity 220ms ease, transform 220ms ease;
}
.fade-panel.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

/* Typography & Headers */
.eyebrow {
  margin: 0 0 4px 0;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
}

.slide-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.slide-lead {
  margin: 6px 0 0 0;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.45;
  max-width: 820px;
}

.row-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Slide 1: Cover (Adapted to Barba Roja Brand #620E0E) */
.cover-layout {
  height: 100%;
  background: var(--surface);
  border: 1px solid #ead8d8;
  border-top: 4px solid #620e0e;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 36px 46px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-hero {
  display: grid;
  grid-template-columns: 1fr 485px;
  gap: 32px;
  align-items: center;
  flex: 1;
}

.cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-utp-logo {
  height: 44px;
  width: auto;
  align-self: flex-start;
  display: block;
  margin-bottom: 14px;
}

.cover-title {
  margin: 0 0 14px 0;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1f0b0b;
  max-width: 640px;
}

.cover-subtitle {
  margin: 0;
  font-size: 18px;
  color: #4a3333;
  line-height: 1.45;
}

.cover-subtitle strong {
  color: #620e0e;
  font-weight: 700;
}

.cover-aside {
  background: #fcf6f6;
  border: 1px solid #ebd7d7;
  border-left: 3px solid #620e0e;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cover-brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-logo {
  width: 68px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.cover-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cover-brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #620e0e;
  line-height: 1.15;
  white-space: nowrap;
}

.cover-brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: #8a5a5a;
}

.cover-aside-rule {
  height: 1px;
  background: #ead5d5;
}

.cover-team {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cover-team-label {
  color: #620e0e;
  font-size: 12px;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #261414;
  line-height: 1.3;
}

.team-code {
  font-size: 13px;
  font-weight: 700;
  color: #620e0e;
  background: #f6e7e7;
  border: 1px solid #e7cccc;
  padding: 3px 9px;
  border-radius: 5px;
  flex-shrink: 0;
}

.cover-rule {
  height: 1px;
  background: #ead8d8;
  margin: 14px 0 18px;
}

.cover-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cover-brand .meta-label {
  color: #8a4b4b;
}

.cover-brand .meta-value {
  color: #1f0b0b;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.meta-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Slide 2: Timeline & KPIs */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.step-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 4px;
}

.step-card h3 {
  margin: 4px 0 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.kpi-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.kpi-lbl {
  font-size: 11.5px;
  color: var(--muted);
}

/* Slide 3: Split & Live Table */
.split-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.split-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-card {
  padding: 16px 18px;
}

.compact-card h3 {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.subtle-accent {
  border-left: 3px solid var(--blue);
}

.clean-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--body);
}

.small-note {
  margin: 4px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.table-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.table-toolbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.tab-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--body);
  cursor: pointer;
  transition: all 150ms ease;
}
.tab-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.search-input {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 170px;
  color: var(--ink);
  outline: none;
}
.search-input:focus { border-color: var(--blue); }

.table-meta-bar {
  padding: 6px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.legend-tag {
  color: var(--crimson);
  font-weight: 500;
}

.table-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

table.data-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  table-layout: auto;
}

table.data-grid thead th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 6px 7px;
  border-bottom: 1px solid var(--border-strong);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  z-index: 1;
}

table.data-grid thead th.col-redundant {
  background: var(--crimson-soft);
  color: var(--crimson);
}

table.data-grid thead th.col-key {
  background: var(--blue-soft);
  color: var(--blue);
}

table.data-grid tbody td {
  padding: 5px 7px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  max-width: 240px;
}

table.data-grid tbody td.col-redundant {
  background: #fff8f8;
  color: #9f1239;
}

table.data-grid tbody tr:hover td {
  background: #f8fafc;
}

/* Slide 4: Normalization Comparator */
.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.seg-btn.active {
  background: var(--blue);
  color: #ffffff;
}

.norm-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.norm-banner {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.norm-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--body);
  line-height: 1.45;
}

.pill-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pill-removed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson);
  background: var(--crimson-soft);
  border: 1px solid #fecdd3;
  padding: 3px 8px;
  border-radius: 5px;
  text-decoration: line-through;
}

.pill-kept {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 5px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.compare-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.compare-head.before { color: var(--crimson); background: var(--crimson-soft); }
.compare-head.after { color: var(--blue); background: var(--blue-soft); }

/* Slide 5: Audit & Live 3FN Inspector */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: var(--blue);
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.btn-primary:hover { opacity: 0.92; }

.audit-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.audit-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.audit-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mini-kpi {
  padding: 9px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-kpi-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.accent-blue { color: var(--blue); }

.mini-kpi-lbl {
  font-size: 10.5px;
  color: var(--muted);
}

.table-selector-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tbl-select-btn {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 6px 8px;
  gap: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  transition: all 150ms ease;
}
.tbl-select-btn > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbl-select-btn span.cnt { color: var(--muted); font-size: 10px; flex-shrink: 0; }
.tbl-select-btn.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.toolbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.badge-ok {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Slide 6: Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.phase-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-done, .phase-complete {
  border-top: 3px solid var(--ok);
}

.phase-current {
  border-top: 3px solid var(--blue);
}

.phase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.phase-state {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.state-live { color: var(--ok); background: var(--ok-soft); }
.state-next { color: var(--blue); background: var(--blue-soft); }
.state-planned { color: var(--muted); background: var(--bg); border: 1px solid var(--border); }

.phase-card h3 {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.phase-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

.arch-bar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arch-step {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.arch-step.active-step, .arch-step.next-step {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bfdbfe;
  font-weight: 600;
}
.arch-step.done-step {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: #bbf7d0;
  font-weight: 600;
}
.arch-arrow {
  color: var(--border-strong);
  font-weight: 600;
}

/* Bottom Bar */
.bottombar {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.progress-track {
  height: 2px;
  width: 100%;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  width: 16.6%;
  background: var(--crimson);
  transition: width 280ms ease;
}

.bottombar-inner {
  height: 46px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.dot-btn {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
}
.dot-btn.active {
  width: 36px;
  background: var(--crimson);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-counter {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}

.btn-nav {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 150ms ease;
}
.btn-nav:disabled { opacity: 0.4; cursor: default; }
.btn-nav:hover:not(:disabled) { border-color: var(--ink); }

.btn-nav-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.btn-nav-primary:hover:not(:disabled) { opacity: 0.9; }

/* ─── SLIDE 6: POSTGRESQL LIVE EXPLORER ───────────────────────────── */
.accent-crimson { color: var(--crimson); }
.hidden { display: none !important; }

.pg-layout {
  display: grid;
  grid-template-columns: 365px 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.pg-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.pg-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pg-fixes-card {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 13px 15px;
}

.tight-list {
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.38;
}

.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-warn {
  font-size: 10.5px;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 999px;
}

.badge-deny {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--crimson);
  background: var(--crimson-soft);
  border: 1px solid #fecdd3;
  padding: 2px 7px;
  border-radius: 999px;
}

.explain-wrap {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explain-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.explain-head {
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.explain-sql {
  padding: 7px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--blue);
  line-height: 1.35;
  word-break: break-word;
}

/* ─── SLIDE 7: TIME-LAPSE OPERATIVO REAL ──────────────────────────── */
.tl-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.select-compact {
  font-size: 11.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}

.tl-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tl-kpi {
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tl-kpi-val {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tl-stage-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
}
.stage-day0 { color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.stage-jul  { color: var(--crimson); background: var(--crimson-soft); border: 1px solid #fecdd3; }
.stage-cont { color: var(--blue); background: var(--blue-soft); border: 1px solid #bfdbfe; }

.tl-main {
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.tl-chart-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.tl-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tl-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.leg-crimson { background: var(--crimson); }
.leg-blue { background: var(--blue); }

.tl-svg-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
}

.tl-svg {
  width: 100%;
  height: 100%;
  max-height: 255px;
  display: block;
}

.tl-bar {
  cursor: pointer;
  transition: opacity 120ms ease;
}
.tl-bar:hover { opacity: 0.85; }

.tl-scrubber-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.tl-scrubber-bar input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
}

.small-lbl {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.tl-side-card {
  min-height: 0;
}

/* ─── SLIDE 8: LABORATORIO TRANSACCIONAL Y RLS ────────────────────── */
.lab-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-tx-grid {
  display: grid;
  grid-template-columns: 375px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.lab-tx-left, .lab-tx-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.lab-form-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lab-form-card h3 {
  margin: 0;
  font-size: 13px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-two-col {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 8px;
}

.form-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.form-control {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.form-control:focus { border-color: var(--blue); }

.lab-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 2px;
}

.btn-danger-outline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--crimson);
  background: var(--crimson-soft);
  border: 1px solid #fecdd3;
  border-radius: 7px;
  padding: 7px 11px;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.btn-danger-outline:disabled { opacity: 0.4; cursor: default; }

.lab-util-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-xs {
  font-size: 10.5px;
  padding: 4px 8px;
}

.ticket-card {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fcfcfd;
}

.ticket-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ticket-pre {
  margin: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 7px 8px;
  font-family: 'Courier New', Consolas, 'Liberation Mono', monospace;
  font-size: 9.5px;
  line-height: 1.32;
  white-space: pre;
  color: #111111;
}

.lab-stock-card {
  flex: 1.35;
  min-height: 0;
}

.lab-log-card {
  flex: 0.85;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sql-log-box {
  flex: 1;
  overflow-y: auto;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--body);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.delta-neg { color: var(--crimson); font-weight: 700; }
.delta-pos { color: var(--ok); font-weight: 700; }
.delta-zero { color: var(--muted); }

.rls-table-card {
  flex: 1;
  min-height: 0;
}

.empty-hint {
  padding: 36px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ─── SLIDES 11-12: FASE 3 BD DISTRIBUIDAS ────────────────────────── */
.f3-node-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.node-cloud { border-left: 3px solid var(--blue); }
.node-local { border-left: 3px solid var(--crimson); }

.node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.f3-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.f3-net-bar {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.f3-step-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-pill {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f3-grow { flex: 1; min-width: 0; }
.f3-num-sm { width: 78px; flex-shrink: 0; }
.f3-qty-sm { width: 56px; flex-shrink: 0; }
.f3-pay-sm { width: 110px; flex-shrink: 0; }

.f3-acid-split {
  display: grid;
  grid-template-rows: 1.25fr 0.75fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.f3-acid-top {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.f3-acid-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f3-acid-tbl-wrap {
  flex: 0 0 auto;
  overflow-x: auto;
}

.acid-alerts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 10px 12px;
}

.pos-alert-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pos-alert-ok {
  border-left: 3.5px solid var(--ok);
  background: #f7fdf9;
}

.pos-alert-block {
  border-left: 3.5px solid var(--crimson);
  background: #fff7f8;
}

.pos-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pos-alert-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.pos-alert-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--body);
}

.pos-alert-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
  border-top: 1px dashed var(--border);
  font-size: 10.5px;
  color: var(--muted);
}

.pos-alert-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.pos-alert-pill.ok-pill {
  color: var(--ok);
  background: var(--ok-soft);
}
.pos-alert-pill.warn-pill {
  color: var(--crimson);
  background: var(--crimson-soft);
}

.f3-section-sub {
  padding: 7px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* ─── SLIDE 12: MINI-POS OFFLINE VISUAL (BARBA ROJA) ──────────────── */
.pos-topbar {
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.pos-topbar-left, .pos-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pos-open-in {
  width: 60px;
  padding: 3px 6px;
  font-size: 11px;
}

.pos-cierre-bar {
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  border-color: #bfdbfe;
  flex-shrink: 0;
}

.pos-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.92fr 0.88fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.pos-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pos-col-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.pos-search {
  width: 165px;
  padding: 4px 8px;
  font-size: 11px;
}

.pos-cat-strip {
  padding: 6px 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.pos-cat-btn {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
}
.pos-cat-btn.active {
  background: #620e0e;
  color: #ffffff;
  border-color: #620e0e;
}

.pos-prod-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  align-content: start;
}

.pos-prod-tile {
  text-align: left;
  font-family: var(--font-sans);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  transition: border-color 140ms ease, background 140ms ease;
}
.pos-prod-tile:hover {
  border-color: #620e0e;
  background: #fcf6f6;
}
.pos-prod-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.pos-prod-price {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #620e0e;
}

.pos-mods-bar {
  padding: 6px 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.pos-mods-chips {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.mod-chip {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
}
.mod-chip:hover { border-color: var(--blue); color: var(--blue); }
.mod-chip.extra-chip { border-color: #e7cccc; color: #620e0e; background: #fcf6f6; }

.pos-mesa-strip {
  display: flex;
  gap: 4px;
  width: 100%;
}

.mesa-btn {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--body);
  cursor: pointer;
}
.mesa-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.mesa-btn.has-open {
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}
.mesa-btn.active.has-open {
  background: #620e0e;
  color: #ffffff;
  border-color: #620e0e;
}

.pos-cart-meta {
  padding: 5px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pos-cart-meta .small-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-ticket-links {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.pos-ticket-links button {
  white-space: nowrap;
  padding: 3px 7px;
  font-size: 10px;
}

.btn-ticket-idle {
  opacity: 0.6;
}

.pos-cart-notice {
  padding: 6px 9px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  flex-shrink: 0;
}

.pos-cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pos-empty {
  padding: 20px 10px;
  font-size: 11.5px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}
.cart-item.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.cart-item-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.cart-item-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.qty-mini-btn {
  width: 19px;
  height: 19px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cart-item-mods {
  font-size: 10px;
  color: #620e0e;
  line-height: 1.25;
}

.pos-cart-foot {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pos-total-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.pos-actions-row {
  display: flex;
  gap: 6px;
}

.pos-right-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.pos-outbox-card { flex: 1.15; min-height: 0; }
.pos-outbox-card table {
  width: max-content;
  min-width: 100%;
}
.pos-outbox-card th,
.pos-outbox-card td {
  white-space: nowrap !important;
  font-size: 10.5px;
  padding: 5px 7px;
}
.pos-outbox-card .badge-ok,
.pos-outbox-card .badge-warn {
  display: inline-block;
  white-space: nowrap;
  font-size: 9.5px;
  padding: 2px 6px;
}

.btn-ticket-ready {
  border-color: #620e0e !important;
  color: #620e0e !important;
  background: #fcf6f6 !important;
  font-weight: 600;
}
.btn-ticket-ready:hover {
  background: #620e0e !important;
  color: #ffffff !important;
}

.pos-sql-card {
  flex: 0.95;
  min-height: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pos-sql-card .meta-label {
  white-space: nowrap;
}
.pos-sql-card .small-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==========================================================================
   FASE 2B (ORACLE 23ai), FASE 2C (COMPARATIVA) & FASE 4 (MONGODB / CASSANDRA)
   Strict 1366x633 viewport containment · Minimalist Swiss Editorial
   ========================================================================== */

.mm-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mm-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.mm-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.mm-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mm-panel.hidden,
.mm-full-stack.hidden {
  display: none !important;
}

.mm-engine-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-engine-title {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0f172a);
}

.mm-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mm-kpi {
  padding: 9px 10px !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mm-kpi-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.mm-controls-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-controls-card .form-two-col {
  grid-template-columns: minmax(0, 1fr) 64px !important;
}

.mm-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.mm-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--slate, #334155);
  gap: 8px;
}

.mm-stat-row strong {
  color: var(--ink, #0f172a);
  font-size: 12px;
}

.mm-divider {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 4px 0;
}

.mm-toolbar-actions,
.mm-inline-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.mm-sel-sm {
  height: 28px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  width: auto !important;
  min-width: 120px;
}

.mm-sel-md {
  height: 28px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  width: auto !important;
  min-width: 190px;
  max-width: 260px;
}

.mm-split-v {
  display: grid;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.mm-top-half {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mm-scroll-lg {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mm-code-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0 !important;
}

.mm-pre {
  margin: 0;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.42;
  color: #0f172a;
  background: #f8fafc;
  overflow: auto;
  flex: 1;
  min-height: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.mm-pre-tall {
  font-size: 11.5px;
}

.mm-pre-sm {
  font-size: 11px;
  max-height: 76px;
}

.mm-table {
  width: 100%;
  border-collapse: collapse;
}

.mm-table th {
  text-align: left;
}

.mm-table th.num {
  text-align: right;
}

.mm-table th,
.mm-table td {
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  line-height: 1.35;
}

.mm-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mm-bold {
  font-weight: 600;
  color: var(--ink, #0f172a);
}

.accent-crimson {
  color: #be123c !important;
  font-weight: 600;
}

.accent-green {
  color: #15803d !important;
  font-weight: 600;
}

.badge-warn {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-err {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Comparativa & Benchmark */
.mm-full-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mm-full-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.mm-bench-top {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mm-bench-grid {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.mm-bench-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 6px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mm-bench-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink, #0f172a);
}

.mm-bar-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.mm-bar-lbl {
  color: var(--slate, #334155);
}

.mm-bar-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mm-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-blue    { background: #1e40af; }
.bar-crimson { background: #be123c; }
.bar-slate   { background: #64748b; }

.mm-bar-val {
  text-align: right;
  font-weight: 600;
  color: var(--ink, #0f172a);
}

.mm-tsql-strip {
  padding: 0 !important;
  flex-shrink: 0;
  overflow: hidden;
}

/* MongoDB EXPLAIN KPI strip */
.mm-kpi-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.mm-mini-kpi {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-mini-kpi span {
  font-size: 10.5px;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-mini-kpi strong {
  font-size: 14px;
  color: var(--ink, #0f172a);
}

/* Final Reconciliation Slide */
.mm-roadmap-compact {
  flex: 0 0 auto !important;
  margin-bottom: 10px;
}

.mm-roadmap-compact .phase-card {
  padding: 10px 12px !important;
  min-height: 0 !important;
  height: auto !important;
}

.mm-roadmap-compact .phase-card h3 {
  margin: 4px 0 3px;
  font-size: 13.5px;
}

.mm-roadmap-compact .phase-card p {
  font-size: 11.5px;
  margin: 0;
}

.mm-recon-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


/* ==========================================================================
   SLIDE 19: CONCLUSIONES Y AGRADECIMIENTO
   ========================================================================== */

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.closing-conclusions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  min-height: 0;
}

.closing-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 13px !important;
  flex: 1;
}

.closing-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.closing-item h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.closing-item p {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.4;
  color: var(--slate, #334155);
}

.closing-thanks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 3px solid #7f1d1d !important;
  min-height: 0;
}

.closing-logos {
  display: flex;
  align-items: center;
  gap: 11px;
}

.closing-br-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.closing-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7f1d1d;
}

.closing-sub {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted, #64748b);
}

.closing-rule {
  height: 1px;
  background: var(--border, #e2e8f0);
  margin: 8px 0;
}

.closing-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e40af;
  margin-bottom: 4px;
}

.closing-thanks-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.closing-qa-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate, #334155);
}

.closing-team-list {
  gap: 4px !important;
}

.closing-team-list li {
  font-size: 11.5px !important;
  padding: 2px 0 !important;
}

.closing-utp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.closing-utp-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.closing-course {
  font-size: 10.5px;
  color: var(--muted, #64748b);
}
