/* ==========================================================================
   NABEP — Sistema de Diseño para Presentaciones Ejecutivas (16:9 · 1280×720)
   North American Blue Energy Partners
   ========================================================================== */

:root {
  /* Paleta Corporativa NABEP */
  --nabep-navy: #0D1F33;         /* Primario oscuro: títulos, banners, cabeceras (16.4:1 sobre blanco) */
  --nabep-navy-deep: #081524;    /* Fondo de escenario / contraste máximo */
  --nabep-blue: #0078B8;         /* Acento corporativo gráfico (bordes, barras, bloques, íconos) */
  --nabep-blue-ink: #00659E;     /* Acento tipográfico WCAG AA (6.20:1 sobre blanco, 5.83:1 sobre ice) */
  --nabep-blue-mid: #00659E;     /* Azul institucional de soporte (6.20:1 con texto blanco) */
  --nabep-cyan: #38BDF8;         /* Acento cian sobre fondos oscuros navy (8.60:1 sobre #0D1F33) */
  --nabep-teal: #64CFD6;         /* Cian del isotipo "BLUE" (uso gráfico/decorativo) */

  /* Superficies y Bordes */
  --surface-canvas: #FFFFFF;
  --surface-neutral: #F8FAFC;
  --surface-ice: #F0F9FF;
  --surface-ice-2: #E0F2FE;
  --border-neutral: #CBD5E1;
  --border-subtle: #E2E8F0;
  --border-accent: #0078B8;

  /* Tipografía e Inks (Todos WCAG AA >= 4.5:1 sobre canvas, neutral e ice) */
  --ink-primary: #0D1F33;
  --ink-strong: #1E293B;
  --ink-body: #334155;
  --ink-muted: #475569;
  --ink-caption: #475569;

  /* Estados semánticos WCAG AA (todos >= 5.0:1 con texto blanco) */
  --status-done: #00659E;
  --status-pending: #B45309;
  --status-empty: #CBD5E1;
  --status-ok: #0F766E;

  /* Familias tipográficas */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', 'Plus Jakarta Sans', monospace;

  /* Sistema de Motion Corporativo B2B (Sobrio · Oil & Gas) */
  --ease-corporate: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-slide: 380ms;
  --dur-reveal: 420ms;
  --dur-data: 760ms;
  --stagger-step: 70ms;

  /* Escala Tipográfica Modular — Raíz del Golden Ratio (√φ = 1.272 · Base 14px) */
  /* Cada 2 niveles cumple exactamente la proporción áurea φ = 1.618 */
  --type-xs: 12px;      /* Piso absoluto (9pt PPT): leyendas, pies, etiquetas compactas */
  --type-base: 14px;    /* Base cuerpo y listas (10.5pt PPT) */
  --type-md: 18px;      /* Títulos de tarjeta / subtítulos (14 × 1.272 = 17.8) */
  --type-lg: 23px;      /* KPIs / citas destacadas (14 × 1.618 = 22.65 · φ exacto) */
  --type-xl: 29px;      /* Título de lámina H2 (22.65 × 1.272 = 28.8) */
  --type-2xl: 37px;     /* KPI Hero / portada split (22.65 × 1.618 = 36.65 · φ exacto) */
  --type-3xl: 47px;     /* Portada clásica H1 (36.65 × 1.272 = 46.6) */

  /* Dimensiones de lámina */
  --slide-w: 1280px;
  --slide-h: 720px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Utilidad accesible para lectores de pantalla */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Foco visible de alto contraste (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
  outline: 2.5px solid var(--nabep-blue-ink);
  outline-offset: 2px;
}

.deck-controls :focus-visible,
.overview-card:focus-visible {
  outline: 2.5px solid var(--nabep-cyan);
  outline-offset: 2px;
}

/* Barra discreta de progreso de presentación */
.deck-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1001;
  pointer-events: none;
}

.deck-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nabep-blue) 0%, var(--nabep-cyan) 100%);
  transition: width 260ms var(--ease-corporate);
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--nabep-navy-deep);
  color: var(--ink-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* ==========================================================================
   ESCENARIO DE PRESENTACIÓN (Viewport + Escalado 16:9)
   ========================================================================== */

.deck-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #132A45 0%, #081524 72%);
}

.slide {
  position: absolute;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--surface-canvas);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 32px 46px 22px 46px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center center;
}

