/* Base */
.rs-readmore {
  position: relative;
}

/* Estado colapsado con clamp (si el navegador lo soporta) */
.rs-readmore[data-rm-clamped="true"][data-rm-mode="lines"] .rs-rm-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fallback de altura (px) o cuando clamp no aplica */
.rs-readmore[data-rm-clamped="true"][data-rm-mode="height"] .rs-rm-content,
.rs-readmore[data-rm-clamped="true"][data-rm-mode="fallback"] .rs-rm-content {
  overflow: hidden;
}

/* Desvanecido sutil al final en estado colapsado */
.rs-readmore[data-rm-clamped="true"] .rs-rm-fade {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5em; /* ajustable */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0));
}

/* Botón */
.rs-rm-toggle {
  display: inline-block;
  margin-top: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* Transiciones suaves en fallback */
.rs-rm-anim {
  transition: max-height 0.25s ease;
}
