/* ==========================================================================
   ALCALDÍA 2030 — PRESENTACIÓN FINAL
   Señalética cívica aplicada a una presentación navegable.
   ========================================================================== */

:root {
    color-scheme: light;

    --ink: #15171C;
    --ink-soft: #2A2E36;
    --paper: #F2F2EE;
    --surface: #FFFFFF;
    --surface-2: #E9EAE5;
    --line: #D6D8D2;
    --line-strong: #B9BDB4;

    --text: #15171C;
    --muted: #5B6159;
    --muted-2: #6B7169;
    --on-ink: #F4F4F0;
    --on-ink-muted: #AEB3AA;

    --signal: #C13D19;
    --signal-ink: #B93A1B;
    --signal-line: #D9471F;

    --eco: #B8871F;
    --soc: #B0473A;
    --env: #2F6B4F;
    --bud: #2B5F8A;
    --ok: #2F6B4F;
    --critical: #B3261E;

    --a: #A23B2A;
    --c: #8A6412;
    --b: #2F6B4F;

    --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-narrow: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;

    --radius: 2px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 58px;
    --footer-h: 62px;
}

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

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, blockquote, figure {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 14px;
    background: var(--ink);
    color: #FFFFFF;
    font-family: var(--font-narrow);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ==========================================================================
   ESTRUCTURA
   ========================================================================== */

.pres {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 480px;
}

.pres-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    padding: 10px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    grid-template-columns: repeat(4, 3px);
    gap: 2px;
    align-items: end;
    height: 24px;
    flex: 0 0 auto;
}

.brand-mark span {
    display: block;
    width: 3px;
    background: var(--eco);
}

.brand-mark span:nth-child(1) { height: 11px; background: var(--eco); }
.brand-mark span:nth-child(2) { height: 17px; background: var(--soc); }
.brand-mark span:nth-child(3) { height: 24px; background: var(--env); }
.brand-mark span:nth-child(4) { height: 14px; background: var(--bud); }

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    white-space: nowrap;
}

.brand-sub {
    margin-top: 3px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.header-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-left: auto;
}

.header-section {
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.header-counter {
    font-family: var(--font-narrow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--line);
}

.progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--signal-line);
    transition: width .35s var(--ease);
}

.pres-body {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 28px;
    flex: 1 1 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 0;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   ÍNDICE
   ========================================================================== */

.index {
    min-height: 0;
    padding: 22px 16px 22px 0;
    overflow-y: auto;
    border-right: 1px solid var(--line);
}

.index__head {
    margin-bottom: 10px;
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.index__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
}

.index__item {
    display: flex;
    align-items: baseline;
    gap: 9px;
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    color: var(--muted-2);
    text-align: left;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.index__item:hover {
    background: var(--surface-2);
    color: var(--text);
}

.index__item.is-passed {
    color: var(--muted);
}

.index__item.is-current {
    background: var(--surface-2);
    border-left-color: var(--signal);
    color: var(--text);
}

.index__num {
    flex: 0 0 20px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: inherit;
}

.index__label {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
}

.index__item.is-current .index__num {
    color: var(--signal-ink);
}

/* ==========================================================================
   ESCENARIO
   ========================================================================== */

.stage {
    position: relative;
    min-height: 0;
}

.slide {
    position: absolute;
    inset: 0;
    padding: 34px 6px 54px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .42s var(--ease), transform .42s var(--ease), visibility .42s;
    scrollbar-gutter: stable;
}

html.is-booting .slide {
    transition: none;
}

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

.slide__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    min-height: 100%;
    margin: 0 auto;
}

.slide__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.eyebrow,
.kicker {
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--signal-ink);
}

.kicker {
    color: var(--muted-2);
}