.slide.is-active {
  display: flex;
  animation: nabepSlideEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ==========================================================================
   TRANSICIONES CORPORATIVAS B2B (Sobrias, sector energético / Oil & Gas)
   ========================================================================== */

@keyframes nabepSlideEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes nabepFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nabepBarGrow {
  from { transform: scaleX(0); opacity: 0.35; }
  to   { transform: scaleX(1); opacity: 1; }
}

@keyframes nabepDrawDown {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes nabepDrawAcross {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Entrada sobria de encabezado y tarjetas al activar lámina */
.slide.is-active .slide-header,
.slide.is-active .cover-topbar {
  animation: nabepFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.03s both;
}

.slide.is-active .cover-hero > * {
  animation: nabepFadeUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slide.is-active .cover-hero > *:nth-child(1) { animation-delay: 0.06s; }
.slide.is-active .cover-hero > *:nth-child(2) { animation-delay: 0.12s; }
.slide.is-active .cover-hero > *:nth-child(3) { animation-delay: 0.20s; }
.slide.is-active .cover-hero > *:nth-child(4) { animation-delay: 0.28s; }

.slide.is-active .card,
.slide.is-active .numbered-item,
.slide.is-active .roadmap-card,
.slide.is-active .callout-bar,
.slide.is-active .mandate-banner,
.slide.is-active .nabep-table-wrap,
.slide.is-active .vc-top-bar,
.slide.is-active .vc-core-box,
.slide.is-active .vc-down-box,
.slide.is-active .vc-support-bar,
.slide.is-active .map-canvas-box,
.slide.is-active .map-list-panel {
  animation: nabepFadeUp var(--dur-reveal) var(--ease-corporate) both;
}

.slide.is-active .map-list-panel:first-child { animation-delay: 0.08s; }
.slide.is-active .map-canvas-box { animation-delay: 0.14s; }
.slide.is-active .map-list-panel:last-child { animation-delay: 0.20s; }
.slide.is-active .kpi-strip-5 > *:nth-child(1) { animation-delay: 0.24s; }
.slide.is-active .kpi-strip-5 > *:nth-child(2) { animation-delay: 0.30s; }
.slide.is-active .kpi-strip-5 > *:nth-child(3) { animation-delay: 0.36s; }
.slide.is-active .kpi-strip-5 > *:nth-child(4) { animation-delay: 0.42s; }
.slide.is-active .kpi-strip-5 > *:nth-child(5) { animation-delay: 0.48s; }

.slide.is-active .grid-3 > *:nth-child(1),
.slide.is-active .grid-2 > *:nth-child(1),
.slide.is-active .grid-5 > *:nth-child(1),
.slide.is-active .kpi-grid-4 > *:nth-child(1),
.slide.is-active .numbered-list > *:nth-child(1) { animation-delay: 0.08s; }

.slide.is-active .grid-3 > *:nth-child(2),
.slide.is-active .grid-2 > *:nth-child(2),
.slide.is-active .grid-5 > *:nth-child(2),
.slide.is-active .kpi-grid-4 > *:nth-child(2),
.slide.is-active .numbered-list > *:nth-child(2) { animation-delay: 0.15s; }

.slide.is-active .grid-3 > *:nth-child(3),
.slide.is-active .grid-5 > *:nth-child(3),
.slide.is-active .kpi-grid-4 > *:nth-child(3),
.slide.is-active .numbered-list > *:nth-child(3) { animation-delay: 0.22s; }

.slide.is-active .grid-2-centered > *:nth-child(1),
.slide.is-active .grid-5 > *:nth-child(4),
.slide.is-active .kpi-grid-4 > *:nth-child(4),
.slide.is-active .numbered-list > *:nth-child(4) { animation-delay: 0.28s; }

.slide.is-active .grid-2-centered > *:nth-child(2),
.slide.is-active .grid-5 > *:nth-child(5),
.slide.is-active .numbered-list > *:nth-child(5) { animation-delay: 0.35s; }

.slide.is-active .levels-row > *:nth-child(1) { animation-delay: 0.28s; }
.slide.is-active .levels-row > *:nth-child(3) { animation-delay: 0.38s; }
.slide.is-active .levels-row > *:nth-child(5) { animation-delay: 0.48s; }
.slide.is-active .levels-row > *:nth-child(7) { animation-delay: 0.58s; }

.slide.is-active .roadmap-row > *:nth-child(1) { animation-delay: 0.36s; }
.slide.is-active .roadmap-row > *:nth-child(3) { animation-delay: 0.46s; }
.slide.is-active .roadmap-row > *:nth-child(5) { animation-delay: 0.56s; }

.slide.is-active .callout-bar { animation-delay: 0.36s; }

/* Animación fluida de barras apiladas (Lámina 4 · Diagnóstico) */
.bar-track {
  position: relative;
}

.slide.is-active .bar-track .bar-seg {
  transform-origin: left center;
  animation: nabepBarGrow 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.slide.is-active .bar-group:nth-of-type(1) .bar-row:nth-of-type(1) .bar-seg { animation-delay: 0.16s; }
.slide.is-active .bar-group:nth-of-type(1) .bar-row:nth-of-type(2) .bar-seg { animation-delay: 0.28s; }
.slide.is-active .bar-group:nth-of-type(2) .bar-row:nth-of-type(1) .bar-seg { animation-delay: 0.40s; }
.slide.is-active .bar-group:nth-of-type(2) .bar-row:nth-of-type(2) .bar-seg { animation-delay: 0.52s; }
.slide.is-active .bar-group:nth-of-type(3) .bar-row:nth-of-type(1) .bar-seg { animation-delay: 0.64s; }
.slide.is-active .bar-group:nth-of-type(3) .bar-row:nth-of-type(2) .bar-seg { animation-delay: 0.76s; }

/* ==========================================================================
   ENSAMBLAJE PROGRESIVO DE ORGANIGRAMAS (Láminas 14–17)
   ========================================================================== */

.org-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.org-staff-side {
  position: absolute;
  right: 88px;
  width: 280px;
  border: 1.25px solid var(--nabep-blue);
  background: var(--surface-ice);
  border-radius: 4px;
  padding: 9px 12px;
  text-align: center;
}

.org-staff-side::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--nabep-navy);
  transform-origin: left center;
}

.org-staff-side h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-navy);
  text-transform: uppercase;
  line-height: 1.22;
}

.org-staff-side .org-counts {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-blue-ink);
  margin-top: 3px;
}

