:root {
  --brand: #2563eb;
  --r-heading-margin: 0 0 0 0;
}
.reveal h1, .reveal h2, .reveal h3 { letter-spacing: .2px; }
.badge { display:inline-flex; gap:.4rem; padding:.2rem .6rem; border-radius:999px; background:#111827; color:#fff; font-size:.7rem; }
.small { font-size:.85rem; color:#6b7280; }
footer.site-footer { position: fixed; left:0; right:0; bottom:0; text-align:center; font-size:.75rem; color:#6b7280; padding:.4rem 0; }
.hero-slide { position: relative; }
.hero-slide::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:0;
}
.hero-slide > * {
  position:relative;
  z-index:1;
}
.hero-slide .small { color:#e5e7eb; }
.question-callout {
  display:inline-block;
  padding:.75rem 1rem;
  border-radius:.75rem;
  background:rgba(37,99,235,.15);
  color:#e5e7eb;
  font-weight:600;
  border:1px solid rgba(37,99,235,.35);
}
.context-logo {
  margin-top:1.5rem;
  max-width:220px;
  height:auto;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

.chart-frame {
  width: 100%;
  /* height: 620px; */
  height: 53vh;
  border: 0;
}
.chart-caption {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* .reveal .slides {
  width: calc(100% - 350px) !important;
} */
.reveal .slides section .small { font-size: 0.9rem; opacity: 0.8; }

/* Tabla compacta para Reveal */
.reveal .table-fit { max-height: 60vh; overflow: auto; margin-top: .75rem; }
.reveal table.compact { width: 100%; table-layout: fixed; border-collapse: collapse;
  font-size: clamp(12px, 1.6vw, 18px); }
.reveal table.compact th, .reveal table.compact td { 
  padding: .45em .6em; vertical-align: top; 
}
.reveal table.compact th:nth-child(1) { width: 20%; }
.reveal table.compact th:nth-child(2) { width: 22%; }
.reveal table.compact th:nth-child(3) { width: 58%; }

/* Mejor envoltura de texto */
.reveal table.compact th, .reveal table.compact td {
  word-break: break-word; hyphens: auto;
}

/* Aún más compacto en pantallas pequeñas */
@media (max-width: 900px){
  .reveal table.compact { font-size: 12px; }
}
.chart-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  z-index: 5;
}

.fullscreen-iframe {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  background: #000;
  border: none;
}
.scroll-panel {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #888 #171717;         /* thumb / track */
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #171717;                   /* track oscuro */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #555;                      /* thumb gris */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;                      /* hover más claro */
}

/* Paneles internos con scroll (como el de 2.4) */
.scroll-panel {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}