/* Reproductor de las reseñas: estilos propios de Nora, sin dependencias del blog. */
.article-body .article-meta.r2d-reader-meta {
  padding-bottom: 0;
  margin-bottom: .65rem;
  border-bottom: 0;
}
.r2d-reader {
  --r2d-reader-accent: #2457e6;
  margin: 0 0 1.5rem;
  padding: .8rem;
  border: 1px solid #dce3ea;
  border-radius: .8rem;
  background: #f5f7fa;
  color: #0b1d33;
  font: 500 .78rem/1.4 var(--sans, system-ui, sans-serif);
  min-width: 0;
}
.r2d-reader__head, .r2d-reader__track { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.r2d-reader__head { margin-bottom: .45rem; }
.r2d-reader button, .r2d-reader select { font-family: inherit; cursor: pointer; }
.r2d-reader__toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-width: 0;
  min-height: 42px;
  padding: .55rem .7rem;
  border: 1px solid #0b1d33;
  border-radius: .5rem;
  background: #0b1d33;
  color: #fff;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
}
.r2d-reader__toggle:hover { background: #183c63; }
.r2d-reader__play-icon { display: grid; place-items: center; flex: 0 0 20px; color: #ffd253; }
.r2d-reader svg { display: block; width: 20px; height: 20px; }
.r2d-reader__speed { flex: 0 0 auto; margin: 0; }
.r2d-reader__speed select {
  min-width: 59px;
  min-height: 42px;
  padding: .35rem .25rem .35rem .4rem;
  border: 1px solid #cad5e1;
  border-radius: .5rem;
  background: #fff;
  color: #0b1d33;
  font-size: .76rem;
  font-weight: 700;
}
.r2d-reader__icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 34px;
  padding: 5px;
  border: 1px solid #d5dfe8;
  border-radius: .4rem;
  color: #24415f;
  background: #fff;
}
.r2d-reader__icon:hover { color: #0b1d33; background: #e6edf6; }
.r2d-reader button:disabled, .r2d-reader select:disabled { opacity: .45; cursor: default; }
.r2d-reader button:focus-visible, .r2d-reader select:focus-visible, .r2d-reader input:focus-visible {
  outline: 3px solid #2457e6;
  outline-offset: 3px;
}
.r2d-reader__progress {
  --r2d-reader-progress: 0%;
  flex: 1 1 0;
  display: block;
  width: 0;
  min-width: 24px;
  height: 34px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: #2457e6;
  cursor: pointer;
}
.r2d-reader__progress::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 9px;
  background: linear-gradient(to right, #2457e6 var(--r2d-reader-progress), #d4deea var(--r2d-reader-progress));
}
.r2d-reader__progress::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2457e6;
  box-shadow: 0 0 0 1px #2457e6;
  appearance: none;
  -webkit-appearance: none;
}
.r2d-reader__progress::-moz-range-track { height: 5px; border-radius: 9px; background: #d4deea; }
.r2d-reader__progress::-moz-range-progress { height: 5px; border-radius: 9px; background: #2457e6; }
.r2d-reader__progress::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #2457e6; box-shadow: 0 0 0 1px #2457e6; }
.r2d-reader__progress:disabled { opacity: .5; cursor: default; }
.article-body .r2d-reader__status, .article-sidebar .r2d-reader__status, .r2d-reader__status {
  margin: .35rem 0 0;
  color: #53677b;
  font: 500 .7rem/1.4 var(--sans, system-ui, sans-serif);
  min-height: 1.4em;
}
.r2d-reader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.article-content .r2d-reader-highlight {
  background: #fff1c0;
  box-shadow: -4px 0 0 #e5b940;
  border-radius: .15rem;
  scroll-margin-top: 120px;
  transition: background-color .15s ease;
}
.r2d-reader--compact { margin: .75rem 0 0; padding: .7rem; background: #fff; box-shadow: 0 8px 24px rgba(11,29,51,.07); }
.r2d-reader--compact .r2d-reader__toggle { min-height: 38px; font-size: .77rem; padding-block: .45rem; }
.r2d-reader--compact .r2d-reader__speed select { min-height: 38px; }
.r2d-reader--floating {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(var(--r2d-reader-bottom, 14px) + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 12px 40px rgba(11,29,51,.2);
}
body.r2d-reader-float-active { padding-bottom: calc(var(--r2d-reader-float-height, 150px) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 691px) {
  body .article-sidebar.r2d-reader-has-dock .article-photo img,
  body .article-sidebar.r2d-reader-has-dock .article-gallery__slide {
    max-height: var(--r2d-reader-image-limit, calc(100dvh - 23rem)) !important;
    object-fit: contain;
  }
}
@media (max-width: 690px) {
  .r2d-reader { margin-bottom: 1.35rem; padding: .7rem; }
  .r2d-reader__head, .r2d-reader__track { gap: .4rem; }
  .r2d-reader__toggle { min-height: 44px; padding-inline: .5rem; font-size: .75rem; }
  .r2d-reader__speed select { min-height: 44px; }
  .r2d-reader__icon { flex-basis: 36px; width: 36px; height: 38px; }
  .r2d-reader__progress { height: 38px; }
  .r2d-reader--floating { margin-bottom: 0; }
}
.r2d-reader.r2d-reader--collapsed {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.r2d-reader.r2d-reader--collapsed .r2d-reader__head { margin-bottom: 0; }
.r2d-reader.r2d-reader--collapsed .r2d-reader__toggle {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  padding: .6rem .85rem;
}
.r2d-reader--compact.r2d-reader--collapsed .r2d-reader__head { justify-content: center; }
.r2d-reader--floating.r2d-reader--collapsed { width: max-content; max-width: calc(100% - 24px); }
@media (max-width: 690px) {
  .r2d-reader.r2d-reader--collapsed .r2d-reader__toggle { min-height: 44px; }
}
/* En ventanas bajas, el contador cede su espacio al botón que aparece
   durante la lectura. Sigue disponible para lectores de pantalla. */
@media (min-width: 691px) and (max-height: 790px) {
  .article-sidebar.r2d-reader-has-dock .article-gallery__count {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .article-sidebar.r2d-reader-has-dock .article-photo { padding: .6rem; }
  .article-sidebar.r2d-reader-has-dock .r2d-reader--compact { margin-top: .4rem; }
  .article-sidebar.r2d-reader-has-dock .r2d-reader--compact.r2d-reader--collapsed .r2d-reader__toggle {
    min-height: 36px;
    padding: .45rem .7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-content .r2d-reader-highlight { transition: none; }
}
.r2d-reader[hidden], .r2d-reader [hidden] { display: none !important; }