.slide.layout-orgchart.is-active .org-control-table {
  animation: nabepFadeUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.slide.layout-orgchart.is-active .org-top-node {
  animation: nabepFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.slide.layout-orgchart.is-active .org-staff-side {
  animation: nabepFadeUp 0.40s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.slide.layout-orgchart.is-active .org-staff-side::before {
  animation: nabepDrawAcross 0.26s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.slide.layout-orgchart.is-active .org-stem-sm {
  transform-origin: top center;
  animation: nabepDrawDown 0.22s ease-out 0.28s both;
}

.slide.layout-orgchart.is-active .org-summary-bar {
  animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.slide.layout-orgchart.is-active .org-trunk {
  transform-origin: top center;
  animation: nabepDrawDown 0.24s ease-out 0.48s both;
}

.slide.layout-orgchart.is-active .org-branch::before {
  transform-origin: center center;
  animation: nabepDrawAcross 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.56s both;
}

.slide.layout-orgchart.is-active .org-branch::after {
  transform-origin: top center;
  animation: nabepDrawDown 0.20s ease-out 0.68s both;
}

.slide.layout-orgchart.is-active .org-branch:nth-child(1) .org-unit-head { animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both; }
.slide.layout-orgchart.is-active .org-branch:nth-child(2) .org-unit-head { animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.80s both; }
.slide.layout-orgchart.is-active .org-branch:nth-child(3) .org-unit-head { animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.88s both; }
.slide.layout-orgchart.is-active .org-branch:nth-child(4) .org-unit-head { animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.96s both; }

.slide.layout-orgchart.is-active .org-branch .org-staff-pill {
  animation: nabepFadeUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.94s both;
}

.slide.layout-orgchart.is-active .org-branch .org-subcols,
.slide.layout-orgchart.is-active .org-branch .org-role-box {
  animation: nabepFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(1),
.slide.layout-orgchart.is-active .org-branch .org-subcols { animation-delay: 1.00s; }
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(2) { animation-delay: 1.08s; }
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(3) { animation-delay: 1.16s; }
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(4) { animation-delay: 1.24s; }
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(5) { animation-delay: 1.32s; }
.slide.layout-orgchart.is-active .org-branch .org-role-box:nth-of-type(6) { animation-delay: 1.40s; }

/* ==========================================================================
   MAPA INTERACTIVO VECTORIAL DE COBERTURA (Lámina 12 · Venezuela Completa)
   ========================================================================== */

.map-dashboard {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.map-stage-row {
  display: grid;
  grid-template-columns: 208px 1fr 208px;
  gap: 12px;
  min-height: 0;
  align-items: stretch;
}

.map-list-panel {
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.map-list-head {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nabep-navy);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--border-neutral);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.map-cpph-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  justify-content: center;
}

.map-cpph-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2.5px 5px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.map-cpph-item .cpph-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.map-cpph-item[data-type="brownfield"] .cpph-num { background: var(--nabep-blue-ink); }
.map-cpph-item[data-type="greenfield"] .cpph-num { background: var(--status-ok); }

.map-cpph-item:hover,
.map-cpph-item.is-hot {
  background: var(--nabep-navy);
  color: #FFFFFF;
  transform: translateX(2px);
}

.map-cpph-item:hover .cpph-num,
.map-cpph-item.is-hot .cpph-num {
  background: var(--nabep-cyan);
  color: var(--nabep-navy);
}

.map-canvas-box {
  position: relative;
  background: #EAF2F8;
  border: 1.5px solid #94A3B8;
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 0;
}

.map-zoom-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #94A3B8;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(13, 31, 51, 0.14);
}

.map-zoom-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--nabep-navy);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
  white-space: nowrap;
}

.map-zoom-btn:hover {
  background: var(--surface-ice-2);
  color: var(--nabep-navy);
}

.map-zoom-btn.is-active,
.map-zoom-btn[aria-pressed="true"] {
  background: var(--nabep-navy);
  color: #FFFFFF;
}

.map-canvas-box svg {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: block;
}

.cpph-pin {
  cursor: pointer;
}

.cpph-pin circle.pin-bg {
  transition: fill 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease;
}

.cpph-pin:hover circle.pin-bg,
.cpph-pin.is-hot circle.pin-bg {
  fill: #38BDF8 !important;
  stroke: #0D1F33 !important;
  stroke-width: 5.5 !important;
}

.cpph-pin:hover text,
.cpph-pin.is-hot text {
  fill: #0D1F33 !important;
}

.map-tooltip {
  position: absolute;
  bottom: 42px;
  left: 14px;
  z-index: 20;
  background: rgba(13, 31, 51, 0.96);
  color: #FFFFFF;
  border: 1.25px solid rgba(56, 189, 248, 0.65);
  border-radius: 8px;
  padding: 9px 13px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(8, 21, 36, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  max-width: 260px;
}

.map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip .tt-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nabep-cyan);
}

.map-tooltip .tt-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.map-macro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  letter-spacing: -0.015em;
  background: #FFFFFF;
  border-top: 1px solid var(--border-neutral);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.map-macro-strip strong {
  color: var(--nabep-navy);
  font-weight: 800;
}

.map-legend-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.map-legend-mini span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-legend-mini i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .slide.is-active,
  .slide.is-active * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   MODO VISTA GENERAL (Tecla G)
   ========================================================================== */

body.overview-mode {
  overflow-y: auto;
}

body.overview-mode .deck-stage {
  height: auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding: 72px 32px 48px 32px;
  align-items: start;
  justify-items: center;
  overflow: visible;
}

.overview-card {
  appearance: none;
  padding: 0;
  text-align: left;
  width: 360px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: #10243A;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.overview-card:hover {
  transform: translateY(-3px);
  border-color: var(--nabep-cyan);
}

.overview-card.is-current {
  border-color: var(--nabep-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.overview-thumb {
  position: relative;
  width: 360px;
  height: 202.5px;
  overflow: hidden;
  background: #fff;
}

.overview-thumb .slide-clone {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  transform: scale(0.28125);
  transform-origin: top left;
  pointer-events: none;
  display: flex !important;
  box-shadow: none;
}

.overview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #E2E8F0;
  font-family: var(--font-display);
  font-size: 12px;
}

.overview-meta .ov-num {
  color: var(--nabep-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.overview-meta .ov-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ==========================================================================
   BARRA DE CONTROLES FLOTANTE (Oculta al imprimir)
   ========================================================================== */

.deck-controls {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(13, 31, 51, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #E2E8F0;
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  opacity: 0.84;
  transition: opacity 0.2s ease;
}

.deck-controls:hover,
.deck-controls:focus-within,
body.overview-mode .deck-controls {
  opacity: 1;
}

body.overview-mode .deck-controls {
  top: 14px;
  bottom: auto;
}

.deck-controls button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: #E2E8F0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.deck-controls button:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #FFFFFF;
}

.deck-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.deck-controls .ctrl-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 2px;
}

.deck-controls .ctrl-counter {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--nabep-cyan);
  min-width: 56px;
  text-align: center;
}

/* ==========================================================================
   ANATOMÍA COMÚN DE CADA LÁMINA
   ========================================================================== */

.slide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.slide-header-text {
  min-width: 0;
}

.slide-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nabep-blue-ink);
  margin-bottom: 4px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: var(--type-xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--nabep-navy);
}

.slide-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.slide-footer {
  margin-top: 10px;
  padding: 5.5px 12px;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
  background: var(--surface-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--type-xs);
  line-height: 1.32;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.slide-footer strong {
  color: var(--nabep-navy);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slide-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--nabep-blue);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   COMPONENTES REUTILIZABLES (Tarjetas, Banners, Íconos, Badges)
   ========================================================================== */

.card {
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.card--white {
  background: var(--surface-canvas);
  border-color: var(--border-neutral);
}

.card--accent {
  background: var(--surface-ice);
  border: 1.25px solid var(--border-accent);
}

.card--dark {
  background: var(--nabep-navy);
  border: 1px solid var(--nabep-navy);
  color: #FFFFFF;
}

.card--blue {
  background: var(--nabep-blue);
  border: 1px solid var(--nabep-blue);
  color: #FFFFFF;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nabep-blue);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--type-md);
  font-weight: 800;
  color: var(--nabep-navy);
  line-height: 1.25;
}

.card--dark .card-title,
.card--blue .card-title {
  color: #FFFFFF;
}

.card-text {
  font-size: var(--type-base);
  line-height: 1.46;
  color: var(--ink-body);
}

.card--dark .card-text,
.card--blue .card-text {
  color: #E2E8F0;
}

/* Banner ejecutivo oscuro (Conclusión / Punto Crítico / Decisión Solicitada) */
.callout-bar {
  background: var(--nabep-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  line-height: 1.42;
  flex-shrink: 0;
}

.callout-bar .callout-label {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--nabep-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout-bar .callout-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--nabep-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Etiquetas KPI */
.kpi-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.card--accent .kpi-label {
  color: var(--nabep-blue-ink);
}

.card--dark .kpi-label {
  color: var(--nabep-cyan);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--nabep-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card--dark .kpi-value {
  color: #FFFFFF;
}

.kpi-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
  margin-top: 6px;
}

.card--dark .kpi-sub {
  color: #CBD5E1;
}

/* ==========================================================================
   L01 · PORTADA EJECUTIVA
   ========================================================================== */

.layout-cover {
  padding-top: 28px;
}

.cover-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--nabep-navy);
  margin-bottom: 44px;
}

.cover-topbar .brand-logo {
  height: 50px;
}

.cover-instance {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nabep-blue);
}

.cover-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-rule {
  width: 68px;
  height: 5px;
  border-radius: 3px;
  background: var(--nabep-blue);
  margin-bottom: 20px;
}

.cover-title {
  font-family: var(--font-display);
  font-size: var(--type-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--nabep-navy);
  max-width: 1080px;
}

.cover-subtitle {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 960px;
}

.cover-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.cover-kpis .card {
  padding: 20px 22px;
  justify-content: center;
  min-height: 112px;
}

.cover-kpis .kpi-label {
  color: var(--nabep-blue-ink);
}

.cover-kpis .kpi-value {
  font-size: 21px;
}

/* ==========================================================================
   L02 · GRID DE PILARES (3+2 centrado o 3 columnas)
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2-centered {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 18px;
}

.layout-cards-grid .card {
  min-height: 168px;
  justify-content: flex-start;
  padding: 20px 22px;
}

/* ==========================================================================
   L03 · DOS COLUMNAS (Misión/Visión, Relaciones, Cierre)
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  flex: 1;
  min-height: 0;
}

.statement-card {
  padding: 28px 30px;
  justify-content: center;
}

.statement-card .card-head {
  margin-bottom: 18px;
}

.statement-card .card-title {
  font-size: 22px;
}

.statement-card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nabep-blue);
  color: #FFFFFF;
}

.statement-card .card-icon svg {
  width: 20px;
  height: 20px;
}

.statement-quote {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink-strong);
}

/* Lista estructurada dentro de tarjeta */
.structured-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 6px;
}

.structured-list li {
  font-size: var(--type-base);
  line-height: 1.45;
  color: var(--ink-body);
}

.structured-list li strong {
  color: var(--nabep-navy);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   L04 · DIAGNÓSTICO (Gráfico de Barras Apiladas + Panel KPIs)
   ========================================================================== */

.split-diagnostic {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.chart-card {
  padding: 20px 22px;
  justify-content: space-between;
}

.chart-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.chart-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--nabep-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.layout-two-col .grid-2 .card {
  padding: 26px 28px;
  justify-content: center;
}

.layout-two-col .structured-list {
  gap: 16px;
}

.layout-two-col .structured-list li {
  font-size: 14.5px;
  line-height: 1.5;
}

.bar-group {
  margin-bottom: 17px;
}

.bar-group-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--nabep-navy);
  margin-bottom: 5px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 165px;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-body);
}

