/* GPP Lectura Guiada — estilos */
.gpp-rg-sticky {
  position: sticky;
  top: 96px;
  z-index: 2;
  margin-bottom: 22px;
}

.gpp-rg-card {
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0b3d62;
  border-radius: 10px;
  padding: 18px 18px 16px;
  font-family: inherit;
}

.gpp-rg-card__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
  color: #0b3d62;
  font-weight: 700;
  letter-spacing: .01em;
}

.gpp-rg-card__tema {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d4af37;
  color: #123357;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.gpp-rg-card__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.gpp-rg-card__list li {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e6ecf3;
}

.gpp-rg-card__list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gpp-rg-card__list a {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  color: #123357;
  text-decoration: none;
  font-weight: 600;
}

.gpp-rg-card__list a:hover {
  color: #0b6bb3;
  text-decoration: underline;
}

.gpp-rg-card__more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0b6bb3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.gpp-rg-card__more:hover {
  border-bottom-color: #0b6bb3;
}

/* Botones de compartir */
.gpp-rg-share {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.gpp-rg-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font: 700 13.5px/1 inherit;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}

.gpp-rg-share__btn:hover {
  transform: translateY(-1px);
}

.gpp-rg-share__btn svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px;
  fill: #fff !important;
  stroke: none !important;
  color: #fff;
  display: block;
  aspect-ratio: 1 / 1;
}

.gpp-rg-share__btn--sub svg {
  fill: #123357 !important;
  color: #123357;
}

.gpp-rg-share__btn--wa { background: #25D366; }
.gpp-rg-share__btn--fb { background: #1877F2; }
.gpp-rg-share__btn--li { background: #0A66C2; }
.gpp-rg-share__btn--sub {
  background: #d4af37;
  color: #123357;
  padding-left: 16px;
}

@media (max-width: 1024px) {
  .gpp-rg-card { margin-top: 26px; }
}

@media (max-width: 600px) {
  .gpp-rg-share__label { display: none; }
  .gpp-rg-share__btn { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .gpp-rg-share { right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Aviso breve al copiar el texto para redes */
.gpp-rg-toast {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: #123357;
  color: #fff;
  font: 600 13.5px/1.45 inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.gpp-rg-toast.on {
  opacity: 1;
  transform: translateY(0);
}
