/* ============================================================
   RCI · Propuesta MILI — Sistema de diseño
   Paleta: navy + naranja + crema. Minimalista corporativo.
   ============================================================ */

:root {
  --navy: #1B2E4B;
  --navy-deep: #0F1D33;
  --navy-soft: #324768;
  --orange: #E08B2E;
  --orange-deep: #B96E1B;
  --cream: #F5EEDC;
  --cream-soft: #FBF7EC;
  --paper: #FFFFFF;
  --ink: #14223A;
  --muted: #6B7484;
  --line: #E2DBC8;
  --line-strong: #C9C0A6;

  --slide-w: 210mm;
  --slide-h: 297mm;
  --pad-x: 18mm;
  --pad-y: 16mm;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  --shadow: 0 1px 2px rgba(20, 34, 58, 0.04), 0 24px 48px -16px rgba(20, 34, 58, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  /* Evita que iOS Safari auto-agrande el texto al hacer zoom-out,
     lo que rompía el slide-1 cortando el footer. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(224, 139, 46, 0.08), transparent 60%),
    linear-gradient(180deg, #ECE6D2 0%, #E2DAC0 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Toolbar
   ============================================================ */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(20, 34, 58, 0.06);
  animation: fade-down 0.5s var(--ease) both;
}
.toolbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  min-width: 0;
}
.toolbar__brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(20, 34, 58, 0.1);
  flex-shrink: 0;
}
.toolbar__brand-text { min-width: 0; }
.toolbar__brand strong {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbar__brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Menú dropdown
   ============================================================ */
.menu {
  position: relative;
  flex-shrink: 0;
}

.menu__trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(27, 46, 75, 0.4);
  transition: background .2s var(--ease), transform .12s var(--ease),
              box-shadow .2s var(--ease);
}
.menu__trigger svg { width: 16px; height: 16px; }
.menu__trigger:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(27, 46, 75, 0.5);
}
.menu__trigger:active { transform: translateY(0); }
.menu__lang-tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}
.menu__chev {
  transition: transform .2s var(--ease);
}
.menu[data-open="true"] .menu__chev { transform: rotate(180deg); }

.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid rgba(20, 34, 58, 0.08);
  box-shadow: 0 20px 50px -16px rgba(20, 34, 58, 0.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
}
.menu[data-open="true"] .menu__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.menu__item svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex-shrink: 0;
  transition: color .15s var(--ease);
}
.menu__item:hover {
  background: var(--cream-soft);
  color: var(--navy);
}
.menu__item:hover svg { color: var(--orange); }

.menu__sep {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.menu__group {
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.menu__langs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  padding: 3px;
}
.menu__lang-opt {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 6px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.menu__lang-opt:hover { background: rgba(27, 46, 75, 0.06); }
.menu__lang-opt[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}

/* ============================================================
   Deck — pila de slides A4
   ============================================================ */
.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 16px 80px;
}

.slide {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  break-after: page;
  page-break-after: always;
  color: var(--ink);
  animation: slide-in 0.7s var(--ease) both;
  transition: box-shadow .3s var(--ease);
}
.slide:nth-child(2) { animation-delay: 0.05s; }
.slide:nth-child(3) { animation-delay: 0.1s; }
.slide:nth-child(4) { animation-delay: 0.15s; }
.slide:nth-child(5) { animation-delay: 0.2s; }
.slide:hover {
  box-shadow:
    0 1px 2px rgba(20, 34, 58, 0.04),
    0 30px 60px -16px rgba(20, 34, 58, 0.25);
}

.slide__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
}

/* Botón flotante de impresión por hoja */
.slide__print {
  position: absolute;
  top: 12px;
  right: 12px;
  appearance: none;
  border: 1px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease),
              transform .25s var(--ease),
              background .2s var(--ease),
              color .2s var(--ease);
  z-index: 5;
}
.slide__print svg { width: 14px; height: 14px; }
.slide:hover .slide__print { opacity: 1; transform: translateY(0); }
.slide__print:hover { background: var(--navy); color: white; }

/* ============================================================
   Encabezados / tipografía compartida
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.slide__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.slide__header .title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
  margin: 8px 0 6px;
}
.slide__header .subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
}
.slide__mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(20, 34, 58, 0.1);
}

.lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 18px;
}

.slide__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-num {
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   SLIDE 1 — Cover
   ============================================================ */
