/* Slides exportables a PPT — 16:9 · ~1 slide / 3 min */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1f2a;
  --teal: #0d7377;
  --teal-light: #e6f3f3;
  --sand: #e8eef0;
  --white: #fff;
  --accent: #c45c26;
  --muted: #5a707a;
  --line: #c5d0d4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: #1a2e36;
  color: var(--ink);
}

.deck-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(11, 31, 42, 0.95);
  color: #cfe3e4;
  font-size: 0.85rem;
}

.deck-bar a { color: #9fd0d2; }

.deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.slide {
  aspect-ratio: 16 / 9;
  width: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(13, 115, 119, 0.12), transparent 50%),
    linear-gradient(160deg, #f7f9fa, #e8eef0);
  border-radius: 8px;
  padding: 2.1rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  page-break-after: always;
}

.slide::after {
  content: attr(data-num);
  position: absolute;
  right: 1.5rem;
  bottom: 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.slide--title {
  background:
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(196, 92, 38, 0.15), transparent 45%),
    linear-gradient(145deg, #0b1f2a 0%, #0d7377 100%);
  color: var(--white);
}

.slide--title::after { color: rgba(255, 255, 255, 0.45); }
.slide--title .eyebrow { color: #9fd0d2; }
.slide--title .lead { color: rgba(255, 255, 255, 0.8); }

.slide--section {
  background: linear-gradient(145deg, #0b1f2a 0%, #1a3d47 100%);
  color: var(--white);
  text-align: center;
  align-items: center;
}
.slide--section::after { color: rgba(255, 255, 255, 0.4); }
.slide--section .eyebrow { color: #9fd0d2; }
.slide--section h1 { max-width: 22ch; margin-inline: auto; }

.slide--exercise {
  border: 4px solid var(--teal);
}

.slide--ask {
  border: 4px solid var(--accent);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(160deg, #f7f9fa, #fdf0e9);
}

.ask-q {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem) !important;
  max-width: 28ch;
  line-height: 1.25;
}

.ask-prompts {
  margin-top: 0.75rem !important;
}

.ask-prompts li {
  font-size: 1.05rem !important;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.slide h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  max-width: 28ch;
}

/* Solo texto: usar el ancho del slide (sin columna estrecha) */
.slide:not(:has(.visual-split)):not(:has(.cols)):not(:has(.cols-3)):not(.slide--section) h1 {
  max-width: 36ch;
}

.slide:not(:has(.visual-split)):not(:has(.cols)):not(:has(.cols-3)) .lead {
  max-width: min(68ch, 100%);
}

.slide:not(:has(.visual-split)):not(:has(.cols)):not(:has(.cols-3)) ul,
.slide:not(:has(.visual-split)):not(:has(.cols)):not(:has(.cols-3)) ol {
  max-width: min(68ch, 100%);
}

.slide h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.slide h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--teal);
}

.slide p, .slide li {
  font-size: clamp(0.95rem, 1.45vw, 1.15rem);
  line-height: 1.4;
}

.slide .lead {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.slide ul, .slide ol {
  margin: 0;
  padding-left: 1.2rem;
}

.slide li { margin: 0.32rem 0; }

.slide .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.slide .cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}

.slide .box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.slide .box h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }

.slide .box p, .slide .box li {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.slide .quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0;
}

.slide .small {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.75rem;
}

.slide .note {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.slide .warn {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #fdf0e9;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.kpi div {
  background: var(--white);
  border-radius: 6px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  text-align: center;
}

.kpi strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.kpi span { font-size: 0.88rem; line-height: 1.3; display: block; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.timeline li:last-child { border-bottom: none; }

.timeline .t {
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--teal);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Texto compacto a la izquierda; la imagen manda (~28% / ~72%) */
.visual-split {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 2.35fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.visual-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.visual-split__text .lead {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.visual-split__text ul {
  margin: 0;
  padding-left: 1.05rem;
}

.visual-split__text li {
  font-size: 0.95rem;
  margin: 0.22rem 0;
  line-height: 1.35;
}

.visual-split__text .note {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.visual-split__fig {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 6px 18px rgba(11, 31, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.55rem;
}

.visual-split__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(64vh, 520px);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #f7f9fa;
  flex: 0 1 auto;
}

.visual-split__fig--full img {
  max-height: min(70vh, 580px);
}

.visual-split__fig figcaption {
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  line-height: 1.35;
  flex-shrink: 0;
}

/* Slides con visual: el bloque crece y el título no come tanto aire */
.slide:has(.visual-split) {
  justify-content: flex-start;
  padding-top: 1.55rem;
  padding-bottom: 1.55rem;
}

.slide:has(.visual-split) > .eyebrow {
  margin-bottom: 0.25rem;
}

.slide:has(.visual-split) > h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

@media (max-width: 900px) {
  .visual-split {
    grid-template-columns: 1fr;
  }
  .visual-split__fig img {
    min-height: 200px;
    max-height: 48vh;
  }
}

/* Modo presentación */
.present-tools {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  background: rgba(11, 31, 42, 0.92);
  color: #cfe3e4;
  border-radius: 8px;
  font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.present-tools button {
  appearance: none;
  border: 1px solid #3a5560;
  background: #1a2e36;
  color: #cfe3e4;
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font: inherit;
}
.present-tools button:hover { border-color: #9fd0d2; color: #fff; }
.present-tools #present-counter {
  min-width: 4.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body.is-present {
  background: #0b1f2a;
}
body.is-present .deck-bar,
body.bar-hidden .deck-bar { display: none !important; }
body.is-present .deck {
  max-width: none;
  padding: 0;
  gap: 0;
  min-height: 100vh;
}
body.is-present .slide {
  display: none;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
body.is-present .slide.is-active {
  display: flex;
}

@media print {
  body { background: white; }
  .deck-bar, .present-tools { display: none !important; }
  .deck { padding: 0; max-width: none; gap: 0; }
  .slide {
    display: flex !important;
    box-shadow: none;
    border-radius: 0;
    page-break-after: always;
    break-after: page;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