.slide__title {
    max-width: 22ch;
    font-size: clamp(2.3rem, 4.7vw, 4.2rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.slide__lead {
    max-width: 64ch;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.5;
    color: var(--muted);
    text-wrap: pretty;
}

.micro {
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.quote {
    padding: 16px 0 16px 16px;
    border-left: 3px solid var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.quote--wide {
    max-width: 70ch;
}

.quote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--font-narrow);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ==========================================================================
   REJILLAS Y TARJETAS
   ========================================================================== */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 14px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid-2--wide { grid-template-columns: 1.15fr 0.85fr; }

.stack-sm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    min-width: 0;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.card--ink .micro,
.card--ink .card__text {
    color: var(--on-ink-muted);
}

.card--flat {
    background: var(--surface-2);
    border-color: transparent;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.card__text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.card__num {
    font-family: var(--font-narrow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--signal-ink);
}

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

.stat__value {
    font-family: var(--font-narrow);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 1px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.pill--signal {
    color: var(--signal-ink);
    border-color: var(--signal-ink);
}

.pill--ok {
    color: var(--ok);
    border-color: var(--ok);
}

.pill--critical {
    color: var(--critical);
    border-color: var(--critical);
}

.pill--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.band {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--signal);
    border-radius: var(--radius);
}

.band strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.band--ok {
    border-left-color: var(--ok);
}

/* ==========================================================================
   PORTADA
   ========================================================================== */

.cover {
    gap: 22px;
}

.cover__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cover__title {
    font-size: clamp(4.5rem, 14vw, 11rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.065em;
}

.cover__line {
    display: block;
}

.cover__outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}

@supports not (-webkit-text-stroke: 1px black) {
    .cover__outline {
        color: var(--ink);
    }
}

.cover__sub {
    max-width: 46ch;
    font-size: clamp(18px, 2.3vw, 28px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.cover__meta {
    padding: 14px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.cover__meta strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

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

.route__year {
    font-family: var(--font-narrow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.route__line {
    position: relative;
    flex: 1;
    height: 2px;
    background: var(--line-strong);
}

.route__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--signal-line);
}

.slide.is-active .route__fill {
    animation: routeGrow 1.2s .35s var(--ease) forwards;
}

.route__ticks {
    position: absolute;
    inset: -3px 0;
    display: flex;
    justify-content: space-between;
}

.route__ticks i {
    display: block;
    width: 5px;
    height: 5px;
    margin-top: 1px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.cover__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
}

/* ==========================================================================
   DIAGRAMA DE PRODUCTO
   ========================================================================== */

.flow {
    display: grid;
    grid-template-columns: 1.05fr 20px 1fr 20px 1fr;
    gap: 10px;
    align-items: stretch;
}

.flow__arrow {
    display: grid;
    place-items: center;
    color: var(--muted-2);
    font-size: 11px;
}

.flow__panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mini-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 6px;
    background: var(--tag);
    color: var(--tag-text, #FFFFFF);
    border-radius: 1px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.flow__quote {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.mini-person {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.mini-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 13px;
}

.flow__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow__option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 8px;
    align-items: center;
    padding: 7px;
    background: var(--surface-2);
    border-left: 2px solid var(--path);
}

.flow__key {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: var(--path);
    color: #FFFFFF;
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 700;
}

.flow__option strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.flow__option small {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.mini-pillar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    align-items: baseline;
}

.mini-pillar span {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.mini-pillar b {
    font-family: var(--font-narrow);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mini-pillar i {
    position: relative;
    grid-column: 1 / -1;
    display: block;
    height: 4px;
    background: var(--surface-2);
}

.mini-pillar i::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    background: var(--c);
}

.loop-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.loop-strip div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--surface);
}

.loop-strip strong {
    font-family: var(--font-narrow);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.loop-strip span {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ==========================================================================
   LISTAS Y TABLAS
   ========================================================================== */

.check-list,
.x-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.check-list li,
.x-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.check-list i {
    margin-top: 3px;
    font-size: 9px;
    color: var(--ok);
}

.x-list i {
    margin-top: 3px;
    font-size: 9px;
    color: var(--critical);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    line-height: 1.45;
}

.table th {
    padding: 7px 10px;
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.table td {
    padding: 9px 10px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.table tbody tr:first-child td {
    border-top: 0;
}

.table tr.is-chosen td {
    background: var(--surface-2);
}

.table tr.is-chosen td:first-child {
    border-left: 3px solid var(--signal);
    padding-left: 7px;
    font-weight: 700;
}

.table td strong {
    font-weight: 700;
}

/* ==========================================================================
   OBJETIVOS
   ========================================================================== */

.objective {
    margin-top: 8px;
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.objective--ink {
    color: var(--on-ink);
}

.specific {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.specific .card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specific h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.specific p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

/* ==========================================================================
   ROLES, CADENCIA Y TABLERO
   ========================================================================== */

.role-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.role {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.role:first-child {
    padding-top: 0;
    border-top: 0;
}

.role span {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--signal-ink);
}

.role strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.cadence {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
}

.cadence li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.cadence li:first-child {
    padding-top: 0;
    border-top: 0;
}

.cadence b {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}

.board__col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 108px;
    padding: 6px;
    background: var(--surface-2);
}

.board__col span {
    font-family: var(--font-narrow);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.board__col i {
    display: block;
    height: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}

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

/* ==========================================================================
   DESCUBRIMIENTO
   ========================================================================== */

.persona {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.persona__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: 50%;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.persona strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.persona > div > span {
    display: block;
    margin-top: 1px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.quadrants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.quadrant {
    min-height: 92px;
    padding: 10px;
    background: var(--surface);
}

.quadrant h4 {
    margin: 0 0 5px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--signal-ink);
}

.quadrant p {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--muted);
}

.journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding-top: 18px;
}

.journey::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}

.journey__stage {
    position: relative;
    padding-top: 14px;
}

.journey__dot {
    position: absolute;
    top: 2px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.journey__stage.is-highlight .journey__dot {
    background: var(--signal);
    border-color: var(--signal);
}

.journey__stage strong {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
}

.journey__stage span {
    display: block;
    margin-top: 3px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.insight {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.insight strong {
    font-weight: 700;
}

/* ==========================================================================
   ESTRATEGIA
   ========================================================================== */

.bmc {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.bmc div {
    min-height: 58px;
    padding: 8px;
    background: var(--surface);
}

.bmc h4 {
    margin: 0 0 4px;
    font-family: var(--font-narrow);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.bmc p {
    font-size: 10.5px;
    line-height: 1.35;
}

.okr__objective {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.kr-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    list-style: none;
}

.kr-list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    line-height: 1.4;
}

.kr-list span {
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--signal-ink);
}

.kr-list em {
    display: block;
    margin-top: 1px;
    font-family: var(--font-narrow);
    font-size: 8px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.kpi-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.4;
}

.kpi-line strong {
    font-weight: 700;
}

.matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.matrix__cell {
    min-height: 84px;
    padding: 9px;
    background: var(--surface);
}

.matrix__cell:nth-child(1) {
    background: var(--surface-2);
}

.matrix h4 {
    margin: 0 0 5px;
    font-family: var(--font-narrow);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.matrix p {
    font-size: 10.5px;
    line-height: 1.4;
}

.matrix .is-mvp {
    color: var(--text);
    font-weight: 700;
}

/* ==========================================================================
   STORY MAP Y BACKLOG
   ========================================================================== */

.story-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.story-col {
    min-height: 108px;
    padding: 10px;
    background: var(--surface);
}

.story-col h4 {
    margin: 0 0 6px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--signal-ink);
}

.story-col p {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--muted);
}

.backlog {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.backlog__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    line-height: 1.4;
}

.backlog__row:first-child {
    padding-top: 0;
    border-top: 0;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline-wrap {
    width: 100%;
    overflow-x: auto;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    min-width: 760px;
    padding-top: 18px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}

.timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
}

.timeline__item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.timeline__item.is-mvp::before {
    background: var(--signal);
    border-color: var(--signal);
}

.timeline__item strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.timeline__item p {
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--muted);
}

.timeline__item .pill {
    align-self: flex-start;
    margin-top: 3px;
}

/* ==========================================================================
   STACK
   ========================================================================== */

.stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stack__layer {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.stack__layer--ink {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.stack__layer--ink .micro {
    color: var(--on-ink-muted);
}

.stack__layer strong {
    font-size: 12px;
    font-weight: 700;
}

.stack__layer p {
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
}

.stack__layer--ink p {
    color: var(--on-ink-muted);
}

.stack__arrow {
    padding-left: 24px;
    color: var(--muted-2);
    font-size: 9px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-chips span {
    padding: 4px 7px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.deploy-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.deploy-line i {
    color: var(--muted-2);
    font-size: 9px;
}

/* ==========================================================================
   DECISIONES
   ========================================================================== */

.decision-table td:first-child {
    font-weight: 700;
}

/* ==========================================================================
   ANTES / DESPUÉS
   ========================================================================== */

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

.mock-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.mock {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    overflow: hidden;
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px;
    background: var(--ink);
}

.mock__brand {
    width: 42px;
    height: 7px;
    background: rgba(244, 244, 240, 0.55);
}

.mock__dots {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.mock__dot {
    width: 13px;
    height: 13px;
    background: transparent;
    border: 1px solid rgba(244, 244, 240, 0.3);
}

.mock__dot.is-primary {
    background: var(--signal);
    border-color: var(--signal);
}

.mock__body {
    padding: 8px;
}

.mock__row {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.mock__plate {
    flex: 1;
    height: 24px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.mock__plate--a { border-left: 3px solid var(--a); }
.mock__plate--c { border-left: 3px solid var(--c); }
.mock__plate--b { border-left: 3px solid var(--b); }

.mock__line {
    height: 5px;
    margin-top: 5px;
    background: var(--surface-2);
}

.mock__line--short {
    width: 62%;
}

.mock__panel {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    font-family: var(--font-narrow);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.mock__panel--open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}

.mock__panel--open i {
    height: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.mock__panel--closed {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   RESULTADOS
   ========================================================================== */

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.metric-row .stat {
    padding: 10px;
    background: var(--surface);
}

.lessons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.lessons li {
    display: flex;
    gap: 7px;
    font-size: 12px;
    line-height: 1.4;
}

.lessons i {
    margin-top: 3px;
    font-size: 8px;
    color: var(--signal-ink);
}

/* ==========================================================================
   CIERRE
   ========================================================================== */

.closing {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.closing__thanks {
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
}

.refs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.refs li {
    padding-left: 16px;
    text-indent: -16px;
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--muted);
}

.refs a {
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
}

/* ==========================================================================
   PIE
   ========================================================================== */

.pres-footer {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 8px 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-family: var(--font-narrow);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--muted);
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1px 4px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 1px;
    font-family: var(--font-narrow);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.nav-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-family: var(--font-narrow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.nav-btn:hover {
    background: var(--surface-2);
    border-color: var(--ink);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nav-btn--icon {
    width: 40px;
    padding: 0;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes routeGrow {
    from { width: 0; }
    to { width: 100%; }
}

.reveal {
    opacity: 1;
}

.slide.is-active .reveal {
    animation: revealUp .55s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ADAPTACIÓN
   ========================================================================== */

@media (max-width: 1100px) {
    .pres-body {
        grid-template-columns: 196px minmax(0, 1fr);
        gap: 20px;
    }

    .slide {
        padding-top: 26px;
    }

    .flow {
        grid-template-columns: 1fr 14px 1fr 14px 1fr;
    }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-2--wide,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .board {
        grid-template-columns: repeat(5, minmax(66px, 1fr));
        overflow-x: auto;
    }

    .flow {
        grid-template-columns: 1fr;
    }

    .flow__arrow {
        transform: rotate(90deg);
    }

    .story-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .specific {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .pres-header {
        padding: 8px 12px;
        gap: 10px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-sub {
        display: none;
    }

    .header-section {
        display: none;
    }

    .header-counter {
        font-size: 12px;
    }

    .pres-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 12px;
    }

    .index {
        flex: 0 0 auto;
        padding: 6px 0;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .index__head {
        display: none;
    }

    .index__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
        width: auto;
    }

    .index__item {
        width: auto;
        min-width: 30px;
        min-height: 30px;
        justify-content: center;
        padding: 4px 6px;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }

    .index__item.is-current {
        border-bottom-color: var(--signal);
    }

    .index__label {
        display: none;
    }

    .index__num {
        flex: 0 0 auto;
        font-size: 9px;
    }

    .stage {
        flex: 1 1 auto;
        min-height: 0;
    }

    .slide {
        padding: 20px 2px 34px;
    }

    .slide__inner {
        justify-content: flex-start;
        gap: 16px;
    }

    .slide__title {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .cover__title {
        font-size: clamp(4rem, 22vw, 7rem);
    }

    .cover__meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cover__foot {
        flex-direction: column;
    }

    .quote {
        font-size: 18px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 10px;
    }

    .card {
        padding: 13px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .loop-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quadrants {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .journey {
        grid-template-columns: repeat(5, 120px);
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .timeline {
        min-width: 700px;
    }

    .bmc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matrix {
        grid-template-columns: 1fr;
    }

    .matrix__cell {
        min-height: 0;
    }

    .story-map {
        grid-template-columns: 1fr;
    }

    .pres-footer {
        padding: 7px 12px;
        gap: 8px;
    }

    .hint {
        display: none;
    }

    .nav-buttons {
        margin-left: 0;
        flex: 1;
    }

    .nav-btn {
        flex: 1;
        min-height: 42px;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn--icon {
        flex: 0 0 42px;
    }
}

@media (max-width: 480px) {
    .cover__sub {
        font-size: 17px;
    }

    .slide__lead {
        font-size: 15px;
    }

    .metric-row {
        grid-template-columns: 1fr 1fr;
    }

    .specific {
        grid-template-columns: 1fr;
    }

    .board {
        grid-template-columns: repeat(5, 72px);
    }
}

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