.cover {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(224, 139, 46, 0.08), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(27, 46, 75, 0.05), transparent 60%),
    var(--paper);
}
.cover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cover__logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(20, 34, 58, 0.12);
}
.cover__brand { text-align: right; }
.cover__brand .eyebrow { display: block; }
.cover__year {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  display: block;
}
.cover__body { margin-top: 16mm; text-align: left; }
.display {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 18px 0 0;
}
.display em {
  font-style: italic;
  color: var(--orange);
  font-weight: 700;
}
.cover__divider {
  margin: 26px 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cover__divider span {
  display: block;
  height: 2px;
  width: 64px;
  background: var(--orange);
}
.cover__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.cover__lead {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.cover__sub {
  font-size: 15px;
  color: var(--muted);
  margin: 6px 0 0;
}
.cover__meta {
  margin-top: 10mm;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.meta-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-size: 12.5px;
  padding: 6px 0;
}
.meta-row__label {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--orange-deep);
  align-self: center;
}
.meta-row__value {
  color: var(--navy);
  font-weight: 500;
}
.cover__vision {
  margin-top: 6mm;
  padding: 16px 18px;
  background: var(--cream-soft);
  border-left: 3px solid var(--orange);
}
.cover__vision h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.cover__vision p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 8px;
}
.cover__vision p:last-child { margin-bottom: 0; }

/* ============================================================
   SLIDE 2 — Infraestructura
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--navy);
  color: white;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.stat:hover { transform: translateY(-2px); }
.stat::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 60px;
  height: 60px;
  background: var(--orange);
  opacity: 0.18;
  border-radius: 50%;
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--orange);
}
.stat__value span {
  font-size: 16px;
  margin-left: 2px;
  color: white;
  opacity: 0.85;
}
.stat__label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .25s var(--ease);
}
.feature:hover { background: var(--cream-soft); }
.feature__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--cream);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.feature:hover .feature__icon {
  background: var(--orange);
  border-color: var(--orange);
}
.feature:hover .feature__icon svg { color: white; }
.feature__icon svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
  transition: color .25s var(--ease);
}
.feature__body h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0 6px;
}
.feature__body p {
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}

/* ============================================================
   SLIDE 3 — Regional Infographic
   ============================================================ */
.federal { display: grid; gap: 16px; }

.badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.badge {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.badge:hover { transform: translateY(-2px); }
.badge--orange { background: var(--orange); }
.badge--ghost {
  background: var(--cream-soft);
  color: var(--navy);
  border: 1px solid var(--line-strong);
}
.badge--ghost .badge__num { color: var(--orange); }
.badge--ghost .badge__label { color: var(--navy); opacity: 0.75; }
.badge__num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}
.badge__label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  font-weight: 500;
  line-height: 1.35;
}

.region-board {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 18px 12px;
}
.region-board__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.region-board__head h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 0;
}

.regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.region {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.region:first-child { border-top: none; }
.region:hover { padding-left: 6px; }

.region__title { display: flex; flex-direction: column; gap: 1px; }
.region__title strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
}
.region__title span {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.region__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}
.region__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(224, 139, 46, 0.15);
  display: block;
  animation: dot-pulse 2.4s var(--ease) infinite;
}
.region__dots span:nth-child(2) { animation-delay: 0.15s; }
.region__dots span:nth-child(3) { animation-delay: 0.3s; }
.region__dots span:nth-child(4) { animation-delay: 0.45s; }
.region__dots span:nth-child(5) { animation-delay: 0.6s; }
.region__dots span:nth-child(6) { animation-delay: 0.75s; }

.region__count {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  min-width: 92px;
  text-align: right;
}

.region-board__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.region-board__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.region-board__legend .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.region-board__total {
  font-size: 11px;
  color: var(--navy);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.region-board__total strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--orange);
}

.info-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
}
.info-card__note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.info-card__note .ref { color: var(--orange-deep); font-weight: 600; font-style: normal; }

.def { margin: 0; display: grid; gap: 8px; }
.def > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
}
.def dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
}
.def dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

/* ============================================================
   SLIDE 4 — Volumen
   ============================================================ */
.provinces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.province {
  padding: 12px 12px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.province:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}
.province__tag {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.province h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 2px 0 4px;
  color: var(--navy);
  font-weight: 700;
}
.province p {
  font-size: 10.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.channel {
  padding: 14px 16px;
  border-left: 3px solid var(--navy);
  background: var(--cream-soft);
}
.channel:last-child { border-left-color: var(--orange); }
.channel__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin-bottom: 4px;
}
.channel p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.volume {
  margin-top: auto;
  padding: 18px 20px;
  background: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.volume__head { grid-column: 1 / -1; }
.volume__head .eyebrow { color: var(--orange); }
.volume__head h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 0;
  color: white;
}

.volume__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.volume__table th,
.volume__table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}
.volume__table thead th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  padding-bottom: 6px;
}
.volume__table td .muted {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10.5px;
}
.volume__table td.num,
.volume__table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.volume__table .total-row td {
  background: rgba(224, 139, 46, 0.15);
  color: var(--orange);
  border-bottom: none;
  font-size: 13px;
}