.bar-track {
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  background: var(--status-empty);
}

.bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  padding: 0 6px;
}

.bar-seg--done { background: var(--status-done); }
.bar-seg--pending { background: var(--status-pending); }
.bar-seg--empty { background: var(--status-empty); color: var(--nabep-navy); }

.bar-note {
  font-size: 12px;
  color: var(--ink-muted);
}

.chart-summary-box {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-sm);
  background: var(--surface-canvas);
  font-size: 12px;
  line-height: 1.42;
  color: var(--ink-body);
}

.chart-summary-box strong {
  color: var(--nabep-navy);
}

.kpi-stack-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-stack-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nabep-blue);
}

.kpi-stack-col .card {
  flex: 1;
  justify-content: center;
  padding: 14px 18px;
}

/* ==========================================================================
   L05 · LISTA NUMERADA EJECUTIVA (01..05)
   ========================================================================== */

.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.numbered-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
}

.numbered-item--accent {
  background: var(--surface-ice);
  border: 1.25px solid var(--border-accent);
}

.num-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.num-badge--blue { background: var(--nabep-blue); }
.num-badge--navy { background: var(--nabep-navy); }

.numbered-copy {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-body);
}

.numbered-copy strong {
  color: var(--nabep-navy);
  font-family: var(--font-display);
  font-weight: 800;
}

