@import url("https://rsms.me/inter/inter.css");
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");

:root {
  /* Warm, founder-forward palette anchored on the Alpha Founder deep purple.
     Text is a near-black indigo so it reads confident, not corporate-blue. */
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #1c1633;        /* deep indigo-black, warmer than slate */
  --muted: #4a4566;       /* desaturated plum-gray for supporting copy */
  --accent: #38217c;      /* the Alpha Founder brand purple */
  --accent-2: #5b3fd6;    /* brighter purple for emphasis / leads */
  --alpha-purple: #38217c;
  --line: rgba(56, 33, 124, 0.12);
  --soft: rgba(56, 33, 124, 0.05);
  --soft-strong: rgba(56, 33, 124, 0.08);

  /* The canvas is a fixed 1280x720 box (set in Reveal.initialize).
     Everything below is authored in px against that box. */
  --canvas-w: 1280px;
  --canvas-h: 720px;
  --safe-top: 92px;   /* logo band */
  --safe-bottom: 84px; /* decorative footer band */
  --safe-x: 96px;
}

/* ----- base ----- */
.reveal {
  position: relative;
  font-family: "InterVariable", "Inter", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss03";
  font-optical-sizing: auto;
  color: var(--text);
  font-size: 28px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides > section {
  padding: 0;
  height: 100%;
}

/* Reveal owns section sizing. Our template lives inside the scaled canvas. */
.slide-frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: var(--safe-top) var(--safe-x) var(--safe-bottom);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slide-frame > * {
  position: relative;
  z-index: 1;
}

.markdown-deck .slides > section {
  box-sizing: border-box;
  padding: var(--safe-top) var(--safe-x) var(--safe-bottom);
  height: 100%;
}

.markdown-deck .slides > section > * {
  max-width: 980px;
}

.markdown-deck .slides section {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* Dense slides (a hero line + several label/desc pairs + a tesis quote) are
   taller than the safe area; centering would push the closing quote under the
   sponsor footer. Tighten their internal rhythm and clamp the body scale so the
   whole story fits above the footer band. :has() detects the layout. */
.markdown-deck .slides section:has(blockquote):has(p strong) {
  justify-content: center;
  font-size: 0.92em;
}

.markdown-deck .slides section:has(blockquote):has(p strong) > p:has(> strong:first-child) {
  margin-top: 0.7em;
}

.markdown-deck .slides section:has(blockquote):has(p strong) > blockquote {
  margin-top: 0.9em;
  font-size: 1.05em;
}

.markdown-deck .slides section > * + * {
  margin-top: 0.45em;
}

/* Rhythm: a paragraph that opens with a bold label starts a new "row" and gets
   generous space above it; the plain paragraph that follows is its description
   and hugs the label tightly. This gives clear grouped pairs instead of an
   evenly-spaced flat list. */
.markdown-deck .slides section > p:has(> strong:first-child) {
  margin-top: 0.8em;
}

.markdown-deck .slides section > p:has(> strong:first-child) strong {
  margin-bottom: 0.15em;
}

.markdown-deck .slides section > p:has(> strong:first-child) + p {
  margin-top: 0.05em;
}

/* First label-row after the hero line gets a touch more breathing room. */
.markdown-deck .slides section > h3 + p:has(> strong:first-child) {
  margin-top: 1em;
}

/* The tesis blockquote closes the slide; give it air above, none below. */
.markdown-deck .slides section > blockquote {
  margin-top: 0.85em;
}

.markdown-deck h1,
.markdown-deck h2,
.markdown-deck h3 {
  margin-bottom: 0.25em;
}

.reveal.markdown-deck h1 {
  font-size: 2.9em;
}

/* h2 = the section eyebrow/number ("02 · Quienes somos"). Quiet, sets context. */
.reveal.markdown-deck h2 {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* h3 = the slide's promise line ("Construimos esto antes..."). The hero line. */
.reveal.markdown-deck h3 {
  font-size: 1.9em;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 22ch;
}

.reveal.markdown-deck h2 + h3 {
  margin-top: 0.18em;
}

.markdown-deck p {
  max-width: 60ch;
  text-wrap: pretty;
}

/* A bold run that OPENS a body paragraph is a sub-label: promote it to its own
   line with rhythm. Bold runs mid-sentence (e.g. prompt placeholders) and any
   bold inside a blockquote (prose) stay inline. */
.markdown-deck .slides section > p > strong:first-child {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02em;
  letter-spacing: -0.01em;
}

.markdown-deck ul,
.markdown-deck ol {
  padding-left: 1.2em;
}

.markdown-deck li + li {
  margin-top: 0.3em;
}

.markdown-deck blockquote {
  margin-top: 0.8em;
}

/* Slides that promote their title into the top band, next to the logo. */
.headed .slide-frame {
  padding-top: 16px;
}

.slide-head {
  /* clear the fixed logo (150px wide + 24px left + breathing room) */
  padding-left: 200px;
  margin-bottom: 22px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25em;
}

.slide-head h2 {
  font-size: 1.5em;
}

/* ----- typography ----- */
.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: "Satoshi", sans-serif;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.reveal h1 {
  font-size: 2.4em;
  font-weight: 900;
}

.reveal h2 {
  font-size: 1.55em;
  font-weight: 700;
}

.reveal h3 {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--accent);
}

.reveal p,
.reveal li {
  color: var(--muted);
  font-size: 0.92em;
  line-height: 1.45;
  margin: 0;
  text-wrap: pretty;
}

.reveal a {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
}

.reveal .progress {
  top: 0;
  bottom: auto;
  height: 6px;
  color: var(--alpha-purple);
  z-index: 30;
}

/* ----- card: fills the safe area, content vertically centered ----- *
   Per the surfaces guideline we avoid white-on-white cards. Headed slides
   render their body as a soft recessed "well"; statement slides drop the
   chrome entirely and sit content directly on the white canvas. */
.card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6em;
  padding: 0.4rem 0;
  overflow: hidden;
}

/* Headed slides: body sits in a subtle well, clearly distinct from canvas. */
.headed .card {
  gap: 0.7em;
  padding: 2rem 2.4rem;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

/* Statement slides (intro / contact): content directly on white, generous. */
.intro-card {
  gap: 0.45em;
}

/* Prompt slides: the blockquote is the surface; keep the wrapper bare. */
.overlay {
  justify-content: center;
  gap: 0.9em;
}

/* ----- shared label / lead ----- */
.tag {
  font-size: 0.52em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-weight: 600;
}

.lead {
  font-family: "Satoshi", sans-serif;
  color: var(--text);
  font-size: 1.25em;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.meta {
  color: var(--text);
  font-weight: 700;
}

.muted-line {
  color: var(--muted);
  font-size: 0.8em;
}

.quote {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92em;
  padding-left: 0.85em;
  border-left: 4px solid var(--accent-2);
}

/* Editorial pull-quote, NOT an AI chat bubble.
   We deliberately avoid the tinted rounded box + left accent bar (the
   ChatGPT-callout cliche). Instead the tesis sits on the white canvas as a
   conviction statement: a large hanging quotation glyph, a hairline rule that
   ties it to the content above, and confident Satoshi type. */
.reveal blockquote {
  position: relative;
  width: auto;
  margin: 0;
  padding: 0.9em 0 0.2em 1.7em;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: "Satoshi", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.18em;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

/* Oversized opening quote mark, set in the brand purple, hung in the margin. */
.reveal blockquote::before {
  content: "\201C";
  position: absolute;
  left: -0.05em;
  top: 0.34em;
  font-family: "Satoshi", sans-serif;
  font-weight: 900;
  font-size: 2.6em;
  line-height: 0.8;
  color: var(--accent);
}

.reveal blockquote strong {
  font-weight: 900;
  color: var(--accent);
}

/* ----- grids ----- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

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

.grid-2 h3,
.grid-3 h3 {
  margin-bottom: 0.2em;
}

.grid-2 p + h3,
.grid-3 p + h3 {
  margin-top: 0.7em;
}

.mini-card {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.mini-card p {
  font-size: 0.82em;
}

/* ----- pills ----- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid rgba(56, 33, 124, 0.22);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85em;
}

.stack.tall .pill {
  font-size: 1em;
  padding: 0.6rem 1.3rem;
}

/* ----- lists ----- */
.reveal ol,
.reveal ul {
  margin: 0;
}

.steps li {
  margin-bottom: 0.4em;
}

.steps.big li {
  font-size: 1.1em;
  margin-bottom: 0.45em;
}

.checklist ul {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin-bottom: 0.35em;
}

.checklist li::before {
  content: "□";
  color: var(--accent-2);
  font-weight: 700;
  margin-right: 0.45em;
}

.reveal .slide-logo {
  display: block;
  position: fixed;
  top: 18px;
  left: 24px;
  width: 150px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.reveal .site-link {
  display: block;
  position: fixed;
  top: 28px;
  right: 40px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: auto;
  text-decoration: none;
  z-index: 2;
}

.reveal .sponsor-footer {
  display: block;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

@media screen and (max-width: 800px) {
  .reveal .slide-logo {
    top: 14px;
    left: 18px;
    width: 118px;
  }

  .reveal .site-link {
    top: 20px;
    right: 18px;
    font-size: 14px;
  }
}