.goal {
  grid-row: 2;
  grid-column: 2;
  text-align: center;
  padding: 0 6px 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.goal__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.goal__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--orange);
  margin: 4px 0;
}
.goal__unit {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  opacity: 0.85;
}

/* ============================================================
   SLIDE 5 — Liderazgo
   ============================================================ */
.block { margin-bottom: 16px; }
.block__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.block__num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}
.block__head h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.block__sub {
  margin: -6px 0 12px 36px;
  font-size: 12px;
  color: var(--muted);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.logo-tile {
  padding: 16px 12px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: grid;
  place-items: center;
  min-height: 56px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.logo-tile:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}
.logo-tile:nth-child(4n+2) { background: white; }

.retail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.retail-tile {
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 62px;
  transition: transform .25s var(--ease),
              border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.retail-tile:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 6px 14px -8px rgba(20, 34, 58, 0.18);
}
.retail-tile img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .25s var(--ease);
}
.retail-tile:hover img {
  transform: scale(1.04);
}

.conclusion {
  margin-top: auto;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  background: var(--cream-soft);
}
.conclusion p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
  color: var(--ink);
}
.conclusion p em { color: var(--orange-deep); font-style: italic; }

.signature {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.signature__line {
  flex: 1;
  height: 1px;
  background: var(--navy);
  opacity: 0.4;
}
.signature__name { text-align: right; line-height: 1.3; }
.signature__name strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--navy);
}
.signature__name span {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   Contact links (cover meta + signature)
   ============================================================ */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
  transition: color .2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.contact-link:hover { color: var(--orange); }
.contact-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-row--contact .meta-row__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.meta-row--contact .meta-sep {
  color: var(--line-strong);
  font-weight: 400;
}

.signature__contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 11.5px;
  font-style: normal;
}
.signature__contact .contact-link svg { width: 13px; height: 13px; }

/* ============================================================
   Animaciones
   ============================================================ */
@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(224, 139, 46, 0.15); }
  50% { box-shadow: 0 0 0 5px rgba(224, 139, 46, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Modo de impresión individual
   ============================================================ */
body.print-only-target .slide:not(.printing) { display: none !important; }

/* ============================================================
   PRINT
   ============================================================ */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    min-height: 0 !important;
  }
  .toolbar,
  .slide__print { display: none !important; }
  .deck {
    display: block !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 210mm !important;
  }
  .slide {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-shadow: none !important;
    margin: 0 !important;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: hidden !important;
    animation: none !important;
    transform: none !important;
    zoom: 1 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .stat, .badge, .badge--orange, .retail-tile, .volume,
  .region__dots span, .feature__icon,
  .cover, .conclusion, .info-card, .channel,
  .province, .logo-tile, .region-board {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .region__dots span { animation: none !important; }
}

/* ============================================================
   Responsive (mobile + tablet) — JS calcula --mscale
   ============================================================ */
@media screen and (max-width: 900px) {
  body {
    background: linear-gradient(180deg, #ECE6D2 0%, #E2DAC0 100%);
  }
  .toolbar {
    padding: 10px 14px;
    gap: 10px;
  }
  .toolbar__brand { gap: 10px; }
  .toolbar__brand img { width: 40px; height: 40px; }
  .toolbar__brand strong { font-size: 13.5px; }
  .toolbar__brand span { font-size: 11px; }

  .menu__trigger {
    padding: 9px 10px 9px 10px;
    font-size: 12.5px;
    gap: 8px;
  }
  .menu__trigger svg { width: 15px; height: 15px; }
  .menu__lang-tag { font-size: 11px; padding: 2px 6px; }

  .menu__panel {
    min-width: 220px;
    right: 0;
  }

  .deck {
    padding: 12px 12px 28px;
    gap: 18px;
    align-items: flex-start;
  }

  /* Escalado real: zoom usa --mscale calculada por JS según viewport */
  .slide {
    zoom: var(--mscale, 0.5);
    width: var(--slide-w);
    margin: 0 auto;
  }

  /* El hover sobre slide aparece siempre en touch (no hay hover real) */
  .slide__print { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 560px) {
  .toolbar__brand-text { display: none; }
}

/* Fallback para navegadores sin soporte de zoom (Firefox antiguo) */
@supports not (zoom: 1) {
  @media screen and (max-width: 900px) {
    .slide {
      transform: scale(var(--mscale, 0.5));
      transform-origin: top left;
      margin-right: calc(-1 * var(--slide-w) * (1 - var(--mscale, 0.5)));
      margin-bottom: calc(-1 * var(--slide-h) * (1 - var(--mscale, 0.5)));
    }
  }
}