/* ==========================================================================
   L06 · CADENA DE VALOR / ARQUITECTURA DE PROCESOS
   ========================================================================== */

.vc-top-bar {
  background: var(--nabep-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
}

.vc-top-bar .vc-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--nabep-cyan);
  text-transform: uppercase;
}

.vc-top-bar .vc-plan {
  font-size: 14px;
  font-weight: 700;
}

.vc-middle {
  display: grid;
  grid-template-columns: 1.48fr 22px 1fr;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.vc-core-box {
  align-self: center;
  background: var(--surface-ice);
  border: 1.5px solid var(--nabep-blue);
  border-radius: var(--radius-lg);
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vc-box-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nabep-blue-ink);
}

.vc-steps {
  display: grid;
  grid-template-columns: 1fr 14px 1fr 14px 1fr 14px 1fr;
  align-items: stretch;
  gap: 4px;
}

.vc-step {
  background: var(--surface-canvas);
  border: 1px solid var(--nabep-blue);
  border-radius: var(--radius-md);
  padding: 13px 11px;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.vc-step--solid {
  background: var(--nabep-blue-ink);
  color: #FFFFFF;
  border-color: var(--nabep-blue-ink);
}

.vc-step-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-blue-ink);
  text-transform: uppercase;
}

.vc-step--solid .vc-step-kicker {
  color: #E0F2FE;
}

