:root {
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --google-gray: #5f6368;
  --google-ink: #202124;
  --google-surface: #f8f9fa;
  --google-line: #dadce0;
}

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

.reveal .slides section.centered,
.reveal .slides section.title-section {
  text-align: center;
}

/* El tema compartido agrega el logo tras autor y fecha; dejamos una sola copia. */
.reveal section#title-slide .date::after {
  display: none;
}

.reveal .eyebrow {
  color: var(--google-blue);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.reveal .lead {
  color: var(--google-gray);
  font-size: 1.08em;
  line-height: 1.35;
}

.reveal .muted {
  color: var(--google-gray);
}

.reveal .small {
  font-size: 0.72em;
}

.reveal .tiny {
  font-size: 0.58em;
}

.reveal .no-margin p,
.reveal .no-margin pre {
  margin-top: 0;
  margin-bottom: 0;
}

.reveal .timeline {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 1.4rem;
}

.reveal .time-block {
  background: var(--google-surface);
  border-top: 7px solid var(--google-blue);
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  min-height: 6.2rem;
  padding: 0.55rem 0.45rem;
  text-align: center;
}

.reveal .time-block:nth-child(2) { border-color: var(--google-red); }
.reveal .time-block:nth-child(3) { border-color: var(--google-yellow); }
.reveal .time-block:nth-child(4) { border-color: var(--google-green); }
.reveal .time-block:nth-child(5) { border-color: var(--google-blue); }
.reveal .time-block:nth-child(6) { border-color: var(--google-red); }
.reveal .time-block:nth-child(7) { border-color: var(--google-green); }

.reveal .time-block strong {
  color: var(--google-ink);
  display: block;
  font-size: 0.74em;
  line-height: 1.15;
}

.reveal .time-block span {
  color: var(--google-gray);
  display: block;
  font-size: 0.54em;
  margin-top: 0.35rem;
}

.reveal .flow {
  align-items: stretch;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin: 1.1rem auto;
  width: 100%;
}

.reveal .flow .node {
  align-items: center;
  background: #fff;
  border: 3px solid var(--google-blue);
  border-radius: 10px;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-height: 5.1rem;
  padding: 0.55rem;
  text-align: center;
}

.reveal .flow .node.red { border-color: var(--google-red); }
.reveal .flow .node.yellow { border-color: var(--google-yellow); }
.reveal .flow .node.green { border-color: var(--google-green); }
.reveal .flow .node.gray { border-color: var(--google-gray); }

.reveal .flow .node strong {
  color: var(--google-ink);
  font-size: 0.84em;
}

.reveal .flow .node span {
  color: var(--google-gray);
  font-size: 0.58em;
  line-height: 1.25;
  margin-top: 0.25rem;
}

.reveal .flow .arrow {
  align-items: center;
  color: var(--google-gray);
  display: flex;
  font-size: 1.35em;
  justify-content: center;
}

.reveal .cards-2,
.reveal .cards-3,
.reveal .cards-4 {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.reveal .cards-2 { grid-template-columns: repeat(2, 1fr); }
.reveal .cards-3 { grid-template-columns: repeat(3, 1fr); }
.reveal .cards-4 { grid-template-columns: repeat(4, 1fr); }

.reveal .mini-card {
  background: #fff;
  border: 1px solid var(--google-line);
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  padding: 0.65rem 0.75rem;
}

.reveal .mini-card.blue { border-top: 7px solid var(--google-blue); }
.reveal .mini-card.red { border-top: 7px solid var(--google-red); }
.reveal .mini-card.yellow { border-top: 7px solid var(--google-yellow); }
.reveal .mini-card.green { border-top: 7px solid var(--google-green); }

.reveal .mini-card p,
.reveal .mini-card li {
  color: var(--google-gray);
  font-size: 0.62em;
  line-height: 1.3;
}

.reveal .mini-card ul {
  margin: 0.2rem 0 0 0.8rem;
}

.reveal .mini-card .mini-card-title {
  color: var(--google-ink);
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.reveal .checkpoint {
  background: #e6f4ea;
  border-left: 9px solid var(--google-green);
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
}

.reveal .checkpoint strong {
  color: #137333;
}

.reveal .checkpoint p,
.reveal .checkpoint li {
  font-size: 0.76em;
}

.reveal .warning-box {
  background: #fef7e0;
  border-left: 9px solid var(--google-yellow);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.9rem;
}

.reveal .status-lights {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem auto;
}

.reveal .status-light {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 0.68em;
  font-weight: 700;
  height: 5.2rem;
  justify-content: center;
  text-align: center;
  width: 5.2rem;
}

.reveal .status-light.green { background: var(--google-green); }
.reveal .status-light.yellow { background: var(--google-yellow); color: var(--google-ink); }
.reveal .status-light.red { background: var(--google-red); }

.reveal .file-tree {
  background: var(--google-surface);
  border: 1px solid var(--google-line);
  border-radius: 8px;
  color: var(--google-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73em;
  line-height: 1.45;
  padding: 0.8rem 1rem;
}

.reveal .file-tree .blue { color: #1967d2; }
.reveal .file-tree .green { color: #137333; }
.reveal .file-tree .gray { color: var(--google-gray); }

.reveal .output-hub {
  align-items: center;
  display: grid;
  gap: 0.65rem 1.1rem;
  grid-template-columns: 1.2fr auto 1.2fr;
  grid-template-rows: repeat(2, 1fr);
  margin: 0.9rem auto;
  max-width: 950px;
  position: relative;
}

.reveal .output-hub .source {
  align-items: center;
  background: #e8f0fe;
  border: 4px solid var(--google-blue);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 11.5rem;
  justify-content: center;
  margin: 0 auto;
  padding: 0.7rem;
  text-align: center;
  width: 11.5rem;
  z-index: 2;
}

.reveal .output-hub .source strong {
  color: var(--google-ink);
  font-size: 0.92em;
  line-height: 1.2;
}

.reveal .output-hub .source span {
  color: var(--google-gray);
  display: block;
  font-size: 0.55em;
  line-height: 1.3;
  margin-top: 0.35rem;
}

.reveal .output-hub .output {
  align-items: center;
  background: #fff;
  border: 3px solid var(--google-line);
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.4rem 0.6rem;
  position: relative;
  text-align: center;
  z-index: 2;
}

.reveal .output-hub .output strong { font-size: 0.78em; }
.reveal .output-hub .output:nth-child(2) { border-color: var(--google-red); }
.reveal .output-hub .output:nth-child(3) { border-color: var(--google-yellow); }
.reveal .output-hub .output:nth-child(4) { border-color: var(--google-green); }
.reveal .output-hub .output:nth-child(5) { border-color: var(--google-blue); }

.reveal .output-hub .output::before {
  background: var(--google-line);
  content: "";
  height: 2px;
  position: absolute;
  top: 50%;
  width: 1.1rem;
  z-index: 1;
}

.reveal .output-hub .output:nth-child(2)::before,
.reveal .output-hub .output:nth-child(3)::before {
  left: -1.1rem;
}

.reveal .output-hub .output:nth-child(4)::before,
.reveal .output-hub .output:nth-child(5)::before {
  right: -1.1rem;
}

.reveal .rendered-preview {
  background: #fff;
  border: 1px solid var(--google-line);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.2);
  padding: 0.7rem;
}

.reveal .bar-row {
  align-items: center;
  display: grid;
  font-size: 0.62em;
  gap: 0.4rem;
  grid-template-columns: 2.5rem 1fr 2rem;
  margin: 0.35rem 0;
}

.reveal .bar {
  background: var(--google-blue);
  border-radius: 4px;
  height: 0.62rem;
}

.reveal .bar.red { background: var(--google-red); }
.reveal .bar.yellow { background: var(--google-yellow); }
.reveal .bar.green { background: var(--google-green); }

.reveal .keycap {
  background: var(--google-surface);
  border: 1px solid #bdc1c6;
  border-bottom-width: 3px;
  border-radius: 4px;
  color: var(--google-ink);
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72em;
  padding: 0.05rem 0.28rem;
}

.reveal .compact-table table {
  font-size: 0.68em;
}

.reveal .compact-table table th,
.reveal .compact-table table td {
  padding: 0.36rem 0.55rem;
}

.reveal pre code {
  line-height: 1.25;
}

.reveal div.sourceCode {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .reveal .timeline { grid-template-columns: repeat(4, 1fr); }
  .reveal .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
