/* layouts.css — estructura de la diapositiva y los grandes layouts */

.slide {
  position: absolute;
  inset: 0;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.992);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* Cabecera de slide */
.slide-head { flex: 0 0 auto; margin-bottom: 22px; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 12px;
}
.slide-title {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
}
.slide-sub {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: -0.01em;
}

/* Cuerpo */
.slide-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }

/* Layout split: dos columnas (texto / gráfico) */
.layout-split .slide-body {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: stretch;
}
.layout-split .col-left,
.layout-split .col-right {
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0; min-height: 0; justify-content: center;
}

/* Layout center: contenido centrado verticalmente y horizontalmente */
.layout-center .slide-body { align-items: center; text-align: center; gap: 26px; }
.layout-center .note, .layout-center .formula { max-width: 760px; }

/* Layout stack: bloques apilados */
.layout-stack .slide-body { gap: 22px; }

/* Layout grid: para grillas de tarjetas/objetivos */
.layout-grid .slide-body { justify-content: flex-start; }

/* Pie de slide */
.slide-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--fg-faint);
}
.slide-foot .foot-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg-3); }

/* ---- Portada -------------------------------------------------------------- */
.layout-cover { justify-content: center; }
.layout-cover .slide-body { justify-content: center; gap: 0; }
.cover-eyebrow {
  font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 26px;
}
.cover-title {
  font-size: 84px; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  background: linear-gradient(180deg, #ffffff, #c9c9d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cover-sub { margin-top: 18px; font-size: 27px; font-weight: 500; color: var(--fg-2); }
.cover-lead { margin-top: 30px; max-width: 880px; font-size: 19px; line-height: 1.55; color: var(--fg-3); }
.cover-meta { margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.cover-meta span { font-size: 15px; color: var(--fg-3); letter-spacing: 0.02em; }
.cover-meta span:first-child { color: var(--fg-2); font-weight: 600; }

/* ---- Sección divisoria ---------------------------------------------------- */
.layout-section { justify-content: center; }
.layout-section .slide-body { justify-content: center; }
.section-kicker {
  font-size: 17px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 20px;
}
.section-title {
  font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.0;
  background: linear-gradient(180deg, #ffffff, #b9b9c6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 1000px;
}
.section-lead { margin-top: 26px; max-width: 820px; font-size: 22px; line-height: 1.5; color: var(--fg-2); }
.section-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--blue); margin-bottom: 34px; box-shadow: 0 0 18px rgba(10,132,255,.5); }

/* ---- Cierre --------------------------------------------------------------- */
.layout-closing { justify-content: center; }
.closing-quote {
  font-size: 40px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
  max-width: 1000px; color: var(--fg);
}
.closing-quote .mark { color: var(--blue-2); }
.closing-sources { margin-top: 44px; }
.closing-sources h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-3); margin-bottom: 14px;
}
.closing-sources ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.closing-sources li { font-size: 15px; color: var(--fg-2); padding-left: 18px; position: relative; }
.closing-sources li::before { content: '—'; position: absolute; left: 0; color: var(--fg-faint); }
.closing-thanks { margin-top: 34px; font-size: 22px; font-weight: 600; color: var(--blue-2); }