.vc-step-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--nabep-navy);
}

.vc-step--solid .vc-step-title {
  color: #FFFFFF;
}

.vc-step-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-body);
}

.vc-step--solid .vc-step-desc {
  color: #FFFFFF;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nabep-blue-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.flow-arrow--navy {
  color: var(--nabep-navy);
}

.vc-down-box {
  height: 100%;
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-down-box .vc-box-label {
  color: var(--nabep-navy);
}

.vc-down-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-down-item {
  flex: 1;
  background: var(--surface-canvas);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.vc-down-item--dark {
  background: var(--nabep-navy);
  border-color: var(--nabep-navy);
  color: #FFFFFF;
}

.vc-down-item h3,
.vc-down-item h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--nabep-navy);
}

.vc-down-item--dark h3,
.vc-down-item--dark h4 {
  color: var(--nabep-cyan);
}

.vc-down-item p {
  font-size: 12px;
  line-height: 1.38;
  color: var(--ink-body);
}

.vc-down-item--dark p {
  color: #E2E8F0;
}

.vc-support-bar {
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}

.vc-support-bar strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--nabep-navy);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   L07 · MANDATO + 5 PILARES + HOJA DE RUTA 3 FASES
   ========================================================================== */

.mandate-banner {
  background: var(--nabep-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 15px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

.layout-mandate-roadmap .slide-body {
  justify-content: space-between;
  padding: 6px 0;
  gap: 18px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.grid-5 .card {
  padding: 14px 13px;
  min-height: 176px;
  justify-content: flex-start;
  gap: 10px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--nabep-blue-ink);
  line-height: 1.25;
}

.roadmap-row {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: stretch;
  gap: 6px;
}

.roadmap-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1.25px solid var(--nabep-blue);
  background: var(--surface-ice);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-card--solid {
  background: var(--nabep-blue-ink);
  border-color: var(--nabep-blue-ink);
  color: #FFFFFF;
}

.roadmap-phase {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nabep-blue-ink);
}

.roadmap-card--solid .roadmap-phase {
  color: #E0F2FE;
}

.roadmap-desc {
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--ink-strong);
}

.roadmap-card--solid .roadmap-desc {
  color: #FFFFFF;
}

/* ==========================================================================
   L08 · TABLA COMPARATIVA EJECUTIVA
   ========================================================================== */

.nabep-table-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
}

.nabep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nabep-table thead th {
  background: var(--nabep-navy);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  padding: 18px 20px;
}

.nabep-table thead th.th-accent {
  color: var(--nabep-cyan);
}

.nabep-table tbody td {
  padding: 18px 20px;
  line-height: 1.45;
  color: var(--ink-body);
  border-top: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.nabep-table tbody tr:nth-child(odd) td {
  background: var(--surface-neutral);
}

.nabep-table tbody tr:nth-child(even) td {
  background: var(--surface-canvas);
}

.nabep-table tbody tr.tr-highlight td {
  background: var(--surface-ice);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--nabep-navy);
}

.nabep-table tbody td.td-dim {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--nabep-navy);
  width: 22%;
}

.nabep-table tbody tr.tr-highlight td.td-accent {
  color: var(--nabep-blue-ink);
}

/* ==========================================================================
   L09 · 4 KPIs + FLUJO DE MADUREZ EN 4 NIVELES
   ========================================================================== */

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-stat-card {
  text-align: center;
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
  min-height: 146px;
}

.kpi-big-num {
  font-family: var(--font-display);
  font-size: var(--type-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--nabep-navy);
  font-variant-numeric: tabular-nums;
}

.card--accent .kpi-big-num {
  color: var(--nabep-blue);
}

.kpi-stat-label {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--nabep-blue);
}

.card--accent .kpi-stat-label {
  color: var(--nabep-navy);
}

.levels-row {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr;
  align-items: stretch;
  gap: 4px;
  margin-top: 10px;
}

.level-card {
  padding: 18px 18px;
  min-height: 158px;
  justify-content: flex-start;
  gap: 6px;
}

.level-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nabep-blue-ink);
}

.card--dark .level-tag {
  color: var(--nabep-cyan);
}

/* ==========================================================================
   L10 · FRENTES PARALELOS CON SUB-TARJETAS ANIDADAS
   ========================================================================== */

.nested-panel {
  padding: 20px 22px;
  gap: 12px;
  justify-content: flex-start;
}

.nested-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.nested-item {
  flex: 1;
  background: var(--surface-canvas);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-body);
}

.card--accent .nested-item {
  border-color: #BAE6FD;
}

.nested-item strong {
  color: var(--nabep-navy);
  font-family: var(--font-display);
}

.nested-item--dark {
  background: var(--nabep-navy);
  border-color: var(--nabep-navy) !important;
  color: #FFFFFF;
}

.nested-item--dark strong {
  color: var(--nabep-cyan);
}

