@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --amber: #ffbf00;
  --american-rose: #ff033e;
  --azure: #007fff;
  --majorelle-blue: #6050dc;
  --smoky-black: #100c08;
  --snow: #fffafa;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --surface: #f5f5f0;

  --font-sm: 1.25rem;
  --font-md: 1.5rem;
  --font-lg: 1.75rem;
  --font-xl: 2.125rem;
  --font-2xl: 2.75rem;
  --font-3xl: 3.5rem;
  --font-5xl: 4.5rem;

  --slide-pad-v: 3.5rem;
  --slide-pad-h: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--snow);
  color: var(--ink);
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: var(--font-lg);
  line-height: 1.4;
}

.link-email {
  color: #ffbf00;
  text-decoration: underline;
}

/* ── Slide shell ──────────────────────────────────── */

.slide {
  min-height: 100vh;
  padding: var(--slide-pad-v) var(--slide-pad-h);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 6px solid var(--azure);
  overflow: hidden;
}

/* Decorative corner accent */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--amber), var(--azure));
  opacity: 0.6;
}

/* ── Slide header (title) ─────────────────────────── */

.slide > header {
  padding-left: 1.5rem;
}

.title {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.talk-title {
  font-size: var(--font-5xl);
  font-weight: 700;
  max-width: 18ch;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 5rem;
  /* Amber gradient underline on the title */
  background: linear-gradient(
    135deg,
    var(--smoky-black) 0%,
    var(--majorelle-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Inner article (subtitle + section) ───────────── */

.slide > article {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.5rem;
}

.subtitle {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--azure);
  line-height: 1.2;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--amber);
  width: fit-content;
  max-width: 100%;
}

/* ── Content: section ─────────────────────────────── */

section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

section p {
  font-size: var(--font-lg);
  line-height: 1.5;
  color: var(--ink);
}

section em {
  color: var(--majorelle-blue);
  font-style: normal;
  font-weight: 600;
}

section s {
  color: var(--muted);
}

section ul,
section ol {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

section li {
  font-size: var(--font-lg);
  line-height: 1.4;
  position: relative;
}

section ul li::marker {
  color: var(--amber);
  font-size: 1.2em;
}

/* ── Footer (quote bar) ───────────────────────────── */

.slide > footer {
  padding-left: 1.5rem;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem var(--slide-pad-h);
  background-color: var(--amber);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--smoky-black);
  letter-spacing: 0.01em;
  line-height: 1.3;
  border-top: 2px solid rgba(0, 0, 0, 0.15);
}

.footer a {
  color: var(--smoky-black);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ── Blockquote (frase de impacto) ───────────────────*/

section.quote {
  margin-top: auto;
  padding-top: 1rem;
}

section.quote blockquote {
  font-size: var(--font-xl);
  font-weight: 700;
  font-style: italic;
  color: var(--majorelle-blue);
  border-left: 5px solid var(--amber);
  background: rgba(96, 80, 220, 0.04);
  padding: 0.75rem 1.5rem;
  margin: 0;
  line-height: 1.35;
  border-radius: 0 0.5rem 0.5rem 0;
}

section.quote blockquote em {
  font-style: italic;
  color: inherit;
  font-weight: 700;
}

/* ── Logos ────────────────────────────────────────── */

.logos {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 0.75rem;
  border: 1.5px solid rgba(0, 127, 255, 0.15);
  width: fit-content;
}

.logos img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logos img:hover {
  transform: scale(1.15);
}

/* ── First slide special treatment ───────────────── */

.slide:first-child {
  background: var(--smoky-black);
  border-bottom-color: var(--amber);
}

.slide:first-child .talk-title {
  background: linear-gradient(135deg, #ffffff 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide:first-child .subtitle {
  color: var(--amber);
  border-bottom-color: var(--azure);
}

.slide:first-child section,
.slide:first-child li,
.slide:first-child p {
  color: #e8e8e0;
}

.slide:first-child::before {
  background: linear-gradient(to bottom, var(--amber), var(--american-rose));
  opacity: 1;
}

/* ── Code-style inline text ───────────────────────── */

code {
  font-family: "Space Mono", monospace;
  font-size: 0.85em;
  background: rgba(0, 127, 255, 0.08);
  color: var(--majorelle-blue);
  padding: 0.1em 0.35em;
  border-radius: 0.25em;
}

/* ── Preguntas incómodas ──────────────────────────── */

.pregunta {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-left: 5px solid var(--american-rose);
  background: rgba(255, 3, 62, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
  line-height: 1.3;
}

/* ── Tier labels ──────────────────────────────────── */

section strong {
  font-weight: 700;
  color: var(--majorelle-blue);
}

/* ── Dark/alert slide variant ─────────────────────── */

.slide--alert {
  background: #0f0a00;
  border-bottom-color: var(--american-rose);
}

.slide--alert .title {
  color: var(--american-rose);
}

.slide--alert .subtitle {
  color: var(--amber);
  border-bottom-color: var(--american-rose);
}

.slide--alert section p,
.slide--alert section li {
  color: #e8e0d0;
}

.slide--alert::before {
  background: linear-gradient(to bottom, var(--american-rose), var(--amber));
  opacity: 1;
}
