/* Shell compartido de los mazos de /cursos: marca, banner de anuncio y etiqueta de vista previa. */

/* ── Legibilidad compartida ────────────────────────────────────────
   Títulos compactos para que quepan en UNA línea, notas al pie
   legibles (la clase .nota reemplaza a r-fit-text, que forzaba
   párrafos largos a una sola línea diminuta) y código sin cortes. */
.reveal h1 {
  font-size: 1.9em;
}
.reveal h2 {
  font-size: 1.3em;
}
.reveal h3 {
  font-size: 1.12em;
}
.reveal .nota {
  font-size: 0.62em;
  text-align: left;
  opacity: 0.95;
}
.reveal pre {
  font-size: 0.4em;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}
.reveal pre code {
  max-height: 520px;
  line-height: 1.25;
}
.xr-brand {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 30;
  opacity: 0.45;
  pointer-events: auto;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.3s;
}
.xr-brand:hover {
  opacity: 1;
}
.xr-brand-handle {
  display: block;
  margin-bottom: 2px;
  font: 600 10px/1.4 system-ui, sans-serif;
  color: #c9da2a;
  letter-spacing: 0.02em;
}
.xr-brand img {
  display: block;
  margin: 0 auto;
  width: 40px;
  height: auto;
}
.xr-ad {
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 40;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  padding: 4px 6px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.xr-ad--visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.xr-ad-label {
  display: block;
  font: 600 9px/1.6 system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.xr-preview-tag {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 4px 12px;
  border-radius: 999px;
  background: #c9da2a;
  color: #10301c;
  font: 700 12px/1.6 system-ui, sans-serif;
}
section[data-shell-preview]::before {
  content: 'Publica: ' attr(data-shell-preview);
  position: absolute;
  top: -1.5em;
  right: 0;
  font-size: 0.4em;
  color: #c9da2a;
}
@media print {
  .xr-brand,
  .xr-ad,
  .xr-preview-tag {
    display: none !important;
  }
}
.xr-consent-link {
  position: fixed;
  left: 92px;
  bottom: 12px;
  z-index: 30;
  font: 600 11px/1.4 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}
.xr-consent-link:hover {
  color: #c9da2a;
}
@media print {
  .xr-consent-link {
    display: none !important;
  }
}