/* ==========================================================================
   L11 · ORGANIGRAMA ESTRUCTURAL + TABLA CONTROL DE POSICIONES
   ========================================================================== */

.layout-orgchart {
  padding: 18px 32px 14px 32px;
}

.org-header {
  display: grid;
  grid-template-columns: 190px 1fr 318px;
  align-items: start;
  gap: 14px;
  margin-bottom: 8px;
}

.org-header .brand-logo {
  height: 36px;
  margin-top: 2px;
}

.org-title-block {
  text-align: center;
  padding-top: 2px;
}

.org-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--nabep-navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.org-subtitle {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-top: 3px;
}

.org-control-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid var(--nabep-navy);
  background: var(--surface-canvas);
}

.org-control-table th {
  background: #DCE6F0;
  color: var(--nabep-navy);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 2.5px 5px;
  border: 1px solid #94A3B8;
  text-align: center;
}

.org-control-table th:first-child {
  text-align: left;
}

.org-control-table td {
  padding: 2px 5px;
  border: 1px solid #CBD5E1;
  color: var(--ink-strong);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.org-control-table td:first-child {
  text-align: left;
}

.org-control-table tr.org-total td {
  background: #E2EBF3;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--nabep-navy);
}

.org-tree {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-top-node {
  width: 340px;
  border: 1.5px solid var(--nabep-navy);
  border-radius: var(--radius-sm);
  background: var(--surface-canvas);
  padding: 8px 14px;
  text-align: center;
}

.org-top-node h3 {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--nabep-navy);
  text-transform: uppercase;
}

.org-top-node p {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.org-stem-sm {
  width: 2px;
  height: 10px;
  background: var(--nabep-navy);
}

.org-summary-bar {
  background: var(--nabep-navy);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 28px;
  border-radius: 4px;
  text-align: center;
}

.org-trunk {
  width: 2px;
  height: 16px;
  background: var(--nabep-navy);
}

/* Conectores ortogonales perfectos para 3 o 4 ramas */
.org-branches {
  width: 100%;
  display: grid;
  gap: 14px;
  position: relative;
  padding-top: 14px;
  flex: 1;
  min-height: 0;
}

.org-branches--3 {
  grid-template-columns: 1.25fr 1.25fr 0.9fr;
}

.org-branches--4 {
  grid-template-columns: repeat(4, 1fr);
}

.org-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}

/* Línea horizontal superior que une centros de primera a última rama */
.org-branch::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -7px;
  right: -7px;
  height: 2px;
  background: var(--nabep-navy);
}

.org-branch:first-child::before {
  left: 50%;
}

.org-branch:last-child::before {
  right: 50%;
}

/* Bajante vertical desde la barra horizontal al encabezado de la rama */
.org-branch::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--nabep-navy);
  transform: translateX(-50%);
}

.org-unit-head {
  border: 1.25px solid var(--nabep-navy);
  border-radius: 4px;
  background: var(--surface-canvas);
  padding: 6px 8px;
  text-align: center;
}

.org-unit-head--accent {
  background: var(--surface-ice);
  border-color: var(--nabep-blue);
}

.org-unit-head h3,
.org-unit-head h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-navy);
  text-transform: uppercase;
  line-height: 1.2;
}

.org-unit-head .org-counts {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-blue-ink);
  margin-top: 3px;
}

.org-staff-pill {
  border: 1.25px solid var(--nabep-blue);
  background: var(--surface-ice);
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-navy);
}

.org-subcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.org-subbox {
  border: 1px solid var(--nabep-navy);
  border-radius: 4px;
  background: var(--surface-canvas);
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.38;
  color: var(--ink-strong);
}

.org-subbox h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-blue);
  margin-bottom: 5px;
}

.org-role-box {
  flex: 1;
  border: 1px solid var(--nabep-navy);
  border-radius: 4px;
  background: var(--surface-canvas);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.32;
  color: var(--ink-body);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.org-role-box--accent {
  background: var(--surface-ice);
  border-color: var(--nabep-blue);
}

.org-role-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--nabep-navy);
  margin-bottom: 2px;
}

/* ==========================================================================
   L12 · VISUAL PRINCIPAL + TIRA INFERIOR DE 5 KPIs
   ========================================================================== */

