/* Planyt — Propuesta de implementación */

/* Fonts */
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-UltralightSlanted.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-RegularSlanted.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Telegraf';
  src: url('fonts/PPTelegraf-UltraboldSlanted.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Tokens */
:root {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --bg-cream: #F4EFE6;
  --fg: #FFFFFF;
  --fg-dim: rgba(255, 255, 255, 0.62);
  --fg-faint: rgba(255, 255, 255, 0.38);
  --rule: rgba(255, 255, 255, 0.16);
  --rule-strong: rgba(255, 255, 255, 0.32);
  --accent: #EFEAFF;          /* morado MUY clarito */
  --accent-deep: #D9D0FF;     /* lavanda medio (hover/contrast) */
  --accent-warm: #F4EFE6;     /* bone */
  --ink: #0A0A0A;
  --serif: 'PP Telegraf', 'Instrument Serif', Georgia, serif;
  --display: 'PP Telegraf', 'Instrument Serif', Georgia, serif;
  --sans: 'PP Telegraf', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Stage */
html, body { margin: 0; padding: 0; background: #000; color: var(--fg); font-family: var(--sans); }

deck-stage { background: #000; }
deck-stage > section {
  width: 1920px; height: 1080px;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv01';
}

/* Slide frame — thin white border like the reference */
.frame {
  position: absolute;
  inset: 56px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 72px 96px;
  display: flex;
  flex-direction: column;
}

/* Nav/header bar on each slide */
.slide-header {
  position: absolute;
  top: 40px; left: 56px; right: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 96px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.slide-header .logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
}
.slide-header .logo em { font-style: normal; color: var(--accent); }

.slide-header .logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.inverse .slide-header .logo-img,
.accent-bg .slide-header .logo-img {
  filter: invert(1);
}
.slide-header .meta { display: flex; gap: 32px; }
.slide-header .num { color: var(--fg-dim); }

/* Footer */
.slide-footer {
  position: absolute;
  bottom: 40px; left: 56px; right: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 96px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Type system */
.eyebrow {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.muted { color: var(--fg-dim); }

h1.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 180px;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--fg);
}
h1.display em { font-style: italic; }

h2.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 112px;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
h2.title em { font-style: italic; }

h3.section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

p.lede {
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-weight: 400;
  max-width: 30ch;
  text-wrap: pretty;
}

p.body {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}

/* Dash list (as in the reference) */
ul.dash {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
ul.dash li {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.42;
  color: var(--fg);
  padding-left: 48px;
  position: relative;
  max-width: 42ch;
  font-weight: 400;
}
ul.dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-dim);
  font-weight: 400;
}
ul.dash.accent li::before { color: var(--accent); }

/* Callout card (like the reference panel) */
.card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.card .num {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
}

/* Inverse slide */
.inverse {
  background: var(--bg-cream) !important;
  color: var(--ink);
}
.inverse .frame { border-color: rgba(10,10,10,0.18); }
.inverse h1.display, .inverse h2.title, .inverse h3.section { color: var(--ink); }
.inverse .eyebrow.muted { color: rgba(10,10,10,0.55); }
.inverse p.body, .inverse p.lede { color: var(--ink); }
.inverse ul.dash li { color: var(--ink); }
.inverse ul.dash li::before { color: rgba(10,10,10,0.45); }
.inverse .slide-header, .inverse .slide-footer { color: rgba(10,10,10,0.45); }
.inverse .slide-header .logo { color: var(--ink); }
.inverse .slide-header .logo em { color: rgba(10,10,10,0.55); }
.inverse .card { background: #ECE5D7; border-color: rgba(10,10,10,0.12); }
.inverse .card h3 { color: var(--ink); }

/* Accent slide (lime) */
.accent-bg {
  background: var(--accent) !important;
  color: var(--ink);
}
.accent-bg .frame { border-color: rgba(10,10,10,0.28); }
.accent-bg h1.display, .accent-bg h2.title { color: var(--ink); }
.accent-bg p.body, .accent-bg p.lede, .accent-bg ul.dash li { color: var(--ink); }
.accent-bg ul.dash li::before { color: rgba(10,10,10,0.6); }
.accent-bg .slide-header, .accent-bg .slide-footer { color: rgba(10,10,10,0.55); }
.accent-bg .slide-header .logo { color: var(--ink); }
.accent-bg .slide-header .logo em { color: var(--ink); font-style: normal; }

/* Utility */
.grow { flex: 1; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; } .gap-64 { gap: 64px; }
.justify-between { justify-content: space-between; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }

/* Hairline rule */
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.inverse hr.rule { border-top-color: rgba(10,10,10,0.16); }

/* Ticker / running footer text */
.tick {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.inverse .tick { color: rgba(10,10,10,0.55); }

/* Timeline grid */
.gantt {
  display: grid;
  grid-template-columns: 280px repeat(8, 1fr);
  column-gap: 0;
  row-gap: 14px;
  align-items: center;
  width: 100%;
}
.gantt .gh {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 10px 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.gantt .gh:first-child { text-align: left; }
.gantt .gr {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--fg);
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule);
}
.gantt .gcell {
  height: 100%;
  min-height: 48px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: flex; align-items: center;
}
.gantt .bar {
  height: 14px;
  background: var(--fg);
  border-radius: 999px;
  width: 100%;
  position: relative;
}
.gantt .bar.accent { background: var(--accent); }
.gantt .bar.outline {
  background: transparent;
  border: 1px solid var(--fg);
}

/* Number block (for stats) */
.bignum {
  font-family: var(--serif);
  font-size: 220px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.bignum em { font-style: italic; color: var(--accent); }

/* Phase block (numbered) */
.phase-index {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* Cover mark */
.logomark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--fg);
}
.logomark em { font-style: normal; }