.visual-frame {
  flex: 1;
  min-height: 0;
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.visual-frame img,
.visual-frame svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kpi-strip-5 {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

.kpi-strip-5 .card {
  padding: 11px 14px;
  justify-content: space-between;
  min-height: 102px;
}

.region-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.region-dot--navy { background: var(--nabep-navy); }
.region-dot--blue { background: var(--nabep-blue); }



/* ==========================================================================
   COMPONENTES B2B SECTOR ENERGÉTICO / OIL & GAS (Librería Extendida NABEP)
   ========================================================================== */

/* Indicadores Delta / Tendencia para KPIs ejecutivos (WCAG AA) */
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
  width: fit-content;
  margin-top: 6px;
}

.kpi-delta--up   { background: #CCFBF1; color: #0F5132; }
.kpi-delta--down { background: #FEE2E2; color: #991B1B; }
.kpi-delta--flat { background: #E2E8F0; color: var(--nabep-navy); }
.card--dark .kpi-delta--up { background: rgba(56, 189, 248, 0.18); color: var(--nabep-cyan); }

/* Semáforos accesibles (forma + etiqueta, nunca solo color) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--type-xs);
  font-weight: 800;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill--ok   { background: #CCFBF1; color: #0F5132; }
.status-pill--warn { background: #FEF3C7; color: #92400E; }
.status-pill--crit { background: #FEE2E2; color: #991B1B; }
.status-pill--info { background: #E0F2FE; color: var(--nabep-blue-ink); }

/* Pipeline Stage-Gate Upstream (FEL-1 -> FEL-2 -> FEL-3 -> FID -> Ejecución) */
.stage-gate {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
}

.sg-step {
  background: var(--surface-neutral);
  border: 1.5px solid var(--border-neutral);
  border-top: 4px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-step--done {
  background: var(--surface-ice);
  border-color: #BAE6FD;
  border-top-color: var(--status-ok);
}

.sg-step--active {
  background: var(--nabep-navy);
  border-color: var(--nabep-navy);
  border-top-color: var(--nabep-cyan);
  color: #FFFFFF;
}

.sg-code {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nabep-blue-ink);
  text-transform: uppercase;
}

.sg-step--done .sg-code   { color: var(--status-ok); }
.sg-step--active .sg-code { color: var(--nabep-cyan); }

.sg-title {
  font-family: var(--font-display);
  font-size: var(--type-base);
  font-weight: 800;
  color: var(--nabep-navy);
  line-height: 1.25;
}

.sg-step--active .sg-title { color: #FFFFFF; }

.sg-desc {
  font-size: var(--type-xs);
  line-height: 1.38;
  color: var(--ink-muted);
}

.sg-step--active .sg-desc { color: #CBD5E1; }

/* Ficha Técnica de Activo / Bloque Petrolero (Asset Card) */
.asset-card {
  background: var(--surface-canvas);
  border: 1px solid var(--border-neutral);
  border-left: 5px solid var(--nabep-blue-ink);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-card--greenfield {
  border-left-color: var(--status-ok);
}

.asset-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asset-title {
  font-family: var(--font-display);
  font-size: var(--type-md);
  font-weight: 800;
  color: var(--nabep-navy);
  line-height: 1.2;
}

.asset-sub {
  font-size: var(--type-xs);
  color: var(--ink-muted);
  margin-top: 2px;
}

.asset-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-neutral);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.asset-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--nabep-navy);
  font-variant-numeric: tabular-nums;
}

.asset-metric span {
  display: block;
  font-size: var(--type-xs);
  color: var(--ink-muted);
}

/* Comparativa Antes vs Después / Optimización CAPEX-OPEX */
.delta-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.delta-panel {
  background: var(--surface-neutral);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delta-panel--after {
  background: var(--surface-ice);
  border-color: var(--nabep-blue);
}

.delta-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--nabep-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  min-width: 128px;
}

.delta-bridge strong {
  font-family: var(--font-display);
  font-size: var(--type-lg);
  font-weight: 800;
  color: var(--nabep-cyan);
  line-height: 1.1;
}

.delta-bridge span {
  font-size: var(--type-xs);
  color: #E2E8F0;
}

/* Panel de Decisión de Junta Directiva (Board Approval Box) */
.board-decision-box {
  background: linear-gradient(135deg, #0D1F33 0%, #102B46 70%, #00659E 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: center;
}

.board-decision-kicker {
  font-family: var(--font-display);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nabep-cyan);
  margin-bottom: 6px;
}

.board-decision-title {
  font-family: var(--font-display);
  font-size: var(--type-lg);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
}

.board-decision-copy {
  font-size: var(--type-base);
  line-height: 1.48;
  color: #E2E8F0;
  margin-top: 8px;
}

.board-decision-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.board-decision-kpi {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.board-decision-kpi span {
  display: block;
  font-size: var(--type-xs);
  font-weight: 700;
  color: var(--nabep-cyan);
}

.board-decision-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--type-lg);
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

/* ==========================================================================
   IMPRESIÓN Y EXPORTACIÓN A PDF (1 lámina = 1 página 16:9 exacta)
   ========================================================================== */

@page {
  size: 1280px 720px;
  margin: 0;
}

@media print {
  html, body {
    width: 1280px;
    height: auto;
    background: #FFFFFF !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .deck-controls,
  .deck-progress,
  .overview-card {
    display: none !important;
  }

  .deck-stage {
    display: block !important;
    width: 1280px !important;
    height: auto !important;
    background: #FFFFFF !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .slide {
    position: relative !important;
    display: flex !important;
    transform: none !important;
    box-shadow: none !important;
    width: 1280px !important;
    height: 720px !important;
    page-break-after: always;
    break-after: page;
    animation: none !important;
  }

  .slide *,
  .slide *::before,
  .slide *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .map-tooltip,
  .map-zoom-bar {
    display: none !important;
  }

  .slide:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }
}